JP4953794B2 - Bus arbitration method for bus system and bus system - Google Patents

Bus arbitration method for bus system and bus system Download PDF

Info

Publication number
JP4953794B2
JP4953794B2 JP2006343494A JP2006343494A JP4953794B2 JP 4953794 B2 JP4953794 B2 JP 4953794B2 JP 2006343494 A JP2006343494 A JP 2006343494A JP 2006343494 A JP2006343494 A JP 2006343494A JP 4953794 B2 JP4953794 B2 JP 4953794B2
Authority
JP
Japan
Prior art keywords
bus
master
transfer request
urgency
arbitration device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2006343494A
Other languages
Japanese (ja)
Other versions
JP2008158585A (en
JP2008158585A5 (en
Inventor
泰成 永松
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP2006343494A priority Critical patent/JP4953794B2/en
Publication of JP2008158585A publication Critical patent/JP2008158585A/en
Publication of JP2008158585A5 publication Critical patent/JP2008158585A5/ja
Application granted granted Critical
Publication of JP4953794B2 publication Critical patent/JP4953794B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、デッドラインまでの期限が厳しいマスタからスレーブへアクセスを優先してアービトレーションするバス調停装置を用いたバスシステムに関する。特に、バス調停装置によって調停するバスが複数存在し、ブリッジを介して多段に構成されているバスシステムにおいて、バス調停装置間でマスタの緊急度評価値を通知するバス調停装置を備えたバスシステムに関する。   The present invention relates to a bus system using a bus arbitration device that preferentially arbitrates access from a master having a strict deadline until a deadline to a slave. In particular, in a bus system in which there are a plurality of buses to be arbitrated by a bus arbitration device and are configured in multiple stages via a bridge, the bus system includes a bus arbitration device that notifies the urgent evaluation value of the master between the bus arbitration devices About.

通常、マスタは要求された時間内に要求されたデータ量の転送を完了する必要がある。要求された時間に対して転送すべきデータ量が多い場合、そのマスタのデッドライン保証は厳しく、逆に要求された時間に対して転送すべきデータ量が少ない場合、デッドライン保証は容易になる。   Usually, the master needs to complete the transfer of the requested amount of data within the requested time. If the amount of data to be transferred is large for the requested time, the master's deadline guarantee is strict. Conversely, if the amount of data to be transferred is small for the requested time, deadline guarantee is easy. .

例えば、特許文献1には、基準より遅れているデバイスに対して、優先的にバスを割り当てるバス調停装置が記載されている。この特許文献1のバス調停装置は、この割り当てのために、各デバイスに要求されている転送レートに基づいたクロックで動作する基準カウンタと、実際に転送したデータ量を計測する転送データカウンタとを設ける。そして、バス調停時にこれら2つのカウンタの値を比較している。   For example, Patent Literature 1 describes a bus arbitration device that preferentially allocates a bus to a device that is behind the reference. For this allocation, the bus arbitration device disclosed in Patent Document 1 includes a reference counter that operates with a clock based on a transfer rate required for each device, and a transfer data counter that measures the amount of data actually transferred. Provide. The values of these two counters are compared during bus arbitration.

また、我々は、デッドラインを保証するために、図4に示すようなデッドライン保証アービタを提案した(例えば、特願2005-314842号)。デッドライン保証アービタは、マスタ毎に図5に示すような転送すべきデータ量とデータ転送を完了するまでの時間がデータ量設定レジスタとデットライン設定レジスタに設定される。ここで、図5に示す(A)〜(C)は、それぞれマスタA〜マスタCに対応している。   In order to guarantee a deadline, we proposed a deadline guarantee arbiter as shown in FIG. 4 (for example, Japanese Patent Application No. 2005-314842). The deadline guarantee arbiter sets the data amount to be transferred and the time until the data transfer is completed as shown in FIG. 5 for each master in the data amount setting register and the deadline setting register. Here, (A) to (C) shown in FIG. 5 correspond to master A to master C, respectively.

デッドライン保証アービタは、マスタ毎に緊急度評価値算出部が緊急度評価値(=残りデータ量÷残り時間)を計算し、デッドラインを保証するために最もバス権を必要としているマスタに優先してバス権を与える。時刻t1における緊急度評価値A1、B1、C1は、図5に示す例では以下のように求められ、A1>C1>B1となり、時刻t1の時点では、マスタA>マスタC>マスタBの優先度でバス権が与えられる。   The deadline guarantee arbiter calculates the urgency evaluation value (= remaining data amount / remaining time) for each master and gives priority to the master that needs the bus right most to guarantee the deadline. And give the bus right. In the example shown in FIG. 5, the urgency evaluation values A1, B1, and C1 at time t1 are obtained as follows, and A1> C1> B1. At time t1, master A> master C> master B has priority. The bus right is given at a degree.

A1=(転送データ量a−d1a)÷(デッドラインa−t1)
=0.75
B1=(転送データ量b−d1b)÷(デッドラインb−t1)
=0.38
C1=(転送データ量c−d1c)÷(デッドラインc−t1)
=0.46
時刻t2までマスタAがマスタB、Cより優先され、バス権を獲得した結果、時刻t2における緊急度評価値A2、B2、C2は、以下のように求められ、B2>A2>C2となる。よって、時刻t2の時点では、マスタB>マスタA>マスタCの優先度でバス権が与えられる。
A1 = (transfer data amount a−d1a) ÷ (deadline a−t1)
= 0.75
B1 = (transfer data amount b−d1b) ÷ (deadline b−t1)
= 0.38
C1 = (transfer data amount c−d1c) ÷ (deadline c−t1)
= 0.46
As a result of master A having priority over masters B and C and acquiring the bus right until time t2, urgency evaluation values A2, B2, and C2 at time t2 are obtained as follows, and B2>A2> C2. Therefore, at the time t2, the bus right is given with the priority of master B> master A> master C.

A2=(転送データ量a−d2a)÷(デッドラインa−t2)
=0.59
B2=(転送データ量b−d2b)÷(デッドラインb−t2)
=0.7
C2=(転送データ量c−d2c)÷(デッドラインc−t2)
=0.1
このように、デッドライン保証アービタはある時点で最もデッドラインの厳しいマスタに優先的にバスを使用させることで、バス権を獲得までの時間を短縮し、マスタのデッドラインを保証している。つまり、デッドライン保証アービタは、マスタ−スレーブの組に対してデッドラインを保証することが可能である。
A2 = (transfer data amount a−d2a) ÷ (deadline a−t2)
= 0.59
B2 = (transfer data amount b−d2b) ÷ (dead line b−t2)
= 0.7
C2 = (transfer data amount c−d2c) ÷ (deadline c−t2)
= 0.1
In this way, the deadline guarantee arbiter shortens the time to acquire the bus right and guarantees the master's deadline by preferentially using the bus by the master having the severest deadline at a certain point in time. That is, the deadline guarantee arbiter can guarantee a deadline for the master-slave pair.

例えば、図6に示すようなシステム構成において、マスタA10とマスタB11がスレーブ18へのデータ転送を要求した場合、まずデッドライン保証アービタP16がマスタA10とマスタB11間のバスの使用権を調停する。調停の結果、マスタA10がバスの使用権を得たならば、Pバス19とQバス20を繋ぐブリッジ15に対してマスタA10の緊急度評価値を通知する。   For example, in the system configuration shown in FIG. 6, when the master A10 and the master B11 request data transfer to the slave 18, the deadline guarantee arbiter P16 first arbitrates the right to use the bus between the master A10 and the master B11. . As a result of the arbitration, when the master A 10 has obtained the right to use the bus, the urgency evaluation value of the master A 10 is notified to the bridge 15 connecting the P bus 19 and the Q bus 20.

次に、ブリッジ15はマスタA10からの緊急度評価値に基づき、Qバス20の使用権を取得しようとする。そして、デッドライン保証アービタQ17がPバス19からの要求であるブリッジ15、マスタC12及びマスタD13間で緊急度評価値を計算し、Qバス20を使用してスレーブ18へアクセスするマスタを決定する。
特開平10−289203号公報
Next, the bridge 15 tries to acquire the right to use the Q bus 20 based on the urgency evaluation value from the master A10. Then, the deadline guarantee arbiter Q17 calculates the urgency evaluation value among the bridge 15, the master C12, and the master D13 that are requests from the P bus 19, and determines the master that accesses the slave 18 using the Q bus 20. .
Japanese Patent Laid-Open No. 10-289203

しかしながら、図6に示すシステム構成では、個々のデッドライン保証アービタは独立に動作した場合には、次のような問題が発生する。マスタA10が緊急度評価値の低い値で要求し、その緊急度評価値がブリッジに通知されても、マスタC12及びマスタD13から緊急度評価値の高い要求が来ていれば、いつまでもマスタA10はQバス20の使用権を取得できない状態となる。また、マスタB11が緊急度評価値の高い値で要求しても、デッドライン保証アービタQ17ではマスタA10からの緊急度評価値を用いるため、マスタB11の要求に対するデッドラインを保証できなくなる可能性がある。   However, in the system configuration shown in FIG. 6, when each deadline guarantee arbiter operates independently, the following problem occurs. Even if the master A10 makes a request with a low urgency evaluation value and the urgency evaluation value is notified to the bridge, if a request with a high urgency evaluation value is received from the master C12 and the master D13, the master A10 will always The right to use the Q bus 20 cannot be acquired. Even if the master B11 requests with a high urgency evaluation value, the deadline assurance arbiter Q17 uses the urgent evaluation value from the master A10, so that there is a possibility that the deadline for the request of the master B11 cannot be guaranteed. is there.

本発明は、複数のバス上で発生する複数のマスタからの転送要求に対して、最も優先度の高い転送要求のマスタにバスの使用権を与えることを目的とする。   An object of the present invention is to give a bus use right to a master having a transfer request with the highest priority in response to transfer requests from a plurality of masters generated on a plurality of buses.

また、本発明は、常にデッドライン保証の一番厳しいマスタの緊急度評価値を使用し、マスタのデッドラインを保証することを目的とする。   Another object of the present invention is to guarantee the master's deadline by always using the master's urgency evaluation value with the strictest deadline guarantee.

発明は、第1のバスと第2のバスとを接続するブリッジと、前記第1のバスの使用権を調停する第1のバス調停装置と、前記第2のバスの使用権を調停する第2のバス調停装置とを備えるバスシステムのバス調停方法であって、前記第1のバス調停装置は、前記第1のバスに繋がる第1のマスタが転送要求を出し、前記第1のバスに繋がる第2のマスタが転送要求を出していなければ、前記第1のマスタに前記第1のバスの使用を認め、前記ブリッジは、前記第1のバス調停装置が前記第1のマスタに前記第1のバスの使用を認めた場合、前記第2のバス調停装置に転送要求を出し、前記第2のバス調停装置は、前記ブリッジと前記第2のバスに繋がるマスタとが転送要求を出し、前記ブリッジが出した転送要求の緊急度より前記第2のバスに繋がるマスタが出した転送要求の緊急度が高い場合、前記第2のバスに繋がるマスタに前記第2のバスの使用を認め、前記第1のバス調停装置は、前記ブリッジによる前記第2のバスの使用が認められない場合に前記第2のマスタが前記第1のマスタが出した転送要求よりも緊急度が高い転送要求を出した場合、前記第2のマスタが出した転送要求の緊急度を前記第2のバス調停装置に通知し、前記第2のバス調停装置は、前記第1のバス調停装置から通知された緊急度と前記第2のバスに繋がるマスタが出した転送要求の緊急度とに基づいて前記第2のバスの使用権を調停することを特徴とする。 The present invention provides a bridge that connects a first bus and a second bus, a first bus arbitration device that arbitrates the right to use the first bus, and arbitrates the right to use the second bus. A bus arbitration method of a bus system comprising a second bus arbitration device, wherein the first bus arbitration device issues a transfer request from a first master connected to the first bus, and the first bus If the second master connected to the network does not issue a transfer request, the first master is permitted to use the first bus, and the bridge is connected to the first master by the first bus arbitration device. If the use of the first bus is permitted, a transfer request is issued to the second bus arbitration device, and the second bus arbitration device issues a transfer request from the bridge and the master connected to the second bus. , The second threshold based on the urgency of the transfer request issued by the bridge. When the urgency of the transfer request issued by the master connected to the second bus is high, the master connected to the second bus is permitted to use the second bus, and the first bus arbitration device uses the second bus by the bridge. If the second master issues a transfer request with a higher degree of urgency than the transfer request issued by the first master when use of the bus is not permitted, the emergency of the transfer request issued by the second master The second bus arbitration device notifies the second bus arbitration device of the urgent level notified from the first bus arbitration device and the transfer request issued by the master connected to the second bus. characterized in that arbitrates the right to use the second bus based on the urgency.

本発明によれば、複数のバス上で発生する複数のマスタからの転送要求に対して優先度の高い転送要求を発行するマスタに効率良くバスの使用権を付与することができる。 According to the present invention, can it to confer efficient use right of bus master to issue a high priority transfer request to transfer requests from a plurality of masters generated on multiple buses.

また、マスタから緊急度の高い要求が来るたびに、のバス調停装置に緊急度を伝えるため、最も厳しい緊急度を用いてバス調停を行える。これにより、マスタが後から緊急度の高い転送を行う場合も、全ての転送のデッドラインを保証することが可能になる。 In addition, every time a request with a high degree of urgency is received from the master, the urgency level is transmitted to another bus arbitration device, so that bus arbitration can be performed using the strictest urgency level . As a result, even when the master performs a transfer with a high degree of urgency later, it is possible to guarantee a deadline for all transfers.

以下、図面を参照しながら発明を実施するための最良の形態について詳細に説明する。   The best mode for carrying out the invention will be described below in detail with reference to the drawings.

図1は、本実施形態におけるデッドライン保証アービタ(バス調停装置)を備えたバスシステムの構成の一例を示す図である。また、図2は、本実施形態におけるデッドライン保証アービタの構成の一例を示す図である。   FIG. 1 is a diagram illustrating an example of a configuration of a bus system including a deadline guarantee arbiter (bus arbitration device) according to the present embodiment. FIG. 2 is a diagram showing an example of the configuration of the deadline guarantee arbiter in the present embodiment.

図1において、バスシステムは、マスタA10、マスタB11、マスタC12、マスタD13、ブリッジ15、スレーブ18、デッドライン保証アービタであるアービタP16、アービタQ17、Pバス19、Qバス20で構成される。   In FIG. 1, the bus system includes a master A10, a master B11, a master C12, a master D13, a bridge 15, a slave 18, an arbiter P16, which is a deadline guarantee arbiter, an arbiter Q17, a P bus 19, and a Q bus 20.

マスタA10、マスタB11、マスタC12、マスタD13は、それぞれデッドラインを有した転送を行う。   Master A10, master B11, master C12, and master D13 each perform transfer with a deadline.

アービタP16は、マスタA10及びマスタB11間のバス使用権を調停し、アービタQ17はブリッジ15、マスタC12及びマスタD13間のバス使用権を調停する。   The arbiter P16 arbitrates the right to use the bus between the master A10 and the master B11, and the arbiter Q17 arbitrates the right to use the bus between the bridge 15, the master C12, and the master D13.

尚、本実施形態では、アービタQ17は、アービタP16から出力される緊急度評価値21も考慮してバス使用権を与えるマスタを決定する。このバス使用権を与える処理は、更に詳述する。   In the present embodiment, the arbiter Q17 determines the master to which the bus use right is given in consideration of the urgency evaluation value 21 output from the arbiter P16. The processing for giving the bus use right will be described in further detail.

アービタP16は、図2に示すように、マスタA10のデータ量設定レジスタ201、デッドライン設定レジスタ203、データ転送量カウンタ205、タイマ207、緊急度評価値算出部209、緊急度評価値選択部211を有する。更に、マスタA10の緊急度評価値送信部213、緊急度評価値受信部215を有する。   As shown in FIG. 2, the arbiter P16 includes a data amount setting register 201, a deadline setting register 203, a data transfer amount counter 205, a timer 207, an urgency evaluation value calculation unit 209, and an urgency evaluation value selection unit 211 of the master A10. Have Further, the master A 10 includes an urgency evaluation value transmission unit 213 and an urgent evaluation value reception unit 215.

ここで、データ量設定レジスタ201には、マスタA10のデータ転送量が設定され、デッドライン設定レジスタ203にはマスタA10のデータ転送を行う時間が設定される。データ転送量カウンタ205では、データ量設定レジスタ201の設定値からマスタA10が転送を完了したデータ量をデクリメントし、残りデータ量をカウントする。タイマ207は、マスタA10から最初のスレーブアクセス要求が到着した後に、デッドライン設定レジスタ203に格納されている時間からカウントダウンを開始し、残り時間を出力する。緊急度評価値算出部209は、データ転送量カウンタ205でカウントされた残りデータ量をタイマ207が出力する残り時間で割り、緊急度評価値を算出する。   Here, the data transfer amount of the master A10 is set in the data amount setting register 201, and the time for performing the data transfer of the master A10 is set in the deadline setting register 203. The data transfer amount counter 205 decrements the data amount that the master A 10 has completed transfer from the setting value of the data amount setting register 201 and counts the remaining data amount. The timer 207 starts counting down from the time stored in the deadline setting register 203 after the first slave access request arrives from the master A10, and outputs the remaining time. The urgency evaluation value calculation unit 209 calculates the urgency evaluation value by dividing the remaining data amount counted by the data transfer amount counter 205 by the remaining time output by the timer 207.

緊急度評価値選択部211は、緊急度評価値算出部209で算出された緊急度評価値と、緊急度評価値受信部215が受信した緊急度評価値とを比較し、最も緊急度の高いものを選択する。緊急度評価値送信部213は、緊急度評価値算出部209が出力する緊急度評価値301を他のデッドライン保証アービタへ転送する。緊急度評価値受信部215は、他のデッドライン保証アービタから転送されてくる緊急度評価値303を受信し、緊急度評価値選択部211へ通知する。   The urgency evaluation value selection unit 211 compares the urgency evaluation value calculated by the urgency evaluation value calculation unit 209 with the urgency evaluation value received by the urgency evaluation value reception unit 215, and has the highest urgency level. Choose one. The urgency evaluation value transmission unit 213 transfers the urgency evaluation value 301 output from the urgency evaluation value calculation unit 209 to another deadline guarantee arbiter. The urgency evaluation value receiving unit 215 receives the urgency evaluation value 303 transferred from another deadline guarantee arbiter, and notifies the urgency evaluation value selection unit 211 of the urgency evaluation value.

また同様に、アービタP16は、マスタB11のデータ量設定レジスタ202、デッドライン設定レジスタ204、データ転送量カウンタ206、タイマ208、緊急度評価値算出部210、緊急度評価値選択部212を有する。更に、マスタB11の緊急度評価値送信部214、緊急度評価値受信部216を有する。また、レジスタ、カウンタ、タイマなどは上述のマスタA10のレジスタ、カウンタ、タイマなどと同じ機能を有するものである。   Similarly, the arbiter P16 includes a data amount setting register 202, a deadline setting register 204, a data transfer amount counter 206, a timer 208, an urgency evaluation value calculation unit 210, and an urgency evaluation value selection unit 212 of the master B11. Further, the master B 11 includes an urgency evaluation value transmission unit 214 and an urgent evaluation value reception unit 216. The registers, counters, timers and the like have the same functions as the registers, counters, timers, etc. of the master A10 described above.

更に、アービタP16は、緊急度評価値選択部211、212から各々通知される緊急度評価値305、306を比較し、最も緊急度(優先度)が高いマスタからスレーブへのアクセスを優先して調停する調停部217を有する。   Furthermore, the arbiter P16 compares the urgency evaluation values 305 and 306 notified from the urgency evaluation value selection units 211 and 212, respectively, and gives priority to access from the master having the highest urgency (priority) to the slave. It has a mediation unit 217 that mediates.

尚、アービタQ17の構成は、図2に示すアービタP16のマスタA10及びマスタB11がマスタC12及びマスタD13に代わるだけで、アービタP16と同様である。   The configuration of the arbiter Q17 is the same as that of the arbiter P16 except that the master A10 and the master B11 of the arbiter P16 shown in FIG. 2 are replaced with the master C12 and the master D13.

ここで、常にデッドライン保証の一番厳しいマスタの緊急度評価値を使用し、マスタのデッドラインを保証する処理を説明する。   Here, a process for guaranteeing a master deadline using the master's urgency evaluation value that is always the most strict with deadline guarantee will be described.

マスタA10及びマスタB11は、アービタP16によって調停される。マスタA10が転送要求req00を出し、マスタB11が転送要求req01を出していなければ、アービタP16はマスタA10にPバス19の使用を認める。この場合、ブリッジ15がQバス20のマスタとしてマスタA10の緊急度評価値を使用し、アービタQ17に対して転送要求req00を出す。ここで、Qバス20のマスタであるマスタC12が転送要求req10を出し、マスタD13が転送要求req11を出し、その緊急度評価値がreq11>req10>req00であれば、アービタQ17はマスタD13にQバス20の使用を認める。   Master A10 and master B11 are arbitrated by arbiter P16. If the master A10 has issued the transfer request req00 and the master B11 has not issued the transfer request req01, the arbiter P16 allows the master A10 to use the P bus 19. In this case, the bridge 15 uses the urgency evaluation value of the master A10 as the master of the Q bus 20, and issues a transfer request req00 to the arbiter Q17. Here, if the master C12 that is the master of the Q bus 20 issues a transfer request req10, the master D13 issues a transfer request req11, and if the urgency evaluation value is req11> req10> req00, the arbiter Q17 sends a Q to the master D13. The use of bus 20 is permitted.

このとき、マスタB11からも転送要求req01が発生し、緊急度評価値がreq01>req11>req10>req00のような場合、従来の手法だと問題が生じた。つまり、転送要求req01の緊急度評価値が高いにも関わらず、転送要求req00がQバス20の使用権を取得できないため、転送要求req01のデッドラインを保証できなくなる可能性があった。   At this time, when the transfer request req01 is also generated from the master B11 and the urgency evaluation value is req01> req11> req10> req00, there is a problem with the conventional method. That is, there is a possibility that the deadline of the transfer request req01 cannot be guaranteed because the transfer request req00 cannot acquire the right to use the Q bus 20 even though the urgency evaluation value of the transfer request req01 is high.

本実施形態では、後からマスタB11でreq01が出された時点で、マスタA10からの転送要求であるreq00と、マスタB11からの転送要求であるreq01の緊急度評価値を比較する。ここで、転送要求req01の緊急度評価値が高ければ、アービタP16はアービタQ17に対してQバス20の使用権の調停に転送要求req01の緊急度評価値を用いるように通達する。   In the present embodiment, the urgency evaluation value of req00, which is a transfer request from the master A10, is compared with the urgency evaluation value of req01, which is a transfer request from the master B11, when req01 is issued later by the master B11. Here, if the urgency evaluation value of the transfer request req01 is high, the arbiter P16 notifies the arbiter Q17 to use the urgency evaluation value of the transfer request req01 for mediation of the right to use the Q bus 20.

これにより、アービタQ17はブリッジ15からの転送要求の緊急度評価値が一番高いと認識し、マスタA10からの転送要求req00を受け取り、マスタA10にQバス20の使用権を与える。従って、マスタA10の転送が終了し、マスタB11の転送が早く開始される。   Thereby, the arbiter Q17 recognizes that the urgency evaluation value of the transfer request from the bridge 15 is the highest, receives the transfer request req00 from the master A10, and gives the master A10 the right to use the Q bus 20. Therefore, the transfer of the master A10 is completed, and the transfer of the master B11 is started early.

図3は、本実施形態におけるデッドライン保証アービタの処理を示すフローチャートである。尚、この処理は、アービタP16又はアービタQ17で処理されるものである。   FIG. 3 is a flowchart showing the processing of the deadline guarantee arbiter in the present embodiment. This process is performed by the arbiter P16 or the arbiter Q17.

まず、ステップS301で、マスタからスレーブ18への転送要求があれば、ステップS302へ処理を進め、複数のマスタから転送要求が出されたか否かを判定する。ここで、複数のマスタではなく、単一マスタから転送要求が出されたならば、ステップS303へ処理を進め、そのマスタにバスの使用権を与える。そして、ステップS301に戻り、新たな転送要求があるまで待つ。   First, if there is a transfer request from the master to the slave 18 in step S301, the process proceeds to step S302, and it is determined whether or not transfer requests are issued from a plurality of masters. Here, if a transfer request is issued from a single master instead of a plurality of masters, the process proceeds to step S303, and the right to use the bus is given to that master. Then, the process returns to step S301 and waits until there is a new transfer request.

一方、ステップS302で、複数のマスタから転送要求が出されたならば、ステップS304へ処理を進め、転送要求を出した複数のマスタの緊急度評価値を計算する。次に、ステップS305で、バス構成がブリッジを介した多段バス構成で、かつ上位にアービタがあるか否かを判定する。ここで、多段バス構成で、上位にアービタがあれば、アービタP16での処理となり、ステップS306へ処理を進め、緊急度評価値の一番高いマスタにバスの使用権を与えているか否かを判定する。ここで、緊急度評価値の一番高いマスタにバスの使用権を与えていれば、ステップS301に戻る。   On the other hand, if a transfer request is issued from a plurality of masters in step S302, the process proceeds to step S304, and the urgency evaluation values of the plurality of masters issuing the transfer requests are calculated. Next, in step S305, it is determined whether or not the bus configuration is a multi-stage bus configuration via a bridge and there is an arbiter at the upper level. Here, if there is an arbiter at the upper level in a multi-stage bus configuration, the process is performed by the arbiter P16, and the process proceeds to step S306, where it is determined whether or not the master having the highest urgency evaluation value has been given the bus use right. judge. If the right to use the bus is given to the master with the highest urgency evaluation value, the process returns to step S301.

しかし、ステップS306で、緊急度評価値の一番高いマスタにバスの使用権を与えていなければ、ステップS307へ処理を進め、一番高い緊急度評価値を上位のアービタ、即ちアービタQ17に通知する。そして、ステップS308で、緊急度評価値の一番高いマスタにバスの使用権を与える。   However, if the right to use the bus is not given to the master with the highest urgency evaluation value in step S306, the process proceeds to step S307, and the highest urgency evaluation value is notified to the upper arbiter, that is, arbiter Q17. To do. In step S308, the right to use the bus is given to the master with the highest urgency evaluation value.

一方、ステップS305で、多段バス構成で、上位にアービタがなければ、アービタQ17での処理となり、ステップS308へ処理を進め、緊急度評価値の一番高いマスタにバスの使用権を与える。尚、アービタQ17は、アービタP16から緊急度評価値21が通知されていれば、その緊急度評価値21を含めて緊急度評価値の一番高いマスタにバスの使用権を与える。   On the other hand, in step S305, if there is no arbiter at the upper level in the multi-stage bus configuration, processing is performed in arbiter Q17, and the processing proceeds to step S308 to give the bus use right to the master with the highest urgency evaluation value. If the urgency evaluation value 21 is notified from the arbiter P16, the arbiter Q17 gives the right to use the bus to the master having the highest urgency evaluation value including the urgency evaluation value 21.

以上説明したように、緊急度評価値の高い転送要求が後から来た場合でもデッドライン保証アービタ間で緊急度評価値を伝播することで、効率良くデッドライン保証を行うことが可能となる。   As described above, even when a transfer request with a high urgency evaluation value comes later, the urgency evaluation value is propagated between the deadline guarantee arbiters, so that deadline guarantee can be performed efficiently.

尚、前述した実施形態の機能を実現するソフトウェアのプログラムコードを記録した記録媒体を、システム或いは装置に供給し、そのシステム或いは装置のコンピュータ(CPU若しくはMPU)が記録媒体に格納されたプログラムコードを読出し実行する。これによっても、本発明の目的が達成されることは言うまでもない。   A recording medium recording software program codes for realizing the functions of the above-described embodiments is supplied to a system or apparatus, and a computer (CPU or MPU) of the system or apparatus stores program codes stored in the recording medium. Read and execute. It goes without saying that the object of the present invention can also be achieved by this.

この場合、記録媒体から読出されたプログラムコード自体が前述した実施形態の機能を実現することになり、そのプログラムコードを記憶した記録媒体は本発明を構成することになる。   In this case, the program code itself read from the recording medium realizes the functions of the above-described embodiment, and the recording medium storing the program code constitutes the present invention.

このプログラムコードを供給するための記録媒体として、例えばフレキシブルディスク,ハードディスク,光ディスク,光磁気ディスク,CD−ROM,CD−R,磁気テープ,不揮発性のメモリカード,ROMなどを用いることができる。   As a recording medium for supplying the program code, for example, a flexible disk, a hard disk, an optical disk, a magneto-optical disk, a CD-ROM, a CD-R, a magnetic tape, a nonvolatile memory card, a ROM, or the like can be used.

また、コンピュータが読出したプログラムコードを実行することにより、前述した実施形態の機能が実現されるだけでなく、次の場合も含まれることは言うまでもない。即ち、プログラムコードの指示に基づき、コンピュータ上で稼働しているOS(オペレーティングシステム)などが実際の処理の一部又は全部を行い、その処理により前述した実施形態の機能が実現される場合である。   In addition, by executing the program code read by the computer, not only the functions of the above-described embodiments are realized, but also the following cases are included. That is, based on the instruction of the program code, an OS (operating system) running on the computer performs part or all of the actual processing, and the functions of the above-described embodiments are realized by the processing. .

更に、記録媒体から読出されたプログラムコードがコンピュータに挿入された機能拡張ボードやコンピュータに接続された機能拡張ユニットに備わるメモリに書込む。その後、そのプログラムコードの指示に基づき、その機能拡張ボードや機能拡張ユニットに備わるCPUなどが実際の処理の一部又は全部を行い、その処理により前述した実施形態の機能が実現される場合も含まれることは言うまでもない。   Further, the program code read from the recording medium is written in a memory provided in a function expansion board inserted into the computer or a function expansion unit connected to the computer. After that, based on the instruction of the program code, the CPU of the function expansion board or function expansion unit performs part or all of the actual processing, and the function of the above-described embodiment is realized by the processing. Needless to say.

本実施形態におけるデッドライン保証アービタ(バス調停装置)を備えたバスシステムの構成の一例を示す図である。It is a figure which shows an example of a structure of the bus system provided with the deadline guarantee arbiter (bus arbitration apparatus) in this embodiment. 本実施形態におけるデッドライン保証アービタの構成の一例を示す図である。It is a figure which shows an example of a structure of the deadline guarantee arbiter in this embodiment. 本実施形態におけるデッドライン保証アービタの処理を示すフローチャートである。It is a flowchart which shows the process of the deadline guarantee arbiter in this embodiment. 従来のデッドライン保証アービタの構成を示す図である。It is a figure which shows the structure of the conventional deadline guarantee arbiter. 複数のマスタの転送データ量とデッドラインとの関係を示す図である。It is a figure which shows the relationship between the transfer data amount of a some master, and a deadline. 従来のデッドライン保証アービタを備えたバスシステムの構成の一例を示す図である。It is a figure which shows an example of a structure of the bus system provided with the conventional deadline guarantee arbiter.

符号の説明Explanation of symbols

10 マスタA
11 マスタB
12 マスタC
13 マスタD
15 ブリッジ
16 アービタP
17 アービタQ
18 スレーブ
19 Pバス
20 Qバス
21 緊急度評価値
10 Master A
11 Master B
12 Master C
13 Master D
15 Bridge 16 Arbiter P
17 Arbiter Q
18 Slave 19 P bus 20 Q bus 21 Urgency evaluation value

Claims (2)

第1のバスと第2のバスとを接続するブリッジと、前記第1のバスの使用権を調停する第1のバス調停装置と、前記第2のバスの使用権を調停する第2のバス調停装置とを備えるバスシステムのバス調停方法であって、
前記第1のバス調停装置は、前記第1のバスに繋がる第1のマスタが転送要求を出し、前記第1のバスに繋がる第2のマスタが転送要求を出していなければ、前記第1のマスタに前記第1のバスの使用を認め、
前記ブリッジは、前記第1のバス調停装置が前記第1のマスタに前記第1のバスの使用を認めた場合、前記第2のバス調停装置に転送要求を出し、
前記第2のバス調停装置は、前記ブリッジと前記第2のバスに繋がるマスタとが転送要求を出し、前記ブリッジが出した転送要求の緊急度より前記第2のバスに繋がるマスタが出した転送要求の緊急度が高い場合、前記第2のバスに繋がるマスタに前記第2のバスの使用を認め、
前記第1のバス調停装置は、前記ブリッジによる前記第2のバスの使用が認められない場合に前記第2のマスタが前記第1のマスタが出した転送要求よりも緊急度が高い転送要求を出した場合、前記第2のマスタが出した転送要求の緊急度を前記第2のバス調停装置に通知し、
前記第2のバス調停装置は、前記第1のバス調停装置から通知された緊急度と前記第2のバスに繋がるマスタが出した転送要求の緊急度とに基づいて前記第2のバスの使用権を調停することを特徴とするバスシステムのバス調停方法。
A bridge that connects the first bus and the second bus; a first bus arbitration device that arbitrates the right to use the first bus; and a second bus that arbitrates the right to use the second bus. A bus arbitration method for a bus system comprising an arbitration device,
If the first master connected to the first bus issues a transfer request and the second master connected to the first bus does not issue a transfer request, the first bus arbitration device Allow the master to use the first bus,
The bridge issues a transfer request to the second bus arbitration device when the first bus arbitration device authorizes the first master to use the first bus;
In the second bus arbitration device, the bridge and the master connected to the second bus issue a transfer request, and the transfer issued by the master connected to the second bus from the urgency of the transfer request issued by the bridge. If the urgency of the request is high, the master connected to the second bus is allowed to use the second bus,
The first bus arbitration device issues a transfer request having a higher urgency than the transfer request issued by the first master when the second master is not permitted to use the second bus by the bridge. If issued, notify the second bus arbitration device of the urgency of the transfer request issued by the second master,
The second bus arbitration device uses the second bus based on the urgency level notified from the first bus arbitration device and the urgency level of the transfer request issued by the master connected to the second bus. A bus arbitration method for a bus system, characterized by arbitrating a right.
第1のバスと第2のバスとを接続するブリッジと、前記第1のバスの使用権を調停する第1のバス調停装置と、前記第2のバスの使用権を調停する第2のバス調停装置とを備えるバスシステムであって、A bridge that connects the first bus and the second bus; a first bus arbitration device that arbitrates the right to use the first bus; and a second bus that arbitrates the right to use the second bus. A bus system comprising an arbitration device,
前記第1のバス調停装置は、前記第1のバスに繋がる第1のマスタが転送要求を出し、前記第1のバスに繋がる第2のマスタが転送要求を出していなければ、前記第1のマスタに前記第1のバスの使用を認め、If the first master connected to the first bus issues a transfer request and the second master connected to the first bus does not issue a transfer request, the first bus arbitration device Allow the master to use the first bus,
前記ブリッジは、前記第1のバス調停装置が前記第1のマスタに前記第1のバスの使用を認めた場合、前記第2のバス調停装置に転送要求を出し、The bridge issues a transfer request to the second bus arbitration device when the first bus arbitration device authorizes the first master to use the first bus;
前記第2のバス調停装置は、前記ブリッジと前記第2のバスに繋がるマスタとが転送要求を出し、前記ブリッジが出した転送要求の緊急度より前記第2のバスに繋がるマスタが出した転送要求の緊急度が高い場合、前記第2のバスに繋がるマスタに前記第2のバスの使用を認め、In the second bus arbitration device, the bridge and the master connected to the second bus issue a transfer request, and the transfer issued by the master connected to the second bus from the urgency of the transfer request issued by the bridge. If the urgency of the request is high, the master connected to the second bus is allowed to use the second bus,
前記第1のバス調停装置は、前記ブリッジによる前記第2のバスの使用が認められない場合に前記第2のマスタが前記第1のマスタが出した転送要求よりも緊急度が高い転送要求を出した場合、前記第2のマスタが出した転送要求の緊急度を前記第2のバス調停装置に通知し、The first bus arbitration device issues a transfer request having a higher urgency than the transfer request issued by the first master when the second master is not permitted to use the second bus by the bridge. If issued, notify the second bus arbitration device of the urgency of the transfer request issued by the second master,
前記第2のバス調停装置は、前記第1のバス調停装置から通知された緊急度と前記第2のバスに繋がるマスタが出した転送要求の緊急度とに基づいて前記第2のバスの使用権を調停することを特徴とするバスシステム。The second bus arbitration device uses the second bus based on the urgency level notified from the first bus arbitration device and the urgency level of the transfer request issued by the master connected to the second bus. A bus system characterized by mediating rights.
JP2006343494A 2006-12-20 2006-12-20 Bus arbitration method for bus system and bus system Expired - Fee Related JP4953794B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006343494A JP4953794B2 (en) 2006-12-20 2006-12-20 Bus arbitration method for bus system and bus system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006343494A JP4953794B2 (en) 2006-12-20 2006-12-20 Bus arbitration method for bus system and bus system

Publications (3)

Publication Number Publication Date
JP2008158585A JP2008158585A (en) 2008-07-10
JP2008158585A5 JP2008158585A5 (en) 2010-02-12
JP4953794B2 true JP4953794B2 (en) 2012-06-13

Family

ID=39659458

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006343494A Expired - Fee Related JP4953794B2 (en) 2006-12-20 2006-12-20 Bus arbitration method for bus system and bus system

Country Status (1)

Country Link
JP (1) JP4953794B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010282405A (en) * 2009-06-04 2010-12-16 Renesas Electronics Corp Data processing system
US20120089759A1 (en) * 2010-10-08 2012-04-12 Qualcomm Incorporated Arbitrating Stream Transactions Based on Information Related to the Stream Transaction(s)
JP5417305B2 (en) * 2010-11-25 2014-02-12 京セラドキュメントソリューションズ株式会社 Information processing device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004013356A (en) * 2002-06-04 2004-01-15 Matsushita Electric Ind Co Ltd Bus arbitration system
JP4974508B2 (en) * 2005-10-28 2012-07-11 キヤノン株式会社 Bus master device, bus arbitration device, and bus arbitration method

Also Published As

Publication number Publication date
JP2008158585A (en) 2008-07-10

Similar Documents

Publication Publication Date Title
EP0343770B1 (en) Multi-bus microcomputer system with bus arbitration
EP3238080B1 (en) Guaranteed quality of service in system-on-a-chip uncore fabric
TWI633424B (en) Power management in an uncore fabric
JP4974508B2 (en) Bus master device, bus arbitration device, and bus arbitration method
JPS5812611B2 (en) Data Tensou Seigiyohoushiki
JP2005258867A (en) Resource managing apparatus
JPH061458B2 (en) Distribution arbitration apparatus and method for shared bus
JPH08297632A (en) Method and apparatus for arbitration to bus enabling split transaction bus protocol
JPH0467224B2 (en)
US5274785A (en) Round robin arbiter circuit apparatus
JP2006195714A (en) Resource management device
KR100708096B1 (en) Bus system and execution scheduling method for access commands thereof
JP2007058716A (en) Data transfer bus system
JP2015530679A (en) Method and apparatus using high efficiency atomic operations
JP4953794B2 (en) Bus arbitration method for bus system and bus system
JP2002304369A (en) Bus system
JP2007280253A (en) Information processor and information processing method
US6973520B2 (en) System and method for providing improved bus utilization via target directed completion
WO2007039933A1 (en) Operation processing device
JP2011059915A (en) Semiconductor device
JP2008108126A (en) Data transfer control device and bus access arbitration system therefor
JPH10320349A (en) Processor and data transfer system using the processor
JP2010140440A (en) Bus arbitration device
JP2005056239A (en) Semiconductor integrated circuit
EP3238085A1 (en) Virtual legacy wire

Legal Events

Date Code Title Description
A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20091218

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20091218

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20120105

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120221

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20120309

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20120313

R151 Written notification of patent or utility model registration

Ref document number: 4953794

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20150323

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees