JP2000148668A - Bus arbitration system - Google Patents

Bus arbitration system

Info

Publication number
JP2000148668A
JP2000148668A JP10321125A JP32112598A JP2000148668A JP 2000148668 A JP2000148668 A JP 2000148668A JP 10321125 A JP10321125 A JP 10321125A JP 32112598 A JP32112598 A JP 32112598A JP 2000148668 A JP2000148668 A JP 2000148668A
Authority
JP
Japan
Prior art keywords
bus
master
bus master
arbitration
time
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
JP10321125A
Other languages
Japanese (ja)
Inventor
Kiyoshi Ikeura
潔 池浦
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.)
Niigata Fuji Xerox Manufacturing Co Ltd
Original Assignee
Niigata Fuji Xerox Manufacturing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Niigata Fuji Xerox Manufacturing Co Ltd filed Critical Niigata Fuji Xerox Manufacturing Co Ltd
Priority to JP10321125A priority Critical patent/JP2000148668A/en
Publication of JP2000148668A publication Critical patent/JP2000148668A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)
  • Multi Processors (AREA)
  • Bus Control (AREA)

Abstract

PROBLEM TO BE SOLVED: To enable bus arbitration, wherein the standby permissible time of each bus master is not exceeded by comparing 'occupation expected times when the bus use right is obtained' by bus masters with 'standby permissible times, when the bus use right cannot be obtained' and giving the bus use right to only a bus master which does not exceed the standby permissible times of other bus masters. SOLUTION: An arbitration part 60 arbitrates common bus requests from bus masters 10, 20, and 30 and allows a proper bus master to use a common bus according to the situation. Timers 11, 21, and 31 measure the standby permissible times of the respective bus masters. Then the 'occupancy expected times when the bus use right is obtained' by the bus maters 10, 20, and 30 are compared with the 'standby permissible times when the bus use right cannot be obtained' to carry out bus arbitration, so that a data transfer interrupt request to a bus master once given the bus use right is not generated and the standby permissible times of other bus masters are not exceeded.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、共有バスに接続さ
れる複数のバスマスタが存在する場合に、各バスマスタ
が当該バスを使用する際に行われるバス使用権の調停に
関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to arbitration of the right to use a bus when a plurality of bus masters are connected to a shared bus when each bus master uses the bus.

【0002】[0002]

【従来の技術】従来のバス調停では、予め優先順位を決
定しておき、各バスマスタからのバス要求が同時に発生
した場合に、その優先順位に従ってバス使用者を決定す
るというものが一般的である。この優先順位が固定的で
ある場合は低い順位のバスマスタが永久にバス使用権を
取得できない場合が起こりうる。あるいはいずれかのバ
スマスタがバス使用権を取得する度に当該バスマスタの
優先順位を最下位に下げるなど、バス権取得の機会を平
等にする手法があるが、実際には各バスマスタのバス要
求の頻度や、バス権を得た場合のバス占有期間、待ち時
間の限界が異なったバスマスタが接続されている場合が
多いので、システム全体にとってはバス権取得の機会を
均等化することが最も効率的であるとは一概に言えな
い。むしろ、それらバスマスタ毎の事情に応じた調停こ
そが効率的である。
2. Description of the Related Art In conventional bus arbitration, priorities are determined in advance, and when a bus request from each bus master occurs simultaneously, a bus user is determined according to the priority. . If the priority is fixed, there may be a case where a lower-ranking bus master cannot permanently acquire the right to use the bus. Alternatively, there is a method of equalizing the opportunity to acquire the bus right, such as lowering the priority of the bus master to the lowest order every time any bus master acquires the bus use right. In many cases, bus masters with different bus occupation periods and waiting time limits when bus rights are acquired are connected, so it is most efficient for the entire system to equalize the bus right acquisition opportunities. I can't say that there is. Rather, arbitration in accordance with the circumstances of each bus master is efficient.

【0003】それを解決する手段として、特開平9−2
31165号公報「バス調停制御システム」は、バス要
求の際にバスサイクルの転送データのサイズや占有時間
データを付加情報として加えるようにし、該付加情報に
基づいて該バスマスタにバス権が与えられた場合のバス
占有期間を推測し、その占有期間が短いバスマスタから
優先的にバス権を与えることで、システム全体の総待機
時間を短縮することを提案している。
As means for solving the problem, Japanese Patent Laid-Open No. 9-2
Japanese Patent Application Publication No. 31165 discloses a bus arbitration control system in which the size of transfer data of a bus cycle and occupation time data are added as additional information at the time of a bus request, and a bus right is given to the bus master based on the additional information. It is proposed to estimate the bus occupation period in such a case, and to give the bus right preferentially from a bus master having a short occupation period, thereby reducing the total standby time of the entire system.

【0004】一方で、特開平9−91247号公報で
は、バス調停部内に各バスマスタ毎の「待機許容時間」
を計測するタイマを備え、残許容時間が少ないバスマス
タを優先して調停を行ったり、場合によっては、その時
点でバス権を保持しているバスマスタに、バス権を放棄
する様に要求したりすることを提案している。
On the other hand, in Japanese Patent Application Laid-Open No. 9-91247, the "standby time" for each bus master is set in the bus arbitration unit.
Arbitration is performed by giving priority to the bus master with a short remaining allowable time, or in some cases, requesting the bus master holding the bus right at that time to give up the bus right. Propose that.

【0005】[0005]

【発明が解決しようとする課題】特開平9−23116
5号公報の案は、システム全体の効率を優先するあまり
に、バス使用を要求した個々のバスマスタの逼迫度を考
慮していない。特開平9−91247号公報の案は、バ
スマスタの逼迫度を優先するあまり、システム全体の効
率を考慮していない。また、リアルタイム処理を行うバ
スマスタの救済の為、ある時点でバスを使用しているバ
スマスタに対してバス権の放棄を要求しているが、放棄
するかどうかの判断は当該バスマスタ次第であり、必ず
放棄してくれるという保証は無い。当該バスマスタが、
データ転送の中断を要求されても対応不能な仕様である
ことも考えられ、それらの場合は待機許容時間を超過し
てしまい、リアルタイム処理が損なわれる。
Problems to be Solved by the Invention
In the proposal of JP-A-5, too much priority is given to the efficiency of the entire system, and it does not take into account the tightness of each bus master who has requested the use of the bus. The proposal in Japanese Patent Application Laid-Open No. 9-91247 gives too much priority to the tightness of the bus master and does not consider the efficiency of the entire system. Also, in order to rescue the bus master performing the real-time processing, the bus master using the bus is requested to relinquish the bus right at a certain point in time, but it is up to the bus master to determine whether to relinquish the bus right. There is no guarantee that they will give up. The bus master is
It is also conceivable that the specification may not be able to cope with the request for interruption of the data transfer. In such cases, the allowable standby time is exceeded and the real-time processing is impaired.

【0006】[0006]

【課題を解決するための手段】本発明は、以上の様な従
来技術の問題点を解決するものである。特開平9−23
1165号公報のように各バスマスタのデータ転送に関
する情報を基にバス権を調停し、システム全体の効率を
最適化するとともに、特開平9−91247号公報のよ
うに待機許容時間を計時するタイマを備え、更に各バス
マスタごとの「バス使用権を得た場合の占有予定時間」
と、「バス使用権を得られなかった場合の待機許容時
間」を比較し、一旦バス使用権を与えたバスマスタに対
するデータ転送中断要求を発生させることなく他のバス
マスタの待機許容時間を超過させないように考慮したバ
ス調停を行う仕組みを持つことで、リアルタイム処理を
滞らせずに確実で効率的なバス調停を行う。請求項1に
記載の発明は、共有バスと、当該バスを占有してデータ
転送を行う複数のバスマスタと、前記バスマスタからの
バス要求信号を調停してバス権が付与されるバスマスタ
を排他的に選択するバス調停部と、からなるバス調停シ
ステムにおいて、上記各バスマスタはデータ転送に関す
る諸情報をバス調停部に登録しておく手段を備え、上記
複数のバスマスタからのバス要求が重複した場合、バス
調停部は登録された諸情報に基づいてシステム全体の効
率を算出してバス使用者を選定する手段を備え、上記バ
ス調停手段は、リアルタイム処理を行う必要性の高いバ
スマスタからのバス要求が、他のバスマスタからのバス
要求と競合した際に、リアルタイム処理を必要とするバ
スマスタの「待機可能な最長時間」と、当該バスマスタ
以外のバスマスタの登録情報から算出した「共有バスを
占有する予定時間」を比較し、その結果リアルタイム処
理が必要なバスマスタがペンディングとなり、リアルタ
イム処理が損なわれると判断した場合、リアルタイム処
理が必要なバスマスタに対して共有バス使用権を優先的
に与える手段を備えることを特徴としている。請求項2
に記載の発明は、共有バスと、当該バスを占有してデー
タ転送を行う複数のバスマスタと、前記バスマスタから
のバス要求信号を調停してバス権が付与されるバスマス
タを排他的に選択するバス調停部と、からなるバス調停
システムにおいて、上記の各バスマスタは自身のデータ
転送に関する諸情報をバス調停部に伝える手段を備え、
複数のバスマスタからのバス要求が重複した場合、バス
調停部は各バスマスタからのバス要求と共に伝えられた
データ転送の諸情報に基づいてシステム全体の効率を算
出してバス使用者を選定する手段を備え、上記バス調停
手段は、リアルタイム処理を行う必要性の高いバスマス
タからのバス要求が、他のバスマスタからのバス要求と
競合した際に、リアルタイム処理を必要とするバスマス
タの「待機可能な最長時間」と、当該バスマスタ以外の
バスマスタがバス要求と共に伝えた情報から算出した
「共有バスを占有する予定時間」を比較し、その結果リ
アルタイム処理が必要なバスマスタがペンディングとな
り、リアルタイム処理が損なわれると判断した場合、リ
アルタイム処理が必要なバスマスタに対して共有バス使
用権を優先的に与える手段を備える、ことを特徴として
いる。請求項3に記載の発明は、共有バスと、当該バス
を占有してデータ転送を行う複数のバスマスタと、前記
バスマスタからのバス要求信号を調停してバス権を与え
るバスマスタを排他的に選択するバス調停部からなるバ
ス調停システムにおいて、上記の各バスマスタは、自身
のデータ転送に関する諸情報のうち変化しない情報をバ
ス調停部に伝え、バス調停部に登録しておく手段を備
え、上記の各バスマスタは、バス要求ごとに変化する情
報のみをバス調停部に伝える手段を備え、複数のバスマ
スタからのバス要求が重複した場合、上記バス調停手段
は、バス調停部に登録された諸情報とバス要求と共に伝
えられたデータ転送の諸情報とから「共有バスを占有す
る予定時間」を算出し、リアルタイム処理を必要とする
バスマスタの「待機可能な最長時間」と比較し、調停を
行う手段を備えることを特徴としている。
SUMMARY OF THE INVENTION The present invention solves the above-mentioned problems of the prior art. JP-A-9-23
A bus right is arbitrated based on information on data transfer of each bus master as in Japanese Patent Application Laid-Open No. 1165, to optimize the efficiency of the entire system, and a timer for measuring an allowable standby time as in Japanese Patent Application Laid-Open No. 9-91247. Prepared and furthermore, "Scheduled occupation time when bus use right is obtained" for each bus master
Is compared with the "allowable time when the bus use right is not obtained" so as not to exceed the wait allowable time of other bus masters without generating a data transfer interrupt request to the bus master once granted the bus use right. By having a mechanism for performing bus arbitration taking into account the above, reliable and efficient bus arbitration is performed without delaying real-time processing. According to the first aspect of the present invention, a shared bus, a plurality of bus masters that occupy the bus and perform data transfer, and a bus master to which a bus right is granted by arbitrating a bus request signal from the bus master are exclusively used. A bus arbitration unit to select, in the bus arbitration system, the bus master includes a unit for registering various information on data transfer in the bus arbitration unit, and when a bus request from the plurality of bus masters overlaps, The arbitration unit includes means for calculating the efficiency of the entire system based on the registered information and selecting a bus user.The bus arbitration means receives a bus request from a bus master having a high need to perform real-time processing, When competing with a bus request from another bus master, the "maximum standby time" of the bus master requiring real-time processing is Compare the "scheduled time to occupy the shared bus" calculated from the registered information of the master, and if it is determined that the bus master requiring real-time processing is pending and the real-time processing is impaired, Means for giving the right to use the shared bus preferentially. Claim 2
According to the invention described in the above, a shared bus, a plurality of bus masters that occupy the bus and perform data transfer, and a bus that arbitrates a bus request signal from the bus master and exclusively selects a bus master to which a bus right is granted In the bus arbitration system, comprising: an arbitration unit, each of the bus masters described above includes means for transmitting various information related to its own data transfer to the bus arbitration unit,
When bus requests from a plurality of bus masters overlap, the bus arbitration unit calculates the efficiency of the entire system based on various information of data transfer transmitted together with the bus requests from each bus master and selects a bus user. The bus arbitration means is provided, when a bus request from a bus master that needs to perform real-time processing conflicts with a bus request from another bus master, the “maximum standby time of a bus master requiring real-time processing” And the "scheduled time to occupy the shared bus" calculated from information transmitted by a bus master other than the bus master together with the bus request, and as a result, it is determined that the bus master requiring real-time processing is pending and the real-time processing is impaired Priority is given to the bus master who needs real-time processing. Comprising means, it is characterized in that. According to a third aspect of the present invention, a shared bus, a plurality of bus masters that occupy the bus and perform data transfer, and a bus master that arbitrates a bus request signal from the bus master and grants a bus right are exclusively selected. In the bus arbitration system including the bus arbitration unit, each of the bus masters includes a unit that transmits information that does not change among various information related to its own data transfer to the bus arbitration unit and registers the information in the bus arbitration unit. The bus master includes means for transmitting only information that changes for each bus request to the bus arbitration unit, and when bus requests from a plurality of bus masters overlap, the bus arbitration means uses the information registered in the bus arbitration unit and the bus arbitration unit. The "scheduled time to occupy the shared bus" is calculated from the data transfer information transmitted along with the request, and the "bus standby state" of the bus master requiring real-time processing is calculated. Compared to a long time ", it is characterized in that it comprises means for arbitrating.

【0007】[0007]

【発明の実施形態】以下図1を参照して、本発明の実施
形態の一例を説明する。バスマスタ10、20,30は
共有バスに接続されていて、共有バスを占有することを
要求する。調停部60は上記のバスマスタ10,20,
30からの共有バス要求を調停して、状況に応じて適切
なバスマスタに対して共有バスの使用を許可する。タイ
マ11,21,31は各バスマスタの待機許容時間を計
測する。内情報12,22,32は各バスマスタの転送頻
度,規模等の情報を調停部60の内部に記憶する部分で
ある。101,201,301は 各バスマスタからの共
有バス要求の意志を示す信号である。102,202,3
02は 各バスマスタからの共有バス要求に付随する情
報で、転送の度に変化する部分であり、必要に応じてバ
スマスタが更新する。103,203,303は 各バス
マスタごとに設置されているタイマからの、待機許容時
間に関する情報である。104,204,304 各バス
マスタからの共有バス要求に付随する情報で、転送の度
に変わらない部分であり、予め設定しておく。111,
112,113 排他的に有効になり、有効となった接続
先のバスマスタに対して調停部が共有バスの使用を許可
したことを示す信号である。
An embodiment of the present invention will be described below with reference to FIG. The bus masters 10, 20, 30 are connected to the shared bus and request to occupy the shared bus. The arbitration unit 60 includes the bus masters 10, 20,
The arbitration unit arbitrates a shared bus request from the server 30 and permits an appropriate bus master to use the shared bus depending on the situation. The timers 11, 21, 31 measure the permissible standby time of each bus master. The internal information 12, 22, 32 is a part for storing information such as the transfer frequency and scale of each bus master inside the arbitration unit 60. Reference numerals 101, 201 and 301 are signals indicating the intention of a shared bus request from each bus master. 102,202,3
02 is information accompanying the shared bus request from each bus master, and is a portion that changes every time it is transferred, and is updated by the bus master as necessary. Reference numerals 103, 203, and 303 denote information on the permissible standby time from timers provided for each bus master. 104, 204, 304 Information accompanying the shared bus request from each bus master, which does not change with each transfer and is set in advance. 111,
112, 113 These signals are exclusively valid and indicate that the arbitration unit has permitted the use of the shared bus to the validated connection destination bus master.

【0008】内情報と付随情報を評価して共有バスが効
率的に使用されるようにバスマスタを選択するアルゴリ
ズムは多数あるが、ここでは例として「特開平9−23
1165号公報」で用いられている、全バスマスタの総
待機時間を最も短縮することを基本方針とする。この方
針で行う調停の利点に関する説明は、「特開 平9−2
31165号公報」でなされている。
There are many algorithms for evaluating the internal information and the accompanying information and selecting a bus master so that the shared bus is used efficiently.
The basic policy is to minimize the total standby time of all bus masters used in "1165 publication". For a description of the benefits of mediation under this policy, see
No. 31165 ".

【0009】次に図1を参照して本発明の実施形態の動
作について説明する。まず、バスマスタ10に関して、
バス使用権が与えられた場合の占有予定時間を、内情報
104及び付随情報102から算出し、3T期間(Tは
時間の単位。本発明の説明において、相対的な時間の長
さを表す基準とする。)だったとする。この値は、予定
している転送データ量,有効バス幅,データ転送先のレス
ポンスなど、算出に必要な要素を増やすことで、より高
い精度で見積もることが可能である。同様に、バスマス
タ20の占有予定期間を5T,バスマスタ30の占有予
定期間を7Tであるとする。
Next, the operation of the embodiment of the present invention will be described with reference to FIG. First, regarding the bus master 10,
The estimated occupation time when the right to use the bus is granted is calculated from the internal information 104 and the accompanying information 102, and a 3T period (T is a unit of time. In the description of the present invention, a reference representing a relative time length) ). This value can be estimated with higher accuracy by increasing the elements required for calculation, such as the planned transfer data amount, the effective bus width, and the response of the data transfer destination. Similarly, it is assumed that the scheduled occupancy period of the bus master 20 is 5T and the scheduled occupancy period of the bus master 30 is 7T.

【0010】一方、バスマスタ10に関して、バス要求
が発生してから、バスの使用権を得てデータ転送が許可
されるまでの時間として許容できる最大時間が10Tで
あるとする。この値は、当該バスマスタが外部と通信を
行うデバイスであったり、あるいはストレージデバイス
のコントローラであったりした場合など、それぞれのア
プリケーション特有の制約や、バスマスタ自身の緩衝性
能により決まってしまうものである。同様にバスマスタ
20,30については20T,6Tであるとする。これら
の待機許容時間は、バス要求が発生した時点からカウン
トダウンを開始し、0Tに達すると、当該バスマスタの
リアルタイム処理が損なわれることとする。ある時刻T
0においてバスマスタ10,20,30からのバス要求信
号101,201,301が同時に発生して競合した場合
を考える。全バスマスタの総待機時間が最も短くなる選
択は、バス占有期間が短いバスマスタを、バス占有期間
の長いバスマスタに対して優先させることであるので、
先ず最も短い3Tというバス占有予定期間を持つバスマ
スタ10を候補に据えて妥当性を検討する。バスマスタ
10のデータ転送終了予定時刻は、時刻T0からバスマ
スタ10 の転送予定時間3Tを経た、時刻T0+T3
である。
On the other hand, as for the bus master 10, it is assumed that the maximum allowable time from when a bus request is generated to when the right to use the bus is obtained and data transfer is permitted is 10T. This value is determined by restrictions specific to each application, such as when the bus master is a device that communicates with the outside or a controller of a storage device, and the buffer performance of the bus master itself. Similarly, the bus masters 20 and 30 are 20T and 6T. These standby allowable times start counting down from the time when a bus request is generated, and when they reach 0T, the real-time processing of the bus master is impaired. A certain time T
Assume that bus request signals 101, 201, and 301 from the bus masters 10, 20, and 30 simultaneously occur at 0 and conflict with each other. The selection that minimizes the total waiting time of all bus masters is to give priority to a bus master with a short bus occupation period over a bus master with a long bus occupation period.
First, the validity is examined with the bus master 10 having the shortest bus occupation period of 3T as a candidate. The scheduled data transfer end time of the bus master 10 is the time T0 + T3 after the scheduled transfer time 3T of the bus master 10 from the time T0.
It is.

【0011】後回しにすると仮定したバスマスタ20,
30の、時刻T0+3Tでの待機許容時間は、それぞれ
17T(=20T−3T),3T(=6T−3T)であ
り、0Tに達しないので、候補であるバスマスタ10に
バス権を与えても支障が無いことが確認できる。仮定し
た通りにバスマスタ10にバス権を与えて、バスマスタ
10はバスを占有してデータ転送を終了し、時刻T0+
3Tに至る。
The bus master 20, which is assumed to be postponed,
30 are 17T (= 20T−3T) and 3T (= 6T−3T), respectively, the allowable standby time at time T0 + 3T, and do not reach 0T. Therefore, there is no problem even if the bus right is given to the candidate bus master 10. It can be confirmed that there is no. The bus master 10 is given a bus right as assumed, and the bus master 10 occupies the bus and ends the data transfer, and the time T0 +
It reaches 3T.

【0012】次に、残る二つのバスマスタで、より短い
5Tのバス占有予定期間を持つバスマスタ20を候補に
据えて 妥当性を検討する。バスマスタ20のデータ転
送終了予定時刻は、時刻T0+3Tに加えてバスマスタ
20の転送予定時間5Tを経た、時刻T0+8Tであ
る。ところが、後に回すと仮定したバスマスタ30の、
時刻T0+8Tでの待機許容時間は、−2T(=6T−
8T)であり、このままバスマスタ20にバス使用権を
与えてしまうと、バスマスタ30の待機許容時間を超過
してしまう。ところが、バスマスタ30を候補とした場
合で検討し直すと、バスマスタ30のデータ転送終了予
定時刻は、時刻T0+3Tからバスマスタ30の転送予
定時間7Tを経た、時刻T0+10Tである。この場合
に後回しにすると仮定したバスマスタ20の、時刻T0
+10Tでの待機許容時間は、10T(=20T−10
T)であり、候補であるバスマスタ30にバス使用権を
与えても支障が無いこと判断できる。結局この場合は、
バスマスタ10,バスマスタ30,バスマスタ20の順に
バス使用権を与えることで、どのバスマスタの待機許容
時間も超過させない条件で、総待機時間が最も少ない調
停が行われた。ここで重要なのは、実際にバス権を与え
てしまう前に、候補のバスマスタがバス権を得て占有予
定時間が経過したと仮定して、候補のバスマスタの後に
回されるバスマスタへの影響を検証することである。な
るほどその時点での効率だけを重視して、短絡的にバス
権を渡してしまったとしても、バスマスタの仕様によっ
ては、後から調停部の指示によって途中でデータ転送を
中断し、待機許容時間が逼迫したバスマスタにバス権を
譲渡することが可能である場合もありうるが、本発明に
よれば、その様にバスマスタのデータ転送中断可否仕様
に依存することなく、中央のバス調停制御部において待
機時間を超過させないよう保証することが可能である。
Next, the validity of the remaining two bus masters will be examined with the bus master 20 having a shorter bus occupation period of 5T as a candidate. The scheduled data transfer end time of the bus master 20 is the time T0 + 8T after the scheduled transfer time 5T of the bus master 20 in addition to the time T0 + 3T. However, the bus master 30, which is assumed to be turned later,
The standby permissible time at time T0 + 8T is -2T (= 6T-
8T), and if the right to use the bus is given to the bus master 20 as it is, the standby allowable time of the bus master 30 will be exceeded. However, when the bus master 30 is considered as a candidate, the data transfer end time of the bus master 30 is the time T0 + 10T after the scheduled transfer time 7T of the bus master 30 from the time T0 + 3T. In this case, the time T0 of the bus master 20 assumed to be postponed
The allowable standby time at + 10T is 10T (= 20T−10).
T), it can be determined that there is no problem even if the right to use the bus is given to the candidate bus master 30. After all, in this case,
By granting the bus use right in the order of the bus master 10, the bus master 30, and the bus master 20, arbitration with the shortest total standby time was performed under the condition that the allowable standby time of any bus master was not exceeded. What is important here is to verify the effect on the bus master that is passed after the candidate bus master, assuming that the candidate bus master has obtained the bus right and the occupied occupation time has elapsed before actually granting the bus right. It is to be. Indeed, even if only the efficiency at that time is emphasized and the bus right is handed over in a short-circuit, depending on the specifications of the bus master, the data transfer is interrupted later by the instruction of the arbitration unit, and the allowable waiting time is In some cases, it may be possible to transfer the bus right to a tight bus master. However, according to the present invention, the central bus arbitration control unit does not rely on the bus master's data transfer interruption specification. It is possible to guarantee that the time will not be exceeded.

【0013】[0013]

【発明の効果】これまで述べたように、本発明のバス調
停手法によると、通常はシステム全体にとって最も効率
的な調停を行いつつも、同時に個々のバスマスタの待機
許容時間をも組み入れて評価し、他のバスマスタの待機
許容時間を超過させるバスマスタに対して共有バス使用
権を渡さないことで、各バスマスタの待機許容時間を超
過させないバス調停が可能である。
As described above, according to the bus arbitration method of the present invention, the most efficient arbitration for the entire system is usually performed, and at the same time, the evaluation is performed by incorporating the allowable waiting time of each bus master. By not giving the right to use the shared bus to the bus master that exceeds the allowable waiting time of another bus master, it is possible to perform bus arbitration that does not exceed the allowable waiting time of each bus master.

【0014】システム構成によっては、どの順番でバス
権を渡してもすべてのバスマスタが待機許容時間を超過
しないようにすることが不可能であることもありうる
が、それはその共有バスが本来備えている転送性能限界
を無視してバスマスタを過剰に接続していたり、バスマ
スタの待機許容時間が著しく短い、あるいはバスマスタ
のバス占有時間が著しく長いといった場合である。これ
は本発明の効果の及ぶ範囲外である。
Depending on the system configuration, it may not be possible to prevent all bus masters from exceeding the allowable waiting time, regardless of the order in which the bus rights are transferred, but this is because the shared bus is inherently provided. There are cases where the bus masters are excessively connected ignoring the transfer performance limit that is present, the bus masters have an extremely short waiting time, or the bus masters have a very long bus occupation time. This is out of the scope of the effect of the present invention.

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

【図1】 本発明のバス調停システムの一実施形態を説
明する図である。
FIG. 1 is a diagram illustrating one embodiment of a bus arbitration system of the present invention.

【符号の説明】 10…バスマスタ 20…バスマ
スタ 30…バスマスタ 60…調停部 61…調停制御部 11…タイマ 21…タイマ 31…タイマ 12…調停部の内部記憶部 22…調停部
の内部記憶部 32…調停部の内部記憶部 101…共有
バス要求信号 201…共有バス要求信号 301…共有
バス要求信号 102…共有バス要求に付随する情報 202…共有
バス要求に付随する情報 302…共有バス要求に付随する情報 103…待機許容時間に関する情報 203…待機
許容時間に関する情報 303…待機許容時間に関する情報 104…共有バス要求に付随する情報 204…共有
バス要求に付随する情報 304…共有バス要求に付随する情報 111…共有バス使用許可信号 211…共有
バス使用許可信号 311…共有バス使用許可信号
[Description of Signs] 10 Bus master 20 Bus master 30 Bus master 60 Arbitration unit 61 Arbitration control unit 11 Timer 21 Timer 31 Timer 12 Internal storage unit of arbitration unit 22 Internal storage unit of arbitration unit 32 Internal storage unit of arbitration unit 101: shared bus request signal 201: shared bus request signal 301: shared bus request signal 102: information associated with shared bus request 202: information associated with shared bus request 302: associated with shared bus request Information 103: information on allowable waiting time 203: information on allowable waiting time 303: information on allowable waiting time 104: information associated with shared bus request 204: information associated with shared bus request 304: information associated with shared bus request 111 ... shared bus use permission signal 211 ... shared bus use permission signal 311 ... shared bus use permission Signal

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 共有バスと、当該バスを占有してデータ
転送を行う複数のバスマスタと、前記バスマスタからの
バス要求信号を調停してバス権が付与されるバスマスタ
を排他的に選択するバス調停部と、からなるシステムに
おいて、 上記各バスマスタは、データ転送に関する諸情報をバス
調停部に登録しておく手段を備え、 上記複数のバスマスタからのバス要求が重複した場合、
バス調停部は登録された諸情報に基づいてシステム全体
の効率を算出してバス使用者を選定する手段を備え、 上記バス調停手段は、リアルタイム処理を行う必要性の
高いバスマスタからのバス要求が、他のバスマスタから
のバス要求と競合した際に、リアルタイム処理を必要と
するバスマスタの「待機可能な最長時間」と、当該バス
マスタ以外のバスマスタの登録情報から算出した「共有
バスを占有する予定時間」を比較し、その結果リアルタ
イム処理が必要なバスマスタがペンディングとなり、リ
アルタイム処理が損なわれると判断した場合、リアルタ
イム処理が必要なバスマスタに対して共有バス使用権を
優先的に与える手段を備えることを特徴とするバス調停
システム。
1. A shared bus, a plurality of bus masters that occupy the bus and transfer data, and a bus arbitration that arbitrates a bus request signal from the bus master to exclusively select a bus master to which a bus right is granted. A bus unit, wherein each of the bus masters has means for registering various information related to data transfer in a bus arbitration unit, and when bus requests from the plurality of bus masters overlap,
The bus arbitration unit includes means for calculating the efficiency of the entire system based on the registered information and selecting a bus user. The bus arbitration means receives a bus request from a bus master that needs to perform real-time processing. When conflicting with a bus request from another bus master, the "maximum waiting time" of the bus master requiring real-time processing and the "scheduled time for occupying the shared bus" calculated from the registration information of the bus master other than the bus master concerned And, if it is determined that the bus master requiring real-time processing is pending and the real-time processing is impaired as a result, means for preferentially giving the right to use the shared bus to the bus master requiring real-time processing should be provided. Features a bus arbitration system.
【請求項2】 共有バスと、当該バスを占有してデータ
転送を行う複数のバスマスタと、前記バスマスタからの
バス要求信号を調停してバス権が付与されるバスマスタ
を排他的に選択するバス調停部と、からなるシステムに
おいて、 上記の各バスマスタは自身のデータ転送に関する諸情報
をバス調停部に伝える手段を備え、 複数のバスマスタからのバス要求が重複した場合、バス
調停部は各バスマスタからのバス要求と共に伝えられた
データ転送の諸情報に基づいてシステム全体の効率を算
出してバス使用者を選定する手段を備え、 上記バス調停手段は、リアルタイム処理を行う必要性の
高いバスマスタからのバス要求が、他のバスマスタから
のバス要求と競合した際に、リアルタイム処理を必要と
するバスマスタの「待機可能な最長時間」と、当該バス
マスタ以外のバスマスタがバス要求と共に伝えた情報か
ら算出した「共有バスを占有する予定時間」を比較し、
その結果リアルタイム処理が必要なバスマスタがペンデ
ィングとなり、リアルタイム処理が損なわれると判断し
た場合、リアルタイム処理が必要なバスマスタに対して
共有バス使用権を優先的に与える手段を備える、ことを
特徴とするバス調停システム。
2. A bus arbitration for exclusively selecting a shared bus, a plurality of bus masters occupying the bus and performing data transfer, and arbitrating a bus request signal from the bus master to select a bus master to which a bus right is granted. The bus master includes means for transmitting various information on its own data transfer to the bus arbitration unit, and when bus requests from a plurality of bus masters overlap, the bus arbitration unit The bus arbitration means includes means for calculating the efficiency of the entire system based on various information of data transfer transmitted along with the bus request and selecting a bus user. The bus arbitration means includes a bus from a bus master which needs to perform real-time processing. When a request conflicts with a bus request from another bus master, the "maximum wait time" of the bus master that requires real-time processing And the "scheduled time to occupy the shared bus" calculated from information transmitted by the bus master other than the bus master together with the bus request,
As a result, a bus master requiring real-time processing is pending, and if it is determined that the real-time processing is impaired, a means for preferentially giving a shared bus use right to the bus master requiring real-time processing is provided. Mediation system.
【請求項3】 共有バスと、当該バスを占有してデータ
転送を行う複数のバスマスタと、前記バスマスタからの
バス要求信号を調停してバス権を与えるバスマスタを排
他的に選択するバス調停部からなるシステムにおいて、 上記の各バスマスタは、自身のデータ転送に関する諸情
報のうち変化しない情報をバス調停部に伝え、バス調停
部に登録しておく手段を備え、 上記の各バスマスタは、バス要求ごとに変化する情報の
みをバス調停部に伝える手段を備え、 複数のバスマスタからのバス要求が重複した場合、上記
バス調停手段は、バス調停部に登録された諸情報とバス
要求と共に伝えられたデータ転送の諸情報とから「共有
バスを占有する予定時間」を算出し、リアルタイム処理
を必要とするバスマスタの「待機可能な最長時間」と比
較し、調停を行う手段を備える、ことを特徴とするバス
調停システム。
3. A shared bus, a plurality of bus masters that occupy the bus and perform data transfer, and a bus arbitration unit that arbitrates a bus request signal from the bus master and exclusively selects a bus master that gives a bus right. In the above system, each of the bus masters includes means for transmitting information that does not change among various information related to its own data transfer to the bus arbitration unit and registering the information in the bus arbitration unit. In the case where bus requests from a plurality of bus masters overlap, the bus arbitration unit transmits various information registered in the bus arbitration unit and data transmitted together with the bus request. Calculate the “scheduled time to occupy the shared bus” from the transfer information and compare it with the “maximum standby time” of the bus master that requires real-time processing. A bus arbitration system, comprising means for performing arbitration.
JP10321125A 1998-11-11 1998-11-11 Bus arbitration system Pending JP2000148668A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10321125A JP2000148668A (en) 1998-11-11 1998-11-11 Bus arbitration system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10321125A JP2000148668A (en) 1998-11-11 1998-11-11 Bus arbitration system

Publications (1)

Publication Number Publication Date
JP2000148668A true JP2000148668A (en) 2000-05-30

Family

ID=18129098

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10321125A Pending JP2000148668A (en) 1998-11-11 1998-11-11 Bus arbitration system

Country Status (1)

Country Link
JP (1) JP2000148668A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006171887A (en) * 2004-12-13 2006-06-29 Mitsubishi Electric Corp Bus controller and information processing system
JP2008234659A (en) * 2007-03-22 2008-10-02 Arm Ltd Data processing apparatus and method for arbitrating between messages routed over communication channel
JP2012088971A (en) * 2010-10-20 2012-05-10 Canon Inc Communication control device and control method therefor
US11309898B2 (en) 2018-08-09 2022-04-19 Olympus Corporation Semiconductor integrated circuit
US11314664B2 (en) 2017-08-30 2022-04-26 Olympus Corporation Memory access device, image processing device and imaging device

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006171887A (en) * 2004-12-13 2006-06-29 Mitsubishi Electric Corp Bus controller and information processing system
JP4689257B2 (en) * 2004-12-13 2011-05-25 三菱電機株式会社 Bus control device and information processing system
JP2008234659A (en) * 2007-03-22 2008-10-02 Arm Ltd Data processing apparatus and method for arbitrating between messages routed over communication channel
JP2012088971A (en) * 2010-10-20 2012-05-10 Canon Inc Communication control device and control method therefor
US11314664B2 (en) 2017-08-30 2022-04-26 Olympus Corporation Memory access device, image processing device and imaging device
US11309898B2 (en) 2018-08-09 2022-04-19 Olympus Corporation Semiconductor integrated circuit

Similar Documents

Publication Publication Date Title
JPH061458B2 (en) Distribution arbitration apparatus and method for shared bus
US20020161978A1 (en) Multi-service system-on-chip including on-chip memory with multiple access path
JP2986176B2 (en) Bus right control system and bus system
KR100708096B1 (en) Bus system and execution scheduling method for access commands thereof
US5680554A (en) Method and apparatus for arbitrating among processors for access to a common bus
US5764933A (en) Deadlock prevention in a two bridge system by flushing write buffers in the first bridge
JP2002304369A (en) Bus system
US7606957B2 (en) Bus system including a bus arbiter for arbitrating access requests
JP2000148668A (en) Bus arbitration system
JP4953794B2 (en) Bus arbitration method for bus system and bus system
JP2006215621A (en) Dma controller
US7181558B2 (en) Avoidance of extended bus occupancy through simple control operation
JP3987750B2 (en) Memory control device and LSI
JPH0210459A (en) Bus use right determining system
JPH08153065A (en) Bus control circuit
JP2012079165A (en) Bus arbitration apparatus and bus arbitration method
JPH0696014A (en) Bus using priority order controller
JP2004013356A (en) Bus arbitration system
JPH1139255A (en) Bus arbitration device and method therefor
JP5111940B2 (en) Information processing apparatus and access control method
JP2529720B2 (en) Direct memory access device
JPH11232215A (en) Bus controller, bus master device and method for controlling bus control system
JP2658972B2 (en) Bus arbitration equipment
JP2000207354A (en) Bus arbiter and inter-bus controller
JP2556290B2 (en) Bus arbitration device

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20000523