Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPS5836381B2 - shared memory controller - Google Patents
[go: Go Back, main page]

JPS5836381B2 - shared memory controller - Google Patents

shared memory controller

Info

Publication number
JPS5836381B2
JPS5836381B2 JP11753080A JP11753080A JPS5836381B2 JP S5836381 B2 JPS5836381 B2 JP S5836381B2 JP 11753080 A JP11753080 A JP 11753080A JP 11753080 A JP11753080 A JP 11753080A JP S5836381 B2 JPS5836381 B2 JP S5836381B2
Authority
JP
Japan
Prior art keywords
bus
shared memory
circuit
output
flip
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired
Application number
JP11753080A
Other languages
Japanese (ja)
Other versions
JPS5741755A (en
Inventor
邦男 仲谷
和夫 三上
博 横山
照彦 都築
浩司 小林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Omron Corp
Original Assignee
Omron Tateisi Electronics Co
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 Omron Tateisi Electronics Co filed Critical Omron Tateisi Electronics Co
Priority to JP11753080A priority Critical patent/JPS5836381B2/en
Publication of JPS5741755A publication Critical patent/JPS5741755A/en
Publication of JPS5836381B2 publication Critical patent/JPS5836381B2/en
Expired legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/16Handling requests for interconnection or transfer for access to memory bus
    • G06F13/18Handling requests for interconnection or transfer for access to memory bus based on priority control
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F15/00Digital computers in general; Data processing equipment in general
    • G06F15/16Combinations of two or more digital computers each having at least an arithmetic unit, a program unit and a register, e.g. for a simultaneous processing of several programs

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • Multi Processors (AREA)

Description

【発明の詳細な説明】 この発明は、複数のプロセッサを備え各プロセッサに処
理を分散するマルチプロセッサ・システムにおける共用
メモリ制御方式に関する。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a shared memory control method in a multiprocessor system that includes a plurality of processors and distributes processing to each processor.

マルチプロセッサ・システムでは複数のプロセッサと主
メモリとを共通バスで接続して主メモリを共用している
が、競合および優先順位の問題がある。
In multiprocessor systems, multiple processors and main memory are connected by a common bus to share the main memory, but there are problems of contention and priority.

従来は1つのプロセッサが主メモリを使用している場合
には他のプロセッサはその処理実行を停止していた。
Conventionally, when one processor is using main memory, other processors have stopped executing their processes.

また、2つ以上のプロセッサから全く同時にバス・リク
エストがあった場合には優先順位の判定ができず、動作
が不安定になるときがあった。
Furthermore, when bus requests are received from two or more processors at the same time, the priority order cannot be determined, resulting in unstable operation.

この発明は上記実情に鑑みてなされたものであって、プ
ロセッサの稼動率の向上を図り、安定した動作を確保す
ることのできる共用メモリ制御方式を提供するものであ
る。
The present invention has been made in view of the above circumstances, and it is an object of the present invention to provide a shared memory control method that can improve the operating rate of a processor and ensure stable operation.

以下、図面を参照してこの発明の実施例について詳しく
説明する。
Embodiments of the present invention will be described in detail below with reference to the drawings.

第1図は、2台のマイクロプロセッサ(MPUという)
によるマルチプロセッサ・システムを示している。
Figure 1 shows two microprocessors (called MPUs)
A multiprocessor system is shown.

各MPU,それらの周辺装置および各制御信号を区別す
るために、添字AおよびBがそれぞれ付されている。
Subscripts A and B are added to distinguish each MPU, their peripheral devices, and each control signal, respectively.

各MPUIA,IBはそれぞれ内部メモlJ2A,2B
を備えており、これらはデータ、アドレスおよび制御の
各バスで接続されている。
Each MPUIA and IB are internal memory lJ2A and 2B, respectively.
are connected by data, address, and control buses.

また、2台のMPUIA,IBは共用メモリ(主メモリ
)6とバス・ゲート7A,7Bを介して、データ、アド
レスおよび制御の各共通バスで接続されている。
Furthermore, the two MPUIAs and IBs are connected via common data, address, and control buses via a shared memory (main memory) 6 and bus gates 7A and 7B.

各MPUIA,IBは選択スイッチ3A,3Bおよび比
較回路4A,4Bをそれぞれ備えている。
Each MPUIA, IB includes selection switches 3A, 3B and comparison circuits 4A, 4B, respectively.

選択スイッチ3A,3Bは、各MPUIA,IBが使用
する共用メモリ6のアドレスの範囲を設定するものであ
る。
The selection switches 3A and 3B are used to set the address range of the shared memory 6 used by each MPUIA and IB.

比較回路4A,4Bは、選択スイッチ3A,3Bにより
設定されたアドレスの範囲内に各MPUIA,1Bの指
定したアドレスが含まれているときにバス・リクエスト
信号(A.−,B−,BUS−REQ)をそれぞれ出力
する。
The comparison circuits 4A, 4B output bus request signals (A.-, B-, BUS-) when the address designated by each MPUIA, 1B is included in the address range set by the selection switches 3A, 3B. REQ) respectively.

たとえば、選択スイッチ4Aに4000が設定されてい
た場合、MPU1Aがアドレス4000〜4FFFのい
ずれかを指定すると比較回路4Aからバス・リクエスト
信号(A−BUS − REQ)が出力される。
For example, when the selection switch 4A is set to 4000, when the MPU 1A specifies one of the addresses 4000 to 4FFF, a bus request signal (A-BUS-REQ) is output from the comparison circuit 4A.

このバス・リクエスト信号はバス制御回路5に入力する
This bus request signal is input to the bus control circuit 5.

バス制御回路5はバス・リクエスト信号の入力があると
、共用メモリ6が他のMPUによって使用されていなけ
ればバス・イネーブル信号(AまたはB−BUS−EN
B)を出力し、共用メモリ6が使用中であればメモリ・
レディ信号(AまたはB−MRDY)を出力するととも
に、2つのバス・リクエスト信号(A−BTS − R
EQ)(B−BUS − REQ)が同時に入力した場
合にはその優先順位を定めて優先順位の高い方にバス・
イネーブル信号を出力し、他方にメモリ・レディ信号を
出力する。
When the bus control circuit 5 receives a bus request signal, it outputs a bus enable signal (A or B-BUS-EN) if the shared memory 6 is not used by another MPU.
B), and if shared memory 6 is in use, the memory
It outputs a ready signal (A or B-MRDY) and also outputs two bus request signals (A-BTS-R
If EQ) (B-BUS-REQ) are input at the same time, determine the priority and assign the bus to the one with the higher priority.
It outputs an enable signal and a memory ready signal to the other.

たとえば、バス・リクエスト信号(A−BUS − R
EQ)が入力した場合、共用メモリ6がMPUIBによ
って使用されていなければ、バス・イネーブル信号(A
−BUS−ENB)を出力する。
For example, the bus request signal (A-BUS-R
If the shared memory 6 is not being used by the MPUIB, the bus enable signal (A
-BUS-ENB).

このバス・イネーブル信号(ABUS − ENB)に
よってバス・ゲート7Aが開かれるので、MPUIAは
共用メモリ6のアクセスが可能となる。
This bus enable signal (ABUS-ENB) opens the bus gate 7A, allowing the MPUIA to access the shared memory 6.

共用メモリ6がMPUI Bによる使用中の場合には、
バス制御回路5からメモリ・レデ′イ信号(A−MRD
Y)が出力され、 MPU1人は一時待機となる。
If the shared memory 6 is in use by MPUI B,
A memory ready signal (A-MRD) is sent from the bus control circuit 5.
Y) will be output and one MPU will be placed on temporary standby.

すなわち、共用メモリアクセスのアドレス・データを保
持したまま、内部クロツク停止による実行停止となる。
In other words, execution is stopped by stopping the internal clock while holding the address and data for shared memory access.

後述するところから理解されるようにMPUIBによる
共用メモリ6の使用が終了すれば、バス制御回路5から
バス・イネーブル信号(A−BUS − ENB)が出
力され、MPUIAは共用メモリ6を使用できるように
なる。
As will be understood from what will be described later, when the MPUIB finishes using the shared memory 6, the bus control circuit 5 outputs a bus enable signal (A-BUS-ENB), allowing the MPUIA to use the shared memory 6. become.

第2図はバス制御回路5の詳細を、第3図はその動作を
それぞれ示している。
FIG. 2 shows details of the bus control circuit 5, and FIG. 3 shows its operation.

バス制御回路は、バス・リクエスト信号の優先順位を決
めるDフリツプフロツプ1 1a , 1 lbと、こ
れらのDフリツプフロツプlla,1lbの出力を入力
とし2つのNAND回路から構成されるRSフリツプフ
ロツプ12と、Dフリツプフロツプ11a,llbの出
力とバス・リクエスト信号を入力とするNAND回路1
3a,13bと、NAND回路13a,13bとRSフ
リツプフロツプ2の出力からメモリ・レディ信号および
バス・イネーブル信号をつくりだす論理回路14a,1
4bとから構成されている。
The bus control circuit includes D flip-flops 11a and 1lb that determine the priority order of bus request signals, an RS flip-flop 12 that receives the outputs of these D flip-flops 11a and 1lb, and is composed of two NAND circuits, and a D flip-flop 11a and 1lb that determine the priority order of bus request signals. NAND circuit 1 which receives the outputs of 11a and llb and the bus request signal as inputs.
3a, 13b, and logic circuits 14a, 1 that generate a memory ready signal and a bus enable signal from the outputs of the NAND circuits 13a, 13b and the RS flip-flop 2.
4b.

論理回路14a,14bはそれぞれ2つのNOR回路(
負論理NAND回路)15a,16a,15b,16b
からなる。
Each of the logic circuits 14a and 14b includes two NOR circuits (
Negative logic NAND circuit) 15a, 16a, 15b, 16b
Consisting of

Dフリツプフロツプlla,1lbのデータ入力端子D
には各バス・リクエスト信号(A−,BBUS − R
EQ)が入力している。
D flip-flop lla, 1lb data input terminal D
Each bus request signal (A-, BBUS-R
EQ) is input.

一方のDフリツプフロツプ11bのクロツク入力端子T
にはクロツク・パルスCKが入力し、他方のDフリツプ
フロツプ11aのクロツク入力端子TにはNOT回路1
7が反転されたクロツク・パルスCKが入力している。
Clock input terminal T of one D flip-flop 11b
The clock pulse CK is input to the D flip-flop 11a, and the NOT circuit 1 is input to the clock input terminal T of the other D flip-flop 11a.
The clock pulse CK, which is an inverted version of 7, is input.

これらのDフリツプフロツプ11a,1lbは、クロツ
ク入力端子Tに入力するクロツクパルスの立上りでデー
タ入力端子Dに入力する信号を取込む。
These D flip-flops 11a and 1lb take in the signal input to the data input terminal D at the rising edge of the clock pulse input to the clock input terminal T.

Dフリツプフロツプ11a,llbのクロツク入力端子
Tには位相の反転したクロックパルスが入力しているか
ら、両フリツプフロツプ11a,Ilbにバス・リクエ
スト信号(A 一,B−BUS− REQ)が同時に入
力したとしても端子Tに入力するクロツクパルスの位相
に応じてどちらかのバス・リクエスト信号が選択される
Since clock pulses with inverted phases are input to the clock input terminals T of the D flip-flops 11a and Ilb, it is assumed that the bus request signals (A-BUS-REQ) are input to both flip-flops 11a and Ilb at the same time. Either bus request signal is selected depending on the phase of the clock pulse input to terminal T.

両Dフリツプフロツプ11a,11bがリセットされて
いるときにはその出力QはLレベルであるから、RSフ
リツプフロツプ12は初期状態ではその出力Q,Qがと
もにHレベルに保持されている。
When both D flip-flops 11a and 11b are reset, their outputs Q are at the L level, so the outputs Q and Q of the RS flip-flop 12 are both held at the H level in the initial state.

第3図を参照して、たとえばバス・リクエスト信号(
A’−BU S − REQ ) ( Hレベル)が入
力すると、クロツク・パルスCKの立下りでDフリツフ
゜フロツプ11aがセットされその出力QがHレベルに
なる。
Referring to FIG. 3, for example, the bus request signal (
When A'-BUS-REQ) (H level) is input, the D flip-flop 11a is set at the falling edge of the clock pulse CK, and its output Q becomes H level.

したがってRSフリツプフロツプ12の出力QがLレベ
ルになる。
Therefore, the output Q of the RS flip-flop 12 becomes L level.

NAND回路13aの出力もLレベルになるので、NO
R回路15aからHレベルのバス・イネーブル信号(A
一BUS − ENB)が出力する。
Since the output of the NAND circuit 13a also becomes L level, NO
An H level bus enable signal (A
One BUS-ENB) outputs.

RSフリツプフロツプ12の出力QはHであるからNO
R回路16aの出力はLレベルに保たれたままである。
Since the output Q of the RS flip-flop 12 is H, the answer is NO.
The output of the R circuit 16a remains at the L level.

またNAND回路13bの出力はHレベルであるから論
理回路14bの出力はいずれもLレベルである。
Furthermore, since the output of the NAND circuit 13b is at H level, the outputs of logic circuit 14b are both at L level.

この状態でバス・リクエスト信号(B−BUS・REQ
)が入力すると、クロツク・パルスCKの立上りでDフ
リツプフロツプ11bがセットされ、その出力がHレベ
ルとなる。
In this state, the bus request signal (B-BUS・REQ)
) is input, the D flip-flop 11b is set at the rising edge of the clock pulse CK, and its output becomes H level.

このためNAND回路13bの出力はLレベルとなる。Therefore, the output of the NAND circuit 13b becomes L level.

しかしながら、RSフリツフ゜フロツフ゜12の出力Q
はLレベルのままであるからその出力QはHレベルの状
態に保持される。
However, the output Q of the RS flip-flop 12
Since remains at L level, its output Q is held at H level.

したがって、論理回路14aの出力に変化はない。Therefore, there is no change in the output of the logic circuit 14a.

NAND回路13bの出力がLレベルになることによっ
てNOR回路16bからHレベルのメモリ・レディ信号
(B−MRDY)が出力される。
When the output of the NAND circuit 13b goes low, the memory ready signal (B-MRDY) at the high level is output from the NOR circuit 16b.

バス・リクエスト信号(A−BUS − REQ)が停
止してLレベルになると、クロツク・パルスCKの立下
りでDフリツプフロツプ11aがリセットされその出力
QがLレベルになる。
When the bus request signal (A-BUS-REQ) stops and goes to the L level, the D flip-flop 11a is reset at the falling edge of the clock pulse CK, and its output Q goes to the L level.

このためRSフリツプフロツプ12が反転してその出力
QがHレベルにQがLレベルになる。
Therefore, the RS flip-flop 12 is inverted and its output Q becomes H level and Q becomes L level.

したがって、バス・イネーブル信号(A−BUS −
ENB)およびメモリ・レディ信号(B−MRDY)が
Lレベルになって止み、Hレベルのバス・イネーフル信
号( B−BUS − ENB)が出力される。
Therefore, the bus enable signal (A-BUS-
ENB) and memory ready signal (B-MRDY) go low and stop, and a bus enable signal (B-BUS-ENB) at high level is output.

バス・リクエスト信号(B−BUS − REQ)がL
レベルになって止むと、クロツク・パルスCKの立上り
でDフリツプフロツプ1lbの出力QがLレベルになる
ので、フリツプフロツプ12の出力Q,QはともにHレ
ベルになり、初期状態に戻る。
Bus request signal (B-BUS-REQ) is L
When it stops, the output Q of the D flip-flop 1lb goes to the L level at the rising edge of the clock pulse CK, so the outputs Q and Q of the flip-flop 12 both go to the H level, returning to the initial state.

またNAND回路13bの出力がHレベルになるので、
バス・イネーブル信号(B−BUS・ENB)がLレベ
ルになって停止する。
Also, since the output of the NAND circuit 13b becomes H level,
The bus enable signal (B-BUS・ENB) goes to L level and stops.

両バス・リクエスト信号(A−,B−BUS・REQ)
が同時に入力した場合には、次の時点でクロツク・パル
スCKが立上ったとすればまずDフリツプフロツプ1l
bがセットされその出力QがHレベルになる。
Both bus request signals (A-, B-BUS・REQ)
are input at the same time, if the clock pulse CK rises at the next time, first the D flip-flop 1l
b is set and its output Q becomes H level.

このことにより、RSフリツフ゜フロツフ゜12の出力
QがLレベルになり、またNAND回路13bの出力も
LレベルになるのでNOR回路15bからバス・イネー
ブル信号(BBUS − ENB)が出力される。
As a result, the output Q of the RS flip-flop 12 becomes L level, and the output of the NAND circuit 13b also becomes L level, so that a bus enable signal (BBUS-ENB) is output from the NOR circuit 15b.

そして、クロツク・パルスCKの次の立下りでDフリツ
プフロツプ11aがセットされ、NAND回路13aの
出力がLレベルになるのでNOR回路16aからメモリ
・レディ信号(A−MRDY)が出力される。
Then, at the next fall of the clock pulse CK, the D flip-flop 11a is set, and the output of the NAND circuit 13a becomes L level, so that the memory ready signal (A-MRDY) is output from the NOR circuit 16a.

しかしながら、RSフリツプフロツプ12の出力QがL
レベルに保持されているからその出力QはLレベルにな
ることはなく、バス・イネーブル信号(A−BUS −
ENB)は出力されない。
However, the output Q of the RS flip-flop 12 is low.
Since the output Q is held at the L level, the bus enable signal (A-BUS-
ENB) is not output.

バス・リクエスト信号( B−BUS − REQ)の
みがLレベルになると、クロツク・パルスCKの立上り
でDフリツプフロツプ1lbがリセットされその出力が
Lレベルになるので、RSフリツプフロツプ12の出力
QはHレベルになり、その結果、このフリツプフロツプ
12の出力QがLレベルになる。
When only the bus request signal (B-BUS-REQ) goes to L level, the D flip-flop 1lb is reset at the rising edge of clock pulse CK and its output goes to L level, so the output Q of RS flip-flop 12 goes to H level. As a result, the output Q of flip-flop 12 becomes L level.

したがって、バス・イネーブル信号(B−BUS−EN
B)およびメモリ・レディ信号(A−MRDY)が立下
り、バス・イネーブル信号(A−BUS − ENB)
が立上ってHレベルとなる。
Therefore, the bus enable signal (B-BUS-EN
B) and memory ready signal (A-MRDY) fall, bus enable signal (A-BUS-ENB)
rises to H level.

この後、バス・リクエスト信号(A−BUS・REQ)
がLレベルになるとクロツク・パルスCKの立下りでD
フリツプフロツプ11aがリセットされるので、RSフ
リツプフロツプ12の出力QがHレベルになって、バス
・イネーブル信号(A−BUS−ENB、)が止む。
After this, the bus request signal (A-BUS・REQ)
When the signal goes to L level, it goes to D at the falling edge of clock pulse CK.
Since the flip-flop 11a is reset, the output Q of the RS flip-flop 12 becomes H level, and the bus enable signal (A-BUS-ENB) stops.

従来はバス・リクエスト信号を直接RSフリツプフロツ
プ12に入力していたので、バス・リクエスト信号が同
時に入力するとRSフリツプフロツプが不定または発振
を生じて不安定となっていたが、この発明では上述のよ
うにDフリツプフロツプlla,1lbのトリが・タイ
ミングをずらして優先順位を決めているので、RSフリ
ツプフロツプ12が確実にセットまたはリセットされ安
定な動作が確保できる。
Conventionally, the bus request signal was directly input to the RS flip-flop 12, so if the bus request signals were input at the same time, the RS flip-flop would become unstable or oscillate, but in this invention, as described above, Since the priority order of the D flip-flops 11a and 11b is determined by shifting the timing, the RS flip-flop 12 is reliably set or reset and stable operation can be ensured.

第4図は、4台のMPUによるマルチシステムにおいて
用いられるバス匍脚回路を示している。
FIG. 4 shows a bus leg circuit used in a multi-system with four MPUs.

したがって、入力信号としては4つのバス・リクエスト
信号(A−〜D−BUS − REQ)があり、これら
がそれぞれ別個のDフリツプフロツプ113〜11dの
データ人力端子Dに入力する。
Therefore, there are four bus request signals (A--D-BUS-REQ) as input signals, which are input to the data input terminals D of separate D flip-flops 113-11d, respectively.

これらのバス・リクエスト信号が同時に出力された場合
に、その優先順位はリングカウンタ21の出力により決
定される。
When these bus request signals are output at the same time, their priority is determined by the output of the ring counter 21.

リングカウンタ21は発振回路22の出力を計数してそ
の4つの出力端子に周期的に順次出力を発生する。
The ring counter 21 counts the output of the oscillation circuit 22 and periodically and sequentially generates outputs at its four output terminals.

このリングカウンタ21の出力はDフリツプフロツプ1
1a〜11dのクロツク入力端子Tにそれぞれ入力して
いる。
The output of this ring counter 21 is the D flip-flop 1.
It is input to clock input terminals T of 1a to 11d, respectively.

したがって、複数のバス・リクエスト信号が同時に入力
した場合には、Dフリツプフロツプ11a〜11dのう
ち、リングカウンタ21の出力が一番先に入力・したD
フリツプフロツプが最も早くセットされ、そのDフリツ
プフロツプに対応するMPUが最優先される。
Therefore, when a plurality of bus request signals are input at the same time, the output of the ring counter 21 among the D flip-flops 11a to 11d is input first.
The flip-flop is set earliest, and the MPU corresponding to that D flip-flop is given highest priority.

この優先順位を保持する回路20は、多入力化された4
つのNAND回路20a〜20dから構成されている。
The circuit 20 that maintains this priority order has four inputs.
It is composed of NAND circuits 20a to 20d.

これらのNAND回路20a〜20dには、対応するD
フリツプフロツプの出力Qおよび他の3つのNAND回
路の出力が入力している。
These NAND circuits 20a to 20d have corresponding D
The output Q of the flip-flop and the outputs of three other NAND circuits are input.

これらのNAND回路の出力は通常Hレベルになり、対
応するDフリツプフロツプの出力QがHレベルになった
ときにそのNAND回路の出力がLレベルになる。
The outputs of these NAND circuits normally go to H level, and when the output Q of the corresponding D flip-flop goes to H level, the output of that NAND circuit goes to L level.

このLレベルの出力は他の3つのNAND回路に入力し
ているから、続いて他のDフリツプフロツプの出力Qが
Hレベルになったとしても他のNAND回路の出力がL
レベルになることが禁止される。
Since this L level output is input to the other three NAND circuits, even if the output Q of the other D flip-flop becomes H level, the output of the other NAND circuits will be L level.
level is prohibited.

そして、最優先されたDフリツプフロツプがリセットさ
れLレベルの信号を出力しているNAND回路の出力が
Hレベルになったときに、次にセットされたDフリツプ
フロツプに対応するNAND回路の出力がLレベルにな
る。
Then, when the D flip-flop with the highest priority is reset and the output of the NAND circuit that outputs the L level signal becomes H level, the output of the NAND circuit corresponding to the D flip-flop set next becomes L level. become.

第4図においては、第2図のNAND回路13a,13
bに対応する回路は設けられていす、その代わりにDフ
リツプフロツプ11a〜11dの出力QがNOR回路1
5a〜15d,16a〜16dの一方の入力端子に入力
する。
In FIG. 4, the NAND circuits 13a and 13 of FIG.
A circuit corresponding to the D flip-flops 11a to 11d is provided instead, and the outputs Q of the D flip-flops 11a to 11d are connected to the NOR circuit 1.
It is input to one input terminal of 5a to 15d and 16a to 16d.

NOR回路15a〜15dの他方の入力端子には、対応
するNAND回路の出力が入力しており、この出力と対
応するDフリツプフロツプの出力QがともにLレベルに
なったときに、Hレベルのバス・イネーブル信号が出力
される。
The output of the corresponding NAND circuit is input to the other input terminal of the NOR circuits 15a to 15d, and when this output and the output Q of the corresponding D flip-flop are both at L level, the bus signal at H level is input. An enable signal is output.

NOR回路16a〜16dの他方の入力端子には、OR
回路17a〜17dを介して、NAND回路20a〜2
0dのうち対応しない他の3つのNAND回路の出力が
入力している。
The other input terminals of the NOR circuits 16a to 16d have an OR
NAND circuits 20a to 2 via circuits 17a to 17d
The outputs of three other non-corresponding NAND circuits among 0d are input.

したがって、対応するDフリツプフロツプがセットされ
てその出力QがLレベルになり、かつ対応しない他の3
つのNAND回路のうちいずれか1つの出力がLレベル
であれば(したがってバス・イネーブル信号が出力され
ている)、そのNOR回路からメモリ・レディ信号が出
力される。
Therefore, the corresponding D flip-flop is set and its output Q becomes L level, and the other 3 uncorresponding
If the output of any one of the two NAND circuits is at L level (therefore, a bus enable signal is being output), a memory ready signal is output from that NOR circuit.

このようにこの発明は任意の台数のプロセッサカラナる
マルチプロセッサ・システムに適中しうる。
Thus, the present invention is applicable to multiprocessor systems having any number of processors.

そして、メモリ・レディ信号を有するプロセッサで実行
停止時間に制限がない場合には、プロセッサの数を限り
なく多くすることができる。
If there is no limit to the execution stop time of a processor having a memory ready signal, the number of processors can be increased without limit.

以上詳細に説明したようにこの発明によれば、複数のプ
ロセッサが共用メモリと共通バスで接続されたマルチプ
ロセッサ・システムにおいて、2つ以上のメモリ要求信
号が出されたときには確実に優先順位を決定しているか
ら、安定した共通バス接続が可能となる。
As explained in detail above, according to the present invention, in a multiprocessor system in which a plurality of processors are connected to a shared memory and a common bus, when two or more memory request signals are issued, the priority order is determined reliably. This enables a stable common bus connection.

また、複数のプロセッサからの同時要求による競合の場
合のみ、他のプロセッサを一時待機させているので、プ
ロセッサの稼動率を向上させることができる。
Further, since other processors are temporarily put on standby only in the case of competition due to simultaneous requests from a plurality of processors, the operating rate of the processors can be improved.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は2台のプロセッサから構成されるマルチプロセ
ッサ・システムを示すブロック図、第2図はバス制御回
路の詳細を示すブロック図、第3図は第2図の回路の動
作を示すタイム・チャート、第4図は4台のプロセッサ
の場合のバス匍脚回路の一例を示すブロック図である。 IA,IB・・・・・・マイクロプロセッサ、3A,3
B・・・・・・選択スイッチ、4A , 4 B・・・
・・・比較回路、5・・・・・・バス制御回路、6・・
・・・・共用メモリ、7A,7B・・・・・・バス・ゲ
ート、11a〜11d・・・・・・Dフリツプフロツプ
(優先順位決定回路)、12・・・・・・RSフリツプ
フロツプ(保持回路)、14a〜14d・・・・・・論
理回路、20・・・・・・保持回路、21・・・・・・
リングカウンタ。
Figure 1 is a block diagram showing a multiprocessor system consisting of two processors, Figure 2 is a block diagram showing details of the bus control circuit, and Figure 3 is a time block diagram showing the operation of the circuit in Figure 2. FIG. 4 is a block diagram showing an example of a bus leg circuit in the case of four processors. IA, IB...Microprocessor, 3A, 3
B...Selection switch, 4A, 4B...
... Comparison circuit, 5 ... Bus control circuit, 6 ...
...Shared memory, 7A, 7B...Bus gate, 11a-11d...D flip-flop (priority determining circuit), 12...RS flip-flop (holding circuit) ), 14a to 14d...logic circuit, 20...holding circuit, 21...
ring counter.

Claims (1)

【特許請求の範囲】 1 複数のプロセッサとこれらに共通バスで接続された
共用メモリとを含むマルチプロセッサ・システムにおい
て、各プロセッサから出力される共用メモリ要求信号を
受付けてそのプロセッサと共用メモリとのバスの接続を
制御するバス制御回路を備え、このバス匍脚回路は、複
数のプロセッサから共用メモリ要求信号が同時に出力さ
れた場合にその優先順位を決定する優先順位決定回路と
、優先順位決定回路の決定結果を保持する保持回路と、
この保持回路の出力にもとづいて、優先されたプロセッ
サを共用メモリに接続する信号および他の要求のあった
プロセッサを待機させる信号を出力する論理回路とから
構成される、共用メモリ制御装置。 2 上記優先順位決定回路は、一定周期で繰返えすパル
ス信号の順序に応じて優先順位を決定する、特許請求の
範囲第1項記載の共用メモリ匍脚装置。 3 各プロセッサごとにそのプロセッサが使用スル共用
メモリのアドレス範囲を定めるアドレス設定回路と、こ
のアドレス設定回路の設定アドレス範囲と各プロセッサ
の指定するアドレスとを比較して、一致した場合に共用
メモリ要求信号を出力する比較回路とを備えている、特
許請求の範囲第1項記載の共用メモリ制御装置。
[Scope of Claims] 1. In a multiprocessor system including a plurality of processors and a shared memory connected to them via a common bus, a shared memory request signal output from each processor is received and communication between that processor and the shared memory is performed. The bus control circuit includes a bus control circuit that controls the connection of the bus, and the bus leg circuit includes a priority determination circuit that determines the priority level when shared memory request signals are simultaneously output from multiple processors; a holding circuit that holds the determination result of
A shared memory control device comprising a logic circuit that outputs a signal to connect a prioritized processor to the shared memory and a signal to put other requested processors on standby based on the output of the holding circuit. 2. The shared memory supporting device according to claim 1, wherein the priority order determining circuit determines the priority order according to the order of pulse signals that are repeated at a constant cycle. 3 An address setting circuit that determines the address range of the shared memory used by each processor for each processor compares the address range set by this address setting circuit with the address specified by each processor, and if they match, requests for shared memory are made. The shared memory control device according to claim 1, further comprising a comparison circuit that outputs a signal.
JP11753080A 1980-08-25 1980-08-25 shared memory controller Expired JPS5836381B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11753080A JPS5836381B2 (en) 1980-08-25 1980-08-25 shared memory controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11753080A JPS5836381B2 (en) 1980-08-25 1980-08-25 shared memory controller

Publications (2)

Publication Number Publication Date
JPS5741755A JPS5741755A (en) 1982-03-09
JPS5836381B2 true JPS5836381B2 (en) 1983-08-09

Family

ID=14714063

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11753080A Expired JPS5836381B2 (en) 1980-08-25 1980-08-25 shared memory controller

Country Status (1)

Country Link
JP (1) JPS5836381B2 (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS58165029A (en) * 1982-03-25 1983-09-30 Showa Electric Wire & Cable Co Ltd Detector for leakage of water
JPS6015763A (en) * 1983-07-05 1985-01-26 インタ−ナショナル ビジネス マシ−ンズ コ−ポレ−ション Interface controller
JPS60221864A (en) * 1984-04-18 1985-11-06 Matsushita Electric Ind Co Ltd Control method of common memory
JPS6134693A (en) * 1984-07-27 1986-02-18 ニツタン株式会社 Fire alarm
CA1247248A (en) * 1984-12-07 1988-12-20 Shouki Yoshida Transfer control equipment
JPS63214866A (en) * 1987-03-04 1988-09-07 Nec Corp Common bus control circuit
JPH01234963A (en) * 1988-03-15 1989-09-20 Koyo Electron Ind Co Ltd Data processor
JPH01239664A (en) * 1988-03-22 1989-09-25 Nec Corp Common memory arbitration device
JPH0752431B2 (en) * 1989-03-20 1995-06-05 三菱電機株式会社 Input signal arbitrator

Also Published As

Publication number Publication date
JPS5741755A (en) 1982-03-09

Similar Documents

Publication Publication Date Title
US4587609A (en) Lockout operation among asynchronous accessers of a shared computer system resource
US5119480A (en) Bus master interface circuit with transparent preemption of a data transfer operation
US4050097A (en) Synchronization technique for data transfers over an asynchronous common bus network coupling data processing apparatus
EP0581335B1 (en) Data processing system having units competing for access to shared resources and arbitration unit responsive to the status of the shared resources
JPS5836381B2 (en) shared memory controller
KR900001120B1 (en) Distributed priority network logic for allowing a low priority unit to reside in a high priority position
US5377334A (en) Fast asynchronous resource master-slave combination
JPS6019819B2 (en) Bus right control method
JPS6149712B2 (en)
JP2870812B2 (en) Parallel processor
JPH04250553A (en) Programmable controller
KR100258631B1 (en) Bus arbitration apparatus for multi-processor system
JPH0324698B2 (en)
JPH01265355A (en) Multi-processor system
JPS61264463A (en) Bus controlling system
JPS60169969A (en) Multiprocessor system
JPS58217071A (en) Information processing system
JPH02170256A (en) Bus control method and device
JPH04363751A (en) Multi cpu system
JPH05204832A (en) Dma bus arbitration system
JPH04131955A (en) Multiprocessor type programmable controller
JPH02211570A (en) Bus master switching control system
JPH06161951A (en) Bus control system
JPS6097462A (en) Time-sharing common-memory type multimicroprocessor system
JPS63298555A (en) Shared memory control system