JP2008123273A - Signal bus occupancy arbitrating method and data transfer device - Google Patents

Signal bus occupancy arbitrating method and data transfer device Download PDF

Info

Publication number
JP2008123273A
JP2008123273A JP2006306849A JP2006306849A JP2008123273A JP 2008123273 A JP2008123273 A JP 2008123273A JP 2006306849 A JP2006306849 A JP 2006306849A JP 2006306849 A JP2006306849 A JP 2006306849A JP 2008123273 A JP2008123273 A JP 2008123273A
Authority
JP
Japan
Prior art keywords
count value
signal
data transfer
signal bus
occupancy
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
JP2006306849A
Other languages
Japanese (ja)
Inventor
Mitsuru Inoishi
充 猪石
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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry 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 Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP2006306849A priority Critical patent/JP2008123273A/en
Publication of JP2008123273A publication Critical patent/JP2008123273A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a signal bus arbitrating method capable of arbitrating the occupancy right of a signal bus among a plurality of devices by a simple circuit configuration, and a data transfer device. <P>SOLUTION: This invention relates to: the signal bus occupancy arbitrating method in the data transfer device including at least one signal bus and a plurality of devices which respectively occupy the signal bus in accordance with an occupancy enabling signal and performs data transfer through the signal bus; and the data transfer device, wherein the current count value patrolling each count value existing in a predetermined count section according to a time elapse is stored, at least one permission timing count value that coincides with any of count values is stored in each device, the current value is compared with the permission timing count value of one device of devices in accordance with an occupancy request signal generated by the device, and only when both the values coincide with each other, the occupancy enabling signal is supplied to the device. <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

本発明は、PCI(Peripheral Component Interconnect )バスの如き信号バスと、該信号バスを共用してデータ転送を行う複数のデバイスとを含むデータ転送装置において、該デバイス間で該信号バスを使用するためのバス占有権を調停する信号バス占有調停方法及びかかるデータ転送装置に関する。   The present invention provides a data transfer apparatus including a signal bus such as a PCI (Peripheral Component Interconnect) bus and a plurality of devices that perform data transfer by sharing the signal bus, and the signal bus is used between the devices. The present invention relates to a signal bus occupation arbitration method for arbitrating the bus occupation right and such a data transfer apparatus.

一般に、サーバーシステム、ワークステーションやパーソナルコンピュータなどの情報処理装置においては、PCIバスを介してハードディスク等の複数のデバイスとの間でデータ転送が行われる。PCIバスの如き信号バスにおけるデータ転送は、一時的に1つのデバイスがバスを占有して行うものであることから、同時に複数のデバイスからバス使用要求が競合すれば、これら複数デバイス間でバス占有権についてアービトレーション(arbitration)処理すなわち調停をなす必要がある。   In general, in an information processing apparatus such as a server system, a workstation, or a personal computer, data is transferred to and from a plurality of devices such as a hard disk via a PCI bus. Data transfer on a signal bus such as a PCI bus is performed by temporarily occupying a bus by one device. Therefore, if bus use requests from multiple devices compete at the same time, the bus is occupied between these multiple devices. Arbitration processing or arbitration is required for the right.

特許文献1に開示されるバスアクセス調停システムは、単位時間ごとに各デバイスからのバスアクセス要求の発行回数と各デバイスによるデータ転送量とを計測するデータ量監視手段と、データ量監視部で計測されたバスアクセス要求発生回数とデータ転送量とに基づき各デバイスの新たな優先度を算出し、各デバイスの新たな優先度に基づきそのデバイスに対して循環優先順位アルゴリズムの新たな優先度レベルを付与する優先度レベル更新手段とを備える。
特開2000−148670号公報
The bus access arbitration system disclosed in Patent Document 1 is measured by a data amount monitoring unit that measures the number of bus access requests issued from each device and the amount of data transferred by each device, and a data amount monitoring unit. The new priority of each device is calculated based on the number of generated bus access requests and the amount of data transferred, and the new priority level of the cyclic priority algorithm is set for that device based on the new priority of each device. Priority level updating means to be provided.
JP 2000-148670 A

かかる従来技術は、個々のデバイスの優先度を全てのデバイスとの間で調停する際に、変動するバスアクセス要求発生回数やデータ転送量等のトラフィックを監視し、該トラフィックに基づいて循環優先順位アルゴリズムの如き複雑な手段を追加して動的に優先度を制御するものである。従って、トラフィック監視回路を設けるなどして優先度を決定することは複雑な回路構成を必要とし、コスト上不利であるという問題がある。   Such prior art, when mediating the priority of each device with all devices, monitors traffic such as the number of bus access requests that have fluctuated and the amount of data transferred, and based on the traffic, the cyclic priority The priority is dynamically controlled by adding complicated means such as an algorithm. Therefore, determining the priority by providing a traffic monitoring circuit or the like requires a complicated circuit configuration and is disadvantageous in terms of cost.

本発明の目的は、簡単な回路構成により信号バスの占有権を複数のデバイス間で調停することのできる信号バス占有調停方法及びデータ転送装置を提供することである。   An object of the present invention is to provide a signal bus occupation arbitration method and a data transfer apparatus capable of arbitrating a signal bus occupation right among a plurality of devices with a simple circuit configuration.

本発明による信号バス占有調停方法は、少なくとも1つの信号バスと、各々が占有許可信号に応じて該信号バスを占有し、これを介してデータ転送をなす複数のデバイスとを含むデータ転送装置における信号バス占有調停方法であり、所定カウント区間内にある各カウント値を時間経過に従って巡回する現在カウント値を保持する現在カウント値保持ステップと、
該デバイス毎に、該カウント値の何れかと一致する少なくとも1つの許可タイミングカウント値を保持する許可タイミングカウント値保持ステップと、該デバイスのうちの1のデバイスが生成した占有要求信号に応じて、該現在カウント値と該1のデバイスの許可タイミングカウント値とを比較し、双方の値が一致した場合にのみ該1のデバイスに該占有許可信号を供給する占有許可信号供給ステップとを含むことを特徴とする。
A signal bus occupation arbitration method according to the present invention is a data transfer apparatus including at least one signal bus and a plurality of devices each of which occupies the signal bus according to an occupation permission signal and performs data transfer via the signal bus. A signal bus occupation arbitration method, and a current count value holding step for holding a current count value that circulates each count value within a predetermined count section as time elapses;
A permission timing count value holding step for holding at least one permission timing count value that matches any one of the count values for each device, and an occupation request signal generated by one of the devices, An exclusive permission signal supply step of comparing the current count value with the permission timing count value of the one device and supplying the exclusive permission signal to the one device only when both values match. And

本発明によるデータ転送装置は、少なくとも1つの信号バスと、各々が占有許可信号に応じて該信号バスを占有し、これを介してデータ転送をなす複数のデバイスとを含むデータ転送装置であり、所定カウント区間内の各カウント値を時間経過に従って巡回する現在カウント値を保持する現在カウント値保持手段と、該デバイス毎に、該カウント値の何れかと一致する少なくとも1つの許可タイミングカウント値を保持する許可タイミングカウント値保持手段と、該デバイスのうちの1のデバイスが生成した占有要求信号に応じて、該現在カウント値と該1のデバイスの許可タイミングカウント値とを比較し、双方の値が一致した場合にのみ該1のデバイスに該占有許可信号を供給する占有許可信号供給手段とを含むことを特徴とする。   A data transfer apparatus according to the present invention is a data transfer apparatus including at least one signal bus and a plurality of devices each of which occupies the signal bus in response to an occupation permission signal and performs data transfer via the signal bus. Current count value holding means for holding a current count value that circulates each count value within a predetermined count interval as time elapses, and at least one permission timing count value that matches one of the count values for each device In accordance with the occupancy request signal generated by the permission timing count value holding means and one of the devices, the current count value is compared with the permission timing count value of the one device, and both values match. And an exclusive permission signal supply means for supplying the exclusive permission signal to the one device only in the case of being performed.

本発明による信号バス占有調停方法及びデータ転送装置によれば、簡単な回路構成により信号バスの占有権を複数のデバイス間で調停することができる。   According to the signal bus occupation arbitration method and the data transfer device according to the present invention, the signal bus occupation right can be arbitrated between a plurality of devices with a simple circuit configuration.

本発明の実施例について添付の図面を参照しつつ詳細に説明する。
<第1の実施例>
図1は、本発明の第1の実施例を示し、本発明によるデータ転送装置を含む全体の構成を示している。データ転送装置10は、信号バスであるPCIバス30と、複数のデバイス41〜44と、PCIバス調停回路50とを含む。PCIバス30には複数のPCIデバイス41〜44が接続されている。通常、PCIデバイスとは、PCIバスに接続され得る主記憶装置やハードディスク装置等の補助記憶装置、あるいはビデオカード、サウンドカードまたはLANカードの如き各種周辺装置を意味する。また、PCIバス30には、中央演算処理装置であるホストCPU20が接続されている。本実施例においては、1つの信号バス20及び4つのPCIデバイス41〜44が例として示されているが、本発明にかかる限定はなく、本発明によるデータ転送装置は、2つ以上の信号バスと5つ以上のPCIデバイスを含み得る。
Embodiments of the present invention will be described in detail with reference to the accompanying drawings.
<First embodiment>
FIG. 1 shows a first embodiment of the present invention, and shows an overall configuration including a data transfer apparatus according to the present invention. The data transfer apparatus 10 includes a PCI bus 30 that is a signal bus, a plurality of devices 41 to 44, and a PCI bus arbitration circuit 50. A plurality of PCI devices 41 to 44 are connected to the PCI bus 30. Usually, the PCI device means an auxiliary storage device such as a main storage device or a hard disk device that can be connected to the PCI bus, or various peripheral devices such as a video card, a sound card, or a LAN card. The PCI bus 30 is connected to a host CPU 20 that is a central processing unit. In this embodiment, one signal bus 20 and four PCI devices 41 to 44 are shown as examples. However, the present invention is not limited thereto, and the data transfer device according to the present invention includes two or more signal buses. And five or more PCI devices.

PCIデバイス41〜44の各々は、その機能に従ってホストCPU20等の他の装置との間でPCIバス30を介してデータ転送を行う。この際に、PCIデバイス41〜44の各々は、PCIバス調停回路50との間でReq信号及びGnt信号を交換する。PCIバス調停回路50は、PCIデバイス41〜44との間でアービトレーション(arbitration)すなわち調停をなす回路である。PCIバス30を使用したいPCIデバイス、例えば、PCIデバイス41は、Req信号をPCIバス調停回路50に送出する。PCIバス調停回路50は、PCIバス30の使用状況や各PCIデバイス41〜44の要求の競合条件を加味して、バス占有を許可するGnt信号を生成して、これをPCIデバイス41に供給する。PCIデバイス41は、該Gnt信号に応じてPCIバス30を占有してデータ転送を行う。   Each of the PCI devices 41 to 44 performs data transfer with another device such as the host CPU 20 via the PCI bus 30 according to the function. At this time, each of the PCI devices 41 to 44 exchanges the Req signal and the Gnt signal with the PCI bus arbitration circuit 50. The PCI bus arbitration circuit 50 is a circuit that performs arbitration, that is, arbitration, with the PCI devices 41 to 44. The PCI device that wants to use the PCI bus 30, for example, the PCI device 41 sends a Req signal to the PCI bus arbitration circuit 50. The PCI bus arbitration circuit 50 generates a Gnt signal for permitting bus occupation in consideration of the use status of the PCI bus 30 and the contention conditions of the requests of the PCI devices 41 to 44, and supplies this to the PCI device 41. . The PCI device 41 occupies the PCI bus 30 according to the Gnt signal and performs data transfer.

図2を参照すると、PCIデバイス毎のReq信号及びGnt信号の回数とデータ転送量の分布の様子が示されている。例えば、通常のPCIバス調停回路ではPCIデバイス毎の公正性を保つため、競合時に連続して特定のPCIデバイスだけが許可をもらうことが無い様に構成され、本図に示されるようにReq信号が送出されるReq回数やGnt信号が生成されるGnt回数が均等になるように制御される。しかしこれだけでは、PCIデバイスによっては大量のデータを転送する場合がある。すなわち、本図に示されるように、Req信号を出すReq回数がすべてのPCIデバイス41〜44で同一であったとしても、PCIデバイス41だけがその占有時間、すなわち1回あたりのバスの使用時間が長時間である場合が有り得る。この場合、全体的なバスの占有比率はPCIデバイス41が最も大きな割合を占めることになり、Req回数及びGnt回数だけをカウントするような回路を用いるだけでは、PCIデバイス毎の公平性が保てないことが分かる。本発明による信号バス占有調停方法及びデータ転送装置は、かかる不都合を以下に説明するようにして回避する。   Referring to FIG. 2, the number of Req and Gnt signals for each PCI device and the distribution of data transfer amount are shown. For example, in a normal PCI bus arbitration circuit, in order to maintain the fairness of each PCI device, it is configured so that only a specific PCI device does not receive permission continuously at the time of contention, and the Req signal as shown in the figure. Is controlled so that the number of Reqs to be transmitted and the number of Gnts for generating the Gnt signal are equal. However, this alone may transfer a large amount of data depending on the PCI device. That is, as shown in this figure, even if the number of Reqs to output the Req signal is the same for all the PCI devices 41 to 44, only the PCI device 41 has its occupied time, that is, the bus usage time per time. May be long. In this case, the PCI bus 41 occupies the largest share of the entire bus, and just using a circuit that counts only the Req count and Gnt count can maintain fairness for each PCI device. I understand that there is no. The signal bus occupation arbitration method and the data transfer apparatus according to the present invention avoid such inconvenience as described below.

図3は、図1において示されたPCIバス調停回路50の詳細の構成を示している。PCIバス調停回路50は、巡回カウンタ51と、複数のスロット回路S1〜S4とから構成される。巡回カウンタ51は、例えばPCIバスクロック信号に同期して、所定カウント区間0〜Nとして0から7までのカウント値が時間経過に従って巡回、すわなち繰り返されるカウンタである。巡回カウンタ51の最新すなわち現在カウント値は、複数のスロット回路S1〜S4に供給される。   FIG. 3 shows a detailed configuration of the PCI bus arbitration circuit 50 shown in FIG. The PCI bus arbitration circuit 50 includes a cyclic counter 51 and a plurality of slot circuits S1 to S4. The cyclic counter 51 is a counter in which, for example, the count values from 0 to 7 are cyclically repeated, that is, repeated over time as predetermined count intervals 0 to N in synchronization with the PCI bus clock signal. The latest or current count value of the cyclic counter 51 is supplied to the plurality of slot circuits S1 to S4.

複数のスロット回路S1〜S4の各々は、レジスタR1〜R4とデコーダD1〜D4とを各々対応して含む。レジスタR1〜R4は、少なくとも1つの許可タイミングカウント値を保持するレジスタである。該許可タイミングカウント値は、整数区間であるカウント区間0〜Nのうちの何れかに対応する少なくとも1つの整数である。該許可タイミングカウント値(以下、レジスタ値と称する)は、PCIバス30に接続されるホストCPU20から、時間経過に関わらず何時でも変更可能である。   Each of the plurality of slot circuits S1 to S4 includes registers R1 to R4 and decoders D1 to D4, respectively. The registers R1 to R4 are registers that hold at least one permission timing count value. The permission timing count value is at least one integer corresponding to any one of count intervals 0 to N which are integer intervals. The permission timing count value (hereinafter referred to as a register value) can be changed at any time from the host CPU 20 connected to the PCI bus 30 regardless of the passage of time.

本図を参照すると、例として、レジスタR1には0が設定され、レジスタR2には1及び2が設定され、レジスタR3には3、4及び5が設定され、レジスタR4には6及び7が設定されている例が示されている。レジスタR1〜R4の各々に設定されている許可タイミングカウント値の個数は、対応するPCIデバイス41〜44の各々に保証されるPCIバス30の占有時間の配分を与える。   Referring to this figure, for example, 0 is set in register R1, 1 and 2 are set in register R2, 3, 4 and 5 are set in register R3, and 6 and 7 are set in register R4. A set example is shown. The number of permission timing count values set in each of the registers R1 to R4 gives an allocation of the occupation time of the PCI bus 30 guaranteed to each of the corresponding PCI devices 41 to 44.

デコーダD1〜D4の各々は、レジスタR1〜R4の各々から供給される許可タイミングカウント値、すなわちレジスタ値と、巡回カウンタ51から供給される現在カウント値と、外部のPCIデバイス41〜44の各々から供給されるReq信号との論理積(AND)を取る回路で構成される。   Each of the decoders D1 to D4 includes an enable timing count value supplied from each of the registers R1 to R4, that is, a register value, a current count value supplied from the cyclic counter 51, and each of the external PCI devices 41 to 44. It consists of a circuit that takes a logical product (AND) with the supplied Req signal.

図示されるように、例えば、デコーダD1〜D4は、2つの論理積演算素子AND1及びAND2から実現される。この場合、現在カウント値とレジスタ値とが論理積演算素子AND1の2つの入力端子に接続され、論理積演算素子AND1の論理積出力が論理積演算素子AND2の1つの入力端子に供給され、他の入力端子にReq信号が供給される。論理積演算素子AND2の論理積出力端子からGnt信号が出力される。出力されるGnt信号は対応するPCIデバイス41〜44の各々に供給される。   As shown in the figure, for example, the decoders D1 to D4 are realized by two AND operation elements AND1 and AND2. In this case, the current count value and the register value are connected to the two input terminals of the AND operation element AND1, the AND output of the AND operation element AND1 is supplied to one input terminal of the AND operation element AND2, and so on. The Req signal is supplied to the input terminal. The Gnt signal is output from the AND output terminal of the AND operation element AND2. The output Gnt signal is supplied to each of the corresponding PCI devices 41 to 44.

図4は、本発明によるデータ転送装置の動作を説明している。現在カウント値は、巡回カウンタ51により定常的に0から7までを繰り返し巡回するように変化している。PCIデバイス41〜44の各々のReq信号を受け付けるタイミングは、それぞれのデコーダD1〜D4の各々に入力されるレジスタ値と現在カウント値とが等しくなった時点だけである。それ以外のタイミングの時点では、入力されたReq信号はウエイトすなわち待ち状態になる。   FIG. 4 illustrates the operation of the data transfer apparatus according to the present invention. The current count value changes so that the cyclic counter 51 circulates from 0 to 7 repeatedly. The timing for receiving the Req signal of each of the PCI devices 41 to 44 is only when the register value input to each of the decoders D1 to D4 is equal to the current count value. At other timings, the input Req signal is in a wait state.

図示されるような時点において、PCIデバイス43からReq信号が入力されたとする。この時、PCIデバイス42が許可されていることから、PCIデバイス43のReq信号は、許可されるタイミングに合うまで待ち合わせ状態になる。PCIデバイス43が許可されるタイミングは、図示されるようにPCIデバイス43のレジスタ値(3,4,5)が現在カウント値に一致する許可タイミングが到来してからとなる。   It is assumed that a Req signal is input from the PCI device 43 at a time point as illustrated. At this time, since the PCI device 42 is permitted, the Req signal of the PCI device 43 is in a waiting state until the permitted timing is met. The timing at which the PCI device 43 is permitted is after the permission timing at which the register value (3, 4, 5) of the PCI device 43 matches the current count value as shown in the figure.

図5は、PCIデバイス毎にデータ転送量が均一化された分布を示している。上記したように、PCIデバイス41〜44の各々が許可されるタイミングの割合は、レジスタR〜R4の各々に設定されたレジスタ値の個数により決まる。本実施例の場合では結果として、PCIデバイス41〜44のバス占有時間は、PCIデバイス41:1/8、PCIデバイス42:2/8、PCIデバイス43:3/8及びPCIデバイス44:2/8のように時間的に配分される。これにより、図示されようにPCIデバイス41〜44の各々が達成するデータ転送量はほぼ均一化された状態となる。   FIG. 5 shows a distribution in which the data transfer amount is made uniform for each PCI device. As described above, the proportion of the timing at which each of the PCI devices 41 to 44 is permitted is determined by the number of register values set in each of the registers R to R4. In the case of the present embodiment, as a result, the bus occupation times of the PCI devices 41 to 44 are as follows: PCI device 41: 1/8, PCI device 42: 2/8, PCI device 43: 3/8, and PCI device 44: 2 / As shown in FIG. As a result, as shown in the figure, the data transfer amount achieved by each of the PCI devices 41 to 44 is almost equalized.

以上の第1の実施例において、巡回カウンタと許可タイミングが設定されるレジスタとを含む簡単な回路構成により信号バスの占有権が複数のPCIデバイス間で容易に調停される。尚、それぞれの占有時間の配分を変更したい場合はレジスタのレジスタ値をホストCPUが変更することで、いつでもそれぞれのPCIデバイスの配分が変更可能となっている。
<第2の実施例>
図6は、本発明の第2の実施例を示し、信号バス占有調停方法を実行する処理手順を示している。第1の実施例では、本発明による信号バス占有調停方法を論理積演算素子等のハードウェア素子を用いて実現する形態が示されたが、本第2の実施例は、本発明による信号バス占有調停方法を、マイクロプロセッサ等による逐次処理プロセスにより実現する形態が示される。ここで、図3に示された巡回カウンタ及びレジスタの如き構成要素は、マイクロプロセッサに接続される主記憶メモリに展開することで実現される。該巡回カウンタの現在カウント値は所定カウント区間を巡回し、各PCIデバイス別に予め許可タイミングカウント値が保持されているものとする。
In the first embodiment described above, the right to occupy the signal bus is easily arbitrated among a plurality of PCI devices by a simple circuit configuration including a cyclic counter and a register for which permission timing is set. If it is desired to change the distribution of the respective occupation times, the distribution of the PCI devices can be changed at any time by the host CPU changing the register value of the register.
<Second embodiment>
FIG. 6 shows a processing procedure for executing the signal bus occupying arbitration method according to the second embodiment of the present invention. In the first embodiment, the signal bus occupancy arbitration method according to the present invention is implemented using hardware elements such as logical product operation elements. However, the second embodiment is a signal bus according to the present invention. A form in which the occupation arbitration method is realized by a sequential processing process by a microprocessor or the like is shown. Here, the components such as the cyclic counter and the register shown in FIG. 3 are realized by developing them in a main memory connected to the microprocessor. It is assumed that the current count value of the circulation counter circulates in a predetermined count section, and the permitted timing count value is held in advance for each PCI device.

PCIバス調停回路50は、あるPCIデバイスからReq信号が送出されるのを待つ待ち状態にある(ステップS1)。次いで、PCIバス調停回路50は、Req信号が有るか否かを判定する(ステップS2)。もしReq信号が無い場合には、ステップS1のReq信号の待ち状態を継続する。一方、Req信号が有る場合には、PCIバス調停回路50は現在カウント値と当該PCIデバイスの許可タイミングカウント値とを比較し(ステップS3)、双方の値が一致するか否かを判定する(ステップS4)。もしも現在カウント値と許可タイミングカウント値とが一致しない場合には、PCIバス調停回路50は、例えばPCIバスのクロック周期の整数倍の如き所定時間待機する(ステップS5)。   The PCI bus arbitration circuit 50 waits for a Req signal to be sent from a certain PCI device (step S1). Next, the PCI bus arbitration circuit 50 determines whether or not there is a Req signal (step S2). If there is no Req signal, the wait state for the Req signal in step S1 is continued. On the other hand, if there is a Req signal, the PCI bus arbitration circuit 50 compares the current count value with the permission timing count value of the PCI device (step S3) and determines whether or not both values match (step S3). Step S4). If the current count value does not match the permission timing count value, the PCI bus arbitration circuit 50 waits for a predetermined time such as an integer multiple of the PCI bus clock cycle (step S5).

一方、現在カウント値と許可タイミングカウント値とが一致する場合には、PCIバス調停回路50はGnt信号を生成して、これをReq信号を送出したPCIデバイスに供給する(ステップS6)。   On the other hand, if the current count value matches the permission timing count value, the PCI bus arbitration circuit 50 generates a Gnt signal and supplies it to the PCI device that sent the Req signal (step S6).

以上の第2の実施例において、PCIバス調停回路の構成を第1の実施例における論理積演算素子に代えてマイクロプロセッサ等の逐次処理装置より代替することでも、第1の実施例と同様の作用を奏すことができる。   In the second embodiment described above, the configuration of the PCI bus arbitration circuit can be replaced with a sequential processing device such as a microprocessor in place of the logical product element in the first embodiment. There is an effect.

以上の複数の実施例において、簡単な回路構成にて、変更自在な優先度に従って信号バスの占有権を調停するPCI調停方法及び回路が提供されている。かかる構成は、ハードウェアのみで構成が可能なため、調停のための負荷がホストCPUにかからないという利点を備える。一方で、ホストCPUにある程度の負荷が許容されれば、ホストCPUが信号バス上のトラフィックを監視しつつ、各デバイスのバス使用状況に応じて信号バスの占有配分を動的に細かく調整することも可能である。   In the above embodiments, there is provided a PCI arbitration method and circuit for arbitrating a right to occupy a signal bus according to a changeable priority with a simple circuit configuration. Such a configuration can be configured only by hardware, and thus has an advantage that no load for arbitration is applied to the host CPU. On the other hand, if a certain load is allowed on the host CPU, the host CPU monitors traffic on the signal bus, and dynamically adjusts the signal bus occupancy distribution according to the bus usage status of each device. Is also possible.

本発明による信号バス占有調停方法や回路は、PCIバスに限られず、PCIExpress規格の如く各デバイスがシリアル転送を行う複数の信号バスを共用してデータ転送をなす他のデータ転送装置にも適用し得る。   The signal bus occupancy arbitration method and circuit according to the present invention are not limited to the PCI bus, but can also be applied to other data transfer apparatuses that perform data transfer by sharing a plurality of signal buses for serial transfer by each device, such as the PCI Express standard. obtain.

本発明の第1の実施例を示し、データ転送装置を含む全体の構成を示しているブロック図である。1 is a block diagram illustrating an overall configuration including a data transfer apparatus according to a first embodiment of this invention. PCIデバイス毎のReq信号及びGnt信号の回数とデータ転送量の分布を示すグラフである。It is a graph which shows the frequency | count of Req signal and Gnt signal for every PCI device, and distribution of data transfer amount. 図1において示したPCIバス調停回路の詳細の構成を示すブロック図である。FIG. 2 is a block diagram showing a detailed configuration of a PCI bus arbitration circuit shown in FIG. 1. 本発明によるデータ転送装置の動作を説明しているチャート図である。It is a chart explaining operation | movement of the data transfer apparatus by this invention. PCIデバイス毎にデータ転送量が均一化された分布を示すグラフである。It is a graph which shows the distribution in which the data transfer amount was equalized for every PCI device. 本発明の第2の実施例を示し、信号バス占有調停方法を実行する処理手順を示すシーケンス図である。It is a sequence diagram which shows the 2nd Example of this invention and shows the process sequence which performs the signal bus occupation arbitration method.

符号の説明Explanation of symbols

10 データ転送装置
20 ホストCPU
30 PCIバス
41〜44 PCIデバイス
50 PCIバス調停回路
51 巡回カウンタ
AND1、AND2 論理積演算素子
D1〜D4 デコーダ
R1〜R4 レジスタ
S1〜S4 スロット回路
10 data transfer device 20 host CPU
30 PCI bus 41 to 44 PCI device 50 PCI bus arbitration circuit 51 cyclic counter
AND1, AND2 AND operation element D1-D4 decoder R1-R4 register S1-S4 slot circuit

Claims (6)

少なくとも1つの信号バスと、各々が占有許可信号に応じて前記信号バスを占有し、これを介してデータ転送をなす複数のデバイスとを含むデータ転送装置における信号バス占有調停方法であって、
所定カウント区間内にある各カウント値を時間経過に従って巡回する現在カウント値を保持する現在カウント値保持ステップと、
前記デバイス毎に、前記カウント値の何れかと一致する少なくとも1つの許可タイミングカウント値を保持する許可タイミングカウント値保持ステップと、
前記デバイスのうちの1のデバイスが生成した占有要求信号に応じて、前記現在カウント値と前記1のデバイスの許可タイミングカウント値とを比較し、双方の値が一致した場合にのみ前記1のデバイスに前記占有許可信号を供給する占有許可信号供給ステップと、
を含むことを特徴とする信号バス占有調停方法。
A signal bus occupancy arbitration method in a data transfer device including at least one signal bus and a plurality of devices each occupying the signal bus in response to an occupancy permission signal and performing data transfer via the signal bus,
A current count value holding step for holding a current count value that circulates each count value within a predetermined count section as time passes;
A permission timing count value holding step for holding at least one permission timing count value that matches any of the count values for each device;
In response to an occupancy request signal generated by one of the devices, the current count value is compared with the permission timing count value of the one device, and only when both values match, the first device An occupancy permission signal supply step for supplying the occupancy permission signal to
A signal bus occupancy arbitration method comprising:
前記現在カウント値保持ステップは、前記信号バスのクロック信号に同期して巡回する現在カウント値を保持することを特徴とする請求項1記載の信号バス占有調停方法。   2. The signal bus occupation arbitration method according to claim 1, wherein the current count value holding step holds a current count value that circulates in synchronization with a clock signal of the signal bus. 前記許可タイミングカウント値保持ステップは、前記時間経過の途中における変更要求に応じて、前記許可タイミングカウント値を変更するステップを含むことを特徴とする請求項1記載の信号バス占有調停方法。   2. The signal bus occupying arbitration method according to claim 1, wherein the permission timing count value holding step includes a step of changing the permission timing count value in response to a change request in the course of the time. 少なくとも1つの信号バスと、各々が占有許可信号に応じて前記信号バスを占有し、これを介してデータ転送をなす複数のデバイスとを含むデータ転送装置であって、
所定カウント区間内の各カウント値を時間経過に従って巡回する現在カウント値を保持する現在カウント値保持手段と、
前記デバイス毎に、前記カウント値の何れかと一致する少なくとも1つの許可タイミングカウント値を保持する許可タイミングカウント値保持手段と、
前記デバイスのうちの1のデバイスが生成した占有要求信号に応じて、前記現在カウント値と前記1のデバイスの許可タイミングカウント値とを比較し、双方の値が一致した場合にのみ前記1のデバイスに前記占有許可信号を供給する占有許可信号供給手段と、
を含むことを特徴とするデータ転送装置。
A data transfer apparatus including at least one signal bus and a plurality of devices each occupying the signal bus in response to an occupancy permission signal and performing data transfer via the signal bus,
Current count value holding means for holding a current count value that circulates each count value in a predetermined count section as time elapses;
Permission timing count value holding means for holding at least one permission timing count value that matches any of the count values for each device;
In response to an occupancy request signal generated by one of the devices, the current count value is compared with the permission timing count value of the one device, and only when both values match, the first device Occupancy permission signal supply means for supplying the occupancy permission signal to
A data transfer device comprising:
前記現在カウント値保持手段は、前記信号バスのクロックタイミングに同期して巡回する現在カウント値を保持することを特徴とする請求項4記載のデータ転送装置。   5. The data transfer apparatus according to claim 4, wherein the current count value holding means holds a current count value that circulates in synchronization with the clock timing of the signal bus. 前記許可タイミングカウント値保持手段は、前記時間経過の途中における変更要求に応じて、前記許可タイミングカウント値を変更する手段を含むことを特徴とする請求項4記載のデータ転送装置。   5. The data transfer apparatus according to claim 4, wherein the permission timing count value holding means includes means for changing the permission timing count value in response to a change request in the middle of the passage of time.
JP2006306849A 2006-11-13 2006-11-13 Signal bus occupancy arbitrating method and data transfer device Pending JP2008123273A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006306849A JP2008123273A (en) 2006-11-13 2006-11-13 Signal bus occupancy arbitrating method and data transfer device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006306849A JP2008123273A (en) 2006-11-13 2006-11-13 Signal bus occupancy arbitrating method and data transfer device

Publications (1)

Publication Number Publication Date
JP2008123273A true JP2008123273A (en) 2008-05-29

Family

ID=39507961

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006306849A Pending JP2008123273A (en) 2006-11-13 2006-11-13 Signal bus occupancy arbitrating method and data transfer device

Country Status (1)

Country Link
JP (1) JP2008123273A (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006031426A (en) * 2004-07-16 2006-02-02 Rohm Co Ltd Shared bus mediation system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006031426A (en) * 2004-07-16 2006-02-02 Rohm Co Ltd Shared bus mediation system

Similar Documents

Publication Publication Date Title
US5623672A (en) Arrangement and method of arbitration for a resource with shared user request signals and dynamic priority assignment
EP1403773B1 (en) Resource management device
JP4480427B2 (en) Resource management device
US6820152B2 (en) Memory control device and LSI
JP2006221611A (en) Resource management device
JP2003157227A (en) Device and method for arbitrating bus access
KR100657256B1 (en) Arbiter and bus system therefor
JP2004038967A (en) Method and device which can control use frequency of bus
JP2007122410A (en) Bus arbitration circuit and method
JP2004246862A (en) Resource management device
JP2007018280A (en) Control method and control circuit for bus system
JP5677007B2 (en) Bus arbitration device and bus arbitration method
JP2008123273A (en) Signal bus occupancy arbitrating method and data transfer device
JP4151362B2 (en) Bus arbitration method, data transfer device, and bus arbitration method
JP2006251875A (en) Bus arbitration device and bus arbitration method
JP2000250853A (en) Bus arbitration controller
JP2008059047A (en) Information processing system and control method therefor
JP7292044B2 (en) Control device and control method
JP2007172105A (en) Interruption arbitration system and interruption arbitration method
JP4610961B2 (en) Access control device
JP2004220309A (en) Multiprocessor system
JP4174213B2 (en) Control circuit
JP4170506B2 (en) Arbitration circuit and method
JP2001167049A (en) Bus arbitrating device
JPH06131307A (en) Load distributing system for multi cpu system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20091005

A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20110114

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20110624

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110705

A02 Decision of refusal

Effective date: 20111206

Free format text: JAPANESE INTERMEDIATE CODE: A02