JPH11110344A - Bus arbitration equipment - Google Patents
Bus arbitration equipmentInfo
- Publication number
- JPH11110344A JPH11110344A JP27942397A JP27942397A JPH11110344A JP H11110344 A JPH11110344 A JP H11110344A JP 27942397 A JP27942397 A JP 27942397A JP 27942397 A JP27942397 A JP 27942397A JP H11110344 A JPH11110344 A JP H11110344A
- Authority
- JP
- Japan
- Prior art keywords
- bus
- circuit
- arbitration
- circuit data
- devices
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- Bus Control (AREA)
Abstract
(57)【要約】
【課題】 システム構成の変化に柔軟に対応できるとと
もに、冗長な演算処理が発生することがなく、かつ回路
規模の小さいバス調停装置を提供する。
【解決手段】 バスコントローラ105は、バスマスタ
になり得る複数のデバイス104を検出して、回路デー
タ設定手段103及び信号接続手段106にその情報を
通知する。回路データ設定手段103は、その情報に応
じて、回路データ記憶手段102から最適な回路データ
を選択して、書き換え可能な調停回路101に設定す
る。調停回路101は、設定された回路データで決定す
る回路によって、信号接続手段106を介して入力され
るデバイス104からのバスリクエスト信号を調停し
て、バス使用を許可するデバイス104に対してバスグ
ラント信号を出力する。
(57) [Problem] To provide a bus arbitration device which can flexibly cope with a change in system configuration, does not generate redundant arithmetic processing, and has a small circuit scale. SOLUTION: A bus controller 105 detects a plurality of devices 104 that can be bus masters, and notifies circuit circuit setting means 103 and signal connection means 106 of the information. The circuit data setting means 103 selects optimum circuit data from the circuit data storage means 102 according to the information and sets the optimum circuit data in the rewritable arbitration circuit 101. The arbitration circuit 101 arbitrates a bus request signal from the device 104 input via the signal connection means 106 by a circuit determined by the set circuit data, and provides a bus grant to the device 104 which permits use of the bus. Output a signal.
Description
【0001】[0001]
【発明の属する技術分野】本発明は、バス調停装置に関
し、より詳細には、複数のデバイスから1つのバスに対
するバス使用を要求するバスリクエスト信号を受けたと
き、バス使用権を調停するバス調停装置に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a bus arbitration device, and more particularly, to a bus arbitration device that arbitrates for a right to use a bus when receiving a bus request signal requesting bus use for one bus from a plurality of devices. Related to the device.
【0002】[0002]
【従来の技術】複数のデバイスが共通で使用する1つの
バスに接続されているシステムでは、各デバイスは時分
割によってバスを使用することができる。バス調停装置
は、複数のデバイスからのバスリクエスト信号を調停し
て1つのデバイスに対してバスの使用権を与える。この
調停方法には、ラウンドロビン(round robi
n)方式と優先順位方式とがある。バス使用権を得たデ
バイスをバスマスタという。2. Description of the Related Art In a system in which a plurality of devices are connected to one common bus, each device can use the bus by time sharing. The bus arbitration device arbitrates bus request signals from a plurality of devices to give one device a right to use the bus. This arbitration method includes round robin (round robin).
n) There are a method and a priority method. A device that has obtained the right to use the bus is called a bus master.
【0003】ラウンドロビン方式では、各デバイスに公
平にバス使用権を与える。この場合には、複数のデバイ
スからバスリクエスト信号が出ているときでも、各デバ
イスに対して順次循環的にポーリングしてバスを一定時
間ごとに開放し、バスリクエスト信号が出ているデバイ
スに対してバス使用権を許可するバスグラント信号を出
力する。バスグラント信号を受けたデバイスは、与えら
れた一定時間内においてバスを使用してデータ転送等の
処理ができる。一方、優先順位方式では、複数のデバイ
スからバスリクエスト信号が出ているときには、より緊
急度を有するデバイスに対して優先的にバスを開放して
バスグラント信号を出力する。In the round robin method, each device is given a right to use a bus fairly. In this case, even when a bus request signal is output from a plurality of devices, the devices are sequentially and cyclically polled to release the bus at fixed time intervals, and the bus request signal is output to the device for which the bus request signal is output. And outputs a bus grant signal for granting the right to use the bus. The device that has received the bus grant signal can perform processing such as data transfer using the bus within a given fixed time. On the other hand, in the priority system, when a bus request signal is output from a plurality of devices, the bus is preferentially released to a device having a more urgent degree and a bus grant signal is output.
【0004】[0004]
【発明が解決しようとする課題】しかしながら、従来の
バス調停装置では、例えばラウンドロビン方式におい
て、バスマスタになり得るデバイス数を設定し、その固
定した設定数のシステム構成に応じて調停方式を決定す
るので、実際に接続するデバイスが設定数より少ない場
合には、接続されていないデバイスに対してもポーリン
グして無効にバスを開放する問題があった。一方、バス
マスタになり得るデバイス数が設定数より増加したシス
テム構成の場合には、あらためて調停方式を構築しなけ
ればならなかった。また、各デバイスは、一定時間内に
データ転送等の処理を行う必要があるため、その最大転
送能力に応じて接続されるデバイス数が制限される。ま
して、システム動作中において、バスマスタになり得る
デバイス数の変化には対応することはできない。However, in a conventional bus arbitration apparatus, for example, in a round robin system, the number of devices that can be a bus master is set, and the arbitration system is determined according to the system configuration of the fixed set number. Therefore, when the number of devices to be actually connected is smaller than the set number, there is a problem that the bus is invalidated and the bus is invalidated by polling the devices not connected. On the other hand, in the case of a system configuration in which the number of devices that can become a bus master is larger than the set number, an arbitration method has to be constructed again. In addition, since each device needs to perform processing such as data transfer within a certain period of time, the number of connected devices is limited according to its maximum transfer capability. Furthermore, during the operation of the system, it is not possible to cope with a change in the number of devices that can become bus masters.
【0005】このため、システム構成の変化に柔軟性を
持たせたバス調停装置が提案されている。例えば、特開
平7−244635公報に開示されているバス調停装置
では、デバイス選択のための優先順位判定手段をあらか
じめ複数設けて、各優先順位判定手段ごとに処理を行
い、バス使用権要求信号分配手段及び制御手段によっ
て、いずれか1つ以上の優先順位判定手段を選択するこ
とによって調停を多重化させることにより、システム構
成の変化に柔軟性を持たせている。しかしながら、この
ようなバス調停装置による優先順位方式では、優先順位
を決定するための演算処理を同時に複数の優先順位判定
手段で行うため、選択されない優先順位判定手段の演算
処理が冗長で無駄である。さらに、回路規模が大きくな
るため、コストアップの原因にもなっていた。[0005] For this reason, a bus arbitration device has been proposed which has flexibility in changing the system configuration. For example, in the bus arbitration apparatus disclosed in Japanese Patent Laid-Open No. Hei 7-244635, a plurality of priority determining means for device selection are provided in advance, and processing is performed for each priority determining means. The arbitration is multiplexed by selecting one or more priority order determining means by means and control means, thereby providing flexibility in changing the system configuration. However, in such a priority method using the bus arbitration device, the arithmetic processing for determining the priority is performed by a plurality of priority determining means at the same time, so that the arithmetic processing of the non-selected priority determining means is redundant and wasteful. . Further, the circuit scale becomes large, which has caused an increase in cost.
【0006】本発明は上記に鑑みてなされたものであ
り、システム構成の変化に柔軟に対応できるとともに、
冗長な演算処理が発生することがなく、かつ回路規模の
小さいバス調停装置を提供することを目的とする。[0006] The present invention has been made in view of the above, and can flexibly cope with changes in the system configuration.
An object of the present invention is to provide a bus arbitration device that does not generate redundant arithmetic processing and has a small circuit size.
【0007】[0007]
【課題を解決するための手段】上記目的を達成するため
に、請求項1に係るバス調停装置あっては、1つのバス
に接続され、バスマスタになり得る複数のデバイスから
のバスリクエスト信号を調停するバス調停装置であっ
て、回路構成の情報である回路データを複数種類記憶す
る回路データ記憶手段と、設定される回路データに応じ
て、内部回路の接続状態を決定し、決定した回路によっ
て複数のデバイスからのバスリクエスト信号を調停し、
調停結果に応じてデバイスにバスグラント信号を出力す
る書き換え可能な調停回路手段と、少なくとも1つの種
類の回路データを回路データ記憶手段から選択して調停
回路手段に設定する回路データ設定手段と、を備えたも
のである。According to a first aspect of the present invention, there is provided a bus arbitration apparatus which arbitrates a bus request signal from a plurality of devices which are connected to a single bus and can be a bus master. A bus arbitration device that stores a plurality of types of circuit data as circuit configuration information, and determines a connection state of an internal circuit according to the set circuit data, and determines a plurality of connection states according to the determined circuit. Arbitrates bus request signals from other devices,
Rewritable arbitration circuit means for outputting a bus grant signal to the device according to the arbitration result; and circuit data setting means for selecting at least one type of circuit data from the circuit data storage means and setting the selected data in the arbitration circuit means. It is provided.
【0008】すなわち、請求項1に係るバス調停装置に
よれば、回路データが書き換え可能な調停回路手段に、
複数種類の回路データの中から選択された最適な回路デ
ータを設定して、内部回路の接続状態を決定し、その決
定した回路によって複数のデバイスからのバスリクエス
ト信号を調停する。That is, according to the bus arbitration apparatus of the first aspect, the arbitration circuit means in which circuit data can be rewritten,
Optimal circuit data selected from a plurality of types of circuit data is set, the connection state of the internal circuit is determined, and bus request signals from a plurality of devices are arbitrated by the determined circuit.
【0009】請求項2に係るバス調停装置にあっては、
請求項1において、回路データ設定手段は、バスマスタ
になり得るデバイスの1つのバスへの接続状況に応じ
て、回路データを選択する。[0009] In the bus arbitration device according to claim 2,
In claim 1, the circuit data setting means selects circuit data according to a connection status of a device that can be a bus master to one bus.
【0010】すなわち、請求項2に係るバス調停装置に
よれば、回路データを選択する際に、デバイスがバスに
接続されているか否かを検出して選択する。That is, according to the bus arbitration apparatus of the second aspect, when selecting circuit data, it detects whether or not a device is connected to the bus and selects it.
【0011】請求項3に係るバス調停装置にあっては、
請求項1または2において、バスマスタ情報に基づい
て、複数のデバイスから出力されるバスリクエスト信号
と調停回路手段の複数のバスリクエスト信号の入力ポー
トとを任意に対応させて接続し、調停回路手段の複数の
バスグラント信号の出力ポートと複数のデバイスに入力
されるバスグラント信号とを任意に対応させて接続する
信号接続手段を有するものである。In the bus arbitration device according to claim 3,
3. The arbitration circuit means according to claim 1, wherein a bus request signal output from a plurality of devices and an input port of the plurality of bus request signals of the arbitration circuit means are arbitrarily associated with each other and connected based on the bus master information. There is provided signal connection means for connecting the output ports of the plurality of bus grant signals and the bus grant signals input to the plurality of devices in any correspondence.
【0012】すなわち、請求項3に係るバス調停装置に
よれば、デバイスからのバスリクエスト信号及びデバイ
スへのバスグラント信号と、調停回路手段内で処理する
信号との対応関係を自在に可変する。That is, according to the bus arbitration apparatus of the third aspect, the correspondence between the bus request signal from the device and the bus grant signal to the device and the signal processed in the arbitration circuit means can be freely changed.
【0013】請求項4に係るバス調停装置あっては、請
求項3において、信号接続手段は、バスマスタ優先度情
報に基づいて、優先順位方式の接続を決定するものであ
る。According to a fourth aspect of the present invention, in the bus arbitration apparatus according to the third aspect, the signal connection means determines the connection of the priority system based on the bus master priority information.
【0014】すなわち、請求項4に係るバス調停装置に
よれば、バスマスタ優先度情報に基づいて、デバイスか
らのバスリクエスト信号及びデバイスへのバスグラント
信号と、調停回路手段内で処理する信号との対応関係を
自在に可変する。In other words, according to the bus arbitration device of the present invention, the bus arbitration device outputs a bus request signal from the device, a bus grant signal to the device, and a signal processed in the arbitration circuit based on the bus master priority information. Change the correspondence freely.
【0015】請求項5に係るバス調停装置あっては、請
求項1ないし4のいずれか1つにおいて、回路データ設
定手段は、任意の回路データによって決定された回路に
より調停されたこの装置が動作中においても、調停回路
手段の回路データを他の回路データに変更して設定する
ものである。According to a fifth aspect of the present invention, in the bus arbitration device according to any one of the first to fourth aspects, the circuit data setting means operates the device arbitrated by a circuit determined by arbitrary circuit data. Also, the circuit data of the arbitration circuit is changed to another circuit data and set.
【0016】すなわち、請求項5に係るバス調停装置に
よれば、システム動作中において、調停回路手段の回路
データを他の回路データに自在に変更する。That is, according to the bus arbitration device of the present invention, during system operation, the circuit data of the arbitration circuit is freely changed to other circuit data.
【0017】[0017]
【発明の実施の形態】以下、本発明のバス調停装置につ
いて、図面を参照して詳細に説明する。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, a bus arbitration device of the present invention will be described in detail with reference to the drawings.
【0018】図1は、実施の形態におけるバス調停装置
のシステム構成のブロック図である。調停回路101
は、回路データに応じて内部回路の接続状態を決定する
書き換え可能なプログラマブルデバイスで構成された調
停回路手段(本発明の調停回路手段に該当する)であ
る。この実施の形態におけるプログラマブルデバイス
は、SRAMベースのFPGA(Field Programmable G
ate Array )で構成されている。SRAMベースのFP
GAでは、回路データがFPGAのチップ内のSRAM
上に設定されるため、電源投入時、あるいはシステム動
作時であっても、他の回路データを設定することができ
る。FIG. 1 is a block diagram of the system configuration of the bus arbitration device according to the embodiment. Arbitration circuit 101
Is arbitration circuit means (corresponding to the arbitration circuit means of the present invention) constituted by a rewritable programmable device that determines a connection state of an internal circuit according to circuit data. The programmable device in this embodiment is an SRAM-based FPGA (Field Programmable G
ate Array). SRAM-based FP
In the GA, the circuit data is stored in the SRAM in the FPGA chip.
Since it is set above, other circuit data can be set even when the power is turned on or the system is operating.
【0019】回路データ記憶部102(本発明の回路デ
ータ記憶手段に該当する)は、調停回路101に設定さ
れる複数種類の回路データを記憶している。この回路デ
ータ記憶部102は、例えばROMで構成され、回路デ
ータごとの複数のROMでもよく、単一のROMの複数
のエリアの各々に回路データを記憶するようにしてもよ
い。回路データ設定部103(本発明の回路データ設定
手段に該当する)は、回路データ記憶部102に記憶さ
れている少なくとも1つの種類の回路データを選択して
読み出し、調停回路101に設定する。The circuit data storage section 102 (corresponding to the circuit data storage means of the present invention) stores a plurality of types of circuit data set in the arbitration circuit 101. The circuit data storage unit 102 may be composed of a ROM, for example, and may be a plurality of ROMs for each circuit data, or may store circuit data in each of a plurality of areas of a single ROM. The circuit data setting unit 103 (corresponding to a circuit data setting unit of the present invention) selects and reads at least one type of circuit data stored in the circuit data storage unit 102 and sets the circuit data in the arbitration circuit 101.
【0020】複数のデバイス104は、システムバス
(以下、「バス」という)に接続される。デバイスとし
ては、外部記憶装置のように、使用者によって接続状況
が変化するものも含まれる。各デバイス104は、バス
リクエスト信号を調停回路101に対して出力して、バ
スの使用権を要求する。バスコントローラ105は、各
デバイス104に対してバス調停以外の制御を行う。The plurality of devices 104 are connected to a system bus (hereinafter, referred to as “bus”). Devices include those whose connection status changes depending on the user, such as an external storage device. Each device 104 outputs a bus request signal to the arbitration circuit 101 to request a right to use the bus. The bus controller 105 performs control other than bus arbitration on each device 104.
【0021】信号接続部106(本発明の信号接続手段
に該当する)は、各デバイス104からのバスリクエス
ト信号を調停回路101内で処理可能なバスリクエスト
信号に変換し、調停回路101からのバスグラント信号
を各デバイス104で処理可能なバスグラント信号に変
換する。なお、この信号接続部106は、直接にはバス
調停システムには依存しないので、調停回路101から
は独立している。信号接続部106の接続についての説
明はさらに後述する。The signal connection unit 106 (corresponding to the signal connection means of the present invention) converts a bus request signal from each device 104 into a bus request signal that can be processed in the arbitration circuit 101, and converts the bus request signal from the arbitration circuit 101. The grant signal is converted into a bus grant signal that can be processed by each device 104. The signal connection unit 106 does not directly depend on the bus arbitration system, and thus is independent of the arbitration circuit 101. The description of the connection of the signal connection unit 106 will be further described later.
【0022】次に、以上のように構成されたバス調停装
置の動作について説明する。Next, the operation of the bus arbitration apparatus configured as described above will be described.
【0023】図1のシステムが起動すると、バスコント
ローラ105は、バスのデバイス接続状況を検出すると
ともに、各デバイス104がバスマスタになり得るか否
かを検出する。そして、検出結果の情報を回路データ設
定部103に通知する。回路データ設定部103は、バ
スコントローラ105からの情報に応じて、回路データ
記憶部102に記憶されている回路データの中から、最
適な回路データを選択して読み出し、調停回路101の
SRAMに設定して、バス使用の初期化を終了する。When the system shown in FIG. 1 is started, the bus controller 105 detects the device connection status of the bus and detects whether or not each device 104 can become a bus master. Then, the information of the detection result is notified to the circuit data setting unit 103. The circuit data setting unit 103 selects and reads out optimal circuit data from the circuit data stored in the circuit data storage unit 102 in accordance with information from the bus controller 105, and sets the selected circuit data in the SRAM of the arbitration circuit 101. Then, the initialization of the bus use ends.
【0024】この後、デバイス104はバスリクエスト
信号を調停回路101に対して出力し、調停回路101
はバスリクエスト信号が複数のデバイス104から出力
されている場合には調停を行い、バス使用を許可するデ
バイス104に対してバスグラント信号を出力する。バ
スグラント信号を受けたデバイス104は、バスビジー
信号をアクティブにしてバスを使用する。そして、バス
の使用終了後はバスビジー信号をノンアクティブにし
て、バスの使用終了を調停回路101及びバスコントロ
ーラ105に通知する。そして、調停回路101は次の
バス調停に入る。Thereafter, the device 104 outputs a bus request signal to the arbitration circuit 101, and the arbitration circuit 101
Performs arbitration when a bus request signal is output from a plurality of devices 104, and outputs a bus grant signal to the device 104 that permits use of the bus. The device 104 that has received the bus grant signal activates the bus busy signal to use the bus. After the use of the bus is completed, the bus busy signal is made inactive, and the completion of the use of the bus is notified to the arbitration circuit 101 and the bus controller 105. Then, the arbitration circuit 101 enters the next bus arbitration.
【0025】次に、異なるシステム構成ごとに最適なバ
ス調停方式の例を説明する。例えば、バスマスタになり
得るデバイス数が6個の場合におけるラウンドロビン方
式の場合には、回路データ設定部103は、6個のデバ
イス104に対して公平にバス使用権を与えるような回
路構成となる回路データを選択して、回路データ記憶部
102からその回路データを読み出して、調停回路10
1のSRAMに設定する。すると、調停回路101は、
図2に示す状態遷移図のように、デバイス#1〜#6に
対してステートを遷移させていき、各デバイス104か
ら出力されるバスリクエスト信号がアクティブか否かを
順次循環的にポーリングして検出する。そして、アクテ
ィブなバスリクエスト信号を出力したデバイス104ご
とに一定時間のバス使用権を与えるように、バスグラン
ト信号を出力する。この後、そのデバイス104による
バス使用が終了するまで、ステートの遷移を停止する。Next, an example of an optimal bus arbitration method for different system configurations will be described. For example, in the case of the round robin method in which the number of devices that can become bus masters is six, the circuit data setting unit 103 has a circuit configuration that fairly grants the right to use the bus to the six devices 104. The arbitration circuit 10 selects circuit data and reads the circuit data from the circuit data storage unit 102.
1 SRAM. Then, the arbitration circuit 101
As shown in the state transition diagram of FIG. 2, the state is changed for the devices # 1 to # 6, and the bus request signal output from each device 104 is sequentially and cyclically polled to determine whether or not it is active. To detect. Then, a bus grant signal is output so as to give the right to use the bus for a predetermined time to each device 104 that has output the active bus request signal. Thereafter, the state transition is stopped until the bus use by the device 104 ends.
【0026】バスマスタになり得るデバイス数が2個の
場合におけるラウンドロビン方式の場合には、回路デー
タ設定部103は、2個のデバイス104に対して公平
にバス使用権を与えるような回路構成となる回路データ
を選択して、回路データ記憶部102からその回路デー
タを読み出して、調停回路101のSRAMに設定す
る。すると、調停回路101は、図3に示す状態遷移図
のように、2個のデバイス#1及び#2に交互にステー
トを遷移させ、各デバイス104から出力されるバスリ
クエスト信号がアクティブか否かを交互にポーリングし
て検出する。そして、アクティブなバスリクエスト信号
を出力したデバイス104ごとに一定時間のバス使用権
を与えるように、バスグラント信号を出力する。この
後、一方のデバイス104によるバス使用が終了するま
で、ステートの遷移を停止する。In the case of the round robin method in which the number of devices that can be a bus master is two, the circuit data setting unit 103 has a circuit configuration that imparts the right to use the bus fairly to the two devices 104. Is selected, the circuit data is read from the circuit data storage unit 102, and is set in the SRAM of the arbitration circuit 101. Then, the arbitration circuit 101 alternately transitions the state between the two devices # 1 and # 2 as shown in the state transition diagram in FIG. 3, and determines whether the bus request signal output from each device 104 is active. Are alternately polled and detected. Then, a bus grant signal is output so as to give the right to use the bus for a predetermined time to each device 104 that has output the active bus request signal. Thereafter, the state transition is stopped until the bus use by one device 104 ends.
【0027】次に、ラウンドロビン方式において、各デ
バイス104に対して公平にバス使用権を与えるのでは
なく、特定のデバイス104の優先度を高くする優先順
位方式の例について説明する。バスマスタになり得るデ
バイス数がデバイス#1〜#6の6個の場合において、
1つのデバイス#1に対する優先度を高くする場合に
は、そのバス調停に応じた回路データを回路データ記憶
部102から読み出して、調停回路101のSRAMに
設定する。すると、図4に示す状態遷移図のように、デ
バイス#1に対するポーリングのステートを増やすこと
により、デバイス#1からのバスリクエスト信号を検出
する頻度が高くなり優先度が向上する。Next, a description will be given of an example of a priority system in which the priority of a specific device 104 is increased rather than imparting a bus use right fairly to each device 104 in the round robin system. In the case where the number of devices that can become bus masters is device # 1 to device # 6,
To increase the priority for one device # 1, circuit data corresponding to the bus arbitration is read from the circuit data storage unit 102 and set in the SRAM of the arbitration circuit 101. Then, as shown in the state transition diagram of FIG. 4, by increasing the number of polling states for the device # 1, the frequency of detecting the bus request signal from the device # 1 increases, and the priority improves.
【0028】このように、調停回路101を、回路デー
タに応じて内部回路の接続状態を決定する書き換え可能
なプログラマブルデバイスで構成することにより、バス
マスタになり得るデバイス数にかかわらず、システム構
成の変化に柔軟に対応できる。また、1つの調停回路1
01を複数の回路構成に設定して、システム構成に必要
な演算処理のみを行うため、冗長な演算処理が発生する
ことがなく、かつ回路規模の小さいバス調停装置を実現
できる。As described above, by configuring the arbitration circuit 101 with a rewritable programmable device that determines the connection state of the internal circuit according to the circuit data, the system configuration changes regardless of the number of devices that can become the bus master. Can respond flexibly. Also, one arbitration circuit 1
Since 01 is set in a plurality of circuit configurations and only the arithmetic processing required for the system configuration is performed, a bus arbitration device with a small circuit size without redundant arithmetic processing can be realized.
【0029】次に、優先順位方式における信号接続部1
06の動作について、図5を参照して説明する。Next, the signal connection unit 1 in the priority order system
The operation of 06 will be described with reference to FIG.
【0030】この実施の形態におけるシステムでは、一
般のシステムと同様に、8個のデバイスをバスに接続す
ることができる。いま、8個のデバイス#1〜#8のう
ち、デバイス#3、#5及び#8がバスマスタになり得
るデバイスとする。8ビットのバスマスタ情報は、バス
コントローラ105から回路データ設定部103及び信
号接続部106に通知される。また、バスマスタ優先度
情報が回路データ設定部103及び信号接続部106に
通知される。この場合、デバイス#5、デバイス#3、
デバイス#8の順で優先順位が設定されているものとす
る。なお、調停回路101側ではあらかじめ、使用する
バスリクエスト信号及びバスグラント信号は下位番号か
ら必要な分だけ順に割り当てるようになっている。した
がって優先順位方式の場合には、下位番号ほど優先度が
高い。In the system according to this embodiment, eight devices can be connected to the bus as in a general system. Now, among the eight devices # 1 to # 8, devices # 3, # 5, and # 8 are devices that can be bus masters. The 8-bit bus master information is notified from the bus controller 105 to the circuit data setting unit 103 and the signal connection unit 106. Further, the bus master priority information is notified to the circuit data setting unit 103 and the signal connection unit 106. In this case, device # 5, device # 3,
It is assumed that the priorities are set in the order of device # 8. In the arbitration circuit 101, bus request signals and bus grant signals to be used are allocated in advance in ascending order from the lower number. Therefore, in the case of the priority system, the lower the number, the higher the priority.
【0031】回路データ設定部103は、これらバスマ
スタ情報及びバスマスタ優先度情報に応じて、回路デー
タ記憶部102の中の最適な回路データを選択して読み
出し、調停回路101のSRAMに設定する。一方、信
号接続部106は、バスマスタ情報に応じてバスマスタ
になり得るデバイス数、すなわちこの場合は3個を得
て、調停回路101側に接続されるバスリクエスト信号
の3個分を、バスマスタになり得るデバイス#3、#
5、#8のバスリクエスト信号と接続させる。この場合
には、図5に示すように、調停回路101の下位番号の
バスリクエスト信号であるBR1a、BR2a、BR3
aを、バスマスタ優先度情報(この場合は3ビット)に
基づいて、デバイス#5、#3、#8のバスリクエスト
信号であるBR5、BR3、BR8と接続させる。同様
に、調停回路101の下位番号のバスグラント信号を、
バスマスタ優先度情報に基づいて、デバイス#5、#
3、#8のバスグラント信号であるBG5、BG3、B
G8と接続させる。The circuit data setting section 103 selects and reads the optimum circuit data from the circuit data storage section 102 in accordance with the bus master information and the bus master priority information, and sets the selected circuit data in the SRAM of the arbitration circuit 101. On the other hand, the signal connection unit 106 obtains the number of devices that can become the bus master according to the bus master information, that is, three devices in this case, and transfers three bus request signals connected to the arbitration circuit 101 to the bus master. Get device # 3, #
5. Connect to # 8 bus request signal. In this case, as shown in FIG. 5, the bus request signals BR1a, BR2a, BR3 of lower numbers of the arbitration circuit 101.
a is connected to the bus request signals BR5, BR3 and BR8 of the devices # 5, # 3 and # 8 based on the bus master priority information (3 bits in this case). Similarly, the lower number bus grant signal of the arbitration circuit 101 is
Based on the bus master priority information, devices # 5, # 5
3, # 8 bus grant signals BG5, BG3, B
Connect to G8.
【0032】この場合の状態遷移図の例を図6に示す。
すなわち、優先度が最も高いデバイス#5のポーリング
のステートが最も多く、次に2番目に優先度が高いデバ
イス#3のポーリングのステートがその次に多くなって
いる。FIG. 6 shows an example of a state transition diagram in this case.
That is, the polling state of the device # 5 having the highest priority is the highest, and the polling state of the device # 3 having the second highest priority is the next highest.
【0033】このように、信号接続部106は、バスマ
スタ情報に基づいて、バスマスタになり得る複数のデバ
イス104から出力されるバスリクエスト信号と、調停
回路101の複数のバスリクエスト信号の入力ポートと
を任意に対応させて接続し、調停回路101の複数のバ
スグラント信号の出力ポートと、これら複数のデバイス
104に入力されるバスグラント信号とを任意に対応さ
せて接続する。したがって、デバイスの接続位置に柔軟
性を持たせることができる。As described above, based on the bus master information, the signal connection unit 106 connects the bus request signals output from the plurality of devices 104 that can become bus masters and the input ports of the plurality of bus request signals of the arbitration circuit 101 to each other. The plurality of bus grant signal output ports of the arbitration circuit 101 are arbitrarily connected to the plurality of bus grant signals input to the plurality of devices 104. Therefore, flexibility can be given to the connection position of the device.
【0034】さらに、信号接続部106は、バスマスタ
優先度情報に基づいて、優先順位方式の接続を決定す
る。したがって、信号接続部106を用いて優先順位方
式のバス調停をすることができる。Further, the signal connection unit 106 determines the connection of the priority system based on the bus master priority information. Therefore, the bus arbitration of the priority system can be performed using the signal connection unit 106.
【0035】上記したように、SRAMベースのFPG
Aでは、回路データがFPGAのチップ内のSRAM上
に設定されるため、電源投入時、あるいはシステム動作
時であっても、他の回路データを設定することができ
る。このため、回路データ設定部103は、任意の回路
データによって決定された回路により調停されたこの装
置が動作中(すなわちシステム動作中)においても、他
の回路データに変更して設定できる。例えば、システム
動作中、バスに接続されたデバイスの1つを電源オフに
した場合、あるいは不具合が生じた場合等には、バスコ
ントローラ105がこのデバイスをバス不使用として、
回路データ設定部103に対して調停回路101に新た
に回路データを設定するように指令する。また同時に信
号接続部106にバスマスタ情報を出力してその接続を
変更させる。したがって、システム起動前のシステム構
成のみでなく、システム起動後のシステム構成の変更に
も柔軟に対応し、最適なバス調停をすることができる。As described above, the SRAM-based FPG
In A, since the circuit data is set on the SRAM in the FPGA chip, other circuit data can be set even when the power is turned on or the system is operating. For this reason, the circuit data setting unit 103 can change and set another circuit data even when the device arbitrated by the circuit determined by the arbitrary circuit data is operating (that is, during system operation). For example, during system operation, when one of the devices connected to the bus is turned off, or when a malfunction occurs, the bus controller 105 sets this device to the bus non-use, and
The circuit data setting unit 103 is instructed to set new circuit data to the arbitration circuit 101. At the same time, it outputs bus master information to the signal connection unit 106 to change the connection. Therefore, it is possible to flexibly cope with not only the system configuration before the system startup but also the change of the system configuration after the system startup, and to perform optimal bus arbitration.
【0036】[0036]
【発明の効果】本発明に係るバス調停装置(請求項1)
によれば、回路データが書き換え可能な調停回路手段
に、複数種類の回路データの中から選択された最適な回
路データを設定して、内部回路の接続状態を決定し、そ
の決定した回路によって複数のデバイスからのバスリク
エスト信号を調停する。したがって、バスマスタになり
得るデバイス数にかかわらず、システム構成の変化に柔
軟に対応できる。また、1つの調停回路手段を複数の回
路構成に設定して、システム構成に必要な演算処理のみ
を行うため、冗長な演算処理が発生することがなく、か
つ回路規模の小さいバス調停装置を実現できる。The bus arbitration apparatus according to the present invention (Claim 1)
According to the method, the optimal circuit data selected from a plurality of types of circuit data is set in the arbitration circuit means in which the circuit data can be rewritten, the connection state of the internal circuit is determined, and a plurality of Arbitrates the bus request signal from the device. Therefore, regardless of the number of devices that can become bus masters, it is possible to flexibly cope with changes in the system configuration. In addition, since one arbitration circuit is set to a plurality of circuit configurations and performs only the arithmetic processing necessary for the system configuration, a redundant arithmetic processing does not occur and a small-scale bus arbitration device is realized. it can.
【0037】また、本発明に係るバス調停装置(請求項
2)によれば、請求項1において、回路データを選択す
る際に、デバイスがバスに接続されているか否かを検出
して選択する。したがって、システム構成に応じて最適
な動作を行うことができる。Further, according to the bus arbitration apparatus according to the present invention, in selecting the circuit data in the first aspect, it is detected whether or not the device is connected to the bus. . Therefore, an optimal operation can be performed according to the system configuration.
【0038】また、本発明に係るバス調停装置(請求項
3)によれば、請求項1または2において、デバイスか
らのバスリクエスト信号及びデバイスへのバスグラント
信号と、調停回路手段内で処理する信号との対応関係を
自在に可変する。したがって、デバイスの接続位置に柔
軟性を持たせることができる。According to the bus arbitration apparatus of the present invention (claim 3), in claim 1 or 2, the bus request signal from the device and the bus grant signal to the device are processed in the arbitration circuit means. Freely change the correspondence with the signal. Therefore, flexibility can be given to the connection position of the device.
【0039】また、本発明に係るバス調停装置(請求項
4)によれば、請求項3において、バスマスタ優先度情
報に基づいて、デバイスからのバスリクエスト信号及び
デバイスへのバスグラント信号と、調停回路手段内で処
理する信号との対応関係を自在に可変する。したがっ
て、バス調停に優先度を与えることができる。According to the bus arbitration apparatus of the present invention, a bus request signal from a device and a bus grant signal to the device are arbitrated based on the bus master priority information. The correspondence with the signal to be processed in the circuit means is freely changed. Therefore, priority can be given to the bus arbitration.
【0040】また、本発明に係るバス調停装置(請求項
5)によれば、システム動作中において、調停回路手段
の回路データを他の回路データに自在に変更する。した
がって、システム起動前のシステム構成のみでなく、シ
ステム起動後のシステム構成の変更にも柔軟に対応し、
最適なバス調停をすることができる。According to the bus arbitration device of the present invention, the circuit data of the arbitration circuit can be freely changed to other circuit data during the operation of the system. Therefore, it is possible to flexibly respond not only to the system configuration before system startup but also to the change of system configuration after system startup,
Optimal bus arbitration can be performed.
【図1】本発明の実施の形態におけるバス調停装置のシ
ステムを示すブロック図である。FIG. 1 is a block diagram illustrating a system of a bus arbitration device according to an embodiment of the present invention.
【図2】実施の形態において6個のデバイスのラウンド
ロビン方式の状態遷移図である。FIG. 2 is a state transition diagram of a round robin system of six devices in the embodiment.
【図3】実施の形態において2個のデバイスのラウンド
ロビン方式の状態遷移図である。FIG. 3 is a state transition diagram of a round robin system of two devices in the embodiment.
【図4】実施の形態において6個のデバイスの優先順位
方式の状態遷移図である。FIG. 4 is a state transition diagram of a priority system of six devices in the embodiment.
【図5】図1における信号接続部の接続状態を示す説明
図である。FIG. 5 is an explanatory diagram showing a connection state of a signal connection unit in FIG. 1;
【図6】図5に対応する3個のデバイスの優先順位方式
の状態遷移図である。FIG. 6 is a state transition diagram of a priority order method of three devices corresponding to FIG. 5;
101 調停回路 102 回路データ記憶部 103 回路データ設定部 104 デバイス 105 バスコントローラ 106 信号接続部 Reference Signs List 101 Arbitration circuit 102 Circuit data storage unit 103 Circuit data setting unit 104 Device 105 Bus controller 106 Signal connection unit
Claims (5)
り得る複数のデバイスからのバスリクエスト信号を調停
するバス調停装置であって、 回路構成の情報である回路データを複数種類記憶する回
路データ記憶手段と、 設定される回路データに応じて、内部回路の接続状態を
決定し、該決定した回路によって前記複数のデバイスか
らのバスリクエスト信号を調停し、該調停結果に応じて
前記デバイスにバスグラント信号を出力する書き換え可
能な調停回路手段と、 少なくとも1つの種類の回路データを前記回路データ記
憶手段から選択して前記調停回路手段に設定する回路デ
ータ設定手段と、 を備えたことを特徴とするバス調停装置。1. A bus arbitration device that is connected to one bus and arbitrates bus request signals from a plurality of devices that can be a bus master, and that stores a plurality of types of circuit data as circuit configuration information. Means for determining a connection state of an internal circuit according to the set circuit data, arbitrating bus request signals from the plurality of devices by the determined circuit, and granting a bus grant to the device according to the arbitration result. Rewritable arbitration circuit means for outputting a signal; and circuit data setting means for selecting at least one type of circuit data from the circuit data storage means and setting the selected arbitration circuit means in the arbitration circuit means. Bus arbitration device.
になり得るデバイスの前記1つのバスへの接続状況に応
じて、回路データを選択することを特徴とする請求項1
に記載のバス調停装置。2. The circuit data setting means according to claim 1, wherein said circuit data setting means selects circuit data in accordance with a connection status of a device which can be a bus master to said one bus.
The bus arbitration device according to item 1.
デバイスから出力されるバスリクエスト信号と前記調停
回路手段の複数のバスリクエスト信号の入力ポートとを
任意に対応させて接続し、前記調停回路手段の複数のバ
スグラント信号の出力ポートと前記複数のデバイスに入
力されるバスグラント信号とを任意に対応させて接続す
る信号接続手段を有することを特徴とする請求項1また
は2に記載のバス調停装置。3. An arbitration circuit means for arbitrarily connecting a plurality of bus request signal input ports of the arbitration circuit means with bus request signals output from the plurality of devices, based on bus master information. 3. A bus arbiter according to claim 1, further comprising signal connection means for arbitrarily connecting the output ports of the plurality of bus grant signals and the bus grant signals input to the plurality of devices. apparatus.
情報に基づいて、優先順位方式の接続を決定することを
特徴とする請求項3に記載のバス調停装置。4. The bus arbitrating device according to claim 3, wherein said signal connection means determines connection of a priority system based on bus master priority information.
データによって決定された回路により調停された当該装
置が動作中においても、前記調停回路手段の回路データ
を他の回路データに変更して設定することを特徴とする
請求項1ないし4のいずれか1つに記載のバス調停装
置。5. The circuit data setting means changes and sets circuit data of the arbitration circuit means to other circuit data even during operation of the device arbitrated by a circuit determined by arbitrary circuit data. The bus arbitration device according to any one of claims 1 to 4, wherein
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP27942397A JPH11110344A (en) | 1997-09-29 | 1997-09-29 | Bus arbitration equipment |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP27942397A JPH11110344A (en) | 1997-09-29 | 1997-09-29 | Bus arbitration equipment |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH11110344A true JPH11110344A (en) | 1999-04-23 |
Family
ID=17610882
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP27942397A Pending JPH11110344A (en) | 1997-09-29 | 1997-09-29 | Bus arbitration equipment |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH11110344A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2009010959A (en) * | 2001-02-16 | 2009-01-15 | Qualcomm Inc | Direct conversion receiver architecture |
-
1997
- 1997-09-29 JP JP27942397A patent/JPH11110344A/en active Pending
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2009010959A (en) * | 2001-02-16 | 2009-01-15 | Qualcomm Inc | Direct conversion receiver architecture |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US7113488B2 (en) | Reconfigurable circular bus | |
| JP2558393B2 (en) | Multi-cluster signal processor | |
| JPH02219156A (en) | Access priority determining apparatus and bus arbiter | |
| GB1593404A (en) | Logic circuitry for use in a computer | |
| US6628662B1 (en) | Method and system for multilevel arbitration in a non-blocking crossbar switch | |
| JP2016189096A (en) | Semiconductor device | |
| US5349690A (en) | Fair arbitration scheme for arbitrating between multiple nodes in a computer system seeking control of a common bus | |
| CN1139241A (en) | Distributed arbiter | |
| US7581049B2 (en) | Bus controller | |
| US20070067527A1 (en) | Data transfer bus system connecting a plurality of bus masters | |
| JPH11110344A (en) | Bus arbitration equipment | |
| US20060041705A1 (en) | System and method for arbitration between shared peripheral core devices in system on chip architectures | |
| US5504911A (en) | Bus system servicing plural module requestors with module access identification | |
| JPH0689257A (en) | Arbitration device of bus bridge | |
| JP2001167049A (en) | Bus arbitration device | |
| JP2004213666A (en) | Dma module and its operating method | |
| JP3388344B2 (en) | Interconnection network, interconnection network self-diagnosis system, and interconnection network self-diagnosis method | |
| JPH09319699A (en) | Bus system | |
| JP2503069B2 (en) | Bus usage right acquisition method | |
| US7099973B2 (en) | Method and system of bus master arbitration | |
| JP2002366511A (en) | Bus arbitration circuit | |
| JPH0216666A (en) | Fair arbitration design | |
| JPH02278362A (en) | Data transfer control system | |
| JP2000010934A (en) | Bus arbitration system for multi-CPU system | |
| KR20030039185A (en) | Direct memory access controller |