JPS6257050A - Common memory device - Google Patents
Common memory deviceInfo
- Publication number
- JPS6257050A JPS6257050A JP19724785A JP19724785A JPS6257050A JP S6257050 A JPS6257050 A JP S6257050A JP 19724785 A JP19724785 A JP 19724785A JP 19724785 A JP19724785 A JP 19724785A JP S6257050 A JPS6257050 A JP S6257050A
- Authority
- JP
- Japan
- Prior art keywords
- processor
- write
- priority
- request
- read
- 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
- Multi Processors (AREA)
Abstract
Description
【発明の詳細な説明】
産業上の利用分野
本発明は、1つの共有メモリに対して複数のプロセッサ
からアクセスできるよう構成された共有メモリ装置に関
する。DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to a shared memory device configured such that one shared memory can be accessed by a plurality of processors.
従来の技術
従来においては、共有メモリに対して複数のプロセッサ
を直接的に接続し、各プロセッサからの書込み要求、又
は読出し要求がある度に書込み動作、読出し動作をその
まま実行していた。2. Description of the Related Art In the past, a plurality of processors were directly connected to a shared memory, and write and read operations were executed as they were each time a write request or read request was received from each processor.
発明が解決しようとする問題点
上述の如、き従来の共有メモリ装置によるときは、プロ
セッサからの書込み、読出しに拘らず、他のプロセッサ
が共有メモリを占有している場合にはそれ以外の他のプ
ロセッサはその占有しているプロセッサの動作が終了す
るまで待機せねばならず、アクセス競合時のスループッ
トが低下するという問題があった。Problems to be Solved by the Invention When using the conventional shared memory device as described above, regardless of writing and reading from a processor, when another processor occupies the shared memory, other processors The processor has to wait until the processor it occupies completes its operation, resulting in a problem of reduced throughput during access contention.
問題点を解決するための手段
本発明は上記問題を解決するために、1つの共有メモリ
に対して複数のプロセッサからアクセスできるよう構成
された共有メモリ装置において、共有メモリセルと各プ
ロセッサとの間にデータ及びアドレス情報を一旦ラッチ
するラッチ回路をそれぞれ設けると共に、各プロセッサ
からの書込み・読出し要求を監視して予め定めた優先順
位に従って各プロセッサに対してアクセス許可を与える
優先度判定回路を設け、該優先度判定回路の優先順位を
書込み要求よりも読出し要求を上位に設定したものであ
る。Means for Solving the Problems In order to solve the above problems, the present invention provides a shared memory device configured such that one shared memory can be accessed by a plurality of processors. A latch circuit is provided for temporarily latching data and address information, and a priority determination circuit is provided for monitoring write/read requests from each processor and granting access permission to each processor according to a predetermined priority order. The priority of the priority determination circuit is set to a read request higher than a write request.
作用
書込み又は読出し要求時に各プロセッサから出力される
データ及びアドレス情報はそれぞれのラッチ回路に一旦
ラッチされる。優先度判定回路は全プロセッサからの書
込み・読出し要求を監視しておシ、書込み要求と読出し
要求とが競合した場合、書込み要求に優先してまず読出
し要求のあったプロセッサに対してメモリへのアクセス
を許可し、プロセッサの優先度に拘らず読出1〜動作を
最優先に実行させるものである。Data and address information output from each processor at the time of an operational write or read request are once latched into respective latch circuits. The priority determination circuit monitors write and read requests from all processors, and when a write request and a read request conflict, the processor that has made the read request is given priority over the write request and is first sent to the memory. Access is permitted and read 1 to operations are executed with highest priority regardless of the priority of the processor.
上記のように構成すると、次のような理由により装置全
体のスループットを向上させることができるものである
。即ち、プロセッサにとってメモリからのデータの読出
しは、そのデータを完全に取り込むまでは次のステップ
に進むことはできないが、書込みは書込みデータをプロ
セッサの外部へ出力しさえすれば、次のステップに進む
ことが可能である。このため、各プロセッサの出力する
データ及びアドレス情報を上記のように一旦ラッチ回路
にラッチするよう構成すれば、共有メモリセルの状態に
拘らず、書込み要求のあったプロセッサはデータとアド
レス情報がラッチされた段階で次のステップに進むこと
ができる。従って、各プロセッサの書込み要求と読出し
要求が競合した場合に、書込み要求のあったプロセッサ
に対してはデータ及びアドレス情報を一旦ラッチ回路に
ラッチして次のステップに進ませ、一方、読出し要求の
あったプロセッサに対しては直ちに共有メモリセルへの
アクセスを許可することにより、競合時の各プロセッサ
の動作に「待ち」が発生しなくなる。このようにして、
プロセッサの優先度に拘らず書込み要求を最優先処理さ
せることによ九装置全体のスループットを向上させるこ
とができるものである。With the above configuration, the throughput of the entire apparatus can be improved for the following reasons. In other words, when reading data from memory, the processor cannot proceed to the next step until the data is completely captured, but when writing data, the process can proceed to the next step as long as the written data is output outside the processor. Is possible. Therefore, if the data and address information output by each processor are once latched in the latch circuit as described above, the processor that has made the write request will have the data and address information latched regardless of the state of the shared memory cell. Once completed, you can proceed to the next step. Therefore, when a write request and a read request from each processor conflict, the processor that made the write request temporarily latches the data and address information in the latch circuit and proceeds to the next step. By immediately granting access to the shared memory cell to the processor that has found it, "waiting" will not occur in the operation of each processor at the time of contention. In this way,
By processing write requests with the highest priority regardless of the priority of the processor, the throughput of the entire device can be improved.
実施例
以下、本発明の1実施例を図面を参照して説明する。第
1図は本発明共有メモリ装置のラッチ回路部分の構成を
示すブロック図で、1は共有メモリセル、2〜5は共有
メモリセル1と各プロセッサCPU0〜CPU3との間
にそれぞれ設けられたデータ及びアドレス情報ラッチの
ためのラッチ回路である。各ラッチ回路2〜5の内部構
造は同一構成になり、各プロセッサからの書込み又は読
出しアドンスを一旦ラッチするアドレスラッチ回路6、
各プロセッサからの書込みデータを一旦ランチする書込
みデータランチ回路γ、共有メモリセル1からの読出し
データを一旦ラッチする読出しデータラッチ回路8、動
作コントロール用の制御回路9から構成されている。Embodiment Hereinafter, one embodiment of the present invention will be described with reference to the drawings. FIG. 1 is a block diagram showing the configuration of the latch circuit portion of the shared memory device of the present invention, in which 1 is a shared memory cell, and 2 to 5 are data provided between the shared memory cell 1 and each processor CPU0 to CPU3, respectively. and a latch circuit for latching address information. The internal structure of each latch circuit 2 to 5 is the same, and an address latch circuit 6 that temporarily latches write or read adds from each processor;
It consists of a write data launch circuit γ that temporarily launches write data from each processor, a read data latch circuit 8 that temporarily latches read data from the shared memory cell 1, and a control circuit 9 for operation control.
第2図は優先度判定回路のブロック図で、21は各プロ
セッサCPU0〜CPU3か−らの書込み要求信号(W
RgQo )〜(WREQ3)及び読出し要求信号(R
REQO)〜(RREQ3)を一旦ラッチするR/W要
求ラッチ回路、22は各プロセッサからの書込み要求及
び読出し要求に対して予め定めた優先順位を与えるゾラ
イオリテイ・エンコーダ、23はゾライオリテイ・エン
コーダ22の決定した優先順位に従ってアクセス許可信
号(RO)〜(R3)、(WO)〜(W3)を出力する
デコーダである。上記において、いま各プロセッサの共
有メモリに対するアクセスの優先順位が次のよ5に設定
されでいる場合、
1)プロセッサCPU0
2)プロセッサCPUl
3)プロセッサCPU2
4)プロセッサCPU3
全プロセッサの書込み、読出しの優先順位は以下のよう
に設定され、この優先順位1)〜8)が優先度判定回路
内のプライオリティ・エンコーダ22に設定記憶されて
いる。FIG. 2 is a block diagram of the priority determination circuit, and 21 is a write request signal (W) from each processor CPU0 to CPU3.
RgQo ) to (WREQ3) and read request signal (R
R/W request latch circuit that once latches REQO) to (RREQ3); 22 is a Zoriality encoder that gives a predetermined priority to write requests and read requests from each processor; 23 is a decision made by the Zoriality encoder 22; This is a decoder that outputs access permission signals (RO) to (R3) and (WO) to (W3) according to the priority order. In the above, if the priority order of access to the shared memory of each processor is set as follows: 1) Processor CPU0 2) Processor CPUl 3) Processor CPU2 4) Processor CPU3 Write and read priority for all processors The order is set as follows, and the priorities 1) to 8) are set and stored in the priority encoder 22 in the priority determination circuit.
1)プロセッサCPU0の読出し
2)プロセッサCPUIの読出し
3)プロセッサCPU 2の読出し
4)プロセッサCPU3の読出し
5)プロセッサCPU0の書込み
6)プロセッサCPU 1の書込み
7)プロセッサCPU 2の書込み
8)プロセッサCPU3の書込み
上記構成において、まず1例として、プロセッサCPU
Iから読出し要求があった場合の動作について述べる。1) Read processor CPU0 2) Read processor CPUI 3) Read processor CPU2 4) Read processor CPU3 5) Write processor CPU0 6) Write processor CPU1 7) Write processor CPU2 8) Write processor CPU3 Writing In the above configuration, first, as an example, the processor CPU
The operation when there is a read request from I will be described.
プロセッサCPUIから読出し要求信号(RREQ+、
)と読出しアドレスが出力されると、読出しアドレスは
ラッチ回路3内のアドレスランチ回路6に一旦ラッチさ
れる。これと同時に、読出し要求信号(RREQI)は
優先度判定回路のR/W要求ラッチ回路21にラッチさ
れる。プライオリティ・エンコーダ22とデコーダ23
は読出し要求信号(RREQ l )を受け、他のゾロ
セッサからの書込み・読出し要求がないことを条件とし
て、プロセッサCPUIの読出し動作のためのアクセス
許可信号(R1)を直ちに出力し、このアクセス許可信
号(R1)はラッチ回路3内の制御回路9に与えられる
。制御回路9がアクセス許可信号(R1)を受けると、
アドレスラッチ回路6にラッチされている読出しアドレ
スが共有メモリセル1に与えられ、当該アドレスに格納
されたデータが読出される。この読出されたデータはラ
ッチ回路3内の読出しデータラッチ回路8にランチされ
た後プロセッサCPUIへ送られ、プロセッサCPUI
による読出し動作は終了する。A read request signal (RREQ+,
) and the read address is output, the read address is once latched by the address launch circuit 6 in the latch circuit 3. At the same time, the read request signal (RREQI) is latched by the R/W request latch circuit 21 of the priority determination circuit. Priority encoder 22 and decoder 23
receives the read request signal (RREQ l ), and immediately outputs the access permission signal (R1) for the read operation of the processor CPUI on the condition that there is no write/read request from other processors, and this access permission signal (R1) is given to the control circuit 9 in the latch circuit 3. When the control circuit 9 receives the access permission signal (R1),
The read address latched in the address latch circuit 6 is given to the shared memory cell 1, and the data stored at the address is read out. This read data is launched into the read data latch circuit 8 in the latch circuit 3 and then sent to the processor CPUI.
The read operation ends.
また、プロセッサCPU0からデータの書込み要求があ
った場合の動作について述べれば、プロセッサCPU0
から書込み要求信号(WRFQo)、書込みデータ、書
込みアドレスが出力されると、書込みデータど書込みア
ドレスはラッチ回路2内の書込みデータラッチ回路γ及
びアドレスラッチ回路6にそれぞれ一旦ラッチされる。Also, to describe the operation when there is a data write request from processor CPU0, processor CPU0
When the write request signal (WRFQo), write data, and write address are output from the write address, the write data and the write address are once latched by the write data latch circuit γ and the address latch circuit 6 in the latch circuit 2, respectively.
これと同時に、書込み要求信号(WREQo)は優先度
判定回路のR/W要求ランチ回路21にラッチされる。At the same time, the write request signal (WREQo) is latched by the R/W request launch circuit 21 of the priority determination circuit.
プライオリティ・エンコーダ22とデコーダ23は書込
み要求信号(WRgQo)を受け、他のプロセッサから
の書込み・読出し要求がないことを条件として、プロセ
ッサCPU0の書込み動作のためのアクセス許可信号(
WO)を直ちに出力する。このアクセス許可信号(WO
)はラッチ回路2内の制御回路9に与えられる。制御回
路9がアクセス許可信号(WQつを受けると、アドレス
ラッチ回路6にラッチされている書込みアドレスと書込
みデータラッチ回路7にラッチされている書込みデータ
が共有メモリセル1に与えられ、当該アドレス位置にデ
ータが書込まれる。これによシ、プロセッサCPU0に
よる書込み動作は終了する。The priority encoder 22 and the decoder 23 receive the write request signal (WRgQo) and issue an access permission signal (for the write operation of the processor CPU0) on the condition that there is no write/read request from other processors.
WO) immediately. This access permission signal (WO
) is given to the control circuit 9 in the latch circuit 2. When the control circuit 9 receives the access permission signal (WQ), the write address latched in the address latch circuit 6 and the write data latched in the write data latch circuit 7 are given to the shared memory cell 1, and the address location is The data is written to .This completes the write operation by processor CPU0.
次に、上記プロセッサCPUIによる読出し要求とプロ
セッサCPU0による書込み要求とが同時に発生した場
合、それぞれのプロセッサからの読出し要求信号(RR
EQ、 ) 、書込み要求信号(WREQo)が優先度
判定回路のyw要求ラッチ回路21に入力する。この読
出し要求信号(RREQ+ )と書込み要求信号(WR
EQo)を受けたプライオリティ・エンコーダ22は、
いずれの要求が上位の優先順位であるかを判定する。Next, when a read request by the processor CPUI and a write request by the processor CPU0 occur simultaneously, a read request signal (RR
EQ, ) and a write request signal (WREQo) are input to the yw request latch circuit 21 of the priority determination circuit. These read request signal (RREQ+) and write request signal (WR
The priority encoder 22 that received the EQo)
Determine which request has the higher priority.
即ち、本発明の場合、全ゾロセッサの書込み。That is, in the case of the present invention, writing of all processors.
読出しの優先順位は前掲したように読出し要求を書込み
要求よりも上位として順位1)〜8)が設定されている
ので、前記読出し要求信号(RREQ+)の方が書込み
要求信号(WREQ6)よりも上位の優先度となる。従
って、上記のように書込み要求と読出し要求が競合した
場合、優先度上位となるプロセッサCPUIの読出し要
求に対するアクセス許可信号(R1)がデコーダ23か
らまず最初に出力される。このアクセス許可信号(R]
)が出力されると、ラッチ回路3は前述した読出し動作
を実行する。他方、下位の順位となるプロセッサCPU
0は直ちに書込み動作に移行はできないが、プロセッサ
CPU0の出力した書込みデータと書込みアドレスはラ
ッチ回路2内の書込みデータラッチ回路7とアドレスラ
ンチ回路6にそれぞれ一旦ラッチされる。このため、プ
ロセッサCPU0は書込みデータと書込みアドレスを外
部へ出力した段階で書込み動作のだめの「待ち」状態を
続けることなしに次の処理ステップに進むことができる
。従って、書込み要求と読出し要求が競合した場合でも
、書込み要求したプロセッサは書込みデータと書込みア
ドレスを出力した後直ちに次の処理ステップに進むこと
ができ、従来のように「待ち」状態となってスループッ
トの低下をきたすことがなくなる。As mentioned above, the read priority is set in ranks 1) to 8) with read requests higher than write requests, so the read request signal (RREQ+) is higher than the write request signal (WREQ6). priority. Therefore, when a write request and a read request conflict as described above, the access permission signal (R1) for the read request of the processor CPUI having a higher priority is outputted from the decoder 23 first. This access permission signal (R)
) is output, the latch circuit 3 executes the read operation described above. On the other hand, the lower ranking processor CPU
0 cannot immediately shift to a write operation, but the write data and write address output by the processor CPU0 are once latched by the write data latch circuit 7 and address launch circuit 6 in the latch circuit 2, respectively. Therefore, the processor CPU0 can proceed to the next processing step without continuing the "waiting" state for the write operation at the stage of outputting the write data and the write address to the outside. Therefore, even if there is a conflict between a write request and a read request, the processor that made the write request can proceed to the next processing step immediately after outputting the write data and write address, and the throughput will be reduced by going into a "waiting" state like in the past. This will prevent a decrease in
前記プロセッサCPUIの読出し動作が終了すると、デ
コーダ23からプロセッサCPU0の書込み動作のため
のアクセス許可信号(WO)が出力され、ラッチ回路2
はこのアクセス許可信号(WO)を受けて前述したデー
タの書込み動作を実行するものである。When the read operation of the processor CPUI is completed, the decoder 23 outputs an access permission signal (WO) for the write operation of the processor CPU0, and the latch circuit 2
receives this access permission signal (WO) and executes the data write operation described above.
発明の効果
本発明は以上説明した如き構成9作用になるもので、各
プロセッサ毎にラッチ回路を設けて各プロセッサの出力
するデータ、アドレス情報を−Hランチすると共に、優
先度判定回路において読出し要求を書込み要求よシも上
位の優先順位に設定し、該優先順位に従ってアクセス許
可を与えるよう構成したので、各プロセッサからの書込
み・読出し要求が競合した場合でもそれぞれのプロセッ
サの動作に「待ち」状態が発生することがなくなり、従
来の共有メモリ装置に比べて装置全体のスループットを
向上できるという優れた効果を奏する。Effects of the Invention The present invention has the structure 9 operation as explained above. A latch circuit is provided for each processor to -H launch the data and address information output by each processor, and a read request is issued in the priority determination circuit. Since the configuration is configured such that both write requests and requests are set to a higher priority and access permission is granted according to the priority, even if write/read requests from each processor conflict, each processor's operation will be in a "waiting" state. This eliminates the occurrence of the problem, and has the excellent effect of improving the throughput of the entire device compared to conventional shared memory devices.
第1図は本発明になる共有メモリ装置のラッチ回路部分
の回路構成例を示すブロック図、第2図は本発明になる
共有メモリ装置の優先度判定回路部分の回路構成例を示
すブロック図である。
CPU0−CPU3 :プロセッサ、1:共有メモリセ
ル、2〜5:ラッチ回路、21 : R/W要求ラッチ
回路、22:ゾライオリテイ・エンコーダ、23:デコ
ーダ。FIG. 1 is a block diagram showing an example of a circuit configuration of a latch circuit portion of a shared memory device according to the present invention, and FIG. 2 is a block diagram showing an example of a circuit configuration of a priority determination circuit portion of a shared memory device according to the present invention. be. CPU0-CPU3: Processor, 1: Shared memory cell, 2-5: Latch circuit, 21: R/W request latch circuit, 22: Zoriality encoder, 23: Decoder.
Claims (1)
スできるよう構成された共有メモリ装置において、共有
メモリセルと各プロセッサとの間にデータ及びアドレス
情報を一旦ラッチするラッチ回路をそれぞれ設けると共
に、各プロセッサからの書込み・読み出し要求を監視し
て予め定めた優先順位に従って各プロセッサに対してア
クセス許可を与える優先度判定回路を設け、該優先度判
定回路の優先順位を書込み要求よりも読出し要求を上位
に設定したことを特徴とする共有メモリ装置。In a shared memory device configured such that one shared memory can be accessed by multiple processors, a latch circuit is provided between the shared memory cell and each processor to temporarily latch data and address information, and a latch circuit is provided between the shared memory cell and each processor. A priority determination circuit is provided that monitors write/read requests and grants access permission to each processor according to a predetermined priority order, and the priority determination circuit sets read requests higher than write requests. A shared memory device characterized by:
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP19724785A JPS6257050A (en) | 1985-09-06 | 1985-09-06 | Common memory device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP19724785A JPS6257050A (en) | 1985-09-06 | 1985-09-06 | Common memory device |
Publications (1)
Publication Number | Publication Date |
---|---|
JPS6257050A true JPS6257050A (en) | 1987-03-12 |
Family
ID=16371294
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP19724785A Pending JPS6257050A (en) | 1985-09-06 | 1985-09-06 | Common memory device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS6257050A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH01199261A (en) * | 1987-10-26 | 1989-08-10 | Matsushita Electric Works Ltd | Shared memory control system |
US7689781B2 (en) | 2002-02-26 | 2010-03-30 | Nxp B.V. | Access to a collective resource in which low priority functions are grouped, read accesses of the group being given higher priority than write accesses of the group |
-
1985
- 1985-09-06 JP JP19724785A patent/JPS6257050A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH01199261A (en) * | 1987-10-26 | 1989-08-10 | Matsushita Electric Works Ltd | Shared memory control system |
US7689781B2 (en) | 2002-02-26 | 2010-03-30 | Nxp B.V. | Access to a collective resource in which low priority functions are grouped, read accesses of the group being given higher priority than write accesses of the group |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US5375215A (en) | Multiprocessor system having shared memory divided into a plurality of banks with access queues corresponding to each bank | |
US5398211A (en) | Structure and method for providing prioritized arbitration in a dual port memory | |
JPH04306748A (en) | Information processor | |
KR950010529B1 (en) | Memory sharing device for interprocessor communication | |
JPS6257050A (en) | Common memory device | |
JPS6242306B2 (en) | ||
US7240144B2 (en) | Arbitration of data transfer requests | |
JPH06161873A (en) | Hang-up processing method for multiple access points to main memory | |
JPS61217861A (en) | Data processing system | |
JP2952896B2 (en) | Shared memory access method in multitask multiprocessor system | |
JPH0330175B2 (en) | ||
JP2731761B2 (en) | Network control device | |
JPS6153747B2 (en) | ||
JPH04120652A (en) | Parallel processors | |
JP2946561B2 (en) | Multiprocessor system | |
KR960007835B1 (en) | Common memory access device for multi-processor | |
JPS59214977A (en) | data processing equipment | |
JP3641347B2 (en) | Competitive arbitration processing method and information processing apparatus | |
JPS60134956A (en) | Information processing system | |
JP3019323B2 (en) | Direct access to image memory | |
JPH11203253A (en) | Exclusive access control method for shared resource | |
JPH0351943A (en) | Sharing system for high/low speed bus lines | |
JPH0528090A (en) | Memory controller | |
JPH01265355A (en) | Multi-processor system | |
JP3219422B2 (en) | Cache memory control method |