JPH03282955A - Bus arbitration circuit - Google Patents

Bus arbitration circuit

Info

Publication number
JPH03282955A
JPH03282955A JP8550990A JP8550990A JPH03282955A JP H03282955 A JPH03282955 A JP H03282955A JP 8550990 A JP8550990 A JP 8550990A JP 8550990 A JP8550990 A JP 8550990A JP H03282955 A JPH03282955 A JP H03282955A
Authority
JP
Japan
Prior art keywords
bus
sequencer
request
master
grant
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
Application number
JP8550990A
Other languages
Japanese (ja)
Inventor
Tatsuki Azuma
東 龍己
Takayoshi Shimizu
孝祥 清水
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.)
Yokogawa Electric Corp
Original Assignee
Yokogawa Electric 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 Yokogawa Electric Corp filed Critical Yokogawa Electric Corp
Priority to JP8550990A priority Critical patent/JPH03282955A/en
Publication of JPH03282955A publication Critical patent/JPH03282955A/en
Pending legal-status Critical Current

Links

Landscapes

  • Bus Control (AREA)

Abstract

PURPOSE:To remove the use of useless time at the time of accessing a bus from a CPU and to improve the processing capacity of the bus arbitration circuit by applying a bus request to a specific sequencer which does not correspond to a master when a bus request is not inputted from the master. CONSTITUTION:When none of bus requests BR1 to BRn are inputted, a priority encoder 40 transfers a bus request to a sequencer 500. After checking the input of a bus ground from other sequencers, the sequencer 500 outputs a bus ground BG0. When any one of the bus requests BR1 to BRn is inputted, the encoder 40 immediately aborts the output of the bus ground BG0 to the sequencer 500 and drives the sequencer corresponding to a selected bus request. Thereby, a bus ground is outputted from the sequencer concerned.

Description

【発明の詳細な説明】 〈産業上の利用分野〉 本発明は、コンピュータシステムのバスアービトレーシ
ョンの性能改善に関する。
DETAILED DESCRIPTION OF THE INVENTION <Field of Industrial Application> The present invention relates to improving the performance of bus arbitration in computer systems.

〈従来の技術〉 従来より、1つのバスに複数のマスターが接続され、バ
スを共有してコマンドやデータの転送を行なうように構
成されたコンピュータシステムがある。このようなシス
テムの一例を第2図に示す。
<Prior Art> Conventionally, there has been a computer system configured such that a plurality of masters are connected to one bus and the bus is shared to transfer commands and data. An example of such a system is shown in FIG.

複数個(ここではn+1個)のマスター100゜10 
 、 、.10nが1つのバス20に接続さ1   。
Multiple (here n+1) masters 100°10
, ,. 10n are connected to one bus 201.

れている、30はバスアービタで、各マスターからのバ
ス使用要求信号(バスリクエスト)を受けると、バス使
用状態を判断し、使用可能な場合には当該マスターにバ
ス使用を許可するバス使用許可信号(バスグラント)を
与える。バス使用権を得たマスターのみがバス20を使
用することができる。
30 is a bus arbiter, which upon receiving a bus use request signal (bus request) from each master, determines the bus use status and, if available, sends a bus use permission signal to permit the master to use the bus. (Bass Grant). Only the master who has obtained the right to use the bus can use the bus 20.

バスを使用するに当たっては次のような手順が必要であ
る。当該マスターからバスリクエストが出されると、バ
スアービタ30はバス使用状況を判断し、当該マスター
よりも優先順位の高いマスターがバスを使用していない
場合にはバス使用権を当該マスターに発行し、使用して
いる場合には当該マスターにはバス使用権を与えない。
The following steps are required when using the bus: When a bus request is issued from the master in question, the bus arbiter 30 determines the bus usage status, and if a master with a higher priority than the master in question is not using the bus, it issues the right to use the bus to the master in question. If this is the case, the master will not be given the right to use the bus.

したがって、当該マスターはバス使用権が与えられて(
バスグラントがあって)はじめてバスを使用することが
できる。
Therefore, the master in question is granted the right to use the bus (
With the bus grant, I was able to use the bus for the first time.

〈発明が解決しようとする課題〉 しかしながら、コンピュータシステムにおいて中央処理
装置(CPU)のようにバスの使用頻度の高いものに、
バスを使用するための上記のようなオーバーヘッドがあ
ると、それがシステムの処理能力に影響してくるという
問題があった。
<Problem to be solved by the invention> However, in computer systems, things that use the bus frequently, such as the central processing unit (CPU),
There is a problem in that the above-mentioned overhead for using the bus affects the processing capacity of the system.

本発明の目的は、このような点に鑑みてなされたもので
、CPUがバスへアクセスする際の無駄時間をなくし、
処理能力を向上させることのできるバスアービトレーシ
ョン回路を提供することにある。
The object of the present invention has been made in view of the above points, and is to eliminate wasted time when the CPU accesses the bus,
An object of the present invention is to provide a bus arbitration circuit that can improve processing performance.

〈課題を解決するための手段〉 このような目的を達成するための本発明は、n個のマス
ターからのバスリクエスト(BRl。
<Means for Solving the Problems> The present invention for achieving such an object is based on bus requests (BRl.

BR、、、、BR)の中で最も優先順位の高n いバスリクエストを選択して出力する機能を有すると共
に、これらn個のマスターのいずれもがバスリクエスト
を出していない場合には特別のバスリクエストを出力す
る機能を有するプライオリティエンコーダ(40)と、 バスリクエストを受けるとバスグラントを出力するもの
であって、前記プライオリティエンコーダ(40)より
出力される当該マスターからのバスリクエストに対応し
てバスグラントを送出するn個のシーケンサ(501,
、、,50)と、前記プライオリティエンコーダ(40
)からの特別のバスリクエストを受け、前記n個のシー
ケンサ(501,50)のいずれもがバス1   ° 
       n グランドを送出していない場合に最も低い優先順位のバ
スグラントを出力する特別のシーケンサ(50゜) を具備したことを特徴とする。
It has a function to select and output the bus request with the highest priority among n masters (BR, , , BR), and also has a special function when none of these n masters has issued a bus request. a priority encoder (40) having a function of outputting a bus request; and a priority encoder (40) that outputs a bus grant upon receiving a bus request, the priority encoder (40) outputting a bus grant in response to the bus request from the master outputted from the priority encoder (40). n sequencers (501,
,,50) and the priority encoder (40
), all of the n sequencers (501, 50) access the bus 1°.
It is characterized by being equipped with a special sequencer (50°) that outputs the lowest priority bus grant when the n-ground is not being sent out.

く°作用〉 本発明では、プライオリティエンコーダにマスターから
のバスリクエストが入力されている場合には、優先順位
の高いバスリクエストを選択して当該マスターに対応の
シーケンサにバスリクエストを与え、マスターからバス
リクエストが入力されていない場合にはマスターには対
応していない特別のシーケンサにバスリクエストを与え
る。
In the present invention, when a bus request from a master is input to the priority encoder, a bus request with a high priority is selected and the bus request is given to the sequencer corresponding to the master, and the bus request is sent from the master to the sequencer corresponding to the master. If no request is input, the bus request is given to a special sequencer that is not compatible with the master.

この特別のシーケンサから送出されるバスグラントを最
も使用頻度の高いマスターに、例えばCPUに、割り当
てておくことにより、そのマスターはバス調停を行なわ
なくてもバスへアクセスすることができる。これにより
、バスへアクセスする際の無駄時間がなくなり、処理能
力が向上する。
By assigning the bus grant sent from this special sequencer to the most frequently used master, such as the CPU, that master can access the bus without bus arbitration. This eliminates wasted time when accessing the bus and improves processing performance.

〈実施例〉 以下図面を参照して本発明の詳細な説明する。<Example> The present invention will be described in detail below with reference to the drawings.

第1図は本発明に係るバスアービトレーション回路の一
実施例を示す構成図である。図において、50 .50
  、 、.50  はシーケンサであ0  1 ′ 
   n す、マスター(図示しない)からバスリクエスト(BR
、BR、、、、BR)が来た後、バ1   2    
   n スゲラント(BG  、BG  、、、、BG  )を
0  1      n 出力するまでのシーケンスを発生するものである。
FIG. 1 is a block diagram showing an embodiment of a bus arbitration circuit according to the present invention. In the figure, 50. 50
, ,. 50 is the sequencer and 0 1'
n Bus request (BR) from master (not shown)
, BR, , , BR) comes, then ba1 2
This generates a sequence up to outputting 0 1 n of n sgellants (BG, BG, . . . , BG).

特にシーケンサ500は、バスリクエストが入力されて
いないか、あるいは他のマスターへバスグラントを出力
されていない場合に、バスグラント0 (BGo>を出
力するための制御を行なう。
In particular, the sequencer 500 performs control to output bus grant 0 (BGo>) when a bus request is not input or a bus grant is not output to another master.

40はプライオリティエンコーダであり、入力されたバ
スリクエストの中から最も優先順位(プライオリティ)
の高いものを選ぶ機能を有する。
40 is a priority encoder, which selects the highest priority among the input bus requests.
It has the ability to select the highest value.

なお、バスリクエストのプライオリティは、BRlが低
く、BRnが最も高いものとする。
It is assumed that the priority of bus requests is that BRl is the lowest and BRn is the highest.

プライオリティエンコーダ4oの出力は各シーケンサに
それぞれ入力されるようになっており、特にシーケンサ
500のみはプライオリティエンコーダ40の出力の他
に、各シーケンサ5o1゜50  、 、.50nがら
の出力も入力されるよ2   。
The output of the priority encoder 4o is inputted to each sequencer, and in particular, the sequencer 500 inputs the output of the priority encoder 40 as well as the output of each sequencer 5o1゜50, . The output from 50n is also input.

うになっている。The sea urchin is turning.

このような構成における動作を次に説明する。The operation in such a configuration will be explained next.

■バスリクエストBR、BR、、、、BRn2 のいずれもが入力されないときは、プライオリティエン
コーダ4oはシーケンサ5ooにバスリクエストを渡す
。シーケンサ50 oは他のシーケンサからのバスグラ
ントがないことを確認し、バスグラントB G oを出
力する。このバスグラントは例えばCPUに割り当てて
おくのが望ましい。
- When none of the bus requests BR, BR, ..., BRn2 is input, the priority encoder 4o passes the bus request to the sequencer 5oo. Sequencer 50o confirms that there is no bus grant from another sequencer and outputs bus grant BGo. It is desirable to allocate this bus grant to the CPU, for example.

■バスリクエストBR、BR、、、、BR。■Bus request BR, BR,,,,BR.

2 のいずれかが入力されると、プライオリティエンコーダ
40は直ちにシーケンサ5ooに対してバスグラントB
GOの出力を中止させると共に、選択したバスリクエス
トに対応するシーケンサを動作させる。これにより当該
シーケンサからバスグラントが出力される。
2, the priority encoder 40 immediately sends the bus grant B to the sequencer 5oo.
The GO output is stopped and the sequencer corresponding to the selected bus request is operated. This causes the sequencer to output a bus grant.

■上記■で動作したシーケンサが動作を終了すると、次
の調停を開始する。この時BR1〜BR1のいずれかが
入力されていれば、上記■から動作を繰り返し、そうで
なければ上記■の動作に移る。
■When the sequencer that operated in (■) above finishes its operation, it starts the next arbitration. At this time, if any one of BR1 to BR1 is input, the operation is repeated from (2) above, and if not, the operation moves to (2) above.

〈発明の効果〉 以上詳細に説明したように、本発明によれば次のような
効果がある。
<Effects of the Invention> As explained in detail above, the present invention has the following effects.

バスグラントBGOをCPUに割り当てておくことによ
り、CPUはバス調停を行なわなくてもバスへアクセス
することができる。バス調停を行なうと最低1クロツク
サイクルが必要であるが、本発明のバスアービトレーシ
ョン回路を利用することによりその時間を節約すること
ができ、バスの使用頻度が上がるほどその差は大きくな
り、システムとしての性能向上にもなる。
By assigning the bus grant BGO to the CPU, the CPU can access the bus without performing bus arbitration. Bus arbitration requires at least one clock cycle, but by using the bus arbitration circuit of the present invention, that time can be saved.The more frequently the bus is used, the greater the difference becomes. It also improves performance as a.

【図面の簡単な説明】 第1図は本発明に係るバスアービトレーション回路の一
実施例を示す構成図、第2図は1つのバスに複数のマス
ターが接続された従来のシステム構成の一例を示す図で
ある。 40・・・プライオリティエンコーダ、500。 50  、 、.500・・・シーケンサ。 1   。 第1 図 t、%9゜ 可 2 ::。
[Brief Description of the Drawings] Fig. 1 is a configuration diagram showing an embodiment of a bus arbitration circuit according to the present invention, and Fig. 2 shows an example of a conventional system configuration in which a plurality of masters are connected to one bus. It is a diagram. 40...Priority encoder, 500. 50, , . 500...Sequencer. 1. Figure 1 t, %9° possible 2::.

Claims (1)

【特許請求の範囲】 1つのバスにn個のマスターが接続され、各マスターか
らのバスリクエストを受け付けて優先順位の高い順にバ
スグラントを発生するバスアービトレーション回路であ
って、 n個のマスターからのバスリクエスト(BR_1,BR
_2,・・・BR_n)の中で最も優先順位の高いバス
リクエストを選択して出力する機能を有すると共に、こ
れらn個のマスターのいずれもがバスリクエストを出し
ていない場合には特別のバスリクエストを出力する機能
を有するプライオリティエンコーダ(40)と、 バスリクエストを受けるとバスグラントを出力するもの
であつて、前記プライオリティエンコーダ(40)より
出力される当該マスターからのバスリクエストに対応し
てバスグラントを送出するn個のシーケンサ(501,
・・・50n)と、前記プライオリティエンコーダ(4
0)からの特別のバスリクエストを受け、前記n個のシ
ーケンサ(50_1,・・・50_n)のいずれもがバ
スグラントを送出していない場合に最も低い優先順位の
バスグラントを出力する特別のシーケンサ(500) を具備し、最も使用頻度の高いマスターには前記特別の
シーケンサ(500)からのバングラントを割り当てて
おくようにしたことを特徴とするバスアービトレーショ
ン回路。
[Claims] A bus arbitration circuit in which n masters are connected to one bus, and which accepts bus requests from each master and generates bus grants in descending order of priority, the bus arbitration circuit comprising: n masters connected to one bus; Bus request (BR_1, BR
It has the function of selecting and outputting the bus request with the highest priority among the bus requests (_2,...BR_n), and also outputting a special bus request when none of these n masters has issued a bus request. a priority encoder (40) having a function of outputting a bus grant; n sequencers (501,
...50n) and the priority encoder (4
A special sequencer that receives a special bus request from 0) and outputs a bus grant with the lowest priority when none of the n sequencers (50_1, . . . 50_n) is sending out a bus grant. (500), wherein a bang grant from the special sequencer (500) is assigned to the most frequently used master.
JP8550990A 1990-03-30 1990-03-30 Bus arbitration circuit Pending JPH03282955A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8550990A JPH03282955A (en) 1990-03-30 1990-03-30 Bus arbitration circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8550990A JPH03282955A (en) 1990-03-30 1990-03-30 Bus arbitration circuit

Publications (1)

Publication Number Publication Date
JPH03282955A true JPH03282955A (en) 1991-12-13

Family

ID=13860903

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8550990A Pending JPH03282955A (en) 1990-03-30 1990-03-30 Bus arbitration circuit

Country Status (1)

Country Link
JP (1) JPH03282955A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010108275A (en) * 2008-10-30 2010-05-13 Mitsubishi Electric Corp Bus control device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010108275A (en) * 2008-10-30 2010-05-13 Mitsubishi Electric Corp Bus control device

Similar Documents

Publication Publication Date Title
US6178475B1 (en) Multimedia system employing timers to properly allocate bus access
US6826640B1 (en) Bus bandwidth control system
JPH0740250B2 (en) A device that controls access to the data bus
US6959354B2 (en) Effective bus utilization using multiple bus interface circuits and arbitration logic circuit
JP4308578B2 (en) Integrated circuit device bus arbiter
KR960042385A (en) Arbitrator by LRU
JPH03282955A (en) Bus arbitration circuit
JPH0210459A (en) Bus use right determining system
JPS594733B2 (en) Kyoutsuba Seigiyo Cairo
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
JP3407200B2 (en) Arbitration apparatus and method
JPH06214946A (en) Bus using right mediation system for multistage bus
JPS61213955A (en) Control system for bus occupation
JP2694812B2 (en) Arbitration system
JP3415474B2 (en) Bus bridge arbitration method
JPH04245363A (en) Bus arbitration system
JPH04250553A (en) Programmable controller
JPH023851A (en) Direct memory access device
JP2002175270A (en) Exclusive control system of bus
KR960009906Y1 (en) Common memory using system
JPS58203563A (en) System for controlling assignment of priority of right
JPH01205365A (en) Bus acquisition control system
JPH06274452A (en) Data processor
JPH0553975A (en) Bus controller