JP2669109B2 - Bus access arbitration circuit - Google Patents

Bus access arbitration circuit

Info

Publication number
JP2669109B2
JP2669109B2 JP2133867A JP13386790A JP2669109B2 JP 2669109 B2 JP2669109 B2 JP 2669109B2 JP 2133867 A JP2133867 A JP 2133867A JP 13386790 A JP13386790 A JP 13386790A JP 2669109 B2 JP2669109 B2 JP 2669109B2
Authority
JP
Japan
Prior art keywords
bus
signal
arbitration
bus use
circuit
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.)
Expired - Fee Related
Application number
JP2133867A
Other languages
Japanese (ja)
Other versions
JPH0430238A (en
Inventor
聡 倉澤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP2133867A priority Critical patent/JP2669109B2/en
Publication of JPH0430238A publication Critical patent/JPH0430238A/en
Application granted granted Critical
Publication of JP2669109B2 publication Critical patent/JP2669109B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Bus Control (AREA)

Description

【発明の詳細な説明】 (産業上の利用分野) この発明は、計算機システムのバス制御方式、特に複
数のバスマスタが1つバスを共用してアクセスする際の
バスアクセス調停回路に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a bus control system for a computer system, and more particularly to a bus access arbitration circuit when a plurality of bus masters share one bus for access.

(従来の技術) 第3図は特開昭63−186354号公報に記載されている従
来のバスアクセス調停回路の一例を示すブロック図であ
る。
(Prior Art) FIG. 3 is a block diagram showing an example of a conventional bus access arbitration circuit described in JP-A-63-186354.

この回路は、非同期に発生するバス使用要求信号REQ1
〜REQnを同期化する第1フリップフロップと、同期化さ
れた信号I1〜Inを符号化するプライオリティエンコーダ
と、符号化信号A0〜Amをラッチする第2フリップフロッ
プと、ラッチされた符号化出力信号Q0〜Qmからバス使用
許可信号ACK1〜ACKnを作成するデコーダと、デコーダの
ストローブ信号を作成する回路とを備えたものである。
This circuit uses the bus use request signal REQ1 that is generated asynchronously.
To REQn, a first flip-flop, a priority encoder to encode the synchronized signals I1 to In, a second flip-flop to latch the encoded signals A0 to Am, and a latched encoded output signal It is provided with a decoder which produces bus use permission signals ACK1 to ACKn from Q0 to Qm, and a circuit which produces a strobe signal for the decoder.

この回路は、各バス使用要求に優先順位が固定的に設
定されていでて、複数のバス使用要求が第1フリップフ
ロップにおいて同じタイミングで同期化された場合、す
なわち競合が発生した場合、競合したバス使用要求の中
から最も優先順位が高いものを1つ選んでバス使用許可
を出力する、という動作を行なう。
This circuit has a fixed priority for each bus use request, and conflicts when a plurality of bus use requests are synchronized at the same timing in the first flip-flop, that is, when a conflict occurs. An operation of selecting one having the highest priority from the bus use requests and outputting the bus use permission is performed.

優先順位は、プライオリティエンコーダのI1〜In入力
で決まる。
The priority is determined by the I1 to In inputs of the priority encoder.

第3図の例では優先度は、I1が最高、Inが最低とすれ
ば、バス使用要求の優先度はREQ1が最高、REQnが最低と
なる。
In the example of FIG. 3, if I1 has the highest priority and In has the lowest priority, the bus use request has the highest priority REQ1 and the lowest REQn.

(発明が解決しようとする課題) 上記従来の技術では、優先順が固定的に設定されてい
て、沈みこみに対する配慮が全くなされていないため、
優先度の低いバス使用要求に対していつまでもバス使用
許可が出されない事態が生じるという問題があった。
(Problems to be Solved by the Invention) In the above-mentioned conventional technique, the priority order is fixedly set, and since no consideration is given to sinking,
There has been a problem that a bus use permission is not issued forever for a low priority bus use request.

沈みこみとは次のような現象を言う。 Subduction refers to the following phenomena.

バス使用要求が競合した場合に、固定優先順位方式で
調停を行なった結果、最初は優先度が最高のバス使用要
求に対してバス使用許可を出力し、次以後の調停では順
次優先度の高い順にバス使用許可が出力される。このと
き、低い優先度のバス使用要求に対するバス使用許可が
出力される前に、高い優先度のバス使用要求が新たに発
生すれば、低い優先度のバス使用要求にはバス使用許可
が出されずに、高い優先度のバス使用要求に対してバス
使用許可が出される。したがって、高い優先度のバス使
用要求が繰り返して発生している間は、低い優先度のバ
ス使用要求に対するバス使用許可はいつまでも出力され
ないことになる。この現象を沈みこみと言う。
As a result of arbitration by the fixed priority method when the bus use requests conflict, the bus use permission is first output for the bus use request having the highest priority, and the subsequent arbitrations sequentially have higher priority. The bus use permission is output in order. At this time, if a new high-priority bus use request is generated before the low-priority bus use request is output, the low-priority bus use request is issued with the bus use permission. Instead, a bus use permission is issued for a high-priority bus use request. Therefore, while the high priority bus use request is repeatedly generated, the bus use permission for the low priority bus use request is not output forever. This phenomenon is called sinking.

この発明が解決しようとする課題は、以上述べたバス
アクセス調停回路における固定優先順位方式の沈みこみ
を防止して、各バスマスタに対して平均したバス使用機
会を与えるバスアクセス調停回路を提供することにあ
る。
The problem to be solved by the present invention is to provide a bus access arbitration circuit that prevents the sinking of the fixed priority system in the bus access arbitration circuit described above and gives each bus master an average bus use opportunity. It is in.

(課題を解決するための手段) 上記課題を解決するために、複数のバスマスタが1つ
のバスを共用してアクセスする際に、バスマスタの数と
同数の、直列接続された複数の調停回路の初段にバスマ
スタからの要求が入力され、競合するアクセスを調停し
てバス使用許可を出すバスアクセス調停回路において、
各々の前記調停回路は、競合調停の結果とバス使用要求
とを入力し、バス使用許可が出ずに待たされているバス
使用要求を検出する論理ゲートと、イネーブル信号によ
り動作し、前記バス使用要求の中から優先順位の高いも
のを出力するとともにアクティブ出力があればディセイ
ブル信号を出力し、アクティブ出力がないときイネーブ
ル信号を出力する優先順位回路とを有し、更に、各段の
前記調停回路の論理ゲート出力を、次段の前記調停回路
にバス使用要求として入力する経路と、前記優先順位回
路の出力にアクティブ出力があるときに前段の前記優先
順位回路にディセイブル信号を出力し、アクティブ出力
がないときイネーブル信号を出力する経路とを有し、前
記調停回路の各段の前記優先順位回路の出力を入力して
1つのバスアクセス要求を決定するとともに、前記論理
ゲートの入力としての調停結果を出力するバス使用許可
決定論理ゲートを具備し、最終段の前記優先順位回路を
常にイネーブルとすることによって、競合するアクセス
を調停してバス使用許可を出すことを特徴とするもので
ある。
(Means for Solving the Problems) In order to solve the above problems, when a plurality of bus masters share one bus for access, the first stage of a plurality of arbitration circuits connected in series, the number of which is the same as the number of bus masters. A request from the bus master is input to the bus access arbitration circuit that arbitrates conflicting accesses and issues a bus use permission.
Each of the arbitration circuits inputs a result of the contention arbitration and a bus use request, and operates by a logic gate for detecting a bus use request that has been waited without a bus use permission and an enable signal to operate the bus use request. A priority circuit for outputting a request having a higher priority from among the requests, outputting a disable signal when there is an active output, and outputting an enable signal when there is no active output, further comprising the arbitration circuit of each stage A logic gate output to the arbitration circuit of the next stage as a bus use request, and a disable signal is output to the preceding priority circuit when the output of the priority circuit has an active output. And a path for outputting an enable signal when there is no input signal, and the output of the priority circuit of each stage of the arbitration circuit is input to one bus access circuit. A bus use permission logic gate for determining a request and outputting an arbitration result as an input of the logic gate, and arbitrating conflicting accesses by always enabling the priority circuit at the last stage; It is characterized by issuing a bus use permit.

(作用) 上記のように構成したバスアクセス調停回路において
は次のように作用する。論理ゲートに競合調停の結果と
バス使用要求とが入力し、調停結果がバス使用許可とな
らずそのときバス使用要求が入力されている場合にバス
使用要求を検出する。調停回路が複数直列接続されてバ
スアクセス調停回路を構成する場合、2段目以降につい
ては、バス使用要求として前段の論理ゲート出力を用い
る。上記バス使用要求は、優先順位回路にも入力し、イ
ネーブル信号で動作して、これにより優先順位の高いも
のが選ばれて出力される。このイネーブル信号は、次段
の優先順位回路の出力がすべてアクティブでないとき
に、当該次段の優先順位回路から入力される。バス使用
許可決定論理ゲートは、各段の優先順位回路出力を入力
し、それらが一致しない場合に出力するようにして1つ
のバスアクセス要求を決定する。すなわち、アクティブ
を出力している優先順位回路の次段以降はアクティブな
信号を出しておらず、その前段以前はイネーブルされて
いないから、アクティブな優先順位回路の1つだけが出
力していて、バス使用許可決定論理ゲートから出力され
る。バス使用許可決定論理ゲート出力によるバス使用許
可を、次回の調停動作のために、調停回路の論理ゲート
に入力する。
(Operation) The bus access arbitration circuit configured as described above operates as follows. The contention arbitration result and the bus usage request are input to the logic gate, and the bus usage request is detected when the arbitration result does not permit the bus usage and the bus usage request is input at that time. When a plurality of arbitration circuits are connected in series to form a bus access arbitration circuit, the logic gate output of the preceding stage is used as a bus use request for the second and subsequent stages. The bus use request is also input to the priority circuit and operated by the enable signal, whereby the one with the higher priority is selected and output. This enable signal is input from the next-stage priority circuit when all outputs of the next-stage priority circuit are inactive. The bus use permission decision logic gate inputs the priority circuit outputs of the respective stages, and outputs them when they do not match, thereby determining one bus access request. That is, since the active circuit does not output an active signal after the next stage of the priority circuit that outputs the active signal and is not enabled before the previous stage, only one of the active priority circuits outputs the signal. Output from the bus use permission decision logic gate. The bus use permission by the bus use permission determination logic gate output is input to the logic gate of the arbitration circuit for the next arbitration operation.

(実施例) 以下本発明に係るバスアクセス調停回路並びにこの発
明に使用される調停回路の実施例について説明する。
Embodiments Embodiments of the bus access arbitration circuit according to the present invention and the arbitration circuit used in the present invention will be described below.

第1図は一実施例のブロック図、第2図は動作説明の
タイミング図である。第1図において、A1,A2〜Anは調
停回路、FF1はフリップフロップであり、n個のバス使
用要求信号RQ1〜RQnを入力して、ラッチしてバス使用要
求信号LRQ1〜LRQnを出力する。PR1はフリップフロップF
F1の出力を入力し、優先度の高いバス使用要求信号を選
択する優先順位回路であり、カスケード接続用の出力端
子GSと入力端子EIを有する。EI端子にイネーブル信号が
入力することにより動作する。また、出力がすべてアク
ティブでないときはGS端子からイネーブル信号を出力
し、アクティブ出力があればデイセイブル信号を出力す
る。G11〜G1nはフリップフロップFF1の出力と調停結果
を入力としてバス使用許可が出ずに待たされているバス
使用要求を検出する論理ゲートである。これらフリップ
フロップFF1、優先順位回路PR1及び論理ゲートG11〜1n
は、前記調停回路A1を構成し、調停回路A2〜Anの内部は
バスアクセス回路A1と同じである。
FIG. 1 is a block diagram of one embodiment, and FIG. 2 is a timing chart for explaining the operation. In FIG. 1, A1 and A2 to An are arbitration circuits and FF1 is a flip-flop, which inputs n bus use request signals RQ1 to RQn, latches them, and outputs bus use request signals LRQ1 to LRQn. PR1 is flip-flop F
This is a priority circuit that receives the output of F1 and selects a bus use request signal with high priority, and has an output terminal GS and an input terminal EI for cascade connection. It operates when an enable signal is input to the EI pin. When all outputs are inactive, enable signal is output from GS pin, and if there is active output, disable signal is output. G11 to G1n are logic gates for detecting a bus use request that is awaited without issuing a bus use permission, using the output of the flip-flop FF1 and the arbitration result as inputs. These flip-flop FF1, priority circuit PR1 and logic gates G11 to 1n
Constitute the arbitration circuit A1, and the insides of the arbitration circuits A2 to An are the same as the bus access circuit A1.

複数の調停回路A1〜Anをカスケード接続するときは、
GS出力は前段の調停回路AxのEI入力に接続され、順次1
段下の調停回路A(x−1)に調停動作のイネーブル信
号として接続される。なお、最終段の調停回路AnのEI入
力はアースに接続され、初段のGS出力はどこにも接続し
ない。
When cascading multiple arbitration circuits A1 to An,
The GS output is connected to the EI input of the arbitration circuit Ax in the previous stage,
It is connected to the arbitration circuit A (x-1) at the lower stage as an enable signal for the arbitration operation. The EI input of the final stage arbitration circuit An is connected to the ground, and the first stage GS output is not connected to anything.

調停回路A1の論理ゲートG11〜G1nの出力RQ21〜RQ2n
は、第2の調停回路A2の入力として図示しないフリップ
フロップ(FF2)にバス使用要求信号として入力する。
調停回路A2の図示しない論理ゲート(G21〜G2n)の出力
は、図示しない調停回路(A3)の図示しないフリップフ
ロップ(FF3)に入力される。このようにゲート論理出
力RQx1〜RQxn信号は1段上の調停回路にバス使用要求信
号として入力される。
Outputs RQ21 to RQ2n of logic gates G11 to G1n of the arbitration circuit A1
Is input as a bus use request signal to a flip-flop (FF2) not shown as an input of the second arbitration circuit A2.
Outputs of logic gates (G21 to G2n) (not shown) of the arbitration circuit A2 are input to a flip-flop (FF3) (not shown) of the arbitration circuit (A3) (not shown). As described above, the gate logic output signals RQx1 to RQxn are input to the arbitration circuit one stage higher as a bus use request signal.

AKOR1,AKOR2〜AKORnは、バス使用許可決定論理ゲート
であり、上記調停回路A1,A2〜Anの優先順位回路PR1〜PR
nの出力AK11〜AK1n,AK21〜AK2n,…AKn1〜AKnnを入力し
て1つのバスアクセス要求を決定し、調停結果が出力さ
れる。バス使用許可決定論理ゲートAKORxには優先順位
回路PR1〜PRnの出力AKx1,AKx2〜AKxnが入力する。バス
使用許可決定論理ゲートAKOR1,AKOR2〜AKORnとAKx1〜AK
xn信号の接続の関係は次のようになっている。すなわち
AKOR1回路にはAK11〜AKn1信号が入力され、AKOR2回路に
はAK12〜AKn2信号が入力され、AKORn回路にはAK1n〜AKn
n信号が入力される。したがって、バス使用許可決定論
理ゲートAKOR1〜AKORn回路はn入力回路である。FFAは
上記バス使用許可決定論理ゲートAKOR1〜AKORnの出力を
ラッチしバス使用許可信号を出すフリップフロップであ
る。フリップフロップFFAを介してバス使用許可決定論
理ゲートAKOR1〜AKORnの出力を各調停回路A1〜Anの論理
ゲートG11〜1n(…Gn1〜Gnn)入力とする。CKはラッチ
信号作成回路である。
AKOR1, AKOR2 to AKORn are bus use permission decision logic gates, and the priority circuits PR1 to PR of the above arbitration circuits A1 and A2 to An.
n output AK11 to AK1n, AK21 to AK2n, ... AKn1 to AKnn are input to determine one bus access request, and the arbitration result is output. The outputs AKx1 and AKx2 to AKxn of the priority circuits PR1 to PRn are input to the bus use permission decision logic gate AKORx. Bus use enable decision logic gates AKOR1, AKOR2 to AKORn and AKx1 to AK
The connection relationship of the xn signal is as follows. Ie
The AKOR1 circuit receives AK11 to AKn1 signals, the AKOR2 circuit receives AK12 to AKn2 signals, and the AKORn circuit receives AK1n to AKn.
n signal is input. Therefore, the bus use permission decision logic gates AKOR1 to AKORn circuits are n-input circuits. The FFA is a flip-flop that latches the outputs of the bus use permission decision logic gates AKOR1 to AKORn and outputs a bus use permission signal. The outputs of the bus use permission decision logic gates AKOR1 to AKORn are input to the logic gates G11 to 1n (... Gn1 to Gnn) of the arbitration circuits A1 to An via the flip-flop FFA. CK is a latch signal generation circuit.

以下本発明の動作を図面により説明する。説明を容易
にするため、バス使用要求数は3本、すなわち第1図に
おいてn=3とする。優先順位はRQ1が最高、RQ3が最低
とする。なお、第2図において、RQ21〜RQ23,RQ31〜RQ3
3,AK11〜AK13,AK21〜AK23及びAK31〜AK33の信号は、バ
スの形で描いてある。斜線の部分は不定もしくは意味の
無い状態である。カッコ内の数字は各信号のレベルを示
していて、“1"が「ハイ」、“0"が「ロー」であり、左
が若番の信号である。
The operation of the present invention will be described below with reference to the drawings. For ease of explanation, the number of bus use requests is three, that is, n = 3 in FIG. RQ1 has the highest priority and RQ3 has the lowest priority. In FIG. 2, RQ21 to RQ23, RQ31 to RQ3
The signals of 3, AK11 to AK13, AK21 to AK23 and AK31 to AK33 are drawn in the form of a bus. The shaded areas are indefinite or meaningless. The numbers in parentheses indicate the level of each signal. “1” is “high”, “0” is “low”, and the left is the youngest signal.

まず、バス使用要求RQ1〜RQ3が「ロー」となってほぼ
同時に要求を出している(第2図)。それをラッチ信
号RCKの立ち上がりによって調停回路A1のフリップフロ
ップFF1がラッチすると、優先順位回路PR1は入力がアク
ティブになっている信号の中で優先順位が最高の信号RQ
1を選んで、信号AK11を「ロー」にする(第2図)。
ラッチ信号RCKの立ち上がり時、調停回路A2の入力信号R
Q21〜RQ23と調停回路A3の入力信号RQ31〜33は全て「ハ
イ」なので、調停回路A2とA3の出力信号AK21〜AK23およ
びAK31〜AK33信号は全て「ハイ」である。したがって、
バス使用許可決定論理ゲートAKOR1〜AKOR3の出力の中で
はAKOR1の出力だけが「ロー」となる。ラッチ信号RCKか
らある遅延時間を持って出力されるラッチ信号ACKの立
ち上がりによってフリップフロップFFAの入力がラッチ
され、ACK1信号が「ロー」となるので、バス使用要求信
号RQ1に対してバス使用許可が出されたことになる(第
2図)。
First, the bus use requests RQ1 to RQ3 become "low" and issue requests almost simultaneously (FIG. 2). When this is latched by the flip-flop FF1 of the arbitration circuit A1 at the rising edge of the latch signal RCK, the priority circuit PR1 outputs the signal RQ having the highest priority among the signals whose inputs are active.
Select 1 to make signal AK11 "low" (Fig. 2).
At the rise of the latch signal RCK, the input signal R of the arbitration circuit A2
Since the input signals RQ31 to 33 of Q21 to RQ23 and the arbitration circuit A3 are all "high", the output signals AK21 to AK23 and AK31 to AK33 of the arbitration circuits A2 and A3 are all "high". Therefore,
Among the outputs of the bus use permission decision logic gates AKOR1 to AKOR3, only the output of AKOR1 becomes "low". The input of the flip-flop FFA is latched by the rising edge of the latch signal ACK output with a certain delay time from the latch signal RCK, and the ACK1 signal becomes "low", so the bus use request signal RQ1 is not permitted to be used. It has been released (Fig. 2).

バス使用許可信号ACK1〜ACK3は調停回路A1〜A3にフィ
ードバックされ、バス使用要求中でありかつバス使用許
可が出されなかったバス使用要求を検出している。ここ
までの説明ではバス使用要求RQ2信号とRQ3信号にバス使
用許可信号が出力されなかったので、RQ22信号とRQ23信
号が「ロー」になる(第2図)。
The bus use permission signals ACK1 to ACK3 are fed back to the arbitration circuits A1 to A3 to detect a bus use request that is in the process of requesting to use the bus and the bus use request has not been issued. In the above description, the bus use request signal is not output to the bus use request RQ2 signal and the RQ3 signal, so that the RQ22 signal and the RQ23 signal become "low" (FIG. 2).

バス使用許可されたバスマスタがバスを使用するとバ
ス使用中信号BUSYが「ロー」になり、バス使用を終える
とBUSY信号を「ハイ」にする。
When the bus master permitted to use the bus uses the bus, the bus busy signal BUSY becomes “low”, and when the bus master finishes using the bus, the BUSY signal becomes “high”.

BUSY信号が「ハイ」になるとラッチ信号作成回路RCK
は、ラッチ信号RCKを出力する。RCK信号の立ち上がりに
より調停回路A1はRQ1「ハイ」、RQ2「ロー」、RQ3「ロ
ー」をラッチし、調停回路A2はRQ21「ハイ」、RQ22「ロ
ー」、RQ23「ロー」をラッチする(第2図)。そし
て、調停回路A1およびA2は優先順位に基づく調停を行な
って、AK22信号「ロー」を出力する(第2図)。これ
と同時に調停回路A2のGS端子からは、AK21〜AK23信号の
中でアクティブ出力が存在することを示すように信号E2
1に「ロー」が出力されて、調停回路A1のEIに入力され
る(第2図)。調停回路A1はE21信号が「ロー」にな
るとAK11〜AK13信号を全て「ハイ」にする(第2図
)。したがって、この時点ではバス使用許可決定論理
ゲートAKOR1〜AKORnの中ではAKOR2の出力だけが「ロ
ー」である。
Latch signal creation circuit RCK when BUSY signal becomes "high"
Outputs a latch signal RCK. The arbitration circuit A1 latches RQ1 “high”, RQ2 “low”, RQ3 “low” by the rising edge of the RCK signal, and the arbitration circuit A2 latches RQ21 “high”, RQ22 “low”, RQ23 “low” (No. (Fig. 2). Then, the arbitration circuits A1 and A2 perform arbitration based on the priority order and output the AK22 signal "low" (FIG. 2). At the same time, the GS terminal of the arbitration circuit A2 outputs a signal E2 to indicate that an active output is present among the AK21 to AK23 signals.
"Low" is output to 1 and is input to EI of the arbitration circuit A1 (Fig. 2). The arbitration circuit A1 sets all the AK11 to AK13 signals to "high" when the E21 signal becomes "low" (Fig. 2). Therefore, at this time, only the output of AKOR2 is "low" among the bus use permission decision logic gates AKOR1 to AKORn.

ラッチ信号RCKの出力からある遅延時間の後、ラッチ
信号ACKがラッチ信号作成回路CKから出力されてバス使
用許可信号ACK2が「ロー」となり、バス使用要求RQ2に
対してバス使用許可が出される(第2図)。
After a certain delay time from the output of the latch signal RCK, the latch signal ACK is output from the latch signal generation circuit CK, the bus use permission signal ACK2 becomes “low”, and the bus use permission is issued in response to the bus use request RQ2 ( (Fig. 2).

バス使用許可信号ACK1〜ACK3が調停回路A1〜A3にフィ
ードバックされ、待たされているバス使用要求を検出し
てRQ23信号「ロー」、RQ23信号「ロー」となる(第2図
)。
The bus use permission signals ACK1 to ACK3 are fed back to the arbitration circuits A1 to A3, and the waiting bus use request is detected, and the RQ23 signal becomes "low" and the RQ23 signal becomes "low" (FIG. 2).

バス使用許可を受けたバスマスタがバスの使用を終え
てバス使用中信号BUSYが「ハイ」になるとラッチ信号作
成回路CKからラッチ信号RCKが出力される。
When the bus master that has received the bus use permission finishes using the bus and the bus busy signal BUSY becomes “high”, the latch signal generation circuit CK outputs the latch signal RCK.

ラッチ信号RCK信号の立ち上がりにより調停回路A1はR
Q1信号「ハイ」、RQ2信号「ロー」、RQ3信号「ロー」を
ラッチする。の時点でRQ2信号が再びバス使用要求を出
力したことを調停回路A1は検出した(第2図)。ま
た、調停回路A2はRQ21〜RQ23信号をラッチし、調停回路
A3はRQ31信号「ハイ」、RQ32信号「ハイ」、RQ33信号
「ロー」をラッチしてAK33信号「ロー」を出力し(第2
図)、E32信号を「ロー」にして調停回路A2のAK21〜A
K23信号を全て「ハイ」にする(第2図)。調停回路A
2はE32信号が「ロー」のときはE21信号を「ロー」出力
して調停回路A1の出力AK11〜AK13も全て「ハイ」とす
る。
Latch signal RCK signal causes arbitration circuit A1 to go to R
Latch the Q1 signal “high”, the RQ2 signal “low”, and the RQ3 signal “low”. At this point, the arbitration circuit A1 detects that the RQ2 signal has again output the bus use request (FIG. 2). In addition, the arbitration circuit A2 latches the RQ21 to RQ23 signals,
A3 latches the RQ31 signal “high”, the RQ32 signal “high”, and the RQ33 signal “low” and outputs the AK33 signal “low” (second
Figure), AK21 to A of arbitration circuit A2 by setting E32 signal to "low"
Set all K23 signals to "high" (Fig. 2). Arbitration circuit A
2 outputs the E21 signal "low" when the E32 signal is "low" and sets all the outputs AK11 to AK13 of the arbitration circuit A1 to "high".

この時点ではバス使用許可決定論理ゲートAKOR1〜AKO
R3の中でAKOR3の出力だけが「ロー」であるから、ラッ
チ信号ACKの立ち上がりによってバス使用許可信号ACK3
が「ロー」として出力される(第2図)。
At this time, bus use permission decision logic gates AKOR1 to AKO
Since only the output of AKOR3 is low in R3, the bus use permission signal ACK3
Is output as "low" (Fig. 2).

フリップフロップFFAの出力ACK1〜ACK3がフィードバ
ックされて、バス使用要求を出している中で待たされて
いるバス使用要求を検出した結果、調停回路A1から出力
しているRQ22信号が「ロー」になる(第2図)。
The output ACK1 to ACK3 of the flip-flop FFA is fed back, and as a result of detecting the waiting bus use request while issuing the bus use request, the RQ22 signal output from the arbitration circuit A1 becomes "low". (Fig. 2).

バス使用許可されたバスマスタがバスの使用を終えて
バス使用中信号BUSYが「ロー」から「ハイ」になるとラ
ッチ信号RCKが出力されて、調停回路A1はRQ1信号「ロ
ー」、RQ2信号「ロー」、RQ3信号「ハイ」をラッチし、
調停回路A2はRQ21信号「ハイ」、RQ22信号「ロー」、RQ
23信号「ハイ」をラッチし、調停回路A3はRQ31〜RQ33信
号「ハイ」をラッチする(第2図)。ここで、調停回
路A3の出力AK31〜AK33信号は全て「ハイ」なのでE32信
号も「ハイ」になる。
When the bus master permitted to use the bus finishes using the bus and the bus busy signal BUSY changes from “low” to “high”, the latch signal RCK is output and the arbitration circuit A1 outputs the RQ1 signal “low” and the RQ2 signal “low”. , Latch the RQ3 signal "high",
The arbitration circuit A2 has RQ21 signal “high”, RQ22 signal “low”, RQ
23, the signal "high" is latched, and the arbitration circuit A3 latches the signals RQ31-RQ33 "high" (FIG. 2). Here, since the outputs AK31 to AK33 of the arbitration circuit A3 are all "high", the E32 signal is also "high".

調停回路A2はAKK22信号「ロー」、E21信号「ロー」を
出力して(第2図)、調停回路A1の出力AK11〜AK13信
号が「ハイ」になり、したがって、バス使用許可決定論
理ゲートAKOR2のみの出力が「ロー」となる。ラッチ信
号ACKの立ち上がりによりACK2信号が「ロー」になり、
バス使用要求RQ2に対してバス使用許可が出される(第
2図)。
The arbitration circuit A2 outputs the AKK22 signal "low" and the E21 signal "low" (Fig. 2), and the outputs AK11 to AK13 signals of the arbitration circuit A1 become "high". Therefore, the bus use permission decision logic gate AKOR2 Only the output will be "low". When the latch signal ACK rises, the ACK2 signal goes low,
A bus use permission is issued for the bus use request RQ2 (FIG. 2).

上記の動作(第2図からまで)は、次のことを示
している。すなわち、バス使用要求の固定優先順位はRQ
1信号の方が高いが、RQ2信号の方が先に「ロー」になっ
ていたのでRQ1信号よりも先にバス使用許可が出され
て、先着順調停が行われたことになる。
The above operation (from FIG. 2) indicates the following. That is, the fixed priority of the bus use request is RQ.
Although the 1 signal is higher, the RQ2 signal was "low" first, so the bus use permission was issued before the RQ1 signal, and the first-come-first-served arbitration was performed.

バス使用許可信号ACK1〜ACK3がフィードバックされて
調停回路A1からはRQ21信号「ロー」、RQ22信号「ハ
イ」、RQ23信号「ハイ」が出力される。
The bus use permission signals ACK1 to ACK3 are fed back, and the arbitration circuit A1 outputs the RQ21 signal “low”, the RQ22 signal “high”, and the RQ23 signal “high”.

次の調停では、RQ1信号だけが「ロー」になっている
のでACK1信号が「ロー」になる。
In the next arbitration, only the RQ1 signal is "low", so that the ACK1 signal is "low".

以上説明したように、調停回路A1が最初にバス使用要
求の調停を行ない、調停回路A2が1回待ちのバス使用要
求の調停を行ない、調停回路A3が2回待ちのバス使用要
求の調停を行なう。調停回路A1〜A3の優先順位は、A3が
最高、A1が最低となっているので、バス使用要求の待ち
回数が多いほど優先順位が高くなる。
As described above, the arbitration circuit A1 first arbitrates the bus use request, the arbitration circuit A2 arbitrates the one-time waiting bus use request, and the arbitration circuit A3 arbitrates the two-waiting bus use request. To do. Since the arbitration circuits A1 to A3 have the highest priority in A3 and the lowest in A1, the higher the number of waiting times for bus use requests, the higher the priority.

したがって、調停動作は、同時に発生した複数のバス
使用要求に対しては優先順位方式をとるが、待たされて
いるバス使用要求が存在している時に発生したバス使用
要求については、要求が検出された順にバス使用許可が
出る、いわゆる先着順方式の調停を行なう。
Therefore, the arbitration operation uses a priority method for a plurality of bus use requests generated at the same time, but detects a request for a bus use request generated when there is a waiting bus use request. The bus permission is issued in the order of the so-called first-come-first-served arbitration.

(発明の効果) 以上、詳細に説明したようにこの発明では、待たされ
ているバス使用要求を検出して優先的に使用許可を与え
る手段を設けることにより優先順位方式と先着順方式と
を合わせた形のバスアクセス調停回路が実現でき、従来
の固定優先順位方式にみられる沈み込みを完全に防止す
ることができる。
(Effects of the Invention) As described above in detail, according to the present invention, the priority system and the first-come-first-served system can be combined by providing a means for detecting a waiting bus use request and giving priority to the use. A bus access arbitration circuit of a different form can be realized, and the sinking seen in the conventional fixed priority system can be completely prevented.

【図面の簡単な説明】[Brief description of the drawings]

第1図および第2図は本発明に係るバスアクセス調停回
路を説明する図であり、第1図はブロック図、第2図は
動作のタイミング図、第3図は従来のバスアクセス調停
回路のブロック図である。 A1〜An……調停回路、AKOR1〜AKORn……バス使用許可決
定論理ゲート、CK……ラッチ信号作成回路、FF1……フ
リップフロップ、FFA……フリップフロップ、G11〜G1n
……論理ゲート、PR1……優先順位回路、ACK1〜ACKn…
…バス使用許可信号、AK11〜AK1n……調停回路A1からの
バス使用許可信号、AK21〜AK2n……調停回路A2からのバ
ス使用許可信号、AKn1〜AKnn……調停回路A3からのバス
使用許可信号、ACK……ラッチ信号、BUSY……バス使用
中信号、E21……調停回路A11に対するイネーブル信号、
E32……調停回路A2に対するイネーブル信号、En(n−
1)……調停回路A3に対するイネーブル信号、LRQ1〜LR
Qn……ラッチされたバス使用要求信号、RQ1〜RQn……バ
ス使用要求信号、RQ21〜RQ2n……1回待たされたバス使
用要求信号。RQ31〜RQ3n……2回待たされたバス使用要
求信号、RQn1〜RQnn……n−1回待たされたバス使用要
求信号、RCK……ラッチ信号。
1 and 2 are diagrams for explaining a bus access arbitration circuit according to the present invention. FIG. 1 is a block diagram, FIG. 2 is an operation timing diagram, and FIG. 3 is a conventional bus access arbitration circuit. It is a block diagram. A1 to An ... Arbitration circuit, AKOR1 to AKORn ... Bus use permission decision logic gate, CK ... Latch signal creation circuit, FF1 ... Flip-flop, FFA ... Flip-flop, G11-G1n
...... Logic gate, PR1 …… Priority circuit, ACK1 to ACKn…
... bus use enable signal, AK11 to AK1n ... bus use enable signal from arbitration circuit A1, AK21 to AK2n ... bus use enable signal from arbitration circuit A2, AKn1 to AKnn ... bus use enable signal from arbitration circuit A3 , ACK: latch signal, BUSY: bus busy signal, E21: enable signal for arbitration circuit A11,
E32: Enable signal for arbitration circuit A2, En (n-
1) Enable signal for arbitration circuit A3, LRQ1 to LR
Qn ... Latched bus use request signal, RQ1 to RQn ... Bus use request signal, RQ21 to RQ2n ... Bus wait request signal that has been waited once. RQ31 to RQ3n: Bus use request signals waited twice, RQn1 to RQnn: Bus use request signals waited n-1 times, RCK: Latch signal.

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】複数のバスマスタが1つのバスを共用して
アクセスする際に、バスマスタの数と同数の、直列接続
された複数の調停回路の初段にバスマスタからの要求が
入力され、競合するアクセスを調停してバス使用許可を
出すバスアクセス調停回路において、 各々の前記調停回路は、 競合調停の結果とバス使用要求とを入力とし、バス使用
許可が出ずに待たされているバス使用要求を検出する論
理ゲートと、 イネーブル信号により動作し、前記バス使用要求の中か
ら優先順位の高いものを出力するとともにアクティブ出
力があればディセイブル信号を出力し、アクティブ出力
がないときイネーブル信号を出力する優先順位回路とを
有し、 更に、各段の前記調停回路の論理ゲート出力を、次段の
前記調停回路にバス使用要求として入力する経路と、 前記優先順位回路の出力にアクティブ出力があるときに
前段の前記優先順位回路にディセイブル信号を出力し、
アクティブ出力がないときイネーブル信号を出力する経
路とを有し、 前記調停回路の各段の前記優先順位回路の出力を入力し
て1つのバスアクセス要求を決定するとともに、前記論
理ゲートの入力としての調停結果を出力するバス使用許
可決定論理ゲートを具備し、 最終段の前記優先順位回路を常にイネーブルとすること
によって、競合するアクセスを調停してバス使用許可を
出すことを特徴とするバスアクセス調停回路。
1. When a plurality of bus masters share one bus to access, a request from the bus master is input to the first stage of a plurality of serially connected arbitration circuits, which is the same number as the number of bus masters, and competing access is performed. In the bus access arbitration circuit for arbitrating the bus use request, each of the arbitration circuits receives the result of the contention arbitration and the bus use request as inputs, and receives the bus use request that has been waiting without the bus use permission being issued. Operates by a logic gate to be detected and an enable signal, outputs a bus request having a higher priority among the bus use requests, outputs a disable signal when there is an active output, and outputs an enable signal when there is no active output. And a logic gate output of the arbitration circuit of each stage is input to the arbitration circuit of the next stage as a bus use request. A path, outputting an disable signal to the preceding priority circuit when there is an active output at the output of the priority circuit;
And a path for outputting an enable signal when there is no active output, inputting the output of the priority circuit of each stage of the arbitration circuit to determine one bus access request, A bus access arbitration, comprising a bus use permission determination logic gate for outputting an arbitration result, and arbitrating a conflicting access and issuing a bus use permission by always enabling the priority circuit at the last stage. circuit.
JP2133867A 1990-05-25 1990-05-25 Bus access arbitration circuit Expired - Fee Related JP2669109B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2133867A JP2669109B2 (en) 1990-05-25 1990-05-25 Bus access arbitration circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2133867A JP2669109B2 (en) 1990-05-25 1990-05-25 Bus access arbitration circuit

Publications (2)

Publication Number Publication Date
JPH0430238A JPH0430238A (en) 1992-02-03
JP2669109B2 true JP2669109B2 (en) 1997-10-27

Family

ID=15114913

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2133867A Expired - Fee Related JP2669109B2 (en) 1990-05-25 1990-05-25 Bus access arbitration circuit

Country Status (1)

Country Link
JP (1) JP2669109B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR980004877A (en) 1996-06-24 1998-03-30 김광호 Priority Control System and Method for Memory Access

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61213955A (en) * 1985-03-18 1986-09-22 Fujitsu Ltd Control system for bus occupation

Also Published As

Publication number Publication date
JPH0430238A (en) 1992-02-03

Similar Documents

Publication Publication Date Title
US4423384A (en) Asynchronous multi-port arbiter
US4493036A (en) Priority resolver having dynamically adjustable priority levels
US4449183A (en) Arbitration scheme for a multiported shared functional device for use in multiprocessing systems
US4633394A (en) Distributed arbitration for multiple processors
US5142682A (en) Two-level priority arbiter generating a request to the second level before first-level arbitration is completed
US4600992A (en) Priority resolver with lowest priority level having shortest logic path
JPH10143467A (en) Method and device for arbitrating bus ownership in data processing system
JP2669109B2 (en) Bus access arbitration circuit
JP3443689B2 (en) Arbiter circuit
US5193194A (en) Concurrent arbitration system and method for bus control
US5627968A (en) Data transfer apparatus which allows data to be transferred between data devices without accessing a shared memory
US7231479B2 (en) Round robin selection logic improves area efficiency and circuit speed
JPH0210459A (en) Bus use right determining system
JP2538874B2 (en) Common bus arbitration method
JPH0330175B2 (en)
CA1303748C (en) Tandem priority resolver
JPH04250553A (en) Programmable controller
JPH11203253A (en) Exclusive access control method for shared resource
JP2720462B2 (en) Arbitration circuit
JPH0485647A (en) Arbiter
JPS63298555A (en) Shared memory control system
JPH05108476A (en) Main storage controller
JPH04333962A (en) Memory control system
JPS621059A (en) Shared memory access method for multi-microprocessor system
JPH0554005A (en) Multiprocessor system

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080704

Year of fee payment: 11

LAPS Cancellation because of no payment of annual fees