JPH11232216A - Bus arbitration method and bus system - Google Patents

Bus arbitration method and bus system

Info

Publication number
JPH11232216A
JPH11232216A JP3722698A JP3722698A JPH11232216A JP H11232216 A JPH11232216 A JP H11232216A JP 3722698 A JP3722698 A JP 3722698A JP 3722698 A JP3722698 A JP 3722698A JP H11232216 A JPH11232216 A JP H11232216A
Authority
JP
Japan
Prior art keywords
bus
address
agent
reception
buffer
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.)
Granted
Application number
JP3722698A
Other languages
Japanese (ja)
Other versions
JP3244044B2 (en
Inventor
Hideyuki Wada
英之 和田
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 JP03722698A priority Critical patent/JP3244044B2/en
Publication of JPH11232216A publication Critical patent/JPH11232216A/en
Application granted granted Critical
Publication of JP3244044B2 publication Critical patent/JP3244044B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Bus Control (AREA)

Abstract

PROBLEM TO BE SOLVED: To shorten idle time by effectively utilizing a bus when there is no free area in a receiving data butter. SOLUTION: A slave agent 21 requests bus use to a master agent 11 by a bus request signal 211 . When an address buffer busy signal 14 indicates the existence of a free area in a receiving address buffer 121 , a bus arbitration circuit 111 sends a bus ground signal 221 to permit the use of the bus. When a data buffer busy signal 15 indicates no existence of a free area in a data buffer 131 , the slave agent 21 transfers only an addrses to the master agent 11 through the bus at first. When the signal 15 indicates the existence of a free area in the buffer 13. therearefer, the slave agent 121 transfers data.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明はバスシステムに関
し、特に1つのバスを介して接続されている複数の下位
エージェントからのバス要求を受け、集中アービトレー
ション方式により優先順序を決定して前記バスによりデ
ータおよびアドレスを転送させてそれぞれ受信データバ
ッファおよび受信アドレスバッファで受信する上位エー
ジェントを備えるバスシステムのバス調停方法および装
置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a bus system, and more particularly to a bus system which receives a bus request from a plurality of lower-level agents connected via a single bus, determines a priority order by a centralized arbitration scheme, and uses the bus to transmit data. The present invention also relates to a bus arbitration method and apparatus for a bus system including an upper-level agent for transferring an address and receiving the received data in a reception data buffer and a reception address buffer, respectively.

【0002】[0002]

【従来の技術】従来、この種のバスシステムのバス調停
方法では調停を行う際に受け取り側のアドレス/データ
バッファの状態を監視しており、どちらかのバッファに
空きが無い場合には他のエージェントがバスを獲得でき
ないように制御を行っている。
2. Description of the Related Art Conventionally, in the bus arbitration method of this type of bus system, the state of an address / data buffer on the receiving side is monitored when arbitration is performed. Control is performed so that the agent cannot acquire the bus.

【0003】[0003]

【発明が解決しようとする課題】上述した従来のバス調
停方法は、複数の下位エージェントからデータを伴う転
送をしようとするとき、受信データバッファに空きが無
くなり、受信アドレスバッファに空きがあってもリクエ
ストが受け付けることができなくなり、バスが使用でき
ない状態ができてしまうという欠点がある。これを避け
るためにリードリクエスト専用線を設けて受信データバ
ッファに空きが無く受信アドレスバッファに空きがある
場合にリードリクエストを受け付けるような技術が考案
されたが、信号線の増加等の問題があった。
In the conventional bus arbitration method described above, when a transfer involving data from a plurality of lower agents is attempted, the reception data buffer runs out of space, and even if the reception address buffer has room, There is a disadvantage that the request cannot be accepted and the bus cannot be used. In order to avoid this, a technique has been devised to provide a dedicated line for a read request and receive a read request when there is no space in the reception data buffer and there is room in the reception address buffer, but there is a problem such as an increase in the number of signal lines. Was.

【0004】本発明の目的は、リードリクエスト専用線
などの信号線を増加することなく、受信データバッファ
に空きが無く、受信アドレスバッファに空きがある場合
にバスを使用してリクエストを受付けることのできるバ
ス調停方法および装置を提供することである。
An object of the present invention is to receive a request using a bus when there is no free space in a reception data buffer and a free space in a reception address buffer without increasing the number of signal lines such as dedicated lines for read requests. To provide a bus arbitration method and apparatus that can be used.

【0005】[0005]

【課題を解決するための手段】本発明のバス調停方法
は、受信アドレスバッファと受信データバッファを備え
た上位エージェントに1つのバスを介して接続された複
数の下位エージェントからバスの使用要求を受付ける段
階と、前記複数の下位エージェントの中から集中アービ
トレーション式のバス調停を行ってバスを獲得すべき下
位エージェントを決定して前記バスの使用許可を与える
段階と、前記バスの使用許可を受けた下位エージェント
から前記バスを使用してアドレスおよびデータを前記上
位エージェントに転送する段階とを有するバスシステム
のバス調停方法において、前記受信データバッファに空
きが無く、前記受信アドレスバッファに空きがある場合
に、アドレスのみを先に下位エージェントより転送する
段階を有する。
According to the bus arbitration method of the present invention, a bus use request is received from a plurality of lower agents connected via a single bus to an upper agent having a reception address buffer and a reception data buffer. Performing a centralized arbitration-type bus arbitration from among the plurality of lower-level agents to determine a lower-level agent to acquire a bus, and granting use of the bus; Transferring an address and data from the agent to the upper-level agent using the bus, wherein the received data buffer has no free space and the received address buffer has free space. There is a step of first transferring only the address from the lower agent.

【0006】このような構成とすることにより、アドレ
スのみを先に転送できるので、バスの空き時間が短縮さ
れるとともに、アドレス変換やプリフェッチなどの処理
をデータ転送に先行して行うことができる。
With this configuration, only the address can be transferred first, so that the bus idle time can be reduced, and processing such as address conversion and prefetch can be performed prior to data transfer.

【0007】前記アドレスのみを先に転送する段階は、
前記受信データバッファおよび受信アドレスバッファに
それぞれ空きがあるか無いかを示す受信データバッファ
ビジー信号および受信アドレスバッファビジー信号を送
出する段階と、前記受信アドレスバッファビジー信号を
受信して前記受信アドレスバッファに空きがあることを
検知したとき、バス調停によりバスを獲得すべき下位エ
ージェントを決定し、該下位エージェントにバス使用許
可信号を送出する段階と、前記バス使用許可信号を受信
した下位エージェントが前記受信データバッファビジー
信号を受信して前記受信データバッファに空きが無いこ
とを検知したとき、前記バスを使用してアドレスのみを
先に上位エージェントに転送する段階とを有していても
よい。
[0007] The step of first transferring only the address includes:
Sending a receive data buffer busy signal and a receive address buffer busy signal indicating whether or not the receive data buffer and the receive address buffer are empty, and receiving the receive address buffer busy signal to the receive address buffer. When it is detected that there is a vacancy, a lower agent for acquiring the bus is determined by bus arbitration, and a bus use permission signal is transmitted to the lower agent. When receiving a data buffer busy signal and detecting that there is no free space in the reception data buffer, the method may further include first transferring only the address to the higher-level agent using the bus.

【0008】前記下位エージェントがアドレスのみを先
に転送する段階は、当該下位エージェントが受信した受
信データバッファビジー信号により前記受信データバッ
ファに空きが無いことを確認してアドレスのみ転送を開
始し、該アドレス転送がデータを伴わない転送の場合に
は、アドレスを転送した後にバスを解放して転送を終了
し、データを伴う転送の場合には、アドレスを転送した
後に一旦バスを解放し、上位エージェントからの受信デ
ータバッファビジー信号が前記受信データバッファに空
きがあることを示した後にデータを転送し、かつ、前記
アドレスの転送を開始してからデータの転送が終わるま
では、上位エージェントは他の下位エージェントからの
バス要求を受け付けないように制御するものを含む。
In the step of transferring only the address first by the lower-level agent, the lower-level agent confirms that there is no free space in the reception data buffer based on the reception data buffer busy signal received by the lower-level agent, and starts transferring only the address. If the address transfer is a transfer without data, release the bus after transferring the address and terminate the transfer.If the transfer involves data, release the bus after transferring the address and temporarily release the bus. The data transfer is performed after the reception data buffer busy signal indicates that there is free space in the reception data buffer, and from the start of the transfer of the address to the end of the data transfer, the upper-level agent performs another transfer. Includes those that control not to accept bus requests from lower-level agents.

【0009】本発明のバスシステムは、複数の下位エー
ジェントと、バスと、前記バスを介して前記複数の下位
エージェントと接続され、前記下位エージェントから転
送されるデータが格納される受信データバッファと、前
記下位エージェントから転送されるアドレスが格納され
る受信アドレスバッファと、前記下位エージェントから
バス要求信号を受けると、集中アービトレーション方式
により調停を行ってバスを獲得すべき下位エージェント
を決定して当該下位エージェントにバス使用許可を与
え、前記下位エージェントに前記バスを介してデータお
よびアドレスを転送させるバス調停回路とを備える上位
エージェントとより構成されるバスシステムにおいて、
前記下位エージェントはバス使用許可を与えられたとき
前記受信データバッファに空きが無く、前記受信アドレ
スバッファに空きがある場合に、前記バスを使用してア
ドレスのみを先に上位エージェントに転送する。
A bus system according to the present invention comprises: a plurality of lower agents; a bus; a reception data buffer connected to the plurality of lower agents via the bus and storing data transferred from the lower agents; A receiving address buffer in which an address transferred from the lower agent is stored, and receiving a bus request signal from the lower agent, arbitrating by a centralized arbitration method to determine a lower agent to acquire a bus, and A bus arbitration circuit that grants a bus use permission to the lower agent and transfers data and addresses to the lower agent via the bus.
The lower-level agent transfers only the address to the higher-level agent first using the bus if the received data buffer has no free space when the bus use permission is given and there is a free space in the received address buffer.

【0010】前記受信データバッファは、受信データが
格納される空きがあるか無いかを示す受信データバッフ
ァビジー信号を送出し、前記受信アドレスバッファは、
受信アドレスが格納される空きがあるか無いかを示す受
信アドレスバッファビジー信号を送出し、前記バス調停
回路は前記受信アドレスバッファビジー信号を受信し
て、前記受信アドレスバッファに空きがあることを検知
したとき、バスの調整を行ってバスを獲得すべき下位エ
ージェントを決定し、該下位エージェントに対してバス
使用許可信号を送出し、前記下位エージェントは、バス
使用許可信号を受信したとき前記受信データバッファが
送出した受信データバッファビジー信号を受信して、該
受信データバッファビジー信号が前記受信データバッフ
ァに空きが無いことを示しているとき、前記バスを使用
してアドレスのみを先に前記上位エージェントに転送す
るものであってよい。
[0010] The reception data buffer sends a reception data buffer busy signal indicating whether or not there is free space for storing reception data.
The bus arbitration circuit sends out a reception address buffer busy signal indicating whether or not there is a free space in which a reception address is stored, and the bus arbitration circuit receives the reception address buffer busy signal to detect that there is a free space in the reception address buffer. Then, the lower agent which should acquire the bus by adjusting the bus is determined, and a bus use permission signal is transmitted to the lower agent. The lower agent receives the bus use permission signal when receiving the bus use permission signal. When the receive data buffer busy signal transmitted by the buffer is received and the receive data buffer busy signal indicates that the receive data buffer has no free space, only the address using the bus is used first and the upper-level agent is used. May be transferred.

【0011】前記下位エージェントは、バス使用許可信
号を受信したとき前記受信データバッファビジー信号を
受信して、前記受信データバッファに空きが無いことを
確認してアドレスのみ転送を開始し、該アドレス転送が
データを伴わない転送の場合には、アドレスを転送した
後にバスを解放して転送を終了し、データを伴う転送の
場合には、アドレスを転送した後に一旦バスを解放し、
上位エージェントからの受信データバッファビジー信号
が前記受信データバッファに空きがあることを示した後
にデータを転送し、前記バス調停回路は、前記下位エー
ジェントが前記アドレスの転送を開始してからデータの
転送が終わるまでは、他の下位エージェントからのバス
要求を受け付けないように制御するものを含む。
The lower agent receives the reception data buffer busy signal when receiving the bus use permission signal, confirms that the reception data buffer has no free space, starts transferring only the address, and starts the address transfer. In the case of transfer without data, the bus is released after transferring the address and the transfer is terminated.In the case of transfer with data, the bus is released once after transferring the address,
The data transfer is performed after the reception data buffer busy signal from the upper agent indicates that the reception data buffer is empty, and the bus arbitration circuit transfers the data after the lower agent starts the transfer of the address. Until the end, the control is performed so as not to accept a bus request from another lower agent.

【0012】[0012]

【発明の実施の形態】次に、本発明の実施の形態につい
て図面を参照して説明する。
Next, embodiments of the present invention will be described with reference to the drawings.

【0013】図1は本発明のバス調停方法の第1実施形
態のフローチャートである。
FIG. 1 is a flowchart of a bus arbitration method according to a first embodiment of the present invention.

【0014】図1のバス調停方法は、先ず、上位エージ
ェントは複数の下位エージェントからバスの使用要求を
受付ける(ステップS1)。次に、上位エージェントの
受信アドレスバッファに空きがあるか無いかを判断し
(ステップS2)、空きが無ければバスの調停をせずに
終了する(ステップS3)。受信アドレスバッファに空
きがあれば、バスの調停を行ってバスを獲得すべき下位
エージェントを決定してその下位エージェントにバスの
使用を許可する(ステップS4)。続いて上位エージェ
ントの受信データバッファに空きがあるか無いかを判断
し(ステップS5)、空きがある場合はバスを使用許可
された下位エージェントにバスを使用してアドレスとデ
ータを転送させる(ステップS6)。ステップS5で受
信データバッファに空きが無い場合は、下位エージェン
トはバスを使用してアドレスのみを先に転送する(ステ
ップS7)。
In the bus arbitration method shown in FIG. 1, the upper agent first receives a bus use request from a plurality of lower agents (step S1). Next, it is determined whether or not there is a free space in the reception address buffer of the upper agent (step S2). If there is no free space, the process ends without arbitrating the bus (step S3). If there is a free space in the reception address buffer, the bus arbitration is performed to determine a lower agent to acquire the bus, and the lower agent is permitted to use the bus (step S4). Subsequently, it is determined whether or not there is a free space in the reception data buffer of the upper agent (step S5). If there is a free space, the address and data are transferred to the lower agent permitted to use the bus using the bus (step S5). S6). If there is no free space in the received data buffer in step S5, the lower agent transfers only the address first using the bus (step S7).

【0015】本実施形態のバス調停方法では、受信デー
タバッファに空きが無く、受信アドレスバッファに空き
があるとき、アドレスを先に転送するので、バスの空き
時間が短縮され、必要によってはアドレス変換やプリフ
ェッチなどの処理をデータ転送に先行して行うことがで
きる。
In the bus arbitration method according to the present embodiment, when there is no free space in the received data buffer and there is a free space in the received address buffer, the address is transferred first, so that the free time of the bus is shortened. And prefetching can be performed prior to data transfer.

【0016】図2は本発明のバス調停方法の第2実施形
態のフローチャートである。
FIG. 2 is a flowchart of a bus arbitration method according to a second embodiment of the present invention.

【0017】図2のバス調停方法は、先ず、図1のステ
ップS1と同様に、上位エージェントは複数の下位エー
ジェントからのバス使用要求を受付ける(ステップS1
1)。次に、受信データバッファにデータが格納される
空きがあるか無いかを示す受信データバッファビジー信
号を送出し、また受信アドレスバッファにアドレスが格
納される空きがあるか無いかを示す受信アドレスバッフ
ァビジー信号を送出する(ステップS12)。続いて受
信アドレスバッファビジー信号が受信アドレスバッファ
に空きがあることを示しているか判断し(ステップS1
3)、空きがなければ図1のステップS3と同様にバス
の調停を停止し(ステップS14)、空きがあればバス
の調停を行ってバスを獲得すべき下位エージェントを決
定してバス使用許可信号を送る(ステップS15)。続
いて、受信データバッファビジー信号が受信データバッ
ファに空きがあることを示しているか判断し(ステップ
S16)、空きがあればバス使用許可信号を受信した下
位エージェントにアドレスとデータを転送する(ステッ
プS17)。ステップS16で、受信データバッファに
空きが無ければバス使用許可信号を受信した下位エージ
ェントにアドレスのみを先に転送する(ステップS1
8)。
In the bus arbitration method shown in FIG. 2, first, similarly to step S1 in FIG. 1, the upper agent receives a bus use request from a plurality of lower agents (step S1).
1). Next, it sends a receive data buffer busy signal indicating whether there is room in the receive data buffer for storing data, and a receive address buffer indicating whether there is room for storing the address in the receive address buffer. A busy signal is transmitted (step S12). Subsequently, it is determined whether the reception address buffer busy signal indicates that the reception address buffer is empty (step S1).
3) If there is no free space, the bus arbitration is stopped in the same manner as in step S3 of FIG. 1 (step S14). A signal is sent (step S15). Subsequently, it is determined whether the reception data buffer busy signal indicates that the reception data buffer has a free space (step S16). If there is a free space, the address and data are transferred to the lower agent that has received the bus use permission signal (step S16). S17). In step S16, if there is no free space in the reception data buffer, only the address is first transferred to the lower agent that has received the bus use permission signal (step S1).
8).

【0018】本実施形態のバス調停方法では、図1の場
合と同様に、受信データバッファに空きが無いときアド
レスを先に転送するので、バスの空き時間が短縮され、
必要なアドレス変換やプリフェッチなどの処理を先行し
て行うことができる。
In the bus arbitration method of this embodiment, as in the case of FIG. 1, when there is no free space in the reception data buffer, the address is transferred first, so that the bus free time is shortened.
Necessary processing such as address conversion and prefetch can be performed in advance.

【0019】図3は本発明のバス調停方法の第3実施形
態のフローチャートである。
FIG. 3 is a flowchart of a bus arbitration method according to a third embodiment of the present invention.

【0020】図3のバス調停方法は、ステップS21か
らS27までは図2のステップS11からS17までと
同様であるが、ステップS26で受信データバッファに
空きが無かった場合は、アドレスのみをバスを使用して
上位エージェントに転送した後、一旦バスを解放し(ス
テップS28)、受信データバッファビジー信号が受信
データバッファが空きがあることを示した後、バスを使
用してデータを上位エージェントに転送する(ステップ
S29)。ステップS28でアドレス転送を開始してか
ら、ステップS29のデータ転送が終了するまでの間
は、上位エージェントは他の下位エージェントからのバ
ス使用要求があっても、これに応じない(ステップS3
0)。
In the bus arbitration method of FIG. 3, steps S21 to S27 are the same as steps S11 to S17 of FIG. 2, but if there is no free space in the reception data buffer in step S26, only the address is transferred to the bus. After transferring the data to the upper agent using the bus, the bus is once released (step S28), and the received data buffer busy signal indicates that the received data buffer is free, and then the data is transferred to the upper agent using the bus. (Step S29). From the start of address transfer in step S28 to the end of data transfer in step S29, the upper agent does not respond to a bus use request from another lower agent (step S3).
0).

【0021】本実施形態のバス調停方法は図2の場合と
同様に、受信データバッファに空きが無いとき、アドレ
スのみを先に転送するので、バスの空き時間が短縮さ
れ、必要なアドレス変換やプリフェッチなどの処理をデ
ータ転送に先行して行うことができる。
In the bus arbitration method of the present embodiment, as in the case of FIG. 2, when there is no free space in the reception data buffer, only the address is transferred first, so that the free time of the bus is reduced, and necessary address conversion and Processing such as prefetch can be performed prior to data transfer.

【0022】図4は図1のバス調停方法が適用されたバ
スシステムのブロック図である。
FIG. 4 is a block diagram of a bus system to which the bus arbitration method of FIG. 1 is applied.

【0023】図4のバスシステムは上位エージェント1
と下位エージェント2、3、4および5とバス(不図
示)とから構成され、下位エージェント2、3、4およ
び5はバスを介して上位エージェント1に接続されてい
る。上位エージェント1はバス調停回路11と受信アド
レスバッファ12と受信データバッファ13とを備えて
いる。受信アドレスバッファ12には下位エージェント
2、3、4および5から転送されたアドレスが格納され
る。受信データバッファ13には、下位エージェント
2、3、4および5から転送されたデータが格納され
る。バス調停回路11は下位エージェント2、3、4お
よび5からそれぞれバスの使用許可を要求するバスリク
エスト信号21、31、41および51を受付けて、受
信アドレスバッファ12に格納すべき空きが無いときは
バスの調停を行わない。このとき、受信アドレスバッフ
ァ12に空きがあるときは、バス調停回路11は集中ア
ービトレーション方式のバスの調停を行って優先順位に
従ってバスを獲得すべき下位エージェントを決定してそ
の下位エージェントにバス使用を許可するバスグラント
信号22、32、42または52を送ってバスの使用を
許可する。バスグラント信号22、32、42または5
2を受けた下位エージェント2、3、4または5は、受
信データバッファ13に空きがあれば、アドレスとデー
タをバスを使用して上位エージェントに転送し、受信デ
ータバッファ13に空きが無ければ、アドレスのみを先
に転送する。
The bus system shown in FIG.
And lower agents 2, 3, 4 and 5 and a bus (not shown). The lower agents 2, 3, 4 and 5 are connected to the upper agent 1 via the bus. The upper agent 1 includes a bus arbitration circuit 11, a reception address buffer 12, and a reception data buffer 13. The received address buffer 12 stores the addresses transferred from the lower agents 2, 3, 4, and 5. The received data buffer 13 stores data transferred from the lower agents 2, 3, 4, and 5. The bus arbitration circuit 11 receives bus request signals 21, 31, 41 and 51 requesting permission of bus use from the lower agents 2, 3, 4 and 5, respectively, and when there is no space to be stored in the reception address buffer 12, Do not arbitrate for the bus. At this time, if there is a free space in the reception address buffer 12, the bus arbitration circuit 11 arbitrates the bus in the centralized arbitration system, determines the lower agent to acquire the bus according to the priority, and gives the lower agent the bus use. A bus grant signal 22, 32, 42 or 52 is sent to authorize use of the bus. Bus grant signal 22, 32, 42 or 5
The lower agents 2, 3, 4 or 5 receiving 2 transfer the address and data to the upper agent using the bus if there is a free space in the received data buffer 13, and if there is no free space in the received data buffer 13, Only forward addresses first.

【0024】このバスシステムでは、上位エージェント
の受信データバッファに空きが無くても受信アドレスバ
ッファに空きがあればアドレスのみの転送を先に行うの
で、バスの空き時間が短縮されるとともに、データ転送
に先立ってアドレス変換やプリフェッチなどの処理を行
うことができる。
In this bus system, even if there is no vacancy in the reception data buffer of the upper agent, if there is a vacancy in the reception address buffer, only the transfer of the address is performed first, so that the vacancy time of the bus is shortened and the data transfer is performed. Prior to this, processing such as address conversion and prefetch can be performed.

【0025】図5は図2および図3のバス調停方法が適
用されたバスシステムのブロック図である。
FIG. 5 is a block diagram of a bus system to which the bus arbitration method of FIGS. 2 and 3 is applied.

【0026】図5のバスシステムは上位エージェント1
1 と下位エージェント21 、31 、41 および51 とバ
ス(不図示)とから構成され、下位エージェント21
1、41 および51 はバスを介して上位エージェント
1 に接続されている。上位エージェント11 はバス調
停回路111 と受信アドレスバッファ121 と受信デー
タバッファ131 とを備えている。受信アドレスバッフ
ァ121 には下位エージェント21 、31 、41 および
1 から転送されたアドレスが格納され、自バッファに
アドレスが格納される空きがあるか無いかを示すアドレ
スバッファビジー信号14を送出する。受信データバッ
ファ131 には下位エージェント21 、31 、41 およ
び51 から転送されたデータが格納され、自バッファに
データが格納される空きがあるか無いかを示すデータバ
ッファビジー信号15を送出する。下位エージェント2
1 、31 、41 および51 はそれぞれ上位エージェント
1 にバスの使用を要求するバスリクエスト信号21
1 、311 、411 および511 を送出する。上位エー
ジェント11のバス調停回路111 は、バスリクエスト
信号211 、311 、411 および511 を受付け、受
信アドレスバッファ121 が送出したアドレスバッファ
ビジー信号14を受信して、そのアドレスバッファビジ
ー信号14が受信アドレスバッファ121 にアドレスを
格納すべき空きが無いときはバスの調停を行わない。こ
のとき、受信アドレスバッファに空きがあるときは、バ
ス調停回路111 は、集中アービトレーション方式のバ
スの調停を行って優先順位に従ってバスを獲得すべき下
位エージェントを決定してその下位エージェントにバス
使用を許可するバスグラント信号221 、321 、42
1または521 を送ってバスの使用を許可する。下位エ
ージェント21 、31 、4 1 または51 は上位エージェ
ント11 からバスグラント信号221 、321 、421
または521 を受信すると、上位エージェント11 から
データバッファビジー信号15を受信して受信データバ
ッファ131 に空きがあることを検知すればアドレスと
データをバスを使用して上位エージェント11 に転送
し、受信データバッファ131 に空きが無いことを検知
すればアドレスのみを先に上位エージェント11に転送
する。ここで、このバスシステムが図3のバス調停方法
が適用されている場合は、下位エージェント21 、3
1 、41 または51 がアドレスのみを上位エージェント
1に転送したとき、転送が終ると一旦、バスを解放
し、受信しているデータバッファビジー信号15が受信
データバッファ131 に空きがあることを示すことを検
知したのち、データを上位エージェント11 に転送す
る。この場合、上位エージェント11のバス調停回路1
1 は、下位エージェント21 、31 、41 または51
がアドレスのみの転送を開始してから、データの転送が
終了するまでの間、他の下位エージェントからのバスリ
クエスト信号211、311 、411 および511 によ
るバス使用要求には応じない制御を行う。
The bus system shown in FIG.
1 And subordinate agent 21 , 31 , 41 And 51 And ba
(Not shown).1 ,
31, 41 And 51 Is the upper agent via the bus
11 It is connected to the. Top Agent 11 Is a bus style
Stop circuit 111 And reception address buffer 121 And received data
Buffer 131 And Receive address buffer
A121 Has lower agent 21 , 31 , 41 and
51 The address transferred from is stored in its own buffer.
Address indicating whether there is free space to store the address
A sbuffer busy signal 14 is transmitted. Receive data buffer
Fa 131 Has lower agent 21 , 31 , 41 And
And 51 The data transferred from is stored in its own buffer.
Data bar that indicates whether there is free space for data storage
A buffer 15 is transmitted. Subordinate Agent 2
1 , 31 , 41 And 51 Are the top agents
1 1 Bus request signal 21 requesting the use of a bus
1 , 311 , 411 And 511 Is sent. Top A
Gent 11Bus arbitration circuit 111 Is a bus request
Signal 211 , 311 , 411 And 511 Accept
Address buffer 121 Address buffer sent by
When the busy signal 14 is received, the address buffer busy
Signal 14 is received address buffer 121 Address
If there is no room to store, no bus arbitration is performed. This
If there is free space in the receive address buffer,
Arbitration circuit 111 Is a centralized arbitration scheme
To arbitrate for buses and get buses according to priority
Determine the next agent and bus to its subordinate agents
Bus grant signal 22 that permits use1 , 321 , 42
1Or 521 To allow use of the bus. Lower d
Agent 21 , 31 , 4 1 Or 51 Is the upper age
11 From the bus grant signal 221 , 321 , 421 
Or 521 , The upper agent 11 From
Receives data buffer busy signal 15 and
Buffa 131 If it detects that there is free space, the address and
Higher-level agent 1 using the data bus1 Forward to
And the reception data buffer 131 Detect that there is no free space
If you do, only the address will be sent to the upper agent1Forward to
I do. The bus arbitration method shown in FIG.
Is applied, subordinate agent 21 , 3
1 , 41 Or 51 Only the address is the upper agent
11When the transfer is completed, the bus is released once the transfer is completed
And the received data buffer busy signal 15 is received.
Data buffer 131 Check that there is room
After knowing, the data is transferred to upper agent 11 Forward to
You. In this case, upper agent 11Bus arbitration circuit 1
11 Is the lower agent 21 , 31 , 41 Or 51 
Starts transferring only addresses and then transfers data
Until the end, the bus transfer from other lower agents
Quest signal 211, 311 , 411 And 511 By
Control that does not respond to a bus use request.

【0027】このバスシステムでは、図4のバスシステ
ムと同様に、上位エージェントの受信データバッファに
空きが無くても受信アドレスバッファに空きがあればア
ドレスのみの転送を先に行うので、バスの空き時間が短
縮されるとともに、データ転送に先だってアドレス変換
やプリフェッチなどの処理を行うことができる。
In this bus system, similarly to the bus system of FIG. 4, even if there is no free space in the reception data buffer of the upper agent, if there is a free space in the reception address buffer, only the transfer of the address is performed first. The time can be shortened, and processing such as address conversion and prefetch can be performed prior to data transfer.

【0028】[0028]

【発明の効果】以上説明したように本発明は、上位エー
ジェントの受信データバッファに空きが無いとき、受信
アドレスバッファに空きがあれば、アドレスのみをバス
により転送することにより、バスの空き時間が短縮され
て、有効利用が図られるとともに、データ転送に先立っ
てアドレスが転送されるので、アドレス変換やプリフェ
ッチなどの処理を行うことが出来て情報処理装置の処理
効率が向上するという効果がある。
As described above, according to the present invention, when there is no vacancy in the reception data buffer of the upper-level agent, if there is vacancy in the reception address buffer, only the address is transferred by the bus, so that the vacancy time of the bus is reduced. Since the address can be shortened for effective use, and the address is transferred prior to the data transfer, processing such as address conversion and prefetch can be performed, thereby improving the processing efficiency of the information processing apparatus.

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

【図1】本発明のバス調停方法の第1実施形態のフロー
チャートである。
FIG. 1 is a flowchart of a bus arbitration method according to a first embodiment of the present invention.

【図2】本発明のバス調停方法の第2実施形態のフロー
チャートである。
FIG. 2 is a flowchart of a bus arbitration method according to a second embodiment of the present invention.

【図3】本発明のバス調停方法の第3実施形態のフロー
チャートである。
FIG. 3 is a flowchart of a bus arbitration method according to a third embodiment of the present invention.

【図4】図1のバス調停方法が適用されたバスシステム
のブロック図である。
FIG. 4 is a block diagram of a bus system to which the bus arbitration method of FIG. 1 is applied.

【図5】図2および図3のバス調停方法が適用されたバ
スシステムのブロック図である。
FIG. 5 is a block diagram of a bus system to which the bus arbitration method of FIGS. 2 and 3 is applied;

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

1、11 上位エージェント 2、21 、3、31 、4、41 、5、51 下位エー
ジェント 11、111 バス調停回路 12、121 受信アドレスバッファ 13、131 受信データバッファ 14 アドレスバッファビジー信号 15 データバッファビジー信号 21、211、31、311、41、411、51、511
バスリクエスト信号 22、221、32、321、42、421、52、521
バスグラント信号
1, 1 1 Upper agent 2, 2 1 , 3, 3 1 , 4, 4 1 , 5, 5 1 Lower agent 11, 11 1 Bus arbitration circuit 12, 12 1 Receive address buffer 13, 13 1 Receive data buffer 14 Address Buffer busy signal 15 Data buffer busy signal 21, 21 1 , 31, 31 1 , 41, 41 1 , 51, 51 1
Bus request signals 22, 22 1 , 32, 32 1 , 42, 42 1 , 52, 52 1
Bus grant signal

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 受信アドレスバッファと受信データバッ
ファを備えた上位エージェントに1つのバスを介して接
続された複数の下位エージェントからバスの使用要求を
受付ける段階と、 前記複数の下位エージェントの中から集中アービトレー
ション式のバス調停を行ってバスを獲得すべき下位エー
ジェントを決定して前記バスの使用許可を与える段階
と、 前記バスの使用許可を受けた下位エージェントから前記
バスを使用してアドレスおよびデータを前記上位エージ
ェントに転送する段階とを有するバスシステムのバス調
停方法において、 前記受信データバッファに空きが無く、前記受信アドレ
スバッファに空きがある場合に、アドレスのみを先に下
位エージェントより転送する段階を有することを特徴と
するバス調停方法。
A step of receiving a bus use request from a plurality of lower agents connected via one bus to an upper agent having a reception address buffer and a reception data buffer; Arbitrating bus arbitration to determine a lower-level agent to acquire the bus and give permission to use the bus; and A bus arbitration method for a bus system, comprising the step of: transferring the address only from the lower agent first when the reception data buffer has no space and the reception address buffer has a space. A bus arbitration method comprising:
【請求項2】 前記アドレスのみを先に転送する段階
は、 前記受信データバッファおよび受信アドレスバッファに
それぞれ空きがあるか無いかを示す受信データバッファ
ビジー信号および受信アドレスバッファビジー信号を送
出する段階と、 前記受信アドレスバッファビジー信号を受信して前記受
信アドレスバッファに空きがあることを検知したとき、
バス調停によりバスを獲得すべき下位エージェントを決
定し、該下位エージェントにバス使用許可信号を送出す
る段階と、 前記バス使用許可信号を受信した下位エージェントが前
記受信データバッファビジー信号を受信して前記受信デ
ータバッファに空きが無いことを検知したとき、前記バ
スを使用してアドレスのみを先に上位エージェントに転
送する段階とを有する請求項1記載のバス調停方法。
2. The method according to claim 1, further comprising: transmitting a reception data buffer busy signal and a reception address buffer busy signal indicating whether or not the reception data buffer and the reception address buffer have free space, respectively. Receiving the reception address buffer busy signal and detecting that there is free space in the reception address buffer,
Determining a lower agent to acquire a bus by bus arbitration, and transmitting a bus use permission signal to the lower agent; the lower agent receiving the bus use permission signal receiving the reception data buffer busy signal and 2. The bus arbitration method according to claim 1, further comprising, when detecting that there is no free space in the reception data buffer, first transferring only the address to the upper-level agent using the bus.
【請求項3】 前記下位エージェントがアドレスのみを
先に転送する段階は、 当該下位エージェントが受信した受信データバッファビ
ジー信号により前記受信データバッファに空きが無いこ
とを確認してアドレスのみ転送を開始し、該アドレス転
送がデータを伴わない転送の場合には、アドレスを転送
した後にバスを解放して転送を終了し、データを伴う転
送の場合には、アドレスを転送した後に一旦バスを解放
し、上位エージェントからの受信データバッファビジー
信号が前記受信データバッファに空きがあることを示し
た後にデータを転送し、かつ、前記アドレスの転送を開
始してからデータの転送が終わるまでは、上位エージェ
ントは他の下位エージェントからのバス要求を受け付け
ないように制御する請求項2記載のバス調停方法。
3. The method of claim 1, wherein the lower agent first transfers only the address. The lower agent confirms that there is no free space in the reception data buffer based on the reception data buffer busy signal received by the lower agent and starts transferring only the address. In the case where the address transfer is a transfer without data, the bus is released after transferring the address and the transfer is terminated, and in the case of a transfer with data, the bus is once released after transferring the address, The upper agent transfers the data after the reception data buffer busy signal from the upper agent indicates that the reception data buffer is empty, and, from the start of the address transfer to the end of the data transfer, 3. The bus arbitration method according to claim 2, wherein control is performed so as not to accept a bus request from another lower agent.
【請求項4】 複数の下位エージェントと、 バスと、 前記バスを介して前記複数の下位エージェントと接続さ
れ、前記下位エージェントから転送されるデータが格納
される受信データバッファと、前記下位エージェントか
ら転送されるアドレスが格納される受信アドレスバッフ
ァと、前記下位エージェントからバス要求信号を受ける
と、集中アービトレーション方式により調停を行ってバ
スを獲得すべき下位エージェントを決定して当該下位エ
ージェントにバス使用許可を与え、前記下位エージェン
トに前記バスを介してデータおよびアドレスを転送させ
るバス調停回路とを備える上位エージェントとより構成
されるバスシステムにおいて、 前記下位エージェントはバス使用許可を与えられたと
き、前記受信データバッファに空きが無く、前記受信ア
ドレスバッファに空きがある場合に、前記バスを使用し
てアドレスのみを先に上位エージェントに転送すること
を特徴とするバスシステム。
4. A plurality of lower agents, a bus, a reception data buffer connected to the plurality of lower agents via the bus and storing data transferred from the lower agents, and a transfer from the lower agents. When a bus request signal is received from the lower-level agent, the lower-level agent that performs arbitration by the centralized arbitration method to determine a lower-level agent to acquire the bus and permits the lower-level agent to use the bus. A bus arbitration circuit for transferring the data and the address to the lower agent via the bus, the upper agent comprising a bus arbitration circuit. No space left in buffer A bus system for transferring only an address first to an upper-level agent using the bus when there is a free space in the reception address buffer;
【請求項5】 前記受信データバッファは、受信データ
が格納される空きがあるか無いかを示す受信データバッ
ファビジー信号を送出し、 前記受信アドレスバッファは、受信アドレスが格納され
る空きがあるか無いかを示す受信アドレスバッファビジ
ー信号を送出し、 前記バス調停回路は前記受信アドレスバッファビジー信
号を受信して、前記受信アドレスバッファに空きがある
ことを検知したとき、バスの調整を行ってバスを獲得す
べき下位エージェントを決定し、該下位エージェントに
対してバス使用許可信号を送出し、 前記下位エージェントは、バス使用許可信号を受信した
とき前記受信データバッファが送出した受信データバッ
ファビジー信号を受信して、該受信データバッファビジ
ー信号が前記受信データバッファに空きが無いことを示
しているとき、前記バスを使用してアドレスのみを先に
前記上位エージェントに転送する請求項4記載のバスシ
ステム。
5. The reception data buffer sends a reception data buffer busy signal indicating whether or not there is a space for storing reception data, and the reception address buffer has a space for storing a reception address. When the bus arbitration circuit receives the reception address buffer busy signal and detects that the reception address buffer has a free space, the bus arbitration circuit adjusts the bus and performs bus adjustment. Determines a lower-level agent to obtain the following, sends a bus use permission signal to the lower-level agent, and the lower-level agent transmits a reception data buffer busy signal transmitted by the reception data buffer when the bus use permission signal is received. Receiving, the reception data buffer busy signal indicates that the reception data buffer is full. 5. The bus system according to claim 4, wherein only the address is transferred to the upper agent first using the bus.
【請求項6】 前記下位エージェントは、バス使用許可
信号を受信したとき前記受信データバッファビジー信号
を受信して、前記受信データバッファに空きが無いこと
を確認してアドレスのみ転送を開始し、該アドレス転送
がデータを伴わない転送の場合には、アドレスを転送し
た後にバスを解放して転送を終了し、データを伴う転送
の場合には、アドレスを転送した後に一旦バスを解放
し、上位エージェントからの受信データバッファビジー
信号が前記受信データバッファに空きがあることを示し
た後にデータを転送し、 前記バス調停回路は、前記下位エージェントが前記アド
レスの転送を開始してからデータの転送が終わるまで
は、他の下位エージェントからのバス要求を受け付けな
いように制御する請求項5記載のバスシステム。
6. The lower agent receives the reception data buffer busy signal when receiving the bus use permission signal, confirms that the reception data buffer has no free space, and starts transferring only an address. If the address transfer is a transfer without data, release the bus after transferring the address and terminate the transfer.If the transfer involves data, release the bus after transferring the address and temporarily release the bus. Transfer data after the receive data buffer busy signal from the device indicates that there is free space in the receive data buffer, and the bus arbitration circuit terminates the data transfer after the lower agent starts transferring the address. 6. The bus system according to claim 5, wherein control is performed so as not to accept a bus request from another lower agent until the request is made.
JP03722698A 1998-02-19 1998-02-19 Bus arbitration method and bus system Expired - Fee Related JP3244044B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP03722698A JP3244044B2 (en) 1998-02-19 1998-02-19 Bus arbitration method and bus system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP03722698A JP3244044B2 (en) 1998-02-19 1998-02-19 Bus arbitration method and bus system

Publications (2)

Publication Number Publication Date
JPH11232216A true JPH11232216A (en) 1999-08-27
JP3244044B2 JP3244044B2 (en) 2002-01-07

Family

ID=12491694

Family Applications (1)

Application Number Title Priority Date Filing Date
JP03722698A Expired - Fee Related JP3244044B2 (en) 1998-02-19 1998-02-19 Bus arbitration method and bus system

Country Status (1)

Country Link
JP (1) JP3244044B2 (en)

Also Published As

Publication number Publication date
JP3244044B2 (en) 2002-01-07

Similar Documents

Publication Publication Date Title
US5850530A (en) Method and apparatus for improving bus efficiency by enabling arbitration based upon availability of completion data
US7769934B1 (en) Master and slave side arbitrators associated with programmable chip system components
US5764929A (en) Method and apparatus for improving bus bandwidth by reducing redundant access attempts
KR20070084362A (en) Method and apparatus for performing an atomic semaphore operation
KR100644596B1 (en) Bus system and bus arbitration method thereof
US7013355B2 (en) Device and method for improved serial bus transaction using incremental address decode
US5708783A (en) Data bus arbiter for pipelined transactions on a split bus
JP3244044B2 (en) Bus arbitration method and bus system
JP2647035B2 (en) Bus control circuit
US6854036B2 (en) Method of transferring data in a processing system
JPH10307788A (en) Bus bridge
KR100451789B1 (en) Arbitration apparatus and method of processor for resources share
JPH0962640A (en) Access control method for shared memory
JP3145765B2 (en) Information processing device
JPH0830549A (en) Bus control device
US7117281B1 (en) Circuit, system, and method for data transfer control for enhancing data bus utilization
JP2659248B2 (en) Bus arbitration processing method
JPS63286949A (en) Bus control system
JPH11232215A (en) Bus controller, bus master device and method for controlling bus control system
JPS59231952A (en) Communication control system between multiprocessors
JPH05189311A (en) Cache memory system
JPH0461388B2 (en)
JP2860733B2 (en) Bus connection device
JP3050131B2 (en) Arbitration method
JP3098550B2 (en) Bus control method

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees