JPS61160168A - Priority discriminating device - Google Patents
Priority discriminating deviceInfo
- Publication number
- JPS61160168A JPS61160168A JP54085A JP54085A JPS61160168A JP S61160168 A JPS61160168 A JP S61160168A JP 54085 A JP54085 A JP 54085A JP 54085 A JP54085 A JP 54085A JP S61160168 A JPS61160168 A JP S61160168A
- Authority
- JP
- Japan
- Prior art keywords
- output
- input
- priority
- gate
- terminal
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/14—Handling requests for interconnection or transfer
- G06F13/36—Handling requests for interconnection or transfer for access to common bus or bus system
- G06F13/362—Handling requests for interconnection or transfer for access to common bus or bus system with centralised access control
- G06F13/364—Handling requests for interconnection or transfer for access to common bus or bus system with centralised access control using independent requests or grants, e.g. using separated request and grant lines
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Multi Processors (AREA)
- Bus Control (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明は、複数の入力端子に入力された信号を、優先順
位にもとづき選択して出力する優先順位判別装置に係り
、特に、上記優先順位を変更する優先順位変更手段の回
路構成に関するものである。[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to a priority determination device that selects and outputs signals input to a plurality of input terminals based on the priority order, and particularly relates to a priority determination device that selects and outputs signals input to a plurality of input terminals based on the priority order. The present invention relates to a circuit configuration of a priority order changing means for changing the priority order.
従来、複数の入力端子に入力された信号を優先順位にも
とづき選択して出力する優先順位判別装置が知られてい
る。2. Description of the Related Art Conventionally, a priority order determination device is known that selects and outputs signals input to a plurality of input terminals based on priority order.
第6図は従来のマルチCPU構成におけるCPUのバス
アービテーションの回路を示したものである。図におい
て1は複数の入力端子(図面では8個の入力端子)を有
するプライオリティエンコーダ、2は、上記プライオリ
ティエンコーダ1の出力をデコードする判別手段として
のデコーダ、3はORゲート4からの信号によって入力
信号をラッチするフリップフロツブ、5はシフトレジス
タで、インバータ6により反転したプライオリティエン
コーダ1のσ1の反転出力とANDゲート7からのクロ
ックCL入力によりQO〜Q3にH又はLレベルの信号
を出力する。8はANDゲートで、8g A N Dゲ
ート8は上記プライオリティエンコーダ1のGSの出力
とクロックCLのANDをとってORゲート4に入力す
る。該ORゲート4の他方の入力は上記シフトレジスタ
5のQ2端子の出力である。9は、3人力NANDゲー
トで上記シフトレジスタ5のQO端子出力と、インバー
タIOにより反転したQl端子の反転出力及びNAND
ゲート11からの出力を入力してその出力をANDゲー
ト7に入力している。該ANDゲート7の他方の入力は
、インバータ12によって反転したクロックCLである
。一方、NANDゲート13の入力は、インバータ14
により反転したシフトレジスタ5のQ2端子の反転出力
とQO端子の出力で、上記デコーダ2のGS入力端子に
接続されている。FIG. 6 shows a CPU bus arbitration circuit in a conventional multi-CPU configuration. In the figure, 1 is a priority encoder having a plurality of input terminals (8 input terminals in the drawing), 2 is a decoder as a discriminating means for decoding the output of the priority encoder 1, and 3 is an input signal from an OR gate 4. A flip-flop latches the signal, and 5 is a shift register, which outputs H or L level signals to QO to Q3 based on the inverted output of σ1 of the priority encoder 1 inverted by the inverter 6 and the clock CL input from the AND gate 7. . 8 is an AND gate, and the 8g AND gate 8 ANDs the GS output of the priority encoder 1 and the clock CL and inputs the result to the OR gate 4. The other input of the OR gate 4 is the output of the Q2 terminal of the shift register 5. 9 is a three-man NAND gate that outputs the QO terminal output of the shift register 5, the inverted output of the Ql terminal inverted by the inverter IO, and NAND.
The output from gate 11 is input, and the output is input to AND gate 7. The other input of the AND gate 7 is the clock CL inverted by the inverter 12. On the other hand, the input of the NAND gate 13 is connected to the inverter 14
The inverted output of the Q2 terminal of the shift register 5 and the output of the QO terminal are connected to the GS input terminal of the decoder 2.
又、インバータ15により反転した上記シフトレジスタ
5の03端子の反転出力をANDゲート16に入力し、
該ANDゲート16の他方の入力にはRESET信号を
入力している。該ANDゲート16の出力はシフトレジ
スタ5のリセット端子に入力している。Further, the inverted output of the 03 terminal of the shift register 5, which has been inverted by the inverter 15, is input to the AND gate 16,
A RESET signal is input to the other input of the AND gate 16. The output of the AND gate 16 is input to the reset terminal of the shift register 5.
又、フリップフロップ17は、データ入力端子にBUS
BUSY信号を入力し、フリップフロップ18のデータ
入力端子に、上記フリップフロップ17の非反転出力を
人力し、上記フリップフロップ18の反転出力と、上記
フリップフロップ17の非反転出力を上記NANDゲー
ト11に入力し、出力は上記3人力NANDゲート9に
入力している。In addition, the flip-flop 17 has a data input terminal connected to the BUS
Input the BUSY signal, input the non-inverted output of the flip-flop 17 to the data input terminal of the flip-flop 18, and input the inverted output of the flip-flop 18 and the non-inverted output of the flip-flop 17 to the NAND gate 11. The output is input to the three-man powered NAND gate 9.
次に、作用について説明する。先ず、図に示す如く、各
CPUのバス制御権獲得の要求信号Sが入力される。す
ると、フリップフロップ3は、クロックCLの立上りで
上記要求信号Sをラッチする。然るに、この場合、入力
が1つもなければ、(以後この状態を入力無意とする)
プライオリティエンコーダ1の3の出力はH(ハイレベ
ル)になる。一方、クロックCLと上記のGS出力はA
NDゲート8に共に入力されており、該ANDゲート8
の出力は、上記σ3出力がHであるため、クロックCL
そのものとなりORゲート4を通ってフリップフロップ
3のクロック入力端子に接続されクロックCLの立上り
で人力信号をラッチする。このサイクルを入力信号が1
つでも存在する(以後この状態を入力有意とする)まで
繰返す。Next, the effect will be explained. First, as shown in the figure, a request signal S for each CPU to acquire bus control right is input. Then, the flip-flop 3 latches the request signal S at the rising edge of the clock CL. However, in this case, if there is no input (hereinafter this state will be considered as meaningless)
The output of priority encoder 1 becomes H (high level). On the other hand, the clock CL and the above GS output are A
Both are input to the ND gate 8, and the AND gate 8
Since the above σ3 output is H, the output of the clock CL
It is connected to the clock input terminal of the flip-flop 3 through the OR gate 4, and latches the human input signal at the rising edge of the clock CL. The input signal is 1 during this cycle.
This process is repeated until at least one exists (hereinafter, this state is considered to be input significant).
入力が有意になると、丁】出力はL(ローレベル)にな
り、ANDゲート8の出力はLになる。一方、ORゲー
ト4には、ANDゲート8の出力と、シフトレジスタ5
のQ2端子出力が入力されている。When the input becomes significant, the output becomes L (low level) and the output of the AND gate 8 becomes L. On the other hand, the OR gate 4 receives the output of the AND gate 8 and the shift register 5.
The Q2 terminal output of is input.
シフトレジスタ5は、あらかじめリセットされているの
でQ2端子出力はLになっており、ANDゲート8の小
力がLになれば、ORゲート4の出力はLになり、フリ
ップフロップ3のクロック入力端子にLが入力され、ラ
ンチは行なわず、前回ラッチした値を保持する。Since the shift register 5 has been reset in advance, the Q2 terminal output is L, and when the small output of the AND gate 8 becomes L, the output of the OR gate 4 becomes L, and the clock input terminal of the flip-flop 3 becomes L. L is input to , no launch is performed, and the previously latched value is held.
一方、入力が存意であれば、GS出力がLであるからイ
ンバータ6を通るとHになりシフトレジスタ5のDSI
、DS2端子に、共にHが入力される。On the other hand, if the input is valid, the GS output is L, so it becomes H after passing through the inverter 6, and the DSI of the shift register 5
, DS2 terminals are both input with H level.
ところで、BUSBtJSY(8号はシステムバスに接
続される各プロセッサが、バス制御権を与えられた時に
L(アクティブ)にし、コマンド(メモリ読出し、書込
み等)が終了した時点で、H(インアクティブ)にする
。このBUSBUSY信号は、フリップフロップ17の
データ入力端子に接続されているが、フリップフロップ
17゜18及びNANDゲート11は、微分回路19を
構成しており、通常、微分回路の出力(具体的にはNA
NDゲート11の出力)はHであり、BLJSBUSY
信号がL(アクティブ)からH(インアクティブ)にな
る時点をトリガーにして1クロックCL分、Lレベルを
出力する。By the way, BUSBtJSY (No. 8) is set to L (active) when each processor connected to the system bus is given bus control authority, and set to H (inactive) when a command (memory read, write, etc.) is completed. This BUSBUSY signal is connected to the data input terminal of the flip-flop 17, but the flip-flops 17 and 18 and the NAND gate 11 constitute a differentiating circuit 19, and normally the output of the differentiating circuit (specifically Generally NA
ND gate 11 output) is H, and BLJSBUSY
The time when the signal changes from L (active) to H (inactive) is used as a trigger to output L level for one clock CL.
ところで、3人力NANDゲート9への人力は、前述の
微分回路19の出力、シフトレジスタ5のQO出力、及
びインバータ10を通したQ1出力の3つである。By the way, the human power input to the three-manpower NAND gate 9 is three: the output of the above-mentioned differentiating circuit 19, the QO output of the shift register 5, and the Q1 output through the inverter 10.
上記微分回路19の出力(NANDゲート11の出力)
は通常Hであり、又、シフトレジスタ5は、リセットさ
れているのでQO端子出力はしてあり、一方、Q1端子
出力は、してあるがインバータ10で反転してHとなり
、3人力NANDゲート9の出力はHになり、ANDゲ
ート7への入力はHとなる。該ANDゲート7への他方
の人力は、クロックCLであり、該ANDゲート7の出
力はクロックCLそのものとなる。Output of the above differentiation circuit 19 (output of NAND gate 11)
is normally H, and since the shift register 5 has been reset, the QO terminal is output.On the other hand, the Q1 terminal output is inverted by the inverter 10 and becomes H, and the three-man power NAND gate 9 becomes H, and the input to AND gate 7 becomes H. The other input to the AND gate 7 is the clock CL, and the output of the AND gate 7 is the clock CL itself.
従って、シフトレジスタ5ヘクロツタCLが入力される
が、前述のように入力が有意であれば、DSL、DS2
端子に共にHが入力されるので、クロックCLの立上り
に同期して、QO端子がHになる。その結果、3人力N
ANDゲート9の人力はすべてHになり、ANDゲート
7への入力はLとなり、シフトレジスタ5^、クロック
CLは入力されなくなる。と同時に、NANDゲート1
3へは、QO端子からHが入力され、一方、Q2端子出
力は、リセットされたままの状態であるから、出力はし
てインバータ14・で反転してHが、それぞれ入力され
るため、NANDゲート13の出力はLとなり、デコー
ダ2の口がLとなり、デコーダ2は出力イネーブルとな
り、判定結果Pが出力される。Therefore, the shift register 5 is input to the shift register CL, but if the input is significant as described above, DSL, DS2
Since H is input to both terminals, the QO terminal becomes H in synchronization with the rise of the clock CL. As a result, 3 manpower N
All the inputs of the AND gate 9 become H, the input to the AND gate 7 becomes L, and the shift register 5^ and clock CL are no longer input. At the same time, NAND gate 1
3, H is input from the QO terminal, and on the other hand, the Q2 terminal output remains in the reset state, so it is output and inverted by the inverter 14, and H is input, so NAND The output of the gate 13 becomes L, the mouth of the decoder 2 becomes L, the decoder 2 becomes output enabled, and the determination result P is output.
なお、シフトレジスタ5がリセットされている時点では
、NANDゲート13の出力はHとなり、デコーダ2は
出力ディスイネーブルになっている。Note that at the time when the shift register 5 is being reset, the output of the NAND gate 13 becomes H, and the output of the decoder 2 is disabled.
判定結果によりパスプライオソティを与えられたCPU
は、BUSBUSY信号をL(アクティブ)にし、コマ
ンド(メモリ読込み、書出し)終了後、H(インアクテ
ィブ)にする。CPU given pass priority based on judgment result
sets the BUSBUSY signal to L (active), and after the command (memory read, write) is completed, sets it to H (inactive).
BUSBUSY信号がLからHへ立上がる時点をトリガ
ーにして、フリップフロップ17.18゜及びNAND
ゲート11かつ構成される微分回路19から1クロック
CL分だけ出力をLにし、3人力NANDゲート9の出
力すなわちANDゲート7への入力をHにする。Using the timing when the BUSBUSY signal rises from L to H as a trigger, flip-flop 17.18° and NAND
The output from the differentiating circuit 19 composed of the gate 11 is set to L for one clock CL, and the output of the three-man power NAND gate 9, that is, the input to the AND gate 7 is set to H.
従ってシフトレジスタ5ヘクロツクCLが入力可能とな
り、クロックCLの立上りでQ1端子出力がHになり、
インバータ10を通った3人力NANDゲート9への入
力がLとなり以後、該NANDゲート9の出力すなわち
ANDゲート7の入力はHとなる。よってシフトレジス
タ5へはクロックCLが入力可能になり次のクロックC
LでQ2端子出力がLからHになりORゲート4の出力
がLからHになりフリップフロップ3は、LからHへの
立上りで次回の入力信号をラッチする。Therefore, the clock CL can be input to the shift register 5, and the Q1 terminal output becomes H at the rising edge of the clock CL.
The input to the three-man power NAND gate 9 through the inverter 10 becomes L, and thereafter the output of the NAND gate 9, that is, the input of the AND gate 7 becomes H. Therefore, the clock CL can be input to the shift register 5, and the next clock C
At L, the Q2 terminal output changes from L to H, the output of the OR gate 4 changes from L to H, and the flip-flop 3 latches the next input signal at the rising edge from L to H.
と同時に、インバータ14でQ2端子出力が、反転する
のでNANDゲート13への入力はし、一方、QO端子
からの入力はHであるので、該NANDゲート13の出
力、すなわちデコーダ2の61端子はHとなり、デコー
ダ2は出力ディスイネーブルとなる。さらに次のクロッ
クCLでQ3端子がHになり、インバータ15で反転し
てLとなりANDゲート16に入力され、他方の入力R
ESET信号は、通常時Hであるから、該ANDゲート
16の出力は、Lとなりリセット端子に入力され、シフ
トレジスタ5はリセットされる。At the same time, the Q2 terminal output is inverted by the inverter 14, so it is input to the NAND gate 13. On the other hand, since the input from the QO terminal is H, the output of the NAND gate 13, that is, the 61 terminal of the decoder 2 is The signal becomes H, and the decoder 2 becomes output disabled. Furthermore, the Q3 terminal becomes H at the next clock CL, is inverted by the inverter 15, becomes L, and is input to the AND gate 16, and the other input R
Since the ESET signal is normally H, the output of the AND gate 16 becomes L and is input to the reset terminal, and the shift register 5 is reset.
なお、RESET信号は、電源投入時のみ一定期間りに
なるが通常はHであり、Q3端子出力がLの間は、AN
Dゲー)16の出力はHとなり、シフトレジスタ5はリ
セットされない。Note that the RESET signal lasts for a certain period only when the power is turned on, but is normally H, and while the Q3 terminal output is L, the AN
The output of the D game) 16 becomes H, and the shift register 5 is not reset.
次回の入力信号をラッチして入力有意であれば、前述の
シーケンスを行ない、入力無意であれば、プライオリテ
ィエンコーダ1のσ】出力がHとなるのでANDゲート
8からクロックCLが出力され、フリップフロップ3は
入力有意になるまでラッチを繰返す。なお、インバータ
12によりシフトレジスタ5へのクロックCLを反転さ
せている理由を以下に示す。The next input signal is latched, and if the input is significant, the above sequence is performed; if the input is insignificant, the σ] output of the priority encoder 1 becomes H, so the clock CL is output from the AND gate 8, and the flip-flop 3 repeats the latch until the input becomes significant. The reason why the clock CL to the shift register 5 is inverted by the inverter 12 will be explained below.
微分回路19とシフトレジスタ5は、共にクロックCL
の立上りでラッチする。従って、シフトレジスタ5への
クロックCLはインバータ12により反転しているため
、上記微分回路19へのクロックCLに対し半クロック
CL分シフトしていることになる。The differentiating circuit 19 and the shift register 5 are both connected to the clock CL.
It latches at the rising edge of . Therefore, since the clock CL to the shift register 5 is inverted by the inverter 12, the clock CL to the differentiation circuit 19 is shifted by half a clock CL.
一方BUSBUSY信号の立上りを検出した微分回路1
9が1クロックCL幅のLを出力し、その結果NAND
ゲート7への入力が1クロックCLO幅Hとなる時間だ
け、シフトレジスタ5にクロックCLが入力可能となる
が、半クロックCL分シフトしているため、確実にラッ
チが行なわれることになる。On the other hand, the differentiating circuit 1 that detected the rising edge of the BUSBUSY signal
9 outputs L of 1 clock CL width, resulting in NAND
The clock CL can be input to the shift register 5 only for the time when the input to the gate 7 is one clock CLO width H, but since it is shifted by half a clock CL, latching is performed reliably.
ところで、上述のように構成された従来技術によるCP
U間のバスアービテーション方式を実現する回路におい
ては、プライオリティエンコーダ1が1つであり、この
ため、CPUの優先順位は、プライオリティエンコーダ
1の接続端子への信号線の接続の仕方で一通りに決定さ
れる。従って、例えば前回の判定結果により優先順位を
変換する回転優先制御方式を採用する場合、CPUの優
先順位を変換したプライオリティエンコーダlが複数個
必要になるとともに、その他にもICが必要となり回路
が複雑化する問題点があった。By the way, the conventional CP configured as described above
In the circuit that implements the bus arbitration method between U, there is only one priority encoder 1, so the priority of the CPU is determined by the way the signal line is connected to the connection terminal of the priority encoder 1. It is determined. Therefore, for example, when adopting a rotation priority control method that converts the priority order based on the previous judgment result, multiple priority encoders L that convert the priority order of the CPU are required, and other ICs are also required, making the circuit complicated. There was a problem with this.
従って、本発明の目的は、回路の構成要素を交換するこ
となく、優先順位の変更を可能とした優先順位判別装置
を提供するにある。Accordingly, an object of the present invention is to provide a priority order determination device that allows changes in priority order without replacing circuit components.
本発明は、変更用テーブルを有する読出し専用メモリに
より構成した優先順位変更手段を具備したものである。The present invention is equipped with a priority order changing means constituted by a read-only memory having a change table.
優先順位変更手段の読出し専用メモリは、変更用テーブ
ルにもとづき入力端子に入力された信号の優先順位を変
更する。The read-only memory of the priority order changing means changes the priority order of the signal input to the input terminal based on the change table.
以下に、本発明の実施例を第1図乃至第5図に基づき説
明する。なお、従来技術と同一構成要素には同一符号を
付して説明を省略するものとする。Embodiments of the present invention will be described below with reference to FIGS. 1 to 5. Note that the same components as those in the prior art are given the same reference numerals, and the description thereof will be omitted.
然るに、21は本発明によるシフトレジスタで、該シフ
トレジスタ21は従来のQO−Q3端子が、本発明では
Q1〜Q4端子にシフトしており、QO端子出力はフリ
ップフロップ22のクロック入力端子に入力している。However, 21 is a shift register according to the present invention, in which the conventional QO-Q3 terminal is shifted to Q1 to Q4 terminals in the present invention, and the QO terminal output is input to the clock input terminal of the flip-flop 22. are doing.
また、NANDゲート13の出力は、バス・ドライバー
23のσで端子に入力している。24はバスレシーバで
あり、外部からの入力信号を受信し、内部回路へ信号を
出力する。フリップフロップ3と25の出力は読出し専
用メモリ(以下ROMという)26のアドレスを決定し
ており、該ROM26の出力0ONO2をフリップフロ
7プ22がラッチし、出力をデコーダ2に入力し、該デ
コーダ2の出力がバス・ドライバー23に入力している
。27はタイマーで、ORゲート4の出力がB端子に入
力、され、出力Qはフリップフロップ28のデータ入力
端子に入力され、該フリップフロップ28の非反転出力
とクロックCLをANDゲート29に入力し、出力はA
NDゲート8及びインバータ12に入力される。上記R
OM26により優先順位変更手段が構成される。Further, the output of the NAND gate 13 is input to the terminal of the bus driver 23 at σ. A bus receiver 24 receives input signals from the outside and outputs signals to the internal circuit. The outputs of the flip-flops 3 and 25 determine the address of a read-only memory (hereinafter referred to as ROM) 26. The output 0ONO2 of the ROM 26 is latched by the flip-flop 22, and the output is input to the decoder 2. The output of is input to the bus driver 23. 27 is a timer, the output of the OR gate 4 is input to the B terminal, the output Q is input to the data input terminal of the flip-flop 28, and the non-inverted output of the flip-flop 28 and the clock CL are input to the AND gate 29. , the output is A
It is input to the ND gate 8 and the inverter 12. Above R
The OM 26 constitutes a priority order changing means.
第1図に本発明の実施例を回路図、第2図に第1図のブ
ロック図を示す。詳細は、以降に述べるとしてここでは
概略だけを示す。要求信号Sを、入力信号ランチ部とし
てのフリップフロップ3でラッチし、同時に次回セグメ
ントラッチ部としてのフリップフロップ25でもラッチ
を行なう。これらラッチ部としてのフリップフロップ3
.25の出力がROM26のアドレス入力端子に入力し
てから出力するまでの遅延時間分だけ、タイマー27に
より、ラッチタイミング決定部としてのシフトレジスタ
2/へのクロックCL入力を一定時間停止してROM2
6からの出力を待つ。該ROM26からの内容が出力さ
れたと思われるタイミングでタイマー27を停止し、上
記ラッチタイミング決定部としてのシフトレジスタ21
にクロックCL入力可能とする。その後、上記ラッチタ
イミング決定部としてのシフトレジスタコ1からの出力
で、優先出力コードをラッチするとともにバス・ドライ
バー23を出力イネーブルにし、優先出力コードを外部
へ出力する。そしてBUSBUSY信号の微分入力によ
り、上記バス・ドライバー23を出力ディスイネーブル
にし、次回のラッチを行なうというシーケンスを繰返す
。FIG. 1 shows a circuit diagram of an embodiment of the present invention, and FIG. 2 shows a block diagram of FIG. 1. The details will be described later, but only an outline will be given here. The request signal S is latched by the flip-flop 3 serving as an input signal launch section, and simultaneously by the flip-flop 25 serving as the next segment latch section. Flip-flop 3 as these latch parts
.. The timer 27 stops the input of the clock CL to the shift register 2/ as a latch timing determining section for a certain period of time for the delay time from when the output of the ROM 25 is input to the address input terminal of the ROM 26 until it is output.
Wait for output from 6. The timer 27 is stopped at the timing when the content from the ROM 26 is thought to have been output, and the shift register 21 as the latch timing determining section
It is possible to input clock CL to Thereafter, the priority output code is latched by the output from the shift register 1 serving as the latch timing determination section, and the bus driver 23 is enabled for output, and the priority output code is output to the outside. Then, the bus driver 23 is output disabled by differential input of the BUSBUSY signal, and the next latching is performed, and the sequence is repeated.
次に第1図の回路図についての詳細な説明を行なう。R
OM26のテーブルの内容の1例を第2図に示す。RO
M26のテーブルは、A8〜AIOの3ビツトのアドレ
ス入力により、8セグメントに分割される(1セグメン
トは256番地を持つ)。A O−A 7のアドレス入
力は、要求信号Sの入力で、その入力とあらかじめ選択
されているセグメントとにより、今回の判定結果を00
〜02に出力し、又、次回選択するセグメントを03〜
05に、入力信号が1つでもあったかどうかを示す(以
後この状態を入力有意とする)ビットを06に出力する
。Next, the circuit diagram shown in FIG. 1 will be explained in detail. R
An example of the contents of the table of OM26 is shown in FIG. R.O.
The table M26 is divided into 8 segments (one segment has 256 addresses) according to the 3-bit address input from A8 to AIO. The address input of A O-A 7 is the input of the request signal S, and depending on that input and the segment selected in advance, the current judgment result is set to 00.
Output to ~02, and select next segment to 03~
At 05, a bit indicating whether there is even one input signal (hereinafter, this state will be regarded as input significant) is output at 06.
なお、各セグメントでは、従来技術によるプライオリテ
ィエンコーダと同じ働きをしAO〜A7人力に対し、判
定結果を00〜02に3ビツトコードで出力をする。そ
してセグメントにより仮想的に上記プライオリティエン
コーダへのAO〜A7人力信号線の接続の仕方を変える
ような操作をし、判定結果を00〜02に出力するよう
にしである。各セグメントでの優先順位は、第3図に示
すテーブル30に示しておく。本実施例では今回の判定
結果に1加えた値を次回選択するセグメントとしている
。なお要求信号線5o−37は第1図のものと同一であ
る。又、実際のテーブル31は、第4図の例にして作成
する。なお、第3図中、5O−37は要求信号を示す。In each segment, the function is the same as that of the prior art priority encoder, and the judgment results are outputted in 3-bit codes from 00 to 02 for AO to A7 manually. Then, an operation is performed to virtually change the connection method of the AO to A7 manual signal lines to the priority encoder using the segments, and the determination results are output to 00 to 02. The priority order for each segment is shown in a table 30 shown in FIG. In this embodiment, the value obtained by adding 1 to the current determination result is set as the segment to be selected next time. Note that the request signal line 5o-37 is the same as that shown in FIG. Further, the actual table 31 is created using the example shown in FIG. In addition, in FIG. 3, 5O-37 indicates a request signal.
又、同図中、PO−P7はセグメントを示す。Further, in the figure, PO-P7 indicates a segment.
さて第1図において、動作の説明をする。電源投入時R
ESET信号により、フリップフロップ3、 17.
18. 25. 28.タイマー27.シフトレジスタ
5がリセットされる。その結果、フリップフロップ17
.18及びNANDゲート11からなる微分回路19の
出力(NANDゲート11の出力)はHレベル、タイマ
ー27のQ端子出力はし、フリップフロップ28の非反
転出力はL、さらにシフトレジスタ4の各端子はLとな
り、Q3端子からORゲート4への入力はLとなる。ま
た、NANDゲート13の出力は、Hとなり、バス・ド
ライバー23は出力ディスイネーブルとなる。Now, referring to FIG. 1, the operation will be explained. R when power is turned on
The ESET signal causes flip-flop 3, 17.
18. 25. 28. Timer 27. Shift register 5 is reset. As a result, the flip-flop 17
.. The output of the differentiating circuit 19 (output of the NAND gate 11) consisting of 18 and the NAND gate 11 is at H level, the Q terminal output of the timer 27 is high, the non-inverting output of the flip-flop 28 is low, and each terminal of the shift register 4 is at high level. The signal becomes L, and the input from the Q3 terminal to the OR gate 4 becomes L. Further, the output of the NAND gate 13 becomes H, and the bus driver 23 becomes output disabled.
さて、リセット後、フリップフロップ3,25の出力は
LとなりAO〜AIOのアドレス入力はLとなり、第4
図から03〜05端子出力がO(3ビツトコード)、0
6端子からHが出力される。従ってクロックCL人力は
、フリップフロップ3,25のクロック入力端子に入力
可能となり、フリップフロップ3は要求信号Sを、又、
フリップフロップ25はROM26の03〜05端子出
力をそれぞれラッチする。タイマー27は、クロックC
Lの立上りをトリガにしQ端子をHにする。Now, after reset, the outputs of flip-flops 3 and 25 become L, the address inputs of AO to AIO become L, and the fourth
From the figure, the 03 to 05 terminal outputs are O (3-bit code), 0
H is output from the 6th terminal. Therefore, the clock CL can be input to the clock input terminals of the flip-flops 3 and 25, and the flip-flop 3 can input the request signal S and
The flip-flop 25 latches the outputs of terminals 03 to 05 of the ROM 26, respectively. The timer 27 has a clock C
The rising edge of L is used as a trigger to set the Q terminal to H.
するとフリップフロップ28の反転出力がLになり、A
NDゲート29の出力はLとなりクロックCLは出力さ
れなくなる。一方、タイマー27のQ端子出力のHの継
続時間は、該タイマー27の外付は抵抗とコンデンサに
より決定されるが、アドレス入力後の出力遅延時間より
やや長い時間、Hとなるように決めておく。Then, the inverted output of the flip-flop 28 becomes L, and A
The output of the ND gate 29 becomes L, and the clock CL is no longer output. On the other hand, the duration of the high level of the Q terminal output of the timer 27 is determined by the external resistor and capacitor of the timer 27, but it is determined that the high level is maintained for a slightly longer time than the output delay time after address input. put.
又、タイマー27のQ端子出力がLになると、フリップ
フロップ28の反転出力がHとなり、ANDゲート29
からクロックCLが出力可能となるが、ROM26の0
6端子出力がHであれば、第4図のテーブル31より入
力無意(入力信号が1つもない状態)であり、ANDゲ
ート8からクロックCLが出力され、フリップフロップ
3゜25は前述の様にラッチを入力有意となるまで繰返
す。Also, when the Q terminal output of the timer 27 becomes L, the inverted output of the flip-flop 28 becomes H, and the AND gate 29
Clock CL can be output from 0 of ROM26.
If the output from terminal 6 is H, the table 31 in FIG. 4 indicates that there is no input (a state in which there is no input signal), the clock CL is output from the AND gate 8, and the flip-flop 3°25 is activated as described above. Repeat the latch until the input becomes significant.
又、ROM26の06端子出力がLとなると、同じく第
2図より入力有意であり、ANDゲート8からクロック
CLは出力されず、ラッチした値を保持する。同時にシ
フトレジスタ2tのDS 1゜DS2端子は共にHとな
り、クロックCLの立上りをトリガにしてQO端子をL
からHにし、フリップフロップ22は、ROM26から
出力された今回判定結果をラッチしデコーダ2に出力す
る。Furthermore, when the output from the 06 terminal of the ROM 26 becomes L, the input is significant as shown in FIG. 2, and the clock CL is not output from the AND gate 8, but the latched value is held. At the same time, both the DS1 and DS2 terminals of the shift register 2t become H, and the rising edge of the clock CL is used as a trigger to drive the QO terminal to L.
to H, and the flip-flop 22 latches the current determination result output from the ROM 26 and outputs it to the decoder 2.
さらに次のクロックCLでQ1端子をHにしNANDゲ
ート13の出力がLとなり、バス・ドライバー23は出
力イネーブルになり、今回判定結果のデコーダ2の出力
が、外部の信号線に出力される。以後の動作は、従来技
術の動作と全く同一である。BUSBUSY信号の立上
りにより、シフトレジスタユlにクロックCLが入力可
能となり、NANDゲート13の出力がHになり、バス
・ドライバー23は出力ディスイネーブルになると同時
に、フリップフロップ3,25がラッチを行ない、入力
無意であれば、入力有意になるまでラッチを行ない人力
有意であれば、前述のシーケンスを繰り返す。Further, with the next clock CL, the Q1 terminal is set to H, the output of the NAND gate 13 is set to L, the bus driver 23 is enabled for output, and the output of the decoder 2, which is the current determination result, is output to the external signal line. The subsequent operations are exactly the same as those of the prior art. With the rise of the BUSBUSY signal, the clock CL can be input to the shift register 1, the output of the NAND gate 13 becomes H, the bus driver 23 becomes output disabled, and at the same time, the flip-flops 3 and 25 perform latching. If the input is invalid, latching is performed until the input becomes significant, and if the input is significant manually, the above sequence is repeated.
なお第5図に、主要端子の出力をもとにしたタイミング
チャートを示している。なお、(イ)はクロックCLの
出力、(ロ)はORゲート4の出力、(ハ)はフリップ
フロップ3がラッチした要求入力信号S、(ニ)はフリ
ップフロップ23がランチしたセグメント選択信号、(
ホ)はROM26の06端子のインピーダンス、(へ)
はフリップフロップ28の反転出力、(ト)はシフトレ
ジスタ5のQO端子の出力、(チ)はフリップフロップ
22がラッチした出力コード、(ワ)はNANDゲート
13の出力、(ヌ)はシフトレジスタ5のQ3端子の出
力、(ル)はシフトレジスタ5のQ4端子の出力、(ヲ
)はBUSBUSY信号、(ワ)はNANDゲート11
の出力をそれぞれ示している。Note that FIG. 5 shows a timing chart based on the outputs of the main terminals. Note that (a) is the output of the clock CL, (b) is the output of the OR gate 4, (c) is the request input signal S latched by the flip-flop 3, (d) is the segment selection signal launched by the flip-flop 23, (
E) is the impedance of the 06 terminal of ROM26, (E)
is the inverted output of the flip-flop 28, (G) is the output of the QO terminal of the shift register 5, (J) is the output code latched by the flip-flop 22, (W) is the output of the NAND gate 13, (NU) is the shift register (R) is the output of the Q4 terminal of shift register 5, (W) is the BUSBUSY signal, (W) is the NAND gate 11.
The output of each is shown.
なお、上記実施例では、要求入力信号Sは8本であり、
優先順位変換テーブルとして
2目ワード×7ビツトのメモリー空間を持つROMで十
分であったが、一般的には、要求入力信号が2n本ある
場合、
2 (in+nlワードX (2n+1)ビットのメモ
リー空間を持つROMを用いれば、上記実施例と同様の
効果を奏する。従って例えば、要求入力信号が2’=1
6本ある場合には仮想的に、220ワード×9ビツトの
メモリー空間を持つROMを用いればよい。In the above embodiment, there are eight request input signals S,
A ROM with a memory space of 2nd word x 7 bits was sufficient as a priority conversion table, but in general, when there are 2n requested input signals, a memory space of 2 (in + nl words x (2n + 1) bits) is required. If a ROM with
If there are six, a ROM having a virtual memory space of 220 words x 9 bits may be used.
以上説明したように本発明によれば、複数の入力端子に
入力された信号の優先順位を変更する優先順位変更手段
を変更用テーブルを備えた読出し専用メモリにより構成
したので優先順位を変更するに際し、IC等の回路要素
の交換が不要となり、従って回路が単純になり消費電流
が少なくて済む。As explained above, according to the present invention, the priority order changing means for changing the priority order of signals input to a plurality of input terminals is constituted by a read-only memory equipped with a change table. There is no need to replace circuit elements such as , IC, etc., so the circuit becomes simple and consumes less current.
第1図は、本発明の一実施例による回路図、第2図は、
第1図をブロック化して示した図、第3図は、第1図の
ROMの8セグメントの各々における信号線の1番目か
ら8番目までの優先順位を示す図である。第4図は、第
1図のROMのテーブルを8セグメントに分割したうち
の1セグメントのテーブルを示した図である。第5図は
、第1図の回路の主要端子の出力のタイミングを示すタ
イミングチャート、第6図は従来技術を示す回路図であ
る。
2・・・判別手段(デコーダ)、21・・・シフトレジ
スタ、26・・・優先順位変更手段(ROM)。
代理人 大 岩 増 雄(ばか2名)第5図FIG. 1 is a circuit diagram according to an embodiment of the present invention, and FIG. 2 is a circuit diagram according to an embodiment of the present invention.
FIG. 3, which is a block diagram of FIG. 1, is a diagram showing the priorities of the first to eighth signal lines in each of the eight segments of the ROM shown in FIG. FIG. 4 is a diagram showing a table of one segment out of which the ROM table of FIG. 1 is divided into eight segments. FIG. 5 is a timing chart showing the output timing of the main terminals of the circuit shown in FIG. 1, and FIG. 6 is a circuit diagram showing the prior art. 2... Discrimination means (decoder), 21... Shift register, 26... Priority change means (ROM). Agent Masuo Oiwa (2 idiots) Figure 5
Claims (1)
該優先順位にもとづき上記信号を選択して出力する判別
手段を備えた優先順位判別装置であって、上記判定手段
の前回の判別結果にもとづき上記優先順位を変更する優
先順位変更手段として、変更用テーブルを持つ読出し専
用メモリにより構成したことを特徴とする優先順位判別
装置。Determines the priority of signals input to multiple input terminals,
A priority order determining device comprising a determining means for selecting and outputting the signal based on the priority order, wherein the priority order changing means changes the priority order based on the previous determination result of the determining means. A priority determination device characterized in that it is constructed of a read-only memory having a table.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP54085A JPS61160168A (en) | 1985-01-07 | 1985-01-07 | Priority discriminating device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP54085A JPS61160168A (en) | 1985-01-07 | 1985-01-07 | Priority discriminating device |
Publications (1)
Publication Number | Publication Date |
---|---|
JPS61160168A true JPS61160168A (en) | 1986-07-19 |
Family
ID=11476573
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP54085A Pending JPS61160168A (en) | 1985-01-07 | 1985-01-07 | Priority discriminating device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS61160168A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS6348994A (en) * | 1986-08-19 | 1988-03-01 | Matsushita Electric Ind Co Ltd | System bus control circuit |
-
1985
- 1985-01-07 JP JP54085A patent/JPS61160168A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS6348994A (en) * | 1986-08-19 | 1988-03-01 | Matsushita Electric Ind Co Ltd | System bus control circuit |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JPH0769791B2 (en) | Microprocessor | |
US4999807A (en) | Data input circuit having latch circuit | |
JPS61160168A (en) | Priority discriminating device | |
US4802089A (en) | Status flag handling in a digital data processing system | |
KR860000596A (en) | Slave interface circuit | |
JPS59178667A (en) | Memory device | |
KR100267767B1 (en) | Interrupt generator | |
KR960016271B1 (en) | Exchange riset -out circuit | |
JP3597744B2 (en) | Interrupt factor signal flag register device | |
JPH05101004A (en) | Multiboard system | |
JP2000132491A (en) | Method and system for device control | |
JPS6246017B2 (en) | ||
JPH0844613A (en) | Pseudo initialization method for LSI built-in RAM | |
JP2591452B2 (en) | Data receiving circuit | |
JPH07122813B2 (en) | Sequence controller | |
JPH02110792A (en) | Microcomputer | |
JPH04101263A (en) | Clock equipment | |
JPS63148305A (en) | Quick arithmetic processing system for programmable sequence controller | |
JP2002024164A (en) | Access controller | |
JPH04253236A (en) | Access control system | |
JPS62211746A (en) | Memory reading system | |
JPH06259264A (en) | Clock control circuit | |
JP2000115291A (en) | Sequential trigger discrimination circuit | |
JPH02183844A (en) | Control method for decoding signal | |
JPS58205235A (en) | Preventing circuit against data source contention |