JPH07295877A - Arbiter - Google Patents

Arbiter

Info

Publication number
JPH07295877A
JPH07295877A JP8196294A JP8196294A JPH07295877A JP H07295877 A JPH07295877 A JP H07295877A JP 8196294 A JP8196294 A JP 8196294A JP 8196294 A JP8196294 A JP 8196294A JP H07295877 A JPH07295877 A JP H07295877A
Authority
JP
Japan
Prior art keywords
access
resource access
arbitration
access request
shared resource
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
JP8196294A
Other languages
Japanese (ja)
Inventor
Masayuki Hisatake
真之 久武
Hiroyuki Saito
宏之 斎藤
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.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox 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 Fuji Xerox Co Ltd filed Critical Fuji Xerox Co Ltd
Priority to JP8196294A priority Critical patent/JPH07295877A/en
Publication of JPH07295877A publication Critical patent/JPH07295877A/en
Pending legal-status Critical Current

Links

Landscapes

  • Bus Control (AREA)

Abstract

PURPOSE:To provide an arbiter capable of controlling the priority of shared resource access requests issued from plural devices without imposing any load on an external device and in addition, through simple configuration. CONSTITUTION:In the arbiter to arbitrate and control each of resource access requests RQ1 to RQ3 arising from plural devices sharing a resource, a first counter 3-1 to count the number of times of the reception of the resource access request about a prescribed device, a second counter 3-2 to count the number of times of the reception of the resource access request of the other devices, a comparator 4 to compare the value of the first counter 3-1 with the value of the second counter 3-2, and a gate circuit 2 to mask the resource access request of the prescribed device in accordance with a compared result in this comparator 4 are provided.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】この発明は、コンピュータのバス
やメモリ等の資源を複数のデバイスで共有する際のアク
セス要求の排他的な制御を行う調停装置に関するもので
ある。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an arbitration device for exclusively controlling access requests when a plurality of devices share resources such as a computer bus and memory.

【0002】[0002]

【従来の技術】コンピュータのバスやメモリ等の資源を
複数のデバイスで共有する装置においては、それぞれの
デバイスから発生する資源アクセス要求信号を受け付け
て、システム固有の優先順位に従って資源のアクセスを
制御することが一般的に行われている。例えば、任意の
時刻で発生している複数のデバイスの資源アクセス要求
の中で最も優先順位の高いデバイスの資源アクセス要求
を選択し、そのデバイスに対してのみ共有資源のアクセ
スが許可される。この方法が調停装置を最も簡単な論理
回路で構成できる反面、優先順位の高いデバイスの資源
要求信号が頻繁に発生する場合は、それより優先順位の
低いデバイスは共有資源を殆どアクセスすることが出来
なくなるという欠点がある。この問題点を鑑みて、優先
順位をダイナミックに変更するという調停装置に関する
発明が数多くなされている。
2. Description of the Related Art In an apparatus in which resources such as a computer bus and memory are shared by a plurality of devices, a resource access request signal generated from each device is accepted and resource access is controlled in accordance with a priority order peculiar to a system. Is commonly done. For example, the resource access request of the device having the highest priority is selected from the resource access requests of a plurality of devices occurring at any time, and the access of the shared resource is permitted only to that device. Although this method can configure the arbitration device with the simplest logic circuit, when the resource request signal of a device with a high priority occurs frequently, the device with a lower priority can access most shared resources. It has the drawback of disappearing. In view of this problem, many inventions have been made regarding an arbitration device that dynamically changes the priority order.

【0003】例えば、特開平4−15741号公報に開
示された技術では、優先順位を記憶する優先順位記憶手
段と、この優先順位記憶手段の内容の書換えを行う優先
順位書き込み手段を具備することによって、必要に応じ
優先順位の変更を優先順位書き込み手段を起動すること
で所望の時期に調停装置の調停優先順位の変更を行うこ
とが可能になっている。
For example, in the technique disclosed in Japanese Patent Laid-Open No. 4-15741, a priority storing means for storing the priority and a priority writing means for rewriting the contents of the priority storing means are provided. It is possible to change the arbitration priority of the arbitration device at a desired time by activating the priority writing means for changing the priority as needed.

【0004】又、特開平5−89034号公報に開示さ
れた技術では、複数のバスマスタが同時にバス使用要求
を発生し、その時点でのバス使用権が確定する度に値が
更新される優先度制御カウンタとバス使用権待ちカウン
タを各バスマスタに対して具備することにより、調停装
置の調停優先順位をダイナミックに変えることができ
る。この技術では、優先度制御カウンタとバス使用権待
ちカウンタの初期値を外部制御装置から設定可能な構成
にしており、各バスマスタがバス使用権を獲得する頻度
に傾斜を持たせて、各バスマスタのバス使用権獲得回数
が一定の比率に保つことが可能となっている。
Further, according to the technique disclosed in Japanese Patent Laid-Open No. 5-89034, a priority in which a value is updated each time a plurality of bus masters simultaneously issue a bus use request and the bus use right at that time is determined. By providing a control counter and a bus usage right waiting counter for each bus master, the arbitration priority of the arbitration device can be dynamically changed. In this technology, the initial values of the priority control counter and the bus usage right waiting counter are set by an external control device, and each bus master has a gradient in the frequency of acquiring the bus usage right so that the bus mastership It is possible to maintain a certain ratio of bus usage rights.

【0005】図9は、画像記録装置のブロック図であ
る。
FIG. 9 is a block diagram of the image recording apparatus.

【0006】スキャナ101で読み取られた原稿はディ
ジタル画像信号に変換され、画像圧縮装置102で圧縮
処理されて符号データに変換され、共有資源であるメモ
リ装置103へ記憶される。この動作と同時に、画像伸
長装置105はメモリ装置103から符号データを読み
出して伸長処理を行い、復元した画像データをプリンタ
装置106へ送り、プリンタ装置106では転送されて
きた画像データの記録が行われる。メモリ装置103で
は、画像圧縮装置102のメモリ書き込みアクセス要求
と画像伸長装置105のメモリ読み出しアクセス要求が
競合することから、それぞれのアクセスの調停が調停装
置104にて行われる。
A document read by the scanner 101 is converted into a digital image signal, compressed by an image compression device 102 and converted into code data, and stored in a memory device 103 which is a shared resource. At the same time as this operation, the image decompressing device 105 reads the coded data from the memory device 103, performs decompression processing, sends the restored image data to the printer device 106, and the printer device 106 records the transferred image data. . In the memory device 103, the memory write access request of the image compression device 102 and the memory read access request of the image decompression device 105 compete with each other, so that the arbitration device 104 arbitrates each access.

【0007】プリンタ装置106に連続して画像データ
を転送する必要がある場合、画像伸長装置105からは
絶え間なく画像データを供給しなければならない。その
ため、画像伸長装置105には伸長処理が連続して行わ
れるように符号データを供給する必要がある。従って、
調停装置104では画像圧縮装置102のメモリ書き込
みアクセス要求よりも画像伸長装置105のメモリ読み
出しアクセス要求の方に優先順位を高く設定した調停が
行われる。
When it is necessary to continuously transfer the image data to the printer device 106, the image expansion device 105 must continuously supply the image data. Therefore, it is necessary to supply the code data to the image decompression device 105 so that the decompression process is continuously performed. Therefore,
The arbitration device 104 performs arbitration in which the memory read access request of the image decompression device 105 has a higher priority than the memory write access request of the image compression device 102.

【0008】ここで、スキャナ101で現在読み取って
いる原稿を同時に記録することを考えると、画像圧縮装
置102が生成した符号データは直ちに画像伸長装置1
05に取り込んで伸長処理される。この場合、画像伸長
装置105のメモリ平均読み出し速度が画像圧縮装置1
02のメモリ平均書き込み速度を上回ると、まだ符号が
書き込まれていないメモリ領域から画像伸長装置105
がデータを読み出してしまい、正常な記録が行われなく
なってしまうので、メモリ読み出し速度がメモリ書き込
み速度を上回らないように調停装置104ではアクセス
の調停が行われなければならない。
Considering that the original document currently being read by the scanner 101 is recorded at the same time, the code data generated by the image compression device 102 is immediately converted into the image decompression device 1.
It is taken in 05 and is expanded. In this case, the average memory read speed of the image decompression device 105 is determined by the image compression device 1.
When the average memory write speed of 02 is exceeded, the image decompression device 105 starts from the memory area where the code is not yet written.
Since the data is read out and normal recording cannot be performed, the arbitration device 104 must perform access arbitration so that the memory read speed does not exceed the memory write speed.

【0009】[0009]

【発明が解決しようとする課題】ところが、画像圧縮装
置102においては入力画像データによって圧縮率が変
動すると、それに応じて処理速度も変動する。同様に画
像伸長装置105においては入力符号データによって処
理速度が変動する。こうした状況においても良好なデー
タ処理が行われるようにするには、画像圧縮装置102
及び画像伸長装置105での処理速度が変動する毎に調
停装置104における調停優先順位を適切に制御するこ
とが必要になる。外部から調停優先順位を変更可能とし
た従来の技術にあっては、図示しないCPUのような制
御装置から頻繁な優先順位の変更を行わなければならず
CPUに対する負荷が大きくなってしまう。又、調停優
先順位をバス使用権が確定する度にダイナミックに変更
するような従来技術にあっては、バス使用権が平均的に
分散するように調停優先順位が変更されるものの、上記
の例のごとく緊急な調停優先順位の変更を必要とする場
合は優先度制御カウンタとバス使用権待ちカウンタの初
期値を頻繁に変えなければならずCPUに対する負荷が
同様に大きくなってしまう。
However, in the image compression apparatus 102, if the compression rate changes depending on the input image data, the processing speed also changes accordingly. Similarly, in the image expansion device 105, the processing speed varies depending on the input code data. In order to ensure good data processing even in such a situation, the image compression device 102
Also, it is necessary to appropriately control the arbitration priority order in the arbitration device 104 each time the processing speed in the image decompression device 105 changes. In the conventional technique in which the arbitration priority can be changed from the outside, the control device such as a CPU (not shown) must frequently change the priority, which increases the load on the CPU. In the prior art in which the arbitration priority is dynamically changed each time the bus use right is determined, the arbitration priority is changed so that the bus use right is dispersed evenly. When it is necessary to urgently change the arbitration priority order, the initial values of the priority control counter and the bus right-of-use waiting counter must be changed frequently, and the load on the CPU also increases.

【0010】かかる状況を鑑みて本発明はなされたもの
であって、外部制御装置に負荷をかけることなく、しか
も簡単な構成で複数のデバイスから発せられる共有資源
アクセス要求の優先順位を制御し得る調停装置を提供す
ることを目的とする。
The present invention has been made in view of such circumstances, and it is possible to control the priority order of shared resource access requests issued from a plurality of devices without imposing a load on the external control device and with a simple configuration. An object is to provide an arbitration device.

【0011】[0011]

【課題を解決するための手段】第1の発明の調停装置
は、所定デバイスに関する資源アクセス要求の受付回数
を計数する第1の計数手段と、それ以外のデバイスの資
源アクセス要求の受付回数を計数する第2の計数手段
と、前記第1の計数手段の値と前記第2の計数手段の値
を比較する比較手段と、前記比較手段における比較結果
に応じて前記所定デバイスの資源アクセス要求をマスク
するマスク手段を具備したことを特徴とする。
The arbitration device of the first invention counts the number of times a resource access request is received for a predetermined device, and the number of times a resource access request is received for other devices. Second counting means, comparing means for comparing the value of the first counting means with the value of the second counting means, and masking the resource access request of the predetermined device according to the comparison result in the comparing means. It is characterized in that it is provided with a masking means.

【0012】第2の発明の調停装置は、所定デバイスの
共有資源アクセス回数を累計する第1の計数手段と、そ
れ以外のデバイスの資源アクセス回数を累計する第2の
計数手段と、前記第1の計数手段の値と前記第2の計数
手段の値を比較する比較手段と、前記比較手段における
比較結果に応じて前記所定デバイスの資源アクセス回数
を制御する資源アクセス信号発生部を具備したことを特
徴とする。
An arbitration device of a second invention is that the first counting means for accumulating the shared resource access times of a predetermined device, the second counting means for accumulating the resource access times of other devices, and the first Comparing means for comparing the value of the counting means with the value of the second counting means, and a resource access signal generating section for controlling the number of times of resource access of the predetermined device according to the comparison result in the comparing means. Characterize.

【0013】第3の発明の調停装置は、所定デバイスに
関する資源アクセス要求の受付回数をダウンカウント
し、それ以外のデバイスの資源アクセス要求の受付回数
をアップカウントする計数手段を具備し、前記計数手段
の計数値に応じて前記所定デバイスの資源アクセス要求
をマスクするマスク手段を具備したことを特徴とする。
第4の発明の調停装置は、所定デバイスの共有資源アク
セス回数をダウンカウントし、それ以外のデバイスの資
源アクセス回数をアップカウントする計数手段を具備
し、前記計数手段の計数値に応じて前記所定デバイスの
資源アクセス要求をマスクするマスク手段を具備したこ
とを特徴とする。
The arbitration device of the third invention comprises counting means for down-counting the number of times of receiving a resource access request for a predetermined device and up-counting the number of times of receiving a resource access request for other devices. It is characterized by comprising mask means for masking the resource access request of the predetermined device according to the count value of.
An arbitration device according to a fourth aspect of the present invention includes counting means for down-counting the number of shared resource accesses of a predetermined device and up-counting the number of resource access of other devices, and the predetermined device according to the count value of the counting means. It is characterized by comprising mask means for masking a resource access request of the device.

【0014】[0014]

【作用】第1の発明によれば、所定デバイスに関する資
源アクセス要求の受付回数と1回の資源アクセスによっ
て書き込むデータ量から、調停が行われた時点での共有
資源へ書き込み転送したデータ量が分かる。調停装置で
は、このデータを読み出すデバイスの資源アクセス要求
の受付回数が、所定デバイスに関する資源アクセス要求
の受付回数の範囲内となるようにそれ以外のデバイスの
資源アクセス要求の調停参加が制限される。
According to the first aspect of the invention, the amount of data written and transferred to the shared resource at the time of arbitration can be found from the number of times the resource access request for the predetermined device is received and the amount of data written by one resource access. . In the arbitration device, the arbitration participation of the resource access requests of other devices is restricted so that the number of times of accepting the resource access request of the device reading the data is within the range of the number of times of accepting the resource access request for the predetermined device.

【0015】第2の発明によれば、所定デバイスの共有
資源アクセス回数の累計から、調停が行われた時点での
共有資源へ書き込み転送したデータ量が分かる。調停装
置では、このデータを読み出すデバイスの資源アクセス
要求が許可された時の読み出しアクセス回数の累計が、
所定デバイスに関する資源アクセス回数の累計以下にな
るように制限される。
According to the second aspect of the invention, the amount of data written and transferred to the shared resource at the time when the arbitration is performed can be known from the cumulative number of times the shared resource is accessed by the predetermined device. In the arbitration device, the total number of read accesses when the resource access request of the device reading this data is permitted is
It is limited so that it is less than or equal to the total number of times of resource access for a predetermined device.

【0016】第3の発明によれば、計数手段は、所定デ
バイスに関する資源アクセス要求の受付回数をダウンカ
ウントし、それ以外のデバイスの資源アクセス要求の受
付回数をアップカウントするので計数手段の計数値によ
り、調停が行われた時点での2つのアクセス要求の受付
回数の差がわかる。調停装置では、このデータを読み出
すデバイスの資源アクセス要求の受付回数が、所定デバ
イスに関する資源アクセス要求の受付回数の範囲内とな
るようにそれ以外のデバイスの資源アクセス要求の調停
参加が制限される。
According to the third aspect of the invention, the counting means down-counts the number of resource access requests accepted for a predetermined device and up-counts the number of resource access requests accepted by other devices. Thus, the difference in the number of times of accepting two access requests at the time when arbitration is performed can be known. In the arbitration device, the arbitration participation of the resource access requests of other devices is restricted so that the number of times of accepting the resource access request of the device reading the data is within the range of the number of times of accepting the resource access request for the predetermined device.

【0017】第4の発明によれば、計数手段は、所定デ
バイスの資源アクセス回数をダウンカウントし、それ以
外のデバイスの資源アクセス回数をアップカウントする
ので計数手段の計数値により、調停が行われた時点での
共有資源への書き込み転た送したデータ量と読み出した
データ量の差が分かる。調停装置では、このデータを読
み出すデバイスの資源アクセス要求が許可された時の読
み出しアクセス回数の累計が、所定デバイスに関する資
源アクセス回数の累計以下になるように制限される。
According to the fourth invention, the counting means down-counts the resource access times of the predetermined device and up-counts the resource access times of the other devices, so that the arbitration is performed by the count value of the counting means. At this point, the difference between the amount of data transferred to the shared resource and the amount of data read out can be known. In the arbitration device, the total number of read accesses when the resource access request of the device for reading the data is permitted is limited to be equal to or less than the total number of resource access for the predetermined device.

【0018】[0018]

【実施例】以下、図面を参照しながら本発明の実施例を
説明する。
Embodiments of the present invention will be described below with reference to the drawings.

【0019】図1は本発明の第1実施例による調停装置
の構成図である。
FIG. 1 is a block diagram of an arbitration device according to a first embodiment of the present invention.

【0020】RQ1〜RQ3はそれぞれ異なるデバイス
から発せられる共有資源アクセス要求信号である。以下
の説明において、RQ2を発する図示しない第2デバイ
スが共有資源にデータを書き込み、そのデータを、RQ
1を発する図示しない第1デバイスが読み出して処理
し、共有資源アクセスの優先順位はRQ3からRQ1の
順に高くなっているものとする。
RQ1 to RQ3 are shared resource access request signals issued from different devices. In the following description, a second device (not shown) that issues RQ2 writes data to the shared resource,
It is assumed that the first device (not shown) which issues 1 reads and processes the shared resource access, and the priority order of the shared resource access increases from RQ3 to RQ1.

【0021】アクセス要求調停部1は、任意の時刻に到
着した資源アクセス要求入力の中で最も優先順位の高い
入力に対する出力のみアサート状態にする論理回路であ
る。ここで、出力5−1はRQ1入力に、出力5−2は
RQ2入力、出力5−3はRQ3入力に対応している。
カウンタ3−1,3−2は、それぞれアクセス要求調停
部1の出力5−1,5−2がアサートされた回数を計数
するフリップフロップなどから構成されるカウンタ回路
である。比較器4は、カウンタ3−1,3−2の出力を
比較する論理回路である。ゲート回路2は、比較器4の
出力によってRQ1をアクセス要求調停部1に入力する
ことを禁止する論理回路である。 各部の動作を図2を
用いて説明する。
The access request arbitration unit 1 is a logic circuit that asserts only the output for the input having the highest priority among the resource access request inputs that arrive at any time. Here, the output 5-1 corresponds to the RQ1 input, the output 5-2 corresponds to the RQ2 input, and the output 5-3 corresponds to the RQ3 input.
The counters 3-1 and 3-2 are counter circuits each including a flip-flop that counts the number of times the outputs 5-1 and 5-2 of the access request arbitration unit 1 are asserted. The comparator 4 is a logic circuit that compares the outputs of the counters 3-1 and 3-2. The gate circuit 2 is a logic circuit that prohibits the input of the RQ1 to the access request arbitration unit 1 by the output of the comparator 4. The operation of each unit will be described with reference to FIG.

【0022】時刻t1で第1デバイスの共有資源アクセ
ス要求信号RQ1のアサートを検出したアクセス要求調
停部1は、出力5−1のみアサートする。この信号によ
りカウンタ3−1は、前回のカウント値n−3からn−
2へカウントアップする。即ち、カウンタ3−1の値C
NT1は、アクセス要求調停部1にて第1デバイスの共
有資源アクセス要求が許可された回数を示している。同
様にカウンタ3−2の値CNT2は、第2デバイスの共
有資源アクセス要求が許可された回数を表している。調
停部出力5−1は、第1デバイスが共有資源を読み出し
アクセスしている期間アサート状態を保持するので、第
2デバイスから出された共有資源アクセス要求信号RQ
2は、第1デバイスの読み出しアクセスが終了する時刻
t2まで保留される。 時刻t2からt3の期間は、第
2デバイスの共有資源の書き込みアクセスが行われ、調
停部出力5−2がアサートされた時刻t2でカウンタ3
−2がカウント値nにカウントアップする。その後、2
回連続して第1デバイスの共有資源読み出しアクセスが
許可されるが、時刻t4ではカウンタ3−1のカウント
値がnとなってカウンタ3−2の値と一致する。つまり
今回の読み出しアクセスによって、第2デバイスが共有
資源に書き込んだデータを、全て第1デバイスが読み出
されたことを表している。従って、第1デバイスの共有
資源読み出しアクセスをこれ以上許可すると、第1デバ
イスが意味の無いデータを読み出してしまうことにな
る。比較器出力CMPは時刻t4でアサート状態にな
り、ゲート回路2からアクセス要求信号RQ1が出力さ
れるのをマスクする。結果として、この期間の第1デバ
イスのアクセス要求はアクセス要求調停部1で無視さ
れ、第1デバイスの不要なアクセスが禁止される。時刻
t5で第1デバイスの読み出しアクセスが終了すると、
引続き第3デバイスの共有資源アクセス要求が許可さ
れ、第3デバイスの共有資源アクセスが終了する時刻t
6までの期間、調停部出力5−3がアサート状態を保持
する。
The access request arbitration unit 1 which has detected the assertion of the shared resource access request signal RQ1 of the first device at time t1 asserts only the output 5-1. By this signal, the counter 3-1 causes the previous count value n-3 to n-
Count up to 2. That is, the value C of the counter 3-1
NT1 indicates the number of times the access request arbitration unit 1 permits the shared resource access request of the first device. Similarly, the value CNT2 of the counter 3-2 represents the number of times the shared resource access request of the second device is permitted. Since the arbitration unit output 5-1 holds the asserted state while the first device is reading and accessing the shared resource, the shared resource access request signal RQ issued from the second device is held.
2 is reserved until time t2 when the read access of the first device ends. During the period from the time t2 to the time t3, the write access to the shared resource of the second device is performed and the counter 3 is started at the time t2 when the arbitration unit output 5-2 is asserted.
-2 counts up to the count value n. Then 2
Although the shared resource read access of the first device is permitted consecutively, the count value of the counter 3-1 becomes n at time t4, which coincides with the value of the counter 3-2. In other words, this read access indicates that the first device has read all the data written in the shared resource by the second device. Therefore, if the shared resource read access of the first device is further permitted, the first device will read meaningless data. The comparator output CMP becomes asserted at time t4 and masks the output of the access request signal RQ1 from the gate circuit 2. As a result, the access request of the first device during this period is ignored by the access request arbitration unit 1, and unnecessary access of the first device is prohibited. When the read access of the first device ends at time t5,
The time t at which the shared resource access request of the third device is subsequently permitted and the shared resource access of the third device ends.
During the period up to 6, the arbitration unit output 5-3 holds the asserted state.

【0023】時刻t6から時刻t7の期間、最も優先順
位の高いアクセス要求信号RQ1がアサートされている
が、比較器出力CMPがアサートしているためゲート回
路2でアクセス要求信号RQ1はマスクされる。このた
め、時刻t7で第1デバイスより優先順位の低い第2デ
バイスの共有資源アクセス要求信号RQ2がアサートさ
れるとアクセス要求調停部1はそちらの方を優先して許
可し、アクセス要求調停部出力5−2がアサートされ
る。同時にカウンタ3−2のカウント値がnからn+1
に変化するので、比較器出力CMPはネゲートし、ゲー
ト回路2でのアクセス要求信号RQ1マスクが解除さ
れ、第2デバイスの書き込みアクセスが終了する時刻t
8で第1デバイスの読み出しアクセスが許可されて調停
部出力5−1が時刻t9までアサートし、カウンタ3−
1はn+1にカウントアップする。
The access request signal RQ1 having the highest priority is asserted during the period from time t6 to time t7, but the gate circuit 2 masks the access request signal RQ1 because the comparator output CMP is asserted. Therefore, when the shared resource access request signal RQ2 of the second device having a lower priority than the first device is asserted at time t7, the access request arbitration unit 1 gives priority to the access request arbitration unit 1 and outputs the access request arbitration unit. 5-2 is asserted. At the same time, the count value of the counter 3-2 changes from n to n + 1.
Therefore, the comparator output CMP is negated, the access request signal RQ1 mask in the gate circuit 2 is released, and the time t at which the write access of the second device ends.
8, the read access of the first device is permitted, the arbitration unit output 5-1 asserts until time t9, and the counter 3-
1 counts up to n + 1.

【0024】この説明からも明らかなように、第1デバ
イスと第2デバイスそれぞれの共有資源アクセスの受付
回数が一致した時点で第1デバイスにアクセス権が与え
られなくなり、この時に外部から優先順位変更といった
特別な制御が入っていない。
As is clear from this description, the access right is no longer given to the first device when the number of times the first device and the second device have received the shared resource access match, and at this time, the priority is changed from the outside. There is no special control such as.

【0025】尚、第1デバイスと第2デバイスの共有資
源アクセスの受付回数に所定の差が生じた時点で第1デ
バイスにアクセス権が与えられないようにしてもよい。
更に、第1デバイスの共有資源アクセス要求が調停に参
加できるようになる条件は、実施例のようにアクセス回
数が一致しなくなった時点に限らず、アクセス回数に所
定以上の差ができた時としてもよい。
The access right may not be given to the first device when a predetermined difference occurs in the number of times the first device and the second device receive shared resource access.
Furthermore, the condition for the shared resource access request of the first device to be able to participate in the arbitration is not limited to the time when the access counts do not match as in the embodiment, but is set to the time when the access counts differ by a predetermined amount or more. Good.

【0026】次に本発明にかかる2つ目の実施例につい
て説明する。
Next, a second embodiment according to the present invention will be described.

【0027】図3は本発明の第2実施例による調停装置
の構成図である。図中、第1実施例と同じ機能を果たす
ブロックについては図1と同一の番号を付けている。
FIG. 3 is a block diagram of an arbitration device according to a second embodiment of the present invention. In the figure, blocks having the same functions as those in the first embodiment are designated by the same numbers as in FIG.

【0028】アクセス制御信号発生部10−1〜10−
3はそれぞれ第1デバイス〜3の共有資源アクセス信号
(共有資源であるメモリに対するメモリ読み出し制御信
号やメモリ書き込み制御信号など)14−1〜14−3
と対応するデバイスへの応答信号15−1〜15−3
を、調停部出力5−1〜5−3がアサートされたのを検
出して発生する順序論理回路である。カウンタ11−
1,11−2は、それぞれ第1デバイスの共有資源アク
セス信号14−1と第2デバイスの共有資源アクセス信
号14−2がアサートされた回数を計数するカウンタ回
路である。比較器12は、カウンタ11−1,11−2
の出力を比較する論理回路である。アクセス信号合成部
13は、各デバイスに対するアクセス制御信号発生部1
0−1〜10−3で生成された共有資源アクセス信号1
4−1〜14−3を一つにまとめて図示されない共有資
源に与えるブロックで、ORゲートなどから構成される
論理回路である。
Access control signal generators 10-1 to 10-
Reference numerals 3 to 14-3 designate shared resource access signals (memory read control signals and memory write control signals for the memory which are shared resources) of the first devices to 3 respectively.
And response signals 15-1 to 15-3 to the corresponding device
Is a sequential logic circuit that generates by detecting that the arbitration unit outputs 5-1 to 5-3 are asserted. Counter 11-
Reference numerals 1 and 11-2 are counter circuits for counting the number of times the shared resource access signal 14-1 of the first device and the shared resource access signal 14-2 of the second device are asserted, respectively. The comparator 12 includes counters 11-1 and 11-2.
Is a logic circuit that compares the outputs of the. The access signal synthesizer 13 includes an access control signal generator 1 for each device.
Shared resource access signal 1 generated in 0-1 to 10-3
It is a block that combines 4-1 to 14-3 into one and gives them to a shared resource (not shown), and is a logic circuit composed of an OR gate or the like.

【0029】第2実施例の動作を図4を用いて説明す
る。
The operation of the second embodiment will be described with reference to FIG.

【0030】時刻t11で第1デバイスの共有資源アク
セス要求信号RQ1のアサートを検出したアクセス要求
調停部1は、出力5−1のみアサートする。調停部出力
5−1がアサート状態になったことでアクセス制御信号
発生部10−1に起動がかかり、共有資源アクセス信号
14−1と応答信号15−1が生成される。アクセス信
号14−1は共有資源読み出し信号で、この信号の立ち
上がりエッジでカウンタ11−1がカウントアップす
る。尚ここでは第1デバイスの1回の共有資源アクセス
要求に対して4回の読み出しアクセスが許可されるもの
とする。従って、図4のように、共有資源アクセス信号
14−1と応答信号15−1はそれぞれ4回アサートさ
れている。時刻t12で第1デバイスのアクセスが終了
した時点でカウンタ11−1の値CNT3はn−3から
n+1に増加している。時刻t12までの間に第2デバ
イス及び3の共有資源アクセス要求信号RQ2,RQ3
がアサートしているが、時刻t12では優先順位の高い
第2デバイスに対してアクセス権が与えられて調停部出
力5−2がアサートされる。これによってアクセス制御
信号発生部10−2に起動がかかり、共有資源書き込み
信号である共有資源アクセス信号14−2と応答信号1
5−2が生成される。時刻t13までの間に第2デバイ
スの2回の共有資源書き込みアクセスが行われ、共有資
源アクセス信号14−2の立ち上がりでカウンタ11−
2の値はn+2からn+4へ増加する。時刻t13で第
2デバイスのアクセスが終了するが、この時点で第1デ
バイスと第3デバイスのアクセス要求が競合しており、
優先順位の高い第1デバイスに対してアクセス権が与え
られて調停部出力5−1がアサートされる。その後、第
1デバイスの共有資源読み出しアクセスが3回行われた
時刻t14においてカウンタ11−1の値とカウンタ1
1−2の値がn+4で一致し、比較器出力16がアサー
トする。これによってアクセス制御信号生成部10−1
では4回目のアクセスが禁止されて調停部出力5−1を
ネゲートして共有資源のアクセスを一旦終了し、同時に
アクセス要求調停部1では共有資源アクセス要求信号R
Q1を無視して次のアクセスに対する調停を開始する。
この時点でようやく第3デバイスにアクセス権が与えら
れ、時刻t15で第3デバイスの共有資源書き込みアク
セスが終了する。時刻t15では第2デバイスにアクセ
ス権が与えられ、2回の共有資源書き込みアクセスでカ
ウンタ11−2の値がn+4からn+6に増加し、カウ
ンタ11−2の値がn+5に変化した時点で比較器出力
16の値がネゲートする。そして、第2デバイスの共有
資源書き込みアクセスが終了した時刻t16で保留され
ていた第1デバイスの共有資源読み出しアクセスが再び
許可されて4回目の読み出しアクセスが終了した時刻t
17ではアクセス要求信号RQ1のネゲートを検出して
調停部出力5−1がネゲート状態になり、第1デバイス
の読み出しアクセスが終了する。
The access request arbitration unit 1 which has detected the assertion of the shared resource access request signal RQ1 of the first device at time t11 asserts only the output 5-1. Since the arbitration unit output 5-1 is asserted, the access control signal generation unit 10-1 is activated, and the shared resource access signal 14-1 and the response signal 15-1 are generated. The access signal 14-1 is a shared resource read signal, and the counter 11-1 counts up at the rising edge of this signal. Here, it is assumed that the read access is permitted four times with respect to one shared resource access request from the first device. Therefore, as shown in FIG. 4, the shared resource access signal 14-1 and the response signal 15-1 are each asserted four times. The value CNT3 of the counter 11-1 has increased from n-3 to n + 1 when the access of the first device ends at time t12. Shared resource access request signals RQ2, RQ3 of the second device and the third device until time t12
However, at time t12, the access right is given to the second device having a higher priority and the arbitration unit output 5-2 is asserted. As a result, the access control signal generation unit 10-2 is activated, and the shared resource access signal 14-2 and the response signal 1 which are shared resource write signals.
5-2 is generated. The shared resource write access of the second device is performed twice until the time t13, and the counter 11-
The value of 2 increases from n + 2 to n + 4. At time t13, the access of the second device ends, but at this time, the access requests of the first device and the third device are in conflict,
The access right is given to the first device having the higher priority, and the arbitration unit output 5-1 is asserted. After that, at the time t14 when the shared resource read access of the first device is performed three times, the value of the counter 11-1 and the counter 1
The values of 1-2 match at n + 4 and the comparator output 16 asserts. Accordingly, the access control signal generation unit 10-1
Then, the fourth access is prohibited, the arbitration unit output 5-1 is negated to end the access of the shared resource, and at the same time, the access request arbitration unit 1 outputs the shared resource access request signal R.
Arbitration for the next access is started ignoring Q1.
At this point, the access right is finally given to the third device, and the shared resource write access of the third device ends at time t15. At time t15, the access right is given to the second device, the value of the counter 11-2 is increased from n + 4 to n + 6 by the two shared resource write accesses, and the comparator is changed when the value of the counter 11-2 is changed to n + 5. The value of output 16 negates. Then, at time t16 when the shared resource write access of the second device ends, the shared resource read access of the first device, which was suspended, is permitted again, and time t when the fourth read access ends.
In 17, the negation of the access request signal RQ1 is detected, the arbitration unit output 5-1 becomes the negated state, and the read access of the first device ends.

【0031】この第2実施例では、第1デバイスの共有
資源読み出しアクセス回数と第2デバイスの共有資源書
き込み回数が一致した時点で、第1デバイスの読み出し
アクセスを一旦停止してアクセスを終了し、他のデバイ
スにアクセス権を譲るとともに、第1デバイスに対して
はアクセス権が与えられなくなる。第1実施例と同様
に、この時に外部から優先順位変更といった特別な制御
が入っていない。
In the second embodiment, when the shared resource read access count of the first device and the shared resource write count of the second device match, the read access of the first device is temporarily stopped and the access is terminated. While giving the access right to the other device, the access right is not given to the first device. Similar to the first embodiment, at this time, no special control such as priority change from outside is entered.

【0032】尚、上記2つの実施例では、第2デバイス
が書き込んだデータを第1デバイスが引続き読み出す場
合を説明したが、第2デバイスがデータを読み出した領
域に第1デバイスが新しいデータを書き込むような場合
にもそれぞれの発明が適用できることは明らかである。
In the above two embodiments, the case where the first device continues to read the data written by the second device has been described. However, the first device writes new data in the area where the second device has read the data. It is obvious that each invention can be applied to such cases.

【0033】次に本発明にかかる3つ目の実施例につい
て説明する。
Next, a third embodiment according to the present invention will be described.

【0034】図5は本発明の第3実施例による調停装置
の構成図である。図中、第1実施例と同じ機能を果たす
ブロックと信号名については図1と同一の番号を付けて
いる。
FIG. 5 is a block diagram of an arbitration device according to a third embodiment of the present invention. In the figure, the blocks having the same functions as those in the first embodiment and the signal names are given the same numbers as in FIG.

【0035】アップダウンカウンタ20は、アクセス要
求調停部1の出力5−2がアサートされるとカウンタダ
ウンし、アクセス要求調停部1の出力5−1がアサート
されるとカウンタアップするフリップフロップなどから
構成されるアップダウンカウンタ回路である。アップダ
ウンカウンタ20の出力MSB(=Most Sign
ificant Bit:最上位ビット)は符号ビット
である。MSBはカウント値が0以上で0、0未満の場
合1となる。ゲート回路21は、アップダウンカウンタ
20の出力によってRQ1をアクセス要求調停部1に入
力することを禁止する論理回路である各部の動作を図6
を用いて説明する。
The up / down counter 20 counts down when the output 5-2 of the access request arbitration unit 1 is asserted, and counts up when the output 5-1 of the access request arbitration unit 1 is asserted. It is an up / down counter circuit configured. Output MSB of up / down counter 20 (= Mast Sign
ifificant Bit: most significant bit) is a sign bit. MSB is 1 when the count value is 0 or more and 0 and less than 0. The gate circuit 21 shows the operation of each unit which is a logic circuit for prohibiting the input of RQ1 to the access request arbitration unit 1 by the output of the up / down counter 20.
Will be explained.

【0036】時刻t1で第1デバイスの共有資源アクセ
ス要求信号RQ1のアサートを検出したアクセス要求調
停部1は、出力5−1のみアサートする。この信号によ
りアップダウンカウンタ20は、前回のカウント値(図
中CNT)−2から−1へカウントアップする。調停部
出力5−1は、第1デバイスが共有資源を読み出しアク
セスしている期間アサート状態を保持するので、第2デ
バイスから出された共有資源アクセス要求信号RQ2
は、第1デバイスの読み出しアクセスが終了する時刻t
2まで保留される。 時刻t2からt3の期間は、第2
デバイスの共有資源の書き込みアクセスが行われ、調停
部出力5−2がアサートされた時刻t2でアップダウン
カウンタ20がカウント値−2にカウントダウンする。
その後、2回連続して第1デバイスの共有資源読み出し
アクセスが許可されるが、時刻t4ではアップダウンカ
ウンタ20のカウント値が0となってMSBは0とな
る。つまり今回の読み出しアクセスによって、第2デバ
イスが共有資源に書き込んだデータを、全て第1デバイ
スが読み出されたことを表している。従って、第1デバ
イスの共有資源読み出しアクセスをこれ以上許可する
と、第1デバイスが意味の無いデータを読み出してしま
うことになる。アップダウンカウンタ出力MSBは時刻
t4でアサート状態になり、ゲート回路21からアクセ
ス要求信号RQ1が出力されるのをマスクする。結果と
して、この期間の第1デバイスのアクセス要求はアクセ
ス要求調停部1で無視され、第1デバイスの不要なアク
セスが禁止される。時刻t5で第1デバイスの読み出し
アクセスが終了すると、引続き第3デバイスの共有資源
アクセス要求が許可され、第3デバイスの共有資源アク
セスが終了する時刻t6までの期間、調停部出力5−3
がアサート状態を保持する。時刻t6から時刻t7の期
間、最も優先順位の高いアクセス要求信号RQ1がアサ
ートされているが、アップダウンカウンタ出力MSBが
アサートしているためゲート回路2でアクセス要求信号
RQ1はマスクされる。このため、時刻t7で第1デバ
イスより優先順位の低い第2デバイスの共有資源アクセ
ス要求信号RQ2がアサートされるとアクセス要求調停
部1はそちらの方を優先して許可し、アクセス要求調停
部出力5−2がアサートされる。同時にアップダウンカ
ウンタのカウント値が0から−1に変化するので、アッ
プダウンカウンタ出力MSBはネゲートし、ゲート回路
21でのアクセス要求信号RQ1マスクが解除され、第
2デバイスの書き込みアクセスが終了する時刻t8で第
1デバイスの読み出しアクセスが許可されて調停部出力
5−1が時刻t9までアサートし、アップダウンカウン
タは0にカウントアップする。 この説明からも明らか
なように、第1デバイスと第2デバイスそれぞれの共有
資源アクセスの受付回数が一致した時点で第1デバイス
にアクセス権が与えられなくなる。第1、第2実施例と
同様に、この時に外部から優先順位変更といった特別な
制御が入っていない。
The access request arbitration unit 1, which has detected the assertion of the shared resource access request signal RQ1 of the first device at time t1, asserts only the output 5-1. This signal causes the up / down counter 20 to count up from the previous count value (CNT in the figure) -2 to -1. Since the arbitration unit output 5-1 holds the asserted state while the first device is reading and accessing the shared resource, the shared resource access request signal RQ2 issued from the second device.
Is the time t at which the read access of the first device ends.
Holds up to 2. The period from time t2 to t3 is the second
The write access to the shared resource of the device is performed and the up / down counter 20 counts down to the count value −2 at time t2 when the arbitration unit output 5-2 is asserted.
Thereafter, the shared resource read access of the first device is permitted twice consecutively, but at time t4, the count value of the up / down counter 20 becomes 0 and the MSB becomes 0. In other words, this read access indicates that the first device has read all the data written in the shared resource by the second device. Therefore, if the shared resource read access of the first device is further permitted, the first device will read meaningless data. The up / down counter output MSB becomes an assert state at time t4 and masks the output of the access request signal RQ1 from the gate circuit 21. As a result, the access request of the first device during this period is ignored by the access request arbitration unit 1, and unnecessary access of the first device is prohibited. When the read access of the first device ends at time t5, the shared resource access request of the third device is continuously permitted, and the arbitration unit output 5-3 until the time t6 when the shared resource access of the third device ends.
Holds the asserted state. The access request signal RQ1 having the highest priority is asserted during the period from time t6 to time t7, but the access request signal RQ1 is masked by the gate circuit 2 because the up-down counter output MSB is asserted. Therefore, when the shared resource access request signal RQ2 of the second device having a lower priority than the first device is asserted at the time t7, the access request arbitration unit 1 gives priority to the access request arbitration unit 1 and outputs the access request arbitration unit. 5-2 is asserted. At the same time, since the count value of the up / down counter changes from 0 to -1, the up / down counter output MSB is negated, the access request signal RQ1 mask in the gate circuit 21 is released, and the write access of the second device ends. At t8, the read access of the first device is permitted, the arbitration unit output 5-1 asserts until time t9, and the up / down counter counts up to 0. As is apparent from this description, the access right is not granted to the first device when the shared resource access acceptance times of the first device and the second device match. Similar to the first and second embodiments, no special control such as priority change from outside is entered at this time.

【0037】尚、第1デバイスと第2デバイスの共有資
源アクセスの受付回数に所定の差が生じた時点で第1デ
バイスにアクセス権が与えられないようにしてもよい。
更に、第1デバイスの共有資源アクセス要求が調停に参
加できるようになる条件は、実施例のようにアクセス回
数が一致しなくなった時点に限らず、アクセス回数に所
定以上の差ができた時としてもよい。
The access right may not be given to the first device when a predetermined difference occurs in the number of times the first device and the second device receive shared resource access.
Furthermore, the condition for the shared resource access request of the first device to be able to participate in the arbitration is not limited to the time when the access counts do not match as in the embodiment, but is set to the time when the access counts differ by a predetermined amount or more. Good.

【0038】次に本発明にかかる4つ目の実施例につい
て説明する。
Next, a fourth embodiment according to the present invention will be described.

【0039】図7は本発明の第4実施例による調停装置
の構成図である。図中、第1実施例と同じ機能を果たす
ブロックについては図1と同一の番号を付けている。
FIG. 7 is a block diagram of an arbitration device according to a fourth embodiment of the present invention. In the figure, blocks having the same functions as those in the first embodiment are designated by the same numbers as in FIG.

【0040】アクセス制御信号発生部10−1〜10−
3はそれぞれ第1デバイス〜3の共有資源アクセス信号
(共有資源であるメモリに対するメモリ読み出し制御信
号やメモリ書き込み制御信号など)14−1〜14−3
と対応するデバイスへの応答信号15−1〜15−3
を、調停部出力5−1〜5−3がアサートされたのを検
出して発生する順序論理回路である。アップダウンカウ
ンタ30は、第1デバイスの共有資源アクセス信号14
−1がアサートされるとカウンタダウンし、第2デバイ
スの共有資源アクセス信号14−2がアサートされると
カウンタアップするアップダウンカウンタ回路である。
アクセス信号合成部13は、各デバイスに対するアクセ
ス制御信号発生部10−1〜10−3で生成された共有
資源アクセス信号14−1〜14−3を一つにまとめて
図示されない共有資源に与えるブロックで、ORゲート
などから構成される論理回路である。
Access control signal generators 10-1 to 10-
Reference numerals 3 to 14-3 designate shared resource access signals (memory read control signals and memory write control signals for the memory which are shared resources) of the first devices to 3 respectively.
And response signals 15-1 to 15-3 to the corresponding device
Is a sequential logic circuit that generates by detecting that the arbitration unit outputs 5-1 to 5-3 are asserted. The up / down counter 30 controls the shared resource access signal 14 of the first device.
It is an up-down counter circuit that counts down when -1 is asserted and counts up when the shared resource access signal 14-2 of the second device is asserted.
The access signal synthesizing unit 13 collects the shared resource access signals 14-1 to 14-3 generated by the access control signal generating units 10-1 to 10-3 for each device into one block and gives the shared resource to a shared resource (not shown). Is a logic circuit composed of an OR gate and the like.

【0041】第4実施例の動作を図8を用いて説明す
る。
The operation of the fourth embodiment will be described with reference to FIG.

【0042】時刻t11で第1デバイスの共有資源アク
セス要求信号RQ1のアサートを検出したアクセス要求
調停部1は、出力5−1のみアサートする。調停部出力
5−1がアサート状態になったことでアクセス制御信号
発生部10−1に起動がかかり、共有資源アクセス信号
14−1と応答信号15−1が生成される。アクセス信
号14−1は共有資源読み出し信号で、この信号の立ち
上がりエッジでアップダウンカウンタ30がカウントア
ップする。尚ここでは第1デバイスの1回の共有資源ア
クセス要求に対して4回の読み出しアクセスが許可され
るものとする。従って、図4のように、共有資源アクセ
ス信号14−1と応答信号15−1はそれぞれ4回アサ
ートされている。時刻t12で第1デバイスのアクセス
が終了した時点ででアップダウンカウンタ30の値は−
5から−1に増加している。時刻t12までの間に第2
デバイス及び3の共有資源アクセス要求信号RQ2,R
Q3がアサートしているが、時刻t12では優先順位の
高い第2デバイスに対してアクセス権が与えられて調停
部出力5−2がアサートされる。これによってアクセス
制御信号発生部10−2に起動がかかり、共有資源書き
込み信号である共有資源アクセス信号14−2と応答信
号15−2が生成される。時刻t13までの間に第2デ
バイスの2回の共有資源書き込みアクセスが行われ、共
有資源アクセス信号14−2の立ち上がりでアップダウ
ンカウンタ30の値は−1から−3に減少する。時刻t
13で第2デバイスのアクセスが終了するが、この時点
で第1デバイスと第3デバイスのアクセス要求が競合し
ており、優先順位の高い第1デバイスに対してアクセス
権が与えられて調停部出力5−1がアサートされる。そ
の後、第1デバイスの共有資源読み出しアクセスが3回
行われた時刻t14においてアップダウンカウンタ30
の値が0となりMSBがアサートされる。これによって
アクセス制御信号生成部10−1では4回目のアクセス
が禁止されて調停部出力5−1をネゲートして共有資源
のアクセスを一旦終了し、同時にアクセス要求調停部1
では共有資源アクセス要求信号RQ1を無視して次のア
クセスに対する調停を開始する。この時点でようやく第
3デバイスにアクセス権が与えられ、時刻t15で第3
デバイスの共有資源書き込みアクセスが終了する。時刻
t15では第2デバイスにアクセス権が与えられ、2回
の共有資源書き込みアクセスでアップダウンカウンタ3
0の値が0から−2に減少し、アップダウンカウンタ3
0の値が−1に変化した時点でMSBがネゲートされ
る。そして、第2デバイスの共有資源書き込みアクセス
が終了した時刻t16で保留されていた第1デバイスの
共有資源読み出しアクセスが再び許可されて4回目の読
み出しアクセスが終了した時刻t17ではアクセス要求
信号RQ1のネゲートを検出して調停部出力5−1がネ
ゲート状態になり、第1デバイスの読み出しアクセスが
終了する。
The access request arbitration unit 1 which has detected the assertion of the shared resource access request signal RQ1 of the first device at time t11 asserts only the output 5-1. Since the arbitration unit output 5-1 is asserted, the access control signal generation unit 10-1 is activated, and the shared resource access signal 14-1 and the response signal 15-1 are generated. The access signal 14-1 is a shared resource read signal, and the up / down counter 30 counts up at the rising edge of this signal. Here, it is assumed that the read access is permitted four times with respect to one shared resource access request from the first device. Therefore, as shown in FIG. 4, the shared resource access signal 14-1 and the response signal 15-1 are each asserted four times. The value of the up / down counter 30 is − when the access of the first device is completed at time t12.
It has increased from 5 to -1. Second by the time t12
Shared resource access request signals RQ2, R of device and 3
Although Q3 is asserted, at time t12, the access right is given to the second device having a higher priority and the arbitration unit output 5-2 is asserted. As a result, the access control signal generator 10-2 is activated, and the shared resource access signal 14-2 and the response signal 15-2, which are shared resource write signals, are generated. By the time t13, the shared resource write access of the second device is performed twice, and the value of the up / down counter 30 decreases from -1 to -3 at the rising edge of the shared resource access signal 14-2. Time t
The access of the second device ends at 13, but at this time, the access requests of the first device and the third device compete with each other, and the access right is given to the first device having a high priority, and the arbitration unit outputs. 5-1 is asserted. After that, at the time t14 when the shared resource read access of the first device is performed three times, the up / down counter 30
Becomes 0 and MSB is asserted. As a result, the access control signal generation unit 10-1 prohibits the fourth access, negates the arbitration unit output 5-1 to temporarily terminate the access to the shared resource, and at the same time, the access request arbitration unit 1
Then, the shared resource access request signal RQ1 is ignored and arbitration for the next access is started. At this time, the access right is finally given to the third device, and the third device is given the access right at time t15.
The shared resource write access of the device ends. At time t15, the access right is given to the second device, and the up / down counter 3 is accessed by the shared resource write access twice.
The value of 0 decreases from 0 to -2, and the up / down counter 3
The MSB is negated when the value of 0 changes to -1. Then, at the time t17 when the shared resource read access of the first device, which was suspended at the time t16 when the shared resource write access of the second device ends, is re-authorized and the fourth read access ends, the access request signal RQ1 is negated. Is detected, the arbitration unit output 5-1 becomes a negated state, and the read access of the first device is completed.

【0043】この第4実施例では、第1デバイスの共有
資源読み出しアクセス回数と第2デバイスの共有資源書
き込み回数が一致した時点で、第1デバイスの読み出し
アクセスを一旦停止してアクセスを終了し、他のデバイ
スにアクセス権を譲るとともに、第1デバイスに対して
はアクセス権が与えられなくなる。第1〜第3実施例と
同様に、この時に外部から優先順位変更といった特別な
制御が入っていない。
In the fourth embodiment, when the shared resource read access count of the first device and the shared resource write count of the second device match, the read access of the first device is temporarily stopped and the access is terminated. While giving the access right to the other device, the access right is not given to the first device. Similar to the first to third embodiments, at this time, no special control such as changing the priority is entered from the outside.

【0044】[0044]

【発明の効果】以上、説明してきたように第1の発明に
よれば、複数のデバイスそれぞれのアクセス受付回数を
カウンタなどで計数し、所定デバイスに関する資源アク
セス要求の受付回数と、それ以外のデバイスのアクセス
受付回数の大小関係に応じて、所定デバイス以外のデバ
イスの資源アクセス要求の調停参加を制限するため、ハ
ードウェア化が容易で外部制御装置に負荷をかけずに調
停順序の制御ができるという効果がある。 第2の発明
によれば、複数のデバイスそれぞれの共有資源アクセス
回数の累計をカウンタなどで計数し、所定デバイスに関
するアクセス回数累計値と、それ以外のデバイスのアク
セス回数累計値の大小関係に応じて、所定デバイス以外
のデバイスの資源アクセス要求の調停参加を制限すると
ともに資源アクセス回数も制限できるため、外部制御装
置に負荷をかけずに調停順序の制御ができると同時に1
回のアクセス要求が許可された時の転送データ量をダイ
ナミックに制御できるいう効果がある。
As described above, according to the first aspect of the present invention, the number of times of access acceptance of each of a plurality of devices is counted by a counter or the like, and the number of times of access of resource access request relating to a predetermined device and other devices. The arbitration participation of the resource access requests of devices other than the predetermined device is restricted according to the magnitude relation of the number of access acceptances of the devices, so that hardware implementation is easy and the arbitration order can be controlled without imposing a load on the external control device. effective. According to the second aspect of the present invention, the total number of shared resource access times of each of the plurality of devices is counted by a counter or the like, and the total number of access times of the predetermined device and the total number of access times of the other devices are compared according to the magnitude relationship. , It is possible to control the arbitration order without imposing a load on the external control device because the arbitration participation of resource access requests of devices other than the predetermined device can be restricted and the number of times of resource access can be restricted.
This has the effect of dynamically controlling the amount of transfer data when a single access request is permitted.

【0045】さらに、第3、第4の発明によれば、アク
セス受付回数の大小関係やアクセス回数の大小関係をア
ップダウンカウンタの出力を利用するようにしたので、
よりハードウェアが簡単となるという効果がある。
Further, according to the third and fourth inventions, the output of the up / down counter is used for the magnitude relation of the access acceptance number and the magnitude relation of the access number.
This has the effect of simplifying the hardware.

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

【図1】 本発明による第1の調停装置の構成図であ
る。
FIG. 1 is a configuration diagram of a first arbitration device according to the present invention.

【図2】 第1の調停装置の動作を説明するタイミング
図である。
FIG. 2 is a timing diagram illustrating an operation of the first arbitration device.

【図3】 本発明による第2の調停装置の構成図であ
る。
FIG. 3 is a configuration diagram of a second arbitration device according to the present invention.

【図4】 第2の調停装置の動作を説明するタイミング
図である。
FIG. 4 is a timing diagram illustrating an operation of the second arbitration device.

【図5】 本発明による第3の調停装置の構成図であ
る。
FIG. 5 is a configuration diagram of a third arbitration device according to the present invention.

【図6】 第3の調停装置の動作を説明するタイミング
図である。
FIG. 6 is a timing diagram illustrating an operation of the third arbitration device.

【図7】 本発明による第4の調停装置の構成図であ
る。
FIG. 7 is a configuration diagram of a fourth arbitration device according to the present invention.

【図8】 第4の調停装置の動作を説明するタイミング
図である。
FIG. 8 is a timing diagram illustrating an operation of the fourth arbitration device.

【図9】 従来技術の問題点を説明する図である。FIG. 9 is a diagram illustrating a problem of the conventional technique.

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

1…アクセス要求調停部、2…ゲート回路、3−1,3
−2…カウンタ、4…比較器、10−1〜10−3…ア
クセス制御信号発生部、11−1,11−2…カウン
タ、12…比較器、13…アクセス信号合成部、20・
・・アップダウンカウンタ、21・・・ゲート回路、3
0・・・アップダウンカウンタ、101…スキャナ、1
02…画像圧縮装置、103…メモリ装置、104…調
停装置、105…画像伸長装置、106…プリンタ装置
1 ... Access request arbitration unit, 2 ... Gate circuit, 3-1 and 3
-2 ... Counter, 4 ... Comparator, 10-1 to 10-3 ... Access control signal generator, 11-1, 11-2 ... Counter, 12 ... Comparator, 13 ... Access signal synthesizer, 20 ...
..Up-down counters, 21 ... Gate circuits, 3
0 ... Up-down counter, 101 ... Scanner, 1
02 ... Image compression device, 103 ... Memory device, 104 ... Arbitration device, 105 ... Image decompression device, 106 ... Printer device

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 資源を共有する複数のデバイスから発生
するそれぞれの資源アクセス要求を調停して制御する調
停装置において、所定デバイスに関する資源アクセス要
求の受付回数を計数する第1の計数手段と、それ以外の
デバイスの資源アクセス要求の受付回数を計数する第2
の計数手段と、前記第1の計数手段の値と前記第2の計
数手段の値を比較する比較手段と、前記比較手段におけ
る比較結果に応じて前記所定デバイスの資源アクセス要
求をマスクするマスク手段を具備したことを特徴とする
調停装置。
1. An arbitration device for arbitrating and controlling resource access requests generated from a plurality of devices sharing a resource, and first counting means for counting the number of times a resource access request for a predetermined device is received. For counting the number of times resource access requests from other devices are accepted
Counting means, comparing means for comparing the value of the first counting means with the value of the second counting means, and masking means for masking the resource access request of the predetermined device according to the comparison result in the comparing means. An arbitration device comprising:
【請求項2】 資源を共有する複数のデバイスから発生
するそれぞれの資源アクセス要求を調停して制御する調
停装置において、所定デバイスの共有資源アクセス回数
を累計する第1の計数手段と、それ以外のデバイスの資
源アクセス回数を累計する第2の計数手段と、前記第1
の計数手段の値と前記第2の計数手段の値を比較する比
較手段と、前記比較手段における比較結果に応じて前記
所定デバイスの資源アクセス回数を制御する資源アクセ
ス信号発生部を具備したことを特徴とする調停装置。
2. An arbitration device for arbitrating and controlling respective resource access requests generated from a plurality of devices sharing resources, and a first counting means for accumulating the number of shared resource accesses of a predetermined device, and other means. A second counting means for accumulating the number of times of resource access of the device;
Comparing means for comparing the value of the counting means with the value of the second counting means, and a resource access signal generating section for controlling the number of times of resource access of the predetermined device according to the comparison result in the comparing means. Characterizing arbitration device.
【請求項3】 資源を共有する複数のデバイスから発生
するそれぞれの資源アクセス要求を調停して制御する調
停装置において、所定デバイスに関する資源アクセス要
求の受付回数をダウンカウントし、それ以外のデバイス
の資源アクセス要求の受付回数をアップカウントする計
数手段を具備し、前記計数手段の計数値に応じて前記所
定デバイスの資源アクセス要求をマスクするマスク手段
を具備したことを特徴とする調停装置。
3. An arbitration device that arbitrates and controls resource access requests generated from a plurality of devices sharing a resource, down-counts the number of times a resource access request for a predetermined device is accepted, and resources of other devices. An arbitration device comprising: counting means for up-counting the number of times an access request is accepted, and mask means for masking a resource access request of the predetermined device according to a count value of the counting means.
【請求項4】 資源を共有する複数のデバイスから発生
するそれぞれの資源アクセス要求を調停して制御する調
停装置において、所定デバイスの共有資源アクセス回数
をダウンカウントし、それ以外のデバイスの資源アクセ
ス回数をアップカウントする計数手段を具備し、前記計
数手段の計数値に応じて前記所定デバイスの資源アクセ
ス要求をマスクするマスク手段を具備したことを特徴と
する調停装置。
4. An arbitration device that arbitrates and controls respective resource access requests generated from a plurality of devices sharing a resource, downcounts the number of shared resource accesses of a predetermined device, and counts the number of resource accesses of other devices. An arbitration device comprising: counting means for up-counting, and masking means for masking a resource access request of the predetermined device according to a count value of the counting means.
JP8196294A 1994-04-20 1994-04-20 Arbiter Pending JPH07295877A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8196294A JPH07295877A (en) 1994-04-20 1994-04-20 Arbiter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8196294A JPH07295877A (en) 1994-04-20 1994-04-20 Arbiter

Publications (1)

Publication Number Publication Date
JPH07295877A true JPH07295877A (en) 1995-11-10

Family

ID=13761135

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8196294A Pending JPH07295877A (en) 1994-04-20 1994-04-20 Arbiter

Country Status (1)

Country Link
JP (1) JPH07295877A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002163144A (en) * 2000-08-23 2002-06-07 Nintendo Co Ltd Access method and device to shared resource
JP2010055389A (en) * 2008-08-28 2010-03-11 Fujitsu Microelectronics Ltd Arbitration device, arbitration method and electronic apparatus

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002163144A (en) * 2000-08-23 2002-06-07 Nintendo Co Ltd Access method and device to shared resource
JP2010055389A (en) * 2008-08-28 2010-03-11 Fujitsu Microelectronics Ltd Arbitration device, arbitration method and electronic apparatus

Similar Documents

Publication Publication Date Title
US5548762A (en) Implementation efficient interrupt select mechanism
US5797020A (en) Bus master arbitration circuitry having improved prioritization
US6763448B1 (en) Microcomputer and microcomputer system
KR0144022B1 (en) Arbiter by lru
US4896266A (en) Bus activity sequence controller
JP2000047994A (en) Information processor
JPH06161952A (en) Arbitration device of access request
JPH10143467A (en) Method and device for arbitrating bus ownership in data processing system
JPH07295877A (en) Arbiter
US6026455A (en) Architecture and method for providing guaranteed access for a retrying bus master to a data transfer bridge connecting two buses in a computer system
US20040128424A1 (en) Bus control device and information processing system
JPS594733B2 (en) Kyoutsuba Seigiyo Cairo
JPH09153009A (en) Arbitration method for hierarchical constitution bus
JP4081843B2 (en) Memory control device
JPH06250970A (en) Memory controller
JPH01279354A (en) Data processing system having common bus and preference decision circuit
JP2574345B2 (en) Bus arbitration equipment
JPH02143363A (en) Common memory control system in multiprocessor
US6959371B2 (en) Dynamic access control of a function to a collective resource
JP3353368B2 (en) Bus relay device
JP2005056239A (en) Semiconductor integrated circuit
JPH1125035A (en) Bus arbiter device
JPH11175464A (en) Arbitrating device and method therefor
JPH05120206A (en) Dma controller
JP2001175589A (en) System and method for arbitrating bus, and recording medium