JP2694812B2 - Arbitration system - Google Patents

Arbitration system

Info

Publication number
JP2694812B2
JP2694812B2 JP7036754A JP3675495A JP2694812B2 JP 2694812 B2 JP2694812 B2 JP 2694812B2 JP 7036754 A JP7036754 A JP 7036754A JP 3675495 A JP3675495 A JP 3675495A JP 2694812 B2 JP2694812 B2 JP 2694812B2
Authority
JP
Japan
Prior art keywords
priority
arbiter
signal
change signal
arbiters
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
JP7036754A
Other languages
Japanese (ja)
Other versions
JPH08235108A (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.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP7036754A priority Critical patent/JP2694812B2/en
Publication of JPH08235108A publication Critical patent/JPH08235108A/en
Application granted granted Critical
Publication of JP2694812B2 publication Critical patent/JP2694812B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は、共有した資源を排他的
に使用するための複数の調停器が要求する使用権を調停
する調停システムに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an arbitration system for arbitrating usage rights required by a plurality of arbitrators for exclusively using shared resources.

【0002】[0002]

【従来の技術】従来、リースト・リーセントリ・ユーズ
ト(以下LRU)アルゴリズムをバス・アービトレーシ
ョン・アルゴリズムに基づいて作成した技術が特開平2
−219156号公報に示されている。この公報記載の
技術(以下第1の技術)では、現要求状況を表すバス要
求信号を受けた優先順位論理回路(図2の134)が上
述の優先順位アルゴリズムに従って、バス許可信号を適
切な要求バスユニットに供給される。フィードバックさ
れ入力されるバス許可信号を用いて、優先順位次状態論
理回路138は、次のバス許可のために優先順位状況を
更新する。
2. Description of the Related Art Conventionally, there is a technique in which a least recently used (hereinafter, LRU) algorithm is created based on a bus arbitration algorithm.
-219156. In the technique described in this publication (hereinafter referred to as the first technique), the priority order logic circuit (134 in FIG. 2) that has received the bus request signal indicating the current request status appropriately requests the bus grant signal according to the above-described priority algorithm. Supplied to the bus unit. Using the feedback and input bus grant signal, the priority next state logic 138 updates the priority status for the next bus grant.

【0003】この他に、優先順位を各調停回路に保持さ
せ、その変更には外部装置の介在が必要である技術が特
開平4−246758号公報に示されている。この公報
記載の技術(以下第2の技術)では、調停優先順位要求
が第1のクロック(図3のC1)の立ち上がり時にの
み、各外部装置から調停バス(図4および5の40)に
伝送される。最終クロック(図3のC2)の終りに、最
高の優先順位を有する外部装置の優先順位コードが決定
されて、バス・マスタとなるべき外部装置を指定する。
指定されたバス・マスタとメモリまたはその他の外部装
置との間で、活動状態のバス・マスタが制御を終えた後
の次のサイクル中に非専用バスを介してアドレスとデー
タが転送される。
In addition to this, Japanese Patent Laid-Open No. 4-246758 discloses a technique in which priority is held in each arbitration circuit and an external device is required to change the priority. In the technique described in this publication (hereinafter, referred to as the second technique), the arbitration priority request is transmitted from each external device to the arbitration bus (40 in FIGS. 4 and 5) only when the first clock (C1 in FIG. 3) rises. To be done. At the end of the last clock (C2 in FIG. 3), the priority code of the highest priority external device is determined and specifies the external device to become the bus master.
Addresses and data are transferred between the designated bus master and memory or other external device over the non-dedicated bus during the next cycle after the active bus master has finished controlling.

【0004】[0004]

【発明が解決しようとする課題】1つの資源を共有し排
他的に使用する複数の調停手段(以下アービタ)から構
成され、共有バスに資源使用要求を出すシステムに上述
の第1の技術を適用する。このシステムでは、各アービ
タから出された資源要求信号およびアービタ識別情報を
もとに判定回路が調停を行う。例えば4つのアービタ
1,2,3および4のいずれか1つだけが使用権を取得
するよう、アービタ識別情報の値に応じて以下のように
調停が行われる。
The above-mentioned first technique is applied to a system which is composed of a plurality of arbitration means (hereinafter, arbiter) that share one resource and exclusively use it, and issue a resource use request to a shared bus. To do. In this system, the decision circuit arbitrates based on the resource request signal and the arbiter identification information issued from each arbiter. For example, arbitration is performed as follows according to the value of the arbiter identification information so that only one of the four arbiters 1, 2, 3 and 4 acquires the usage right.

【0005】アービタ識別情報が“00”ならば、自ア
ービタに最優先として無条件に使用権許可信号が資源ア
クセス部に送出され資源がアクセスされる。次に、アー
ビタ識別情報が“01”なら、アービタ1が使用権要求
を出していない場合に、使用権許可信号が資源アクセス
部に送出され資源がアクセスされる。アービタ識別情報
が“10”なら、アービタ1および2が使用権要求を出
していない場合に使用権許可信号が資源アクセス部に送
出され、資源がアクセスされる。アービタ識別情報が
“11”なら、他のアービタがどれも使用権要求を出力
していない場合に、使用権許可信号が資源アクセス部に
出力され資源がアクセスされる。
When the arbiter identification information is "00", the use right permission signal is unconditionally sent to the resource access section to give priority to the own arbiter and the resource is accessed. Next, if the arbiter identification information is "01", when the arbiter 1 has not issued a usage right request, a usage right permission signal is sent to the resource access unit to access the resource. When the arbiter identification information is "10", the right-of-use permission signal is sent to the resource access unit and the resource is accessed when the arbiters 1 and 2 have not issued the right-of-use request. If the arbiter identification information is "11", and no other arbiter outputs a usage right request, a usage right permission signal is output to the resource access unit to access the resource.

【0006】このようなシステムでは常にどれかのアー
ビタ、例えばアービタ1が固定的に最優先として扱わ
れ、他のアービタにくらべ資源要求を許可される確率が
高い。その一方で、固定的に非優先として扱われるアー
ビタ、例えばアービタ4も存在し他のアービタにくらべ
使用許可の得られる確率が低くなる。
In such a system, some arbiter, for example, the arbiter 1 is fixedly treated as the highest priority, and there is a high probability that a resource request is granted as compared with other arbiters. On the other hand, there is an arbiter that is fixedly treated as a non-priority, for example, the arbiter 4, and the probability that the use permission will be obtained is lower than that of other arbiters.

【0007】このようなシステムではアービタ間の優先
順位が固定であるため、アービタ間で使用許可の得られ
る確率に不公平が発生する。
In such a system, the priorities among the arbiters are fixed, so that the arbiters are unfair in the probability that the use permission is obtained.

【0008】この結果として、優先順位の低いアービタ
は使用許可の得られるまでの時間が長くなり、そのアー
ビタの処理性能が極端に低下するという問題がある。
As a result, there is a problem that the arbiter having a low priority takes a long time until the use permission is obtained, and the processing performance of the arbiter is extremely deteriorated.

【0009】上述の第2の記述では、優先順位は各アー
ビタに保持させていてその変更には外部装置の介在が必
要であるため、高い頻度での優先順位変更は大きなハー
ドウェア追が伴い、かつ性能低下を引起こすという問題
がある。
In the above-mentioned second description, the priority order is held in each arbiter, and the change requires the intervention of an external device. Therefore, the priority order change at a high frequency is accompanied by a large hardware addition. In addition, there is a problem that it causes performance degradation.

【0010】本発明の目的は、特定のアービタのみが優
先的に使用権を獲得したり、使用権がなかなか獲得でき
なかったりという不公平を防止するようにした調停シス
テムを提供することにある。
An object of the present invention is to provide an arbitration system which prevents an unfairness in which only a specific arbiter preferentially acquires a usage right, or a usage right cannot be acquired easily.

【0011】本発明の他の目的は、特定の調停回路の処
理性能を極端に低下させないようにした調停システムを
提供することにある。
Another object of the present invention is to provide an arbitration system in which the processing performance of a specific arbitration circuit is not extremely deteriorated.

【0012】本発明の他の目的は、すべての調停回路で
調停の優先順位を常に矛盾なく変更できるようにした調
停システムを提供することにある。
Another object of the present invention is to provide an arbitration system in which the arbitration priority can be constantly changed in all arbitration circuits without contradiction.

【0013】[0013]

【課題を解決するための手段】本発明のシステムは、資
源を共有し排他的使用をするため使用権を要求する複数
の調停器(以下アービタ)の間で使用権を調停する調停
システムであって、前記複数のアービタに対し共通の変
更信号を供給する変更信号発生手段(以下変更信号発生
回路)と、前記複数のアービタのそれぞれが、該変更信
号発生回路からの変更信号で自アービタの識別情報を修
飾して、優先順位信号を生成する優先順位発生手段(以
下優先順位発生回路)と、この優先順位発生回路からの
優先順位信号および自および他のアービタの使用権要求
信号に基づいて使用権許可信号を発生する判定手段(以
下判定回路)とを含む。
The system of the present invention is an arbitration system that arbitrates a usage right among a plurality of arbitrators (hereinafter, arbiters) requesting the usage right for sharing resources and using them exclusively. And a change signal generating means for supplying a common change signal to the plurality of arbiters (hereinafter referred to as a change signal generation circuit), and each of the plurality of arbiters identifies its own arbiter by a change signal from the change signal generation circuit Priority generating means for modifying the information to generate a priority signal (hereinafter referred to as priority generation circuit), and use based on the priority signal from this priority generation circuit and the usage right request signal of itself and other arbiters And a determination unit (hereinafter referred to as a determination circuit) that generates a right permission signal.

【0014】前記変更信号発生回路は、レジスタおよび
このレジスタの内容の減算する減算器から構成される。
The change signal generating circuit comprises a register and a subtractor for subtracting the contents of this register.

【0015】前記変更信号発生回路は、レジスタおよび
このレジスタの内容に基づき疑似乱数を発生し、レジス
タに格納する疑似乱数発生回路を含む。
The change signal generating circuit includes a register and a pseudo random number generating circuit for generating a pseudo random number based on the contents of the register and storing it in the register.

【0016】[0016]

【実施例】次に本発明の実施例について図面を参照して
詳細に説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, embodiments of the present invention will be described in detail with reference to the drawings.

【0017】図1を参照すると、本発明の実施例を含む
システムは、例えば共有バスのように各アービタにより
排他的に使用される性質を有する資源5、この資源5を
共有しこの資源5の使用に先立ち他のアービタに対し資
源使用要求を送出するアービタ1,2,3および4、お
よびこれら全てのアービタに対し共通の優先順位変更信
号600を供給する優先順位変更信号発生回路6を備え
ている。資源使用要求100はアービタ1の出力する資
源使用要求でアービタ2,3および4に与えられる。同
様にアービタ2,3および4はそれぞれ資源要求20
0,300および400を他のアービタに出力する。資
源5は各アービタにより排他的に使用される性質のもの
で、例えば共有バスが該当する。資源5の使用に先立
ち、アービタは他のアービタに対し資源使用要求を送出
する。それと同時に、他のアービタの資源使用要求と優
先順位変更信号600を参照して自アービタに資源5の
使用権があるかどうかを判定し、使用権がある場合は資
源5を使用する。
Referring to FIG. 1, a system including an embodiment of the present invention has a resource 5 having a property of being exclusively used by each arbiter, such as a shared bus, sharing this resource 5, and sharing the resource 5. Arbiters 1, 2, 3 and 4 for sending resource use requests to other arbiters prior to use, and a priority change signal generation circuit 6 for supplying a common priority change signal 600 to all these arbiters are provided. There is. The resource use request 100 is a resource use request output from the arbiter 1, and is given to the arbiters 2, 3 and 4. Similarly, the arbiters 2, 3 and 4 respectively request resource 20
Output 0, 300 and 400 to other arbiters. The resource 5 has a property of being exclusively used by each arbiter, and corresponds to, for example, a shared bus. Prior to using the resource 5, the arbiter sends a resource use request to another arbiter. At the same time, referring to the resource use request of another arbiter and the priority change signal 600, it is determined whether or not the own arbiter has the right to use the resource 5, and if the right is used, the resource 5 is used.

【0018】次に、図1におけるアービタ1について図
2を参照して詳細に説明する。
Next, the arbiter 1 in FIG. 1 will be described in detail with reference to FIG.

【0019】図1におけるアービタ1の構成および動作
は、図1における他のアービタ2,3および4と同じで
ある。
The configuration and operation of the arbiter 1 in FIG. 1 are the same as the other arbiters 2, 3 and 4 in FIG.

【0020】図2を参照すると、アービタ1はアービタ
識別情報を保持する保持回路13、優先順位変更信号6
00によりアービタ識別情報113を修飾し、優先順位
信号112を出力する優先順位発生回路14、資源5に
接続され他のアービタ2,3および4に対し資源使用の
ための使用権要求信号を送出する資源アクセス部11、
この資源アクセス部11からの使用権要求信号100、
他のアービタ2,3および4からの使用権要求信号20
0,300および400および優先順位発生回路14か
らの優先順位信号112を受け使用権許可信号111を
資源アクセス部11に出力する判定回路12を備えてい
る。
Referring to FIG. 2, the arbiter 1 has a holding circuit 13 for holding arbiter identification information, and a priority change signal 6
The arbiter identification information 113 is modified by 00 to output the priority signal 112, which is connected to the priority generation circuit 14, which is connected to the resource 5, and transmits a usage right request signal for resource use to the other arbiters 2, 3 and 4. Resource access unit 11,
The usage right request signal 100 from the resource access unit 11,
Right-to-use request signal 20 from other arbiters 2, 3 and 4
0, 300 and 400 and a determination circuit 12 for receiving the priority order signal 112 from the priority order generation circuit 14 and outputting the usage right permission signal 111 to the resource access unit 11.

【0021】前記優先順位発生回路14の詳細な回路構
成例を2つ図面を参照して詳細に説明する。
Two detailed circuit configuration examples of the priority generation circuit 14 will be described in detail with reference to the drawings.

【0022】図3(A)を参照すると、優先順位発生回
路14の第1の例は、排他的論理和ゲート141および
142で構成される。これら排他的論理和ゲート141
および142は、保持回路6からのアービタ識別情報1
13と優先順位変更信号発生回路6からの優先順位変更
信号600との排他的論理和がとられる。
Referring to FIG. 3A, the first example of the priority generation circuit 14 is composed of exclusive OR gates 141 and 142. These exclusive OR gates 141
And 142 are arbiter identification information 1 from the holding circuit 6.
13 and the priority change signal 600 from the priority change signal generation circuit 6 are exclusive ORed.

【0023】図3(B)を参照すると、優先順位発生回
路14の第2の例は、算術加算後に下位2ビットのみを
使う例である。すなわち回路14は、アービタ識別情報
113および優先順位変更信号600の排他的論理和を
とる第1の排他的論理和ゲート143、アービタ識別情
報113および優先順位変更信号600の論理積をとる
アンドゲート144、およびこのアンドゲート144の
論理積結果とアービタ識別情報113と優先順位変更信
号600との排他的論理和をとる第2の排他的論理和ゲ
ート145を含む。
Referring to FIG. 3B, the second example of the priority generation circuit 14 is an example in which only the lower 2 bits are used after arithmetic addition. That is, the circuit 14 takes the exclusive OR of the arbiter identification information 113 and the priority change signal 600, and the first exclusive OR gate 143, and the AND gate 144 that takes the logical product of the arbiter identification information 113 and the priority change signal 600. , And a second exclusive OR gate 145 that takes the exclusive OR of the logical product result of the AND gate 144, the arbiter identification information 113, and the priority change signal 600.

【0024】前記判定回路12の詳細な回路構成と、そ
の回路の真理値状態を図面を参照して詳細に説明する。
The detailed circuit configuration of the determination circuit 12 and the truth value state of the circuit will be described in detail with reference to the drawings.

【0025】以下の説明において、判定回路12はアー
ビタ1の判定回路を例とする。但し、この判定回路12
はアービタ1に限定されず、他のアービタ2,3および
4も同様な回路の真理値状態を示す構成を有する。
In the following description, the decision circuit 12 is exemplified by the decision circuit of the arbiter 1. However, this determination circuit 12
Is not limited to the arbiter 1, and the other arbiters 2, 3 and 4 have a configuration showing the truth value state of a similar circuit.

【0026】図1および図4を参照すると、判定回路1
2は他のアービタ2,3および4からの使用権要求信号
200,300および400の否定論理和をとるノア
(NOR)ゲート121、他のアービタ2および3から
の使用権要求信号200および300および優先順位発
生回路14からの優先順位信号112の否定論理和をと
るノア(NOR)ゲート122、優先順位信号112お
よび他のアービタ2からの使用権要求信号200の否定
論理和をとるノア(NOR)ゲート123、優先順位信
号112の否定論理和をとるノア(NOR)ゲート12
4、これらノア(NOR)ゲート121〜124の出力
の否定論理和をとるノア(NOR)ゲート125、自ア
ービタ1からの使用権要求信号100の否定信号を出力
するインバータ127、およびこのインバータ127の
出力およびノア(NOR)ゲート125の出力の否定論
理和をとり、使用権許可信号111を出力するノア(N
OR)ゲート126を備えている。このような構成は、
以下の表に基づいて構成されている。この表においてX
は、値が“0”でも“1”でも構わないこと(Don’
t care)を示す。
Referring to FIGS. 1 and 4, the decision circuit 1
Reference numeral 2 denotes a NOR gate 121 that performs the NOR operation of the usage right request signals 200, 300 and 400 from the other arbiters 2, 3 and 4, the usage right request signals 200 and 300 from the other arbiters 2 and 3, and NOR gate 122 that NORs the priority signal 112 from the priority generation circuit 14, NOR gate NOR gate 112, the priority signal 112, and the usage right request signal 200 from another arbiter 2. A gate 123, a NOR gate 12 that performs a NOR operation of the priority signal 112.
4, a NOR gate 125 that performs a NOR operation on the outputs of the NOR gates 121 to 124, an inverter 127 that outputs a negation signal of the usage right request signal 100 from the own arbiter 1, and the inverter 127. The output and the output of the NOR gate 125 are NORed and the NOR (N
An OR gate 126 is provided. Such a configuration,
It is organized based on the following table. X in this table
Can be either "0" or "1" (Don '
t care).

【0027】[0027]

【表1】 [Table 1]

【0028】次に、図1に示された優先順位変更信号発
生回路6の構成例について図面を参照して詳細に説明す
る。
Next, a configuration example of the priority order change signal generation circuit 6 shown in FIG. 1 will be described in detail with reference to the drawings.

【0029】図5を参照すると、優先順位変更信号発生
回路6の一例は、レジスタ61および減算器62を備え
ている。減算器62は毎サイクルレジスタ61の内容か
ら1減算するため、レジスタ61の内容は00−〉11
−〉10−〉01−〉00・・・のように変化する。
Referring to FIG. 5, an example of the priority order change signal generating circuit 6 includes a register 61 and a subtractor 62. Since the subtractor 62 subtracts 1 from the content of the register 61 every cycle, the content of the register 61 is 00-> 11.
->10->01-> 00 ...

【0030】 図6を参照すると、優先順位変更信号発
生回路6の他の例は、レジスタ61および疑似乱数発生
回路63を備えている。レジスタ61の内容は00−〉
10−〉11−〉01−〉00・・・のように変化す
る。疑似乱数発生回路63はレジスタ61の内容から次
イクルの値を決定する。
Referring to FIG. 6, another example of the priority order change signal generation circuit 6 includes a register 61 and a pseudo random number generation circuit 63. The contents of register 61 are 00->
It changes like 10->11->01-> 00 .... Pseudo-random number generation circuit 63 determines the value of the next cycle from the contents of the register 61.

【0031】この疑似乱数発生回路63の一例を図面を
参照して詳細に説明する。
An example of the pseudo random number generating circuit 63 will be described in detail with reference to the drawings.

【0032】図7を参照すると、疑似乱数発生回路63
の一例は、上位(下位)ビットを反転するインバータ6
31および上位(下位)ビットを下位(上位)ビットと
するように構成されている。
Referring to FIG. 7, the pseudo random number generation circuit 63
One example is an inverter 6 that inverts the upper (lower) bits.
31 and higher (lower) bits are configured as lower (upper) bits.

【0033】次にこのアービタ1の動作について図1お
よび図2を参照して詳細に説明する。
Next, the operation of the arbiter 1 will be described in detail with reference to FIGS. 1 and 2.

【0034】まず、保持回路13はアービタ毎に固有な
識別情報を保持するよう初期化される。図1のように4
台のアービタからなるシステムでは、例えばアービタ1
には00、アービタ2には01、アービタ3には10、
アービタ4には11のように2ビットの識別情報を割り
当てることができる。以下の説明は2ビットの情報で識
別できる4台のアービタで進めるが、本発明はアービタ
の台数を4台に限定するものではない。識別情報のビッ
ト数を増すことにより任意の台数のアービタからなるシ
ステムに適用可能である。次に優先順位発生回路14は
保持回路13の出力するアービタ識別情報113を優先
順位変更信号600により修飾して、優先順位信号11
2として出力する。前述の例のように保持回路13の出
力が2ビットの場合は、優先順位変更信号600も2ビ
ットあれば十分で、修飾結果である優先順位信号112
もまた2ビットである。修飾は、ある優先順位変更信号
600に対し、アービタ識別情報113が異なれば、優
先順位信号112も異るように行う。この条件を満たす
修飾として、例えばビット毎の排他的論理和や、算術加
算後に下位2ビットのみを使う方法があげられる。
First, the holding circuit 13 is initialized to hold unique identification information for each arbiter. 4 as in Figure 1
In a system consisting of one arbiter, for example, arbiter 1
For 00, 01 for arbiter 2, 10 for arbiter 3,
2-bit identification information such as 11 can be assigned to the arbiter 4. Although the following description will proceed with four arbiters that can be identified by 2-bit information, the present invention does not limit the number of arbiters to four. By increasing the number of bits of identification information, it can be applied to a system including an arbitrary number of arbiters. Next, the priority order generation circuit 14 modifies the arbiter identification information 113 output from the holding circuit 13 by the priority order change signal 600, and the priority order signal 11
Output as 2. When the output of the holding circuit 13 is 2 bits as in the above-mentioned example, it is sufficient that the priority change signal 600 also has 2 bits, and the priority signal 112 which is the modification result.
Is also 2 bits. The modification is performed such that if the arbiter identification information 113 is different for a certain priority change signal 600, the priority signal 112 is also different. As a modification that satisfies this condition, for example, there is an exclusive OR for each bit, or a method of using only the lower 2 bits after arithmetic addition.

【0035】資源アクセス部11は資源5を使用する必
要が生じると、まず資源使用要求100を出力する。使
用要求信号100は他のアービタからの資源使用要求2
00,300および400とともに判定回路12に入力
する。判定回路12は資源使用要求100,200,3
00および400と優先順位信号112とをもとに調停
を行う。調停は1,2,3および4のいずれか一つのア
ービタだけが使用権を取得する。
When it becomes necessary to use the resource 5, the resource access unit 11 first outputs a resource use request 100. The usage request signal 100 is a resource usage request 2 from another arbiter.
It is input to the determination circuit 12 together with 00, 300 and 400. The determination circuit 12 uses the resource use requests 100, 200, 3
Arbitration is performed based on 00 and 400 and the priority signal 112. Only one of the arbiters 1, 2, 3 and 4 acquires the right to use the arbitration.

【0036】図4で示した判定回路12の例における調
停動作は、以下のようにして行われる。
The arbitration operation in the example of the determination circuit 12 shown in FIG. 4 is performed as follows.

【0037】各アービタは資源使用要求に関し、1本の
出力ポートと、上・中および下3本の入力ポートを有し
ている。各ポートが図1に示すように互いに接続すると
する。例えばアービタ1の上・中および下の各入力ポー
トにはそれぞれ資源使用要求400,300および20
0が与えられる。また、各アービタ中の判定回路には、
互いに異なる優先順位信号が入力することは前述の通り
である。自アービタが資源使用要求を出力する場合、優
先順位信号が00なら無条件に使用権を許可する。優先
順位信号が01なら一番上の入力ポートに接続する資源
使用要求がないときに使用権を許可する。優先順位信号
が10なら上または中の入力ポートのどちらにも資源使
用要求がないときに使用権を許可する。優先順位信号が
11なら上・中・下いずれの入力ポートにも資源使用要
求がないときに使用権を許可する。以上の通りに調停す
ることにより、どれか一つのアービタに対し使用許可を
与えることができる。調停の結果、自アービタに資源5
の使用権があると判定した場合には判定回路12使用権
許可信号111を出力する。資源アクセス部11は使用
権許可信号111を待ち合わせて、資源5を使用する。
このように図5および図6のどちらの構成でも、レジス
タ61の出力600が周期的に変化することにより、各
アービタの優先順位信号112を周期的に変化させるこ
とができ、結果として各アービタに均等に使用権獲得の
機会を与えることが可能となる。特に、図5の構成では
各アービタにおける優先順位は徐々に高くなる。このた
め最初は調停の結果使用権許可が得られなくても、優先
順位が高くなるに従い許可が得られる確率が高くなって
いく。一方、図6の構成では優先順位はランダムに変化
する。いずれの方式においてもほぼ同等の効果が得られ
るが、アービタの台数が多いシステムでは図6の方が、
許可の得られるまでの待ち時間が均等化となる利点があ
る。
Each arbiter has one output port and three upper, middle and lower input ports for resource use requests. Assume that the ports are connected to each other as shown in FIG. For example, the resource use requests 400, 300 and 20 are respectively input to the upper, middle and lower input ports of the arbiter 1.
0 is given. In addition, the decision circuit in each arbiter,
As described above, different priority signals are input. When the own arbiter outputs a resource use request, if the priority signal is 00, the use right is unconditionally granted. If the priority signal is 01, the usage right is granted when there is no resource usage request to connect to the uppermost input port. If the priority signal is 10, the usage right is granted when there is no resource usage request to either the upper or middle input port. When the priority signal is 11, the usage right is granted when there is no resource usage request in any of the upper, middle, and lower input ports. By arbitrating as described above, use permission can be given to any one arbiter. As a result of the arbitration, resources 5 are provided to the own arbiter.
If it is determined that the user has the right to use, the decision circuit 12 outputs the right to use permission signal 111. The resource access unit 11 waits for the usage right permission signal 111 and uses the resource 5.
As described above, in both the configurations of FIG. 5 and FIG. 6, the output signal 600 of the register 61 changes periodically, so that the priority signal 112 of each arbiter can be changed periodically, and as a result, the priority signal 112 of each arbiter is changed. It is possible to evenly give the opportunity to acquire the usage right. Particularly, in the configuration of FIG. 5, the priority order of each arbiter gradually increases. Therefore, even if the usage right permission is not obtained at first as a result of the arbitration, the probability that the permission is obtained increases as the priority becomes higher. On the other hand, in the configuration of FIG. 6, the priority order changes randomly. Although almost the same effect can be obtained with either method, in a system with a large number of arbiters, FIG.
There is an advantage that the waiting time until the permission is obtained is equalized.

【0038】[0038]

【発明の効果】本発明は、アービタの識別情報を保持す
る保持手段と、この保持手段の出力を変更信号で変更す
る変更手段とを備えたアービタのすべてに共通の変更信
号を供給する変更信号供給手段とを備えたことを特徴と
する。この特徴により、本発明は変更信号供給回路が変
更信号を変化させるにともない、すべてのアービタで調
停の優先順位を常に矛盾なく変更できるという効果があ
る。本発明は、特定のアービタのみが優先的に使用権を
獲得したり、使用権がなかなか獲得できなかったりとい
う不公平を防止することができる。この結果、優先順位
の低いアービタが使用許可の得られるまでの時間が長く
なり、そのアービタの処理性能が極端に低下するのを防
止できる。
According to the present invention, a change signal for supplying a common change signal to all arbiters having a holding means for holding the identification information of the arbiter and a changing means for changing the output of the holding means by the change signal. And a supply means. Due to this feature, the present invention has an effect that the arbitration priority can be changed in all the arbiters without any contradiction as the change signal supply circuit changes the change signal. The present invention can prevent the unfairness that only a specific arbiter preferentially acquires the usage right or that the usage right cannot be acquired easily. As a result, it is possible to prevent the arbiter having a low priority from taking a long time until the use permission is obtained, and it is possible to prevent the processing performance of the arbiter from being extremely lowered.

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

【図1】本発明の実施例を含むシステムを示す図であ
る。
FIG. 1 illustrates a system including an embodiment of the present invention.

【図2】図1に示されるアービタの構成例を示す図であ
る。
FIG. 2 is a diagram showing a configuration example of an arbiter shown in FIG.

【図3】図2に示される優先順位発生回路の構成を示す
図である。
FIG. 3 is a diagram showing a configuration of a priority generation circuit shown in FIG.

【図4】図2に示されるアービタ中の判定回路12の構
成を示す図である。
4 is a diagram showing a configuration of a determination circuit 12 in the arbiter shown in FIG.

【図5】図1に示される優先順位変更信号発生回路6の
構成の一例を示す図である。
5 is a diagram showing an example of a configuration of a priority order change signal generation circuit 6 shown in FIG.

【図6】図1に示される優先順位変更信号発生回路6の
構成の他の例を示す図である。
FIG. 6 is a diagram showing another example of the configuration of the priority order change signal generation circuit 6 shown in FIG.

【図7】図6に示される優先順位変更信号発生回路6で
用いられる疑似乱数発生回路63の一例を示す図であ
る。
7 is a diagram showing an example of a pseudo random number generation circuit 63 used in the priority order change signal generation circuit 6 shown in FIG.

【符号の説明】[Explanation of symbols]

1,2,3,4 アービタ 5 資源 6 優先順位変更信号発生回路 11 資源アクセス部 12 判定回路 13 保持回路 14 優先順位発生回路 61 レジスタ 62 減算器 63 疑似乱数発生回路 1, 2, 3, 4 Arbiter 5 Resource 6 Priority change signal generation circuit 11 Resource access unit 12 Judgment circuit 13 Holding circuit 14 Priority generation circuit 61 Register 62 Subtractor 63 Pseudo random number generation circuit

Claims (3)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 資源を共有し排他的使用をするため使用
権を要求する複数のアービタの間で使用権を調停する調
停システムであって、 前記複数のアービタに対し共通の変更信号を供給する変
更信号発生手段と、 前記複数のアービタのそれぞれが、 該変更信号発生手段からの変更信号で自アービタの識別
情報を修飾して、優先順位信号を生成する優先順位発生
手段と、 この優先順位発生手段からの優先順位および自および他
アービタの使用権要求信号に基づいて使用権許可信号
を発生する判定手段とを含むことを特徴とする調停シス
テム。
1. An arbitration system that arbitrates a usage right among a plurality of arbiters requesting the usage right for sharing a resource and making an exclusive use, and supplies a common change signal to the plurality of arbiters. Change signal generating means, each of the plurality of arbiters, priority generating means for modifying the identification information of its own arbiter with the change signal from the change signal generating means to generate a priority signal, and the priority generating means. An arbitration system comprising: a determination unit that generates a right-of-use permission signal based on a priority order from the unit and a right-of-use request signal of its own and other arbiters .
【請求項2】 前記変更信号発生手段は、前記変更信号
を保持するレジスタおよびこのレジスタの内容減算す
る減算器を含むことを特徴とする請求項1記載の調停シ
ステム。
2. The change signal generating means includes the change signal.
The arbitration system according to claim 1 , further comprising a register for holding and a subtractor for subtracting the contents of the register.
【請求項3】 前記変更信号発生手段は、前記変更信号
を保持するレジスタおよびこのレジスタの内容に基づい
て所定の乱数を発生する回路を含むことを特徴とする請
求項1記載の調停システム。
3. The change signal generating means includes the change signal.
Based on the register holding and the contents of this register
And a circuit for generating a predetermined random number
The arbitration system according to claim 1.
JP7036754A 1995-02-24 1995-02-24 Arbitration system Expired - Fee Related JP2694812B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7036754A JP2694812B2 (en) 1995-02-24 1995-02-24 Arbitration system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7036754A JP2694812B2 (en) 1995-02-24 1995-02-24 Arbitration system

Publications (2)

Publication Number Publication Date
JPH08235108A JPH08235108A (en) 1996-09-13
JP2694812B2 true JP2694812B2 (en) 1997-12-24

Family

ID=12478535

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7036754A Expired - Fee Related JP2694812B2 (en) 1995-02-24 1995-02-24 Arbitration system

Country Status (1)

Country Link
JP (1) JP2694812B2 (en)

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5872230A (en) * 1981-10-23 1983-04-30 Hitachi Ltd Cyclic priority controlling system for concentrated type priority selecting circuit

Also Published As

Publication number Publication date
JPH08235108A (en) 1996-09-13

Similar Documents

Publication Publication Date Title
US6584523B1 (en) Device for organizing the access to a memory bus
JP2559906B2 (en) Arbitration system and method
US7533206B2 (en) Resource management device
KR100280563B1 (en) Method and system for controlling access to a shared resource in a data processing system utilizing dynamically-determined weighted pseudo-random priorities
JPH0773137A (en) Method, adaptor and system for arbitration of multilevel bus
KR20040012964A (en) System and method for controlling bus arbitration during cache memory burst cycles
US20030229744A1 (en) Methods and structure for dynamic modifications to arbitration for a shared resource
KR100480605B1 (en) Method of controlling transmitting buffer and receiving buffer of network controller, and the network controller
US6978329B1 (en) Programmable array-based bus arbiter
JPH06161952A (en) Arbitration device of access request
JP4308578B2 (en) Integrated circuit device bus arbiter
JP2002312309A (en) Arbitration circuit and arbitration method
US7552268B2 (en) Method for improving bus utilization using predictive arbitration
US20050256992A1 (en) System on a chip with arbitration unit and storage key incorporating it
JP2694812B2 (en) Arbitration system
JPH08161254A (en) Information processing system and bus arbitration system therefor
JP2806672B2 (en) Direct memory access transfer controller
JP2004062910A (en) Method for realizing semaphore to multi-core processor and controlling access to common resource
JP2009519524A (en) Method for accessing a data transmission bus, corresponding apparatus and system
JP2000035954A (en) Multiprocessors and bus arbitration method therefor
Doifode et al. Dynamic lottery bus arbiter for shared bus system on chip: a design approach with VHDL
JP2001273248A (en) Device and method for controlling bus
KR100605867B1 (en) Bus arbitration method and bus arbitration having a dynamic priority order arbitration function
JP4170506B2 (en) Arbitration circuit and method
JPH0273591A (en) Semiconductor memory device

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19970812

LAPS Cancellation because of no payment of annual fees