JPH06103231A - Access equalization device for shared memory access circuit - Google Patents
Access equalization device for shared memory access circuitInfo
- Publication number
- JPH06103231A JPH06103231A JP24931292A JP24931292A JPH06103231A JP H06103231 A JPH06103231 A JP H06103231A JP 24931292 A JP24931292 A JP 24931292A JP 24931292 A JP24931292 A JP 24931292A JP H06103231 A JPH06103231 A JP H06103231A
- Authority
- JP
- Japan
- Prior art keywords
- signal
- circuit
- access
- mpu
- shared memory
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- Bus Control (AREA)
Abstract
(57)【要約】
【目的】 磁気ディスク制御装置や半導体ディスク装置
等の如き制御記憶のような2つの制御装置間で共用され
るメモリの分散型アービトレーションを使用した排他制
御回路において、これらの共用メモリのアクセスの均等
化をはかることを目的とする。
【構成】 共用メモリにアクセス可能な少なくとも2つ
のアクセス手段を具備し、それぞれのアクセス要求に対
し調整を行う共用メモリアクセス回路において、アービ
トレーション回路101、104と、優先順位の異なる
複数のレベルの共用メモリアクセス要求信号を出力する
信号送出手段103、105と、優先順位が低く待たさ
れたことを検出するウエイト検出手段102、106を
設け、アクセス競合時に待たされたことにより前記信号
送出手段103、105の次のアクセス要求時に優先順
位の高いアクセス要求信号を出力させるように構成す
る。
(57) [Summary] [Objective] In an exclusive control circuit using distributed arbitration of a memory shared between two control devices such as a control storage such as a magnetic disk control device or a semiconductor disk device, sharing of these is performed. The purpose is to equalize memory access. In a shared memory access circuit having at least two access means capable of accessing the shared memory and adjusting each access request, the arbitration circuits 101 and 104 and the shared memories of a plurality of levels having different priorities are provided. The signal sending means 103, 105 for outputting the access request signal and the weight detecting means 102, 106 for detecting waiting of low priority are provided. At the next access request, an access request signal with a high priority is output.
Description
【0001】[0001]
【産業上の利用分野】本発明は、例えば磁気ディスク制
御装置や半導体ディスク装置等の如き制御記憶等のよう
な、2つの制御装置間で共用されるメモリの分散型アー
ビトレーションを使用した排他制御回路に係り、これら
の共用メモリのアクセスの均等化をはかるものに関す
る。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an exclusive control circuit using distributed arbitration of a memory shared between two control devices, such as a control storage device such as a magnetic disk control device or a semiconductor disk device. The present invention relates to the equalization of access to these shared memories.
【0002】[0002]
【従来の技術】例えば、磁気ディスク制御装置は、図4
(A)に示す如く概略構成されている。ホストCPU4
1から送出されるデータを、磁気ディスク装置A・・・
Nのいずれかに書込むとき、磁気ディスク制御装置4
2、43を経由して記入する。2. Description of the Related Art For example, a magnetic disk controller is shown in FIG.
The schematic structure is shown in FIG. Host CPU 4
The data sent from 1 is the magnetic disk device A ...
When writing to either N, the magnetic disk controller 4
Fill in via points 2 and 43.
【0003】磁気ディスク制御装置42は、MPU4
4、制御メモリ45、メモリ46、インタフェース制御
部47等を有する。制御メモリ45はコントロールプロ
グラムが格納され、メモリ46は、磁気ディスク装置A
・・・Nにデータを記入するときの制御情報やデータ等
が記入される。インタフェース制御部47は、磁気ディ
スク制御装置42と磁気ディスク装置A・・・N間のイ
ンタフェース制御を行うものである。The magnetic disk controller 42 is an MPU4.
4, a control memory 45, a memory 46, an interface control unit 47 and the like. The control memory 45 stores the control program, and the memory 46 stores the magnetic disk device A.
... Control information, data, etc. when writing data in N are written. The interface controller 47 controls the interface between the magnetic disk controller 42 and the magnetic disk devices A ... N.
【0004】磁気ディスク制御装置43も磁気ディスク
制御装置42と同様に構成されており、MPU48、制
御メモリ49、メモリ50、インタフェース制御部51
等を具備する。The magnetic disk controller 43 is also constructed in the same manner as the magnetic disk controller 42, and has an MPU 48, a control memory 49, a memory 50, and an interface controller 51.
And so on.
【0005】なお、メモリ46、50は、各磁気ディス
ク制御装置42、43のそれぞれのMPU44、48か
らアクセス可能に構成されており、例えばMPU44が
メモリ46に前記制御情報やデータ等を記入するとき、
同時にメモリ50にも記入される。逆にMPU48がメ
モリ50にこれらを記入するとき、同時にメモリ46に
も記入さる。これは、自己の磁気ディスク制御装置側の
メモリにのみこれらを記入した場合、電源瞬断等が発生
したとき、必要なデータが消えることを防止するためで
ある。The memories 46 and 50 are constructed so that they can be accessed by the MPUs 44 and 48 of the magnetic disk control devices 42 and 43, for example, when the MPU 44 writes the control information or data in the memory 46. ,
At the same time, it is written in the memory 50. Conversely, when the MPU 48 writes these in the memory 50, it also writes them in the memory 46 at the same time. This is to prevent the necessary data from being erased when a momentary power failure or the like occurs when these are written only in the memory of the magnetic disk control device side.
【0006】この場合、MPU44と、MPU48にも
とづく、共用のメモリ46、50へのアクセスの競合を
防止するため、アービトレーションを行う必要がある。
従来の共用メモリ制御回路は、図4(B)に示す如く、
分散型アービトレーションを使用していた。In this case, it is necessary to perform arbitration in order to prevent contention of access to the shared memories 46 and 50 based on the MPU 44 and the MPU 48.
The conventional shared memory control circuit is, as shown in FIG.
It used distributed arbitration.
【0007】図4(B)において、55、56はそれぞ
れアービトレーション回路であり、例えばMPU44よ
りもMPU48の方が優先順位が高いものとする。図4
(B)においては、前記のように、MPU44がメモリ
46に対してアクセスするとき、メモリ50に対しても
同時にアクセスする。またMPU48がメモリ50に対
してアクセスするとき、メモリ46に対しても同時にア
クセスする。これらの場合、ドライバ・レシーバ57、
58、59を経由してアクセスが行われる。従ってMP
U44、48からこれら共用のメモリ46、50に対し
てアクセス要求が競合したとき、アービトレーション回
路55、56は、優先順位の高いMPU48に使用権を
与えることになる。In FIG. 4B, 55 and 56 are arbitration circuits, and the MPU 48 has a higher priority than the MPU 44, for example. Figure 4
In (B), as described above, when the MPU 44 accesses the memory 46, it simultaneously accesses the memory 50. When the MPU 48 accesses the memory 50, it also accesses the memory 46 at the same time. In these cases, the driver / receiver 57,
Access is made via 58 and 59. Therefore MP
When the access requests from the Us 44 and 48 contend with the shared memories 46 and 50, the arbitration circuits 55 and 56 give the usage right to the MPU 48 having a high priority.
【0008】[0008]
【発明が解決しようとする課題】従って、アクセス要求
が競合したとき、従来のものでは、優先順位の下位の方
は、常に処理時間が遅くなるという問題が存在する。従
って本発明の目的は、このようにMPUからのアクセス
時間の偏りを改善して、アクセス時間の均等化をはかる
ことを目的とする。Therefore, when the access requests compete with each other, the conventional method has a problem that the processing time is always slower in the lower priority order. Therefore, an object of the present invention is to improve the bias of access times from MPUs in this way and to equalize the access times.
【0009】[0009]
【課題を解決するための手段】前記目的を達成するた
め、本発明では、図1(A)に示す如く、第1MPU2
01側にアービトレーション回路101、ウエイト検出
回路102、信号送出回路103を設け、また第2MP
U202側にアービトレーション回路104、ウエイト
検出回路106、信号送出回路105を設ける。In order to achieve the above-mentioned object, in the present invention, as shown in FIG.
The arbitration circuit 101, the weight detection circuit 102, and the signal transmission circuit 103 are provided on the 01 side, and the second MP
An arbitration circuit 104, a weight detection circuit 106, and a signal transmission circuit 105 are provided on the U202 side.
【0010】信号送出回路103、105はいずれもH
レベル信号又はLレベル信号を選択出力する。そして両
方の信号送出回路103、105からのアクセス要求が
同時に行われてアービトレーション回路101、104
によりアービトレーションが行われ、優先順位が低く待
たされたとき、その後の共用メモリへのアクセス要求信
号を優先順位の高いHレベル信号に変更する。また優先
順位が高く、待つことなしにアクセス出来た場合、共用
メモリへのアクセス要求信号の優先順位を元の低いLレ
ベル信号に戻す。したがってHレベル信号とLレベル信
号のアクセス要求が競合したときHレベル信号の方が優
先順位が高いが、Hレベル信号のアクセス要求が競合し
たとき、あらかじめ設定された順位に従う。The signal transmission circuits 103 and 105 are both H level.
The level signal or the L level signal is selectively output. Then, access requests from both signal transmission circuits 103 and 105 are simultaneously made, and arbitration circuits 101 and 104 are sent.
When the arbitration is performed according to the above, and when the priority is kept low, the subsequent access request signal to the shared memory is changed to the H level signal having the higher priority. When the priority is high and the access is possible without waiting, the priority of the access request signal to the shared memory is returned to the original low L level signal. Therefore, when the access requests of the H level signal and the L level signal compete with each other, the H level signal has a higher priority, but when the access requests of the H level signal compete with each other, the preset order is followed.
【0011】[0011]
【作用】図1(A)において第2MPU202側を優先
順位を高いものと設定したときの動作を説明する。The operation when the second MPU 202 side is set to have a high priority in FIG. 1A will be described.
【0012】図1(B)の時刻T1 において、第1MP
U201と第2MPU202が同時に共用のメモリへの
アクセス要求したとき、信号送出回路103、105
は、それぞれ最初のアクセス要求であるので、いずれも
Lレベル信号を出力する。このとき、第2MPU202
側の優先順位が高いので、アービトレーション回路10
1、104は第2MPU202からのクリエスト要求信
号RQ0に使用権を与える。At time T 1 in FIG. 1B, the first MP
When the U201 and the second MPU 202 simultaneously request access to the shared memory, the signal transmission circuits 103 and 105
Are the first access requests, respectively, and thus each output an L level signal. At this time, the second MPU 202
Since the priority of the side is high, the arbitration circuit 10
1 and 104 give the right to use to the request request signal RQ0 from the second MPU 202.
【0013】このとき、アービトレーション回路101
は待ち信号156「1」を出力するのでウエイト検出回
路102は切替指示信号161「1」を信号送出回路1
03に送り、これにより信号送出回路103はRQ1を
落とし、次のリクエストをHレベル信号で出力する準備
を行う。一方アービトレーション回路104は待ち信号
157「0」を出力するのでウエイト検出回路106は
切替指示信号162「0」を信号送出回路105に送
る。これにより信号送出回路105はリクエスト要求信
号RQ0を続ける。At this time, the arbitration circuit 101
Outputs the wait signal 156 "1", the weight detection circuit 102 outputs the switching instruction signal 161 "1" to the signal transmission circuit 1
Then, the signal transmission circuit 103 drops RQ1 and prepares to output the next request as an H level signal. On the other hand, since the arbitration circuit 104 outputs the wait signal 157 “0”, the weight detection circuit 106 sends the switching instruction signal 162 “0” to the signal sending circuit 105. As a result, the signal transmission circuit 105 continues the request request signal RQ0.
【0014】図1(B)の時刻T2 において、第1MP
U201と第2MPU202が同時に共用メモリへのア
クセス要求をしたとき、今度は信号送出回路103はH
レベルのアクセス要求信号を出力するが、信号送出回路
105はLレベルのアクセス要求信号を出力するので、
アービトレーション回路101、104は第1MPU2
01からのリクエスト要求信号RQ1に使用権を与え
る。At time T 2 in FIG. 1B, the first MP
When the U201 and the second MPU 202 make access requests to the shared memory at the same time, this time the signal transmission circuit 103 becomes H level.
Although the access request signal of the level is output, the signal transmission circuit 105 outputs the access request signal of the L level.
The arbitration circuits 101 and 104 are the first MPU2.
The usage right is given to the request request signal RQ1 from 01.
【0015】このとき、アービトレーション回路104
は待ち信号157「1」を出力するので、ウエイト検出
回路102は切替指示信号162「1」を信号送出回路
105に送り、今度はこれにより信号送出回路105は
RQ2を落とし、次のリクエストをHレベル信号で出力
する準備を行う。一方アービトレーション回路101は
待ち信号156「0」を出力するので、ウエイト検出回
路102は切替指示信号161「0」を信号送出回路1
03に送る。これにより信号送出回路103はリクエス
ト要求信号RQ1を続ける。At this time, the arbitration circuit 104
Wait signal 157 "1" is output, the weight detection circuit 102 sends a switching instruction signal 162 "1" to the signal transmission circuit 105, which causes the signal transmission circuit 105 to drop RQ2 and send the next request to H. Prepare to output with a level signal. On the other hand, since the arbitration circuit 101 outputs the wait signal 156 “0”, the weight detection circuit 102 outputs the switching instruction signal 161 “0” to the signal transmission circuit 1.
Send to 03. As a result, the signal transmission circuit 103 continues the request request signal RQ1.
【0016】次に図1(B)の時刻T3 において、第1
MPU201と第2MPU202が再び同時に共用メモ
リへのアクセス要求をしたとき、信号送出回路105は
今度はHレベルのアクセス要求を出力するが、信号送出
回路103はLレベルのアクセス要求信号を出力するの
で、アービトレーション回路101、104は第2MP
U202からのリクエスト要求RQ2に使用権を与え
る。Next, at time T 3 in FIG.
When the MPU 201 and the second MPU 202 again simultaneously request access to the shared memory, the signal transmission circuit 105 outputs the H level access request, but the signal transmission circuit 103 outputs the L level access request signal. Arbitration circuits 101 and 104 are the second MP
The usage right is given to the request request RQ2 from the U202.
【0017】このとき、時刻T1 と同様にアービトレー
ション回路101は待ち信号156「1」を出力するの
で、ウエイト検出回路102は切替指示信号161
「1」を信号送出回路103に送り、これにより信号送
出回路103はRQ3を落とし、次のリクエストをHレ
ベル信号で出力する準備を行う。一方、アービトレーシ
ョン回路104は待ち信号157「0」を出力するの
で、ウエイト検出回路106は切替指示信号162
「0」を信号送出回路105に送る。これにより信号送
出回路105はリクエスト要求信号RQ2を続ける。At this time, since the arbitration circuit 101 outputs the wait signal 156 "1" as at time T 1 , the weight detection circuit 102 outputs the switching instruction signal 161.
"1" is sent to the signal sending circuit 103, whereby the signal sending circuit 103 drops RQ3 and prepares to output the next request as an H level signal. On the other hand, since the arbitration circuit 104 outputs the wait signal 157 “0”, the weight detection circuit 106 outputs the switching instruction signal 162.
“0” is sent to the signal sending circuit 105. As a result, the signal transmission circuit 105 continues the request request signal RQ2.
【0018】そして図1(B)の時刻T4 において、第
1MPU201と第2MPU202が再び同時に共用メ
モリへのアクセス要求をしたとき、今度は信号送出回路
103はHレベルのアクセス要求信号を出力するが、信
号送出回路105はLレベルのアクセス要求信号を出力
するので、アービトレーション回路101、104は第
1MPU201からのリクエスト要求RQ3に使用権を
与える。At time T 4 in FIG. 1B, when the first MPU 201 and the second MPU 202 again request access to the shared memory at the same time, the signal transmission circuit 103 outputs an H level access request signal. Since the signal transmission circuit 105 outputs the L level access request signal, the arbitration circuits 101 and 104 give the usage right to the request request RQ3 from the first MPU 201.
【0019】このとき、アービトレーション回路104
は待ち信号157「1」を出力し、アービトレーション
回路101は待ち信号156「0」を出力するので、前
記時刻T2 と同様の制御が行われる。このようなことが
繰り返され、第1MPU201及び第2MPU202が
交互に待たされることになり、共用メモリへのアクセス
時間が均等化される。なお、図1(B)において、丸印
の付記されたリクエスト要求に対し使用権が与えられ
る。At this time, the arbitration circuit 104
Outputs "1" wait signal 157, because the arbitration circuit 101 outputs "0" wait signal 156, the control similar to the time T 2, is performed. By repeating this, the first MPU 201 and the second MPU 202 are made to wait alternately, and the access time to the shared memory is equalized. In FIG. 1B, the usage right is given to the request request marked with a circle.
【0020】[0020]
【実施例】本発明の一実施例を図2、図3にもとづき説
明する。図2は本発明の一実施例構成図であり、図3は
その動作状態を示すタイムチャートである。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described with reference to FIGS. FIG. 2 is a block diagram of an embodiment of the present invention, and FIG. 3 is a time chart showing its operating state.
【0021】図2において図1と同記号は同一部を示
す。203はバス切替回路、204は共用メモリ、20
5はバス切替回路、206は共用メモリである。バス切
替回路203は共用メモリ204に対するアクセス先を
第1MPU201又は第2MPU202のいずれかに切
替えるものである。共用メモリ204は第1MPU20
1側の共用メモリであって第1MPU201又は第2M
PU202のいずれかよりアクセスされるものである。In FIG. 2, the same symbols as in FIG. 1 indicate the same parts. 203 is a bus switching circuit, 204 is a shared memory, 20
Reference numeral 5 is a bus switching circuit, and 206 is a shared memory. The bus switching circuit 203 switches the access destination for the shared memory 204 to either the first MPU 201 or the second MPU 202. The shared memory 204 is the first MPU 20.
The shared memory on the first side, which is the first MPU 201 or the second M
It is accessed from any of the PUs 202.
【0022】バス切替回路205は共用メモリ206に
対するアクセス先を第1MPU201又は第2MPU2
02のいずれかに切替えるものである。共用メモリ20
6は第2MPU202側の共用メモリであり第1MPU
201又は第2MPU202のいずれかよりアクセスさ
れるものである。The bus switching circuit 205 sets the access destination of the shared memory 206 to the first MPU 201 or the second MPU2.
It is switched to any of 02. Shared memory 20
6 is a shared memory on the side of the second MPU 202, which is the first MPU
It is accessed by either 201 or the second MPU 202.
【0023】なお、これら共用メモリ204、206
は、それぞれ図4におけるメモリ46、50に対応する
ものである。図3における時刻T0 に第1MPU201
から共用メモリ204、206に対してライト要求があ
ると、図2における信号送出回路103からLレベルの
アクセス要求信号が出力されるが信号送出回路105か
ら何も出力されないので、信号154のみ「1」で15
1〜153は「0」となり、信号151〜154でみる
と「0001」がアービトレーション回路101、10
4に入力される。これがアービトレーション回路でデコ
ードされてアービトレーション回路101は、競合信号
155「0」、待ち信号156「0」をウエイト検出回
路102に出力する。Incidentally, these shared memories 204 and 206
Correspond to the memories 46 and 50 in FIG. 4, respectively. At time T 0 in FIG. 3, the first MPU 201
When there is a write request from the shared memories 204 and 206 to the shared memories 204 and 206, the signal transmission circuit 103 in FIG. 2 outputs an L level access request signal, but the signal transmission circuit 105 outputs nothing. In 15
1 to 153 are “0”, and when viewed from the signals 151 to 154, “0001” is arbitration circuit 101, 10
4 is input. This is decoded by the arbitration circuit, and the arbitration circuit 101 outputs the competition signal 155 “0” and the wait signal 156 “0” to the weight detection circuit 102.
【0024】これによりウエイト検出回路102は停止
信号159「0」、切替指示信号161「0」を出力す
る。またアービトレーション回路101はバス切替回路
203に対して共用メモリ204のアドレスバス及びデ
ータバスを第1MPU201に接続するように切替制御
を行う。Accordingly, the weight detection circuit 102 outputs the stop signal 159 "0" and the switching instruction signal 161 "0". The arbitration circuit 101 also controls the bus switching circuit 203 to connect the address bus and data bus of the shared memory 204 to the first MPU 201.
【0025】同様にアービトレーション回路104は、
この「0001」をデコードして待ち信号157
「0」、競合信号158「0」をウエイト検出回路10
6に出力し、またバス切替回路205に対して共用メモ
リ206のアドレスバス及びデータバスを第1MPU2
01に接続するように切替制御を行う。またこれに応じ
てウエイト検出回路106は停止信号160「0」、切
替指示信号162「0」を出力する。Similarly, the arbitration circuit 104 is
This "0001" is decoded and the wait signal 157
The weight detection circuit 10 outputs “0” and the competition signal 158 “0”.
6 and outputs the address bus and data bus of the shared memory 206 to the bus switching circuit 205 as the first MPU2.
Switching control is performed so as to connect to 01. Further, in response to this, the weight detection circuit 106 outputs the stop signal 160 “0” and the switching instruction signal 162 “0”.
【0026】次に、図3における時刻T1 に第1MPU
201と第2MPU202が同時に共用メモリ204、
206へのアクセス要求をしたとき、信号送出回路10
3、信号送出回路105はいずれもLレベル信号を出力
する。これにより信号154と153がそれぞれ「1」
で信号151、152は「0」となり、信号151〜1
54でみると「0011」がアービトレーション回路1
01、104に入力される。Next, at time T 1 in FIG. 3, the first MPU
201 and the second MPU 202 simultaneously share the shared memory 204,
When the access request to 206 is made, the signal transmission circuit 10
3. The signal transmission circuit 105 outputs an L level signal. This causes signals 154 and 153 to be "1" respectively.
Then, the signals 151 and 152 become “0”, and the signals 151 to 1
As seen from 54, "0011" is the arbitration circuit 1
01 and 104 are input.
【0027】アービトレーション回路101はこれをデ
コードして、第2MPU202側に優先順位があること
を認識し、共用メモリ204に対するバス切替回路20
3を第2MPU202側に切替制御させ、また競合信号
155「1」、待ち信号156「1」をウエイト検出回
路102に出力する。これによりウエイト検出回路10
2は、停止信号159「1」、切替信号161「1」を
信号送出回路103に出力し、次に前記第1MPU20
1からのアクセス要求が行われたときHレベル信号を出
力するように準備する。The arbitration circuit 101 decodes this, recognizes that the second MPU 202 has a priority order, and the bus switching circuit 20 for the shared memory 204.
3 is controlled to be switched to the second MPU 202 side, and the competition signal 155 “1” and the waiting signal 156 “1” are output to the weight detection circuit 102. As a result, the weight detection circuit 10
2 outputs a stop signal 159 “1” and a switching signal 161 “1” to the signal sending circuit 103, and then the first MPU 20.
It is prepared to output the H level signal when the access request from 1 is made.
【0028】またアービトレーション回路104は前記
「0011」をデコードして、同じく第2MPU202
側に優先順位があることを認識し、共用メモリ206に
対するバス切替回路205を第2MPU202側に切替
制御させ、競合信号158「1」、待ち信号157
「0」をウエイト検出回路106に出力する。これによ
りウエイト検出回路106は、停止信号160「0」、
切替信号162「0」を信号送出回路105に出力す
る。Further, the arbitration circuit 104 decodes the above "0011" and outputs the second MPU 202 as well.
The bus switching circuit 205 for the shared memory 206 is controlled to be switched to the second MPU 202, and the competition signal 158 “1” and the wait signal 157 are recognized.
“0” is output to the weight detection circuit 106. As a result, the weight detection circuit 106 causes the stop signal 160 “0”,
The switching signal 162 “0” is output to the signal transmission circuit 105.
【0029】それから図3における時刻T2 に、再び第
1MPU201と第2MPU202が同時に共用メモリ
204、206へのアクセス要求したとき、今度は信号
送出回路103はHレベル信号を出力し信号送出回路1
05はLレベル信号を出力する。これにより信号152
と153が「1」となり、信号151〜154でみると
「0110」がアービトレーション回路101、104
に入力される。Then, at time T 2 in FIG. 3, when the first MPU 201 and the second MPU 202 request access to the shared memories 204 and 206 at the same time again, the signal sending circuit 103 outputs the H level signal and the signal sending circuit 1
05 outputs an L level signal. This results in signal 152
And 153 become "1", and when viewed from the signals 151 to 154, "0110" is arbitration circuits 101 and 104.
Entered in.
【0030】アービトレーション回路101はこれをデ
コードして、第1MPU201側に優先順位があること
を認識し、共用メモリ204に対するバス切替回路20
3を第1MPU201側に切替制御させ、また競合信号
155「1」、待ち信号156「0」をウエイト検出回
路102に出力する。これによりウエイト検出回路10
2は停止信号159「0」、切替信号161「0」を信
号送出回路103に送出し、次に第1MPU202から
のアクセス要求が行われたときLレベル信号を出力する
ように準備する。The arbitration circuit 101 decodes this, recognizes that the first MPU 201 side has a priority order, and the bus switching circuit 20 for the shared memory 204.
3 is controlled to be switched to the first MPU 201 side, and the competition signal 155 “1” and the waiting signal 156 “0” are output to the weight detection circuit 102. As a result, the weight detection circuit 10
No. 2 sends a stop signal 159 “0” and a switching signal 161 “0” to the signal sending circuit 103, and prepares to output an L level signal when an access request is made from the first MPU 202 next.
【0031】またアービトレーション回路104は前記
「0110」をデコードして、第1MPU201側に優
先順位があることを認識し、共用メモリ206に対する
バス切替回路205を第1MPU201側に切替制御さ
せ、競合信号158「1」、待ち信号157「1」をウ
エイト検出回路106に出力する。これによりウエイト
検出回路106は、停止信号160「1」、切替信号1
62「1」を信号送出回路105に出力する。これによ
りウエイト検出回路106は、停止信号「1」、切替信
号162「1」を信号送出回路105に出力し、次に第
2MPU202からのアクセス要求が行われたときHレ
ベル信号を出力するように準備する。Further, the arbitration circuit 104 decodes the "0110" and recognizes that the first MPU 201 side has the priority order, and controls the bus switching circuit 205 for the shared memory 206 to be switched to the first MPU 201 side, thereby competing signal 158. The wait detection circuit 106 outputs "1" and the wait signal 157 "1". As a result, the weight detection circuit 106 causes the stop signal 160 "1" and the switching signal 1
62 “1” is output to the signal transmission circuit 105. As a result, the weight detection circuit 106 outputs the stop signal “1” and the switching signal 162 “1” to the signal transmission circuit 105, and outputs the H level signal when the access request is made from the second MPU 202 next time. prepare.
【0032】さらに図3における時刻T3 に、第1MP
U201と第2MPU202が同時に共用メモリ20
4、206へのアクセス要求したとき、今度は信号送出
回路103はLレベル信号を出力し、信号送出回路10
5はHレベル信号を出力する。これにより信号151〜
154でみると「1001」がアービトレーション回路
101、104に入力される。Further, at time T 3 in FIG. 3, the first MP
U201 and the second MPU202 are simultaneously shared memory 20
4 and 206, the signal transmission circuit 103 outputs the L level signal, and the signal transmission circuit 10
5 outputs an H level signal. This allows signals 151-
At 154, “1001” is input to the arbitration circuits 101 and 104.
【0033】アービトレーション回路101はこれをデ
コードして、第2MPU202側に優先順位があること
を認識し、共用メモリ204に対するバス切替回路20
3を第2MPU202側に切替制御させ、前記時刻T1
と同様な制御が行われる。The arbitration circuit 101 decodes this, recognizes that the second MPU 202 has a priority, and determines the bus switching circuit 20 for the shared memory 204.
3 is controlled to be switched to the second MPU 202 side, and the time T 1
The same control as is performed.
【0034】またアービトレーション回路104はこの
「1001」をデコードして、第2MPU202側に優
先順位があることを認識し、共用メモリ206に対する
バス切替回路205を第2MPU202側に切替制御さ
せ、これまた前記T1 と同様な制御が行われる。Further, the arbitration circuit 104 decodes this "1001" and recognizes that the second MPU 202 side has priority, and controls the bus switching circuit 205 for the shared memory 206 to be switched to the second MPU 202 side. The same control as T 1 is performed.
【0035】このようにして共用メモリに対するアクセ
スが競合したとき、交互にアクセスできるように制御さ
れるのでアクセスが均等化されることになる。In this way, when the access to the shared memory competes with each other, the access is controlled so that the access can be alternately performed, so that the access is equalized.
【0036】[0036]
【発明の効果】本発明によれば、一応アクセス優先順位
が定められていても、競合時のアクセス優先権を交互に
分散するので、均等にアクセスすることが可能となり、
特定のMPUからのアクセス時間の偏りを改善すること
ができる。According to the present invention, even if the access priorities are tentatively set, the access priorities at the time of contention are alternately distributed, so that the access can be made evenly.
It is possible to improve the deviation of access time from a specific MPU.
【図1】本発明の原理図である。FIG. 1 is a principle diagram of the present invention.
【図2】本発明の一実施例構成図である。FIG. 2 is a configuration diagram of an embodiment of the present invention.
【図3】本発明の動作説明図である。FIG. 3 is an operation explanatory diagram of the present invention.
【図4】従来例説明図である。FIG. 4 is an explanatory diagram of a conventional example.
101 アービトレーション回路 102 ウエイト検出回路 103 信号送出回路 104 アービトレーション回路 105 信号送出回路 106 ウエイト検出回路 201 第1MPU 202 第2MPU 101 Arbitration circuit 102 Weight detection circuit 103 Signal transmission circuit 104 Arbitration circuit 105 Signal transmission circuit 106 Weight detection circuit 201 First MPU 202 Second MPU
Claims (1)
2つのアクセス手段を具備し、それぞれのアクセス要求
に対し調整を行う共用メモリアクセス回路において、 アービトレーション回路(101)、(104)と、 優先順位の異なる複数のレベルの共用メモリアクセス要
求信号を出力する信号送出手段(103)、(105)
と、 優先順位が低く待たされたことを検出するウエイト検出
手段(102)、(106)を設け、 アクセス競合時に待たされたことにより前記信号送出手
段(103)、(105)の次のアクセス要求時に優先
順位の高いアクセス要求信号を出力させるように構成し
たことを特徴とする共用メモリアクセス回路のアクセス
均等化装置。1. A shared memory access circuit, comprising at least two access means capable of accessing a shared memory, and adjusting each access request, the arbitration circuits (101), (104) having different priorities. Signal sending means (103), (105) for outputting shared memory access request signals of a plurality of levels
And wait detection means (102), (106) for detecting that a low priority is waited, and the next access request from the signal sending means (103), (105) due to being waited at the time of access conflict. An access equalization device for a shared memory access circuit, characterized in that it is configured to output an access request signal having a high priority at times.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP24931292A JPH06103231A (en) | 1992-09-18 | 1992-09-18 | Access equalization device for shared memory access circuit |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP24931292A JPH06103231A (en) | 1992-09-18 | 1992-09-18 | Access equalization device for shared memory access circuit |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH06103231A true JPH06103231A (en) | 1994-04-15 |
Family
ID=17191124
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP24931292A Pending JPH06103231A (en) | 1992-09-18 | 1992-09-18 | Access equalization device for shared memory access circuit |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH06103231A (en) |
-
1992
- 1992-09-18 JP JP24931292A patent/JPH06103231A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP2002132701A (en) | Memory control unit | |
| US5895481A (en) | Programmable VESA unified memory architecture (VUMA) row address strobe (RAS) | |
| JPH10143466A (en) | Bus communication system | |
| US5408612A (en) | Microprocessor system for selectively accessing a processor internal register when the processor has control of the bus and partial address identifying the register | |
| JPH06103231A (en) | Access equalization device for shared memory access circuit | |
| KR100441996B1 (en) | Direct Memory Access(DMA) Controller and control method | |
| JPH11175392A (en) | Method and system for controlling common access to random access memory | |
| JP2000227895A (en) | Device and method for transferring image data | |
| JP3266610B2 (en) | DMA transfer method | |
| JPH07114496A (en) | Shared memory control circuit | |
| JP2978913B2 (en) | Method and system for controlling shared access to random access memory | |
| KR20000026338A (en) | Method for controlling bus of micro controller having arm cpu | |
| JPH0642227B2 (en) | Data transfer device | |
| JPS6031647A (en) | Data processor | |
| JP2929967B2 (en) | File system | |
| KR100294639B1 (en) | A cache apparatus for multi-access | |
| JPH06110828A (en) | Memory controller | |
| KR960007835B1 (en) | Common memory access device for multi-processor | |
| EP0284094A2 (en) | Tandem priority resolver | |
| KR100210404B1 (en) | An apparatus for controlling access of memory in dual bus system | |
| JP2642132B2 (en) | Image display system | |
| KR19980083459A (en) | Databus Sizing Device | |
| KR20050067324A (en) | Interface device between master/slave devices and method thereof | |
| JPH05324533A (en) | Dual port memory device | |
| KR20040045665A (en) | Pipelined direct memory access controller |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20000718 |