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
JPH024934B2 - - Google Patents
[go: Go Back, main page]

JPH024934B2 - - Google Patents

Info

Publication number
JPH024934B2
JPH024934B2 JP59025160A JP2516084A JPH024934B2 JP H024934 B2 JPH024934 B2 JP H024934B2 JP 59025160 A JP59025160 A JP 59025160A JP 2516084 A JP2516084 A JP 2516084A JP H024934 B2 JPH024934 B2 JP H024934B2
Authority
JP
Japan
Prior art keywords
processor
signal
common memory
processors
interrupt
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 - Lifetime
Application number
JP59025160A
Other languages
Japanese (ja)
Other versions
JPS60169971A (en
Inventor
Keiichi Ishida
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.)
Fuji Electric Co Ltd
Original Assignee
Fuji Electric 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 Electric Co Ltd filed Critical Fuji Electric Co Ltd
Priority to JP59025160A priority Critical patent/JPS60169971A/en
Publication of JPS60169971A publication Critical patent/JPS60169971A/en
Publication of JPH024934B2 publication Critical patent/JPH024934B2/ja
Granted legal-status Critical Current

Links

Classifications

    • 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
    • G06F15/163Interprocessor communication
    • G06F15/167Interprocessor communication using a common memory, e.g. mailbox
    • 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

Landscapes

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

Description

【発明の詳細な説明】 〔発明の属する技術分野〕 この発明は複数のプロセツサからなる、いわゆ
るマルチプロセツサシステム、特に同期式または
非同期式のいずれにてもデータの交信が可能なプ
ロセツサユニツトを備えたマルチプロセツサシス
テムに関する。
[Detailed Description of the Invention] [Technical Field to which the Invention Pertains] The present invention relates to a so-called multiprocessor system consisting of a plurality of processors, particularly a processor unit capable of communicating data either synchronously or asynchronously. The present invention relates to a multiprocessor system equipped with a multiprocessor system.

〔従来技術とその問題点〕[Prior art and its problems]

第1図は一般的なマルチプロセツサシステムに
おけるプロセツサ間のデータ交信方式を説明する
ための説明図である。同図において、MUTはマ
スタユニツト、SUT1,2はスレーブユニツト
で、マスタユニツトMUTはプロセツサPRが、
また、スレーブユニツトSUTにはプロセツサ
PR、制御回路CTおよび共通メモリCMがそれぞ
れ設けられ、これらは互いに共通バスBSを介し
て接続されている。このようなシステムにおける
プロセツサ間のデータ交信は、一般に共通メモリ
を介して同期式または非同期式に行なわれる。
FIG. 1 is an explanatory diagram for explaining a data communication method between processors in a general multiprocessor system. In the figure, MUT is the master unit, SUT1 and SUT2 are slave units, and the master unit MUT is the processor PR.
In addition, the slave unit SUT has a processor.
A PR, a control circuit CT, and a common memory CM are provided, and these are connected to each other via a common bus BS. Data communication between processors in such systems is typically done synchronously or asynchronously through a common memory.

すなわち、同期式は同図Aに示されるように、
スレーブ側のプロセツサPRから共通メモリCM
にデータを送ることによつて、制御回路CTがマ
スタ側のプロセツサPRに対して同期のための割
込トリガ信号を与えることにより行なう。マスタ
側プロセツサPRは、このトリガ信号を受けると
プログラムの割込み処理サービスルーチンを起動
して、共通メモリCMとのデータ授受処理を行な
う。なお、第1図Aにおいて丸印が付された数字
は、その起動順序を表わすものである。
In other words, as shown in figure A, the synchronous type
Common memory CM from processor PR on slave side
The control circuit CT provides an interrupt trigger signal for synchronization to the processor PR on the master side by sending data to the processor PR. When the master side processor PR receives this trigger signal, it starts the interrupt processing service routine of the program and performs data exchange processing with the common memory CM. Note that the numbers marked with circles in FIG. 1A represent the activation order.

非同期式は同図Bに示されるように、マスタ側
プロセツサPRが適時共通メモリCMに対してデ
ータ読み、書きを行なうもので、このタイミング
をとるための同期指令は特に受けず、したがつ
て、起動順序にも特別の制約を受けない方式であ
る。そのかわり、共通メモリCMの使用にあたつ
ては、プロセツサ間の同時使用によるデータ交信
の混乱を回避するため、制御回路CTによつて排
他制御を行なう必要がある。簡単な例として、ス
レーブ側プロセツサによる共通メモリCMの使用
中に、マスタ側プロセツサがこれを使用しようと
するときは、制御回路CTによつてマスタ側プロ
セツサを待機させる信号を発生させるものである
が、これは、プロセツサが具有する待機要求端子
(プロセツサによつては、READY端子がこれに
相当する。)と、その機能に着目して行なわれる。
As shown in Figure B, in the asynchronous type, the master side processor PR reads and writes data to the common memory CM at appropriate times, and does not receive any synchronization commands to obtain this timing. This method does not impose any special restrictions on the startup order. Instead, when using the common memory CM, it is necessary to perform exclusive control by the control circuit CT in order to avoid confusion in data communication due to simultaneous use between processors. As a simple example, when the master processor attempts to use the common memory CM while the slave processor is using it, the control circuit CT generates a signal that causes the master processor to wait. This is done by focusing on the standby request terminal (corresponding to the READY terminal for some processors) that the processor has and its functions.

通常は、システムの目的に応じて上記方式のい
ずれか一方を採用するのが一般的であるが、例え
ば、以下の如き場合に不都合が生じることがあ
る。
Usually, one of the above methods is adopted depending on the purpose of the system, but problems may occur in the following cases, for example.

イ 各ユニツトの方式の相違に対してフレキシブ
ルに対応させたい場合、例えば、第1図におい
てマスタユニツトMUTとスレーブユニツト
SUT1との間では高速処理が可能な同期式に、
一方、マスタユニツトMUTとスレーブユニツ
トSUT2との間では比較的遅い処理をさせる
ために非同期式にする場合など、ユニツトに汎
用性をもたせた方が、ハードウエアの組み立て
や部品実装上のコスト面等において有利であ
り、システム運用面からも合理的である場合が
ある。
B. If you want to respond flexibly to differences in the system of each unit, for example, in Figure 1, the master unit MUT and slave unit
Synchronized with SUT1 for high-speed processing.
On the other hand, it is better to make the unit more versatile, such as when using an asynchronous system to perform relatively slow processing between the master unit MUT and slave unit SUT2, which reduces the cost of hardware assembly and component mounting. It may be advantageous in terms of system operation, and it may also be reasonable from a system operation perspective.

ロ システム全体を通して各ユニツトに処理を分
散させるとき等において、その処理速度や処理
内容、タイミング等の条件に不確定要素がある
場合、または方式を明確にできない場合やした
くない場合等において、1つの方式に固定して
システム構成を行なうと、その方式による不都
合が生じたときにシステムを変更しなければな
らない。つまり、柔軟な対応をしたい場合に都
合が悪い。
(b) When distributing processing to each unit throughout the system, if there are uncertainties in conditions such as processing speed, processing content, timing, etc., or if the method cannot be clearly defined or is not desired, If the system configuration is fixed to one method, the system must be changed when a problem arises due to that method. In other words, it is not convenient if you want to respond flexibly.

〔発明の目的〕[Purpose of the invention]

この発明はかかる事情のもとになされたもの
で、簡単かつ安価な構成により柔軟性に富むマル
チプロセツサシステムを提供し得るようにするこ
とを目的とするものである。
The present invention was made under these circumstances, and it is an object of the present invention to provide a highly flexible multiprocessor system with a simple and inexpensive configuration.

〔発明の要点〕[Key points of the invention]

この発明は、マルチシステムを構成する各プロ
セツサの少なくとも1つに、割込み信号または待
機信号のいずれか一方を送出するコントロールユ
ニツトと、そのいずれを送出させるかを選択する
選択手段とを設けることにより、データ交信を同
期式、非同期式のいずれにても行ない得るように
して柔軟性に富むシステム構成を可能とするもの
である。
The present invention provides at least one of the processors constituting the multi-system with a control unit that sends either an interrupt signal or a standby signal, and a selection means that selects which one to send. Data communication can be performed either synchronously or asynchronously, allowing for a highly flexible system configuration.

〔発明の実施例〕[Embodiments of the invention]

第2図はこの発明の実施例を示すシステム構成
図、第3図はこの発明による制御回路の具体例を
示す構成図である。すなわち、システム構成上は
第1図に示されるものと殆んど同じであるが、こ
こで用いられる制御システムCTが具体的には第
3図の如く構成されている点が特徴である。な
お、第3図には第2図のプロセツサのうちスレー
ブ側プロセツサのうちの1つと、マスタ側プロセ
ツサとが示され、それぞれ符号1,2が付されて
いるが、プロセツサの数が増えてもその基本的は
動作が制御方式の考え方は同様である。また、こ
こでは、プロセツサ1(スレーブ側)からプロセ
ツサ2(マスク側)に対して同期式、非同期式の
選択をして制御する制御回路を示しているが、こ
の関係を逆にした場合も、これと同様である。
FIG. 2 is a system configuration diagram showing an embodiment of the invention, and FIG. 3 is a configuration diagram showing a specific example of a control circuit according to the invention. That is, although the system configuration is almost the same as that shown in FIG. 1, the specific feature is that the control system CT used here is specifically configured as shown in FIG. 3. 3 shows one of the slave-side processors and the master-side processor among the processors in FIG. The basic concept of the operation control method is the same. In addition, although a control circuit is shown here that selects and controls the synchronous and asynchronous methods from processor 1 (slave side) to processor 2 (mask side), even if this relationship is reversed, This is similar.

第3図において、3はプロセツサ1と2とのデ
ータ交信のために使用される共通メモリ、4,5
はセレクタ、ABはアドレスバス、DBはデータ
バス、CBはリード信号RD、ライト信号WT等を
送出するコントロールバスである。また、6は共
通メモリ3の使用権をいずれのプロセツサ1,2
に与えるか等のコントロールを行なうコントロー
ルユニツト、7はプロセツサ1を同期式、非同期
式のいずれの態様で使用するかを選択するマルチ
プレクサ、8,9はアドレスデコーダ、10〜1
3は一時記憶(ラツチ)素子、14,15はデー
タバスバツフア、16,17はこのバツフア1
4,15の切り換えまたは方向選択を行なう制御
ロジツク、18は共通メモリ3の読み、書きを行
なうための制御ロジツク、T1はプロセツサ1,
2の待機端子、T2は同じく割込み端子である。
In FIG. 3, 3 is a common memory used for data communication with processors 1 and 2;
is a selector, AB is an address bus, DB is a data bus, and CB is a control bus that sends read signals RD, write signals WT, etc. In addition, 6 grants the right to use the common memory 3 to either processor 1 or 2.
7 is a multiplexer that selects whether to use the processor 1 in a synchronous or asynchronous manner; 8 and 9 are address decoders; 10 to 1;
3 is a temporary memory (latch) element, 14 and 15 are data bus buffers, and 16 and 17 are this buffer 1.
18 is a control logic for reading and writing the common memory 3, T1 is a processor 1,
The standby terminal T2 is also an interrupt terminal.

以下、機能、動作について説明する。 The functions and operations will be explained below.

まず、同期方式にてプロセツサ間のデータ交信
を行なうには、プロセツサ1から共通メモリ3に
対してデータの読み、書きを行なうとともに、例
えばプログラムにより或る特定のコード信号をデ
ータバスDBに流し、ラツチ素子11を利用して
ロー(L)レベルからハイ(H)レベルに立ち上がる所定
のパルスTGを生成させる。ラツチ素子11にデ
ータを一時記憶させるための同期信号SYは、同
じくプログラムによつてデコーダ8に特定のコー
ドを与え、これをデコードすることにより作られ
る。上記パルスTGは、コントロールユニツト6
を介してプロセツサ2の割込み制御端子T2に与
えられるので、これによりプロセツサ2は割込み
処理サービスルーチンを起動する。この割込みサ
ービスルーチンにより、プロセツサ2は共通メモ
リ3に対してデータを読み、書きすることが可能
となる。なお、このとき、上記ラツチ素子11と
同様に動作するラツチ素子12の出力CSによつ
てマルチプレクサ7は、下側のスイツチが選択さ
れる。
First, in order to perform data communication between processors in a synchronous manner, the processor 1 reads and writes data to the common memory 3, and also sends a certain code signal to the data bus DB by a program, for example. A predetermined pulse TG rising from a low (L) level to a high (H) level is generated using the latch element 11. The synchronizing signal SY for temporarily storing data in the latch element 11 is generated by giving a specific code to the decoder 8 according to a program and decoding this code. The above pulse TG is controlled by the control unit 6.
This signal is applied to the interrupt control terminal T2 of the processor 2 via the processor 2, so that the processor 2 starts up the interrupt processing service routine. This interrupt service routine allows the processor 2 to read and write data to the common memory 3. At this time, the lower switch of the multiplexer 7 is selected by the output CS of the latch element 12 which operates in the same manner as the latch element 11 described above.

一方、非同期方式は、プロセツサ2が共通メモ
リ3に対して適宜読み、書きを行ない、この間隙
をぬつてプロセツサ1が共通メモリ3を使用する
ものであるが、例えば、プロセツサ1が共通メモ
リを使用しているときに、プロセツサ2が共通メ
モリ3を使用しようとすると、コントロールユニ
ツト6から自動的に待機信号WAITが発せられ、
プロセツサ2が具有する待機端子T1を通して待
機状態にさせられる。なお、プロセツサ1が共通
メモリの使用終了と同時に待機解除となれば、プ
ロセツサ2が共通メモリ3を使用することができ
るように、コントロールユニツト6による制御が
行なわれる。具体的には、プロセツサ1が共通メ
モリ3を使用するときには、その使用要求信号を
プログラムによつて所定のコードとして発し、こ
れをデータバスDBを通してラツチ素子10にラ
ツチさせるので、このラツチ信号RQ1が“H”
の間は、たとえプロセツサ2から共通メモリ3の
使用要求信号RQ2が発せられても、プロセツサ
2に対してはWAIT要求が掛かるようにしてい
る。なお、これは、プロセツサの立場が逆転した
場合でも、同様に行なわれる。また、上記ラツチ
信号RQ1は、プログラムによつて与えられるア
ドレスをアドレスデコーダ8にてデコードした出
力をラツチ素子10に同期信号として与えるとと
もに、これにプロセツサからの所定のデータを与
えることにより得られるものである。一方、プロ
セツサ2側からの要求信号RQ2も、プロセツサ
2のプログラムによつて出される所定のコードを
データバスDBに流し、これをラツチ素子13に
ラツチさせることにより得られるが、その同期
は、同じくプログラムにより生成したアドレス信
号をバスABを介してデコーダ9に与え、そのデ
コード出力を用いて行なわれる。こうすることに
より、共通メモリ3の使用権を1つのプロセツサ
にのみ専有させるように制御することができる。
On the other hand, in the asynchronous method, the processor 2 reads and writes to the common memory 3 as appropriate, and the processor 1 uses the common memory 3 through this gap. When the processor 2 attempts to use the common memory 3 while the processor is running, the control unit 6 automatically issues a wait signal WAIT.
The processor 2 is placed in a standby state through a standby terminal T1 . Note that if the processor 1 is released from standby at the same time as the use of the common memory ends, the control unit 6 performs control so that the processor 2 can use the common memory 3. Specifically, when the processor 1 uses the common memory 3, it issues a use request signal as a predetermined code according to the program, and causes the latch element 10 to latch it through the data bus DB, so that the latch signal RQ1 is “H”
During this period, even if the processor 2 issues the common memory 3 usage request signal RQ2, a WAIT request is made to the processor 2. Note that this is done in the same way even if the position of the processor is reversed. The latch signal RQ1 is obtained by decoding the address given by the program by the address decoder 8 and giving it to the latch element 10 as a synchronization signal, and also giving it predetermined data from the processor. It is. On the other hand, the request signal RQ2 from the processor 2 side is also obtained by passing a predetermined code issued by the program of the processor 2 to the data bus DB and latching it to the latch element 13, but the synchronization is the same. The address signal generated by the program is applied to the decoder 9 via the bus AB, and the decoding output is used for the processing. By doing so, the right to use the common memory 3 can be controlled so that only one processor has exclusive use of it.

同じ制御回路を用いて同期式、非同期式のいず
れを選択するかは、次のようにして行なう。
The selection of the synchronous type or asynchronous type using the same control circuit is performed as follows.

すなわち、コントロールユニツト6からの制御
信号はマルチプレクサ7を介してプロセツサ2に
与えられるようになつているが、このマルチプレ
クサ7におけるスイツチの選択は、プロセツサ1
のプログラムによる所定のコードをラツチ素子1
2に記憶させ、その出力信号CSを用いて行なわ
れる。例えば、待機要求信号線と割込み信号線の
2本だけならば、ラツチ素子12からの出力は1
ビツトで良く、例えば“L”のときは待機要求信
号線を、一方“H”のときは割込み信号線をとい
う具合に選択することができる。なお、信号線が
2本以上必要な場合は、ラツチ素子12からの出
力ビツト数を増やすだけで容易に対処することが
できる。
That is, the control signal from the control unit 6 is given to the processor 2 via the multiplexer 7, and the selection of the switch in the multiplexer 7 is determined by the processor 1.
A predetermined code according to the program is applied to latch element 1.
2 and its output signal CS is used. For example, if there are only two lines, the standby request signal line and the interrupt signal line, the output from the latch element 12 is 1.
For example, when the bit is "L", the standby request signal line can be selected, while when it is "H", the interrupt signal line can be selected. Note that if two or more signal lines are required, this can be easily handled by simply increasing the number of output bits from the latch element 12.

第4図はマルチプレクサの選択を行なうための
変形例を示す構成図である。すなわち、上記では
プロセツサ1のプログラムによつて与えられる所
定のコード信号を利用するようにしたが、第4図
の如きマニユアル操作されるスイツチSWによつ
て“H”または“L”の信号をラツチ素子12に
ラツチさせることによつても、同様に行なうこと
ができる。なお、ラツチ素子12にデータをラツ
チさせるタイミング信号は、第3図の場合と同様
に、アドレスバスAB上の信号をデコーダ8によ
りデコードして得られるパルス信号にて行なうこ
とができる。また、第4図に示されるRは入力保
護用抵抗であり、VP5は電源である。こうして、
マニユアル操作またはプログラムによつてデータ
交信を同期式に行なうか、非同期式に行なうかを
選択することが可能となり、柔軟性に富むマルチ
プロセツサシステムを提供し得ることになる。な
お、プログラムで行なう場合は、その起動時に設
定することができる。
FIG. 4 is a block diagram showing a modification for selecting a multiplexer. That is, in the above example, a predetermined code signal given by the program of the processor 1 is used, but an "H" or "L" signal can be latched by a manually operated switch SW as shown in FIG. A similar effect can be achieved by latching element 12. The timing signal for causing the latch element 12 to latch data can be a pulse signal obtained by decoding the signal on the address bus AB by the decoder 8, as in the case of FIG. Further, R shown in FIG. 4 is an input protection resistor, and VP5 is a power supply. thus,
It becomes possible to select whether data communication is to be performed synchronously or asynchronously by manual operation or by a program, thereby providing a highly flexible multiprocessor system. Note that if this is done using a program, it can be set when the program is started.

第5図は第3図の制御ロジツク18の具体例を
示す構成図である。第5図において、S1は共通メ
モリ3をイネーブル(enable)するための信号で
あり、これは、デコーダ8にてアドレスをデコー
ドした出力で駆動されるセレクタ5からの出力信
号である。S2はライト信号で、ナンドゲートNA
およびインバータゲートINによつて、信号S1
S2の論理和、すなわち、いずれか長い方で規定さ
れる時間だけ、メモリ3をイネーブルするために
用いられ、メモリの書込み時には“L”、読込み
時には“H”となるものである。
FIG. 5 is a block diagram showing a specific example of the control logic 18 of FIG. In FIG. 5, S1 is a signal for enabling the common memory 3, and this is an output signal from the selector 5 driven by the output of the address decoded by the decoder 8. S 2 is a write signal, NAND gate NA
and the inverter gate IN, the signal S 1 ,
It is used to enable the memory 3 for a time specified by the logical sum of S2 , whichever is longer, and is "L" when writing to the memory and "H" when reading.

第6図はデータバツフア回路周辺部の具体例を
示す構成図である。同図において、14,15は
データバスバツフア、OR1,2はオアゲート、
INはインバータゲート、S1はメモリイネーブル
信号、S2はライト信号、S0はバツフア切換信号で
あり、この切換信号S0にてバツフア内の図示され
ないゲートの開閉をコントロールする。TE1
TE2はそれぞれバツフア14,15のイネーブル
端子であり、上記切換信号S0と、前述のイネーブ
ル信号S1との論理和をとるオアゲートOR1,2
によつて、例えば公知のトライステートバツフア
からなるバツフア14,15をオン状態とする。
このとき、バツフア14のオアゲートOR1に
は、切換信号S0がインバータINにて反転されて
与えらるため、一方のバツフアがイネーブルされ
たときは、他方のバツフアがデイエーブル
(disable)されることになる。TD1,TD2はバス
の方向性を決める端子で、前述の如くライト信号
S2によつてコントロールされ、例えば、これが
“L”のとき、バスの方向はプロセツサ側からメ
モリ側となつて、データの書込みが行われ、“H”
のときはメモリ側からプロセツサ側となつて読出
しが行なわれる。
FIG. 6 is a block diagram showing a specific example of the peripheral portion of the data buffer circuit. In the same figure, 14 and 15 are data bus buffers, OR1 and 2 are OR gates,
IN is an inverter gate, S1 is a memory enable signal, S2 is a write signal, and S0 is a buffer switching signal, and this switching signal S0 controls opening and closing of a gate (not shown) in the buffer. TE 1 ,
TE2 are enable terminals of buffers 14 and 15, respectively, and OR gates OR1 and OR2 which take the logical sum of the above-mentioned switching signal S0 and the above-mentioned enable signal S1 .
As a result, the buffers 14 and 15, which are, for example, known tri-state buffers, are turned on.
At this time, the switching signal S0 is inverted by the inverter IN and is applied to the OR gate OR1 of the buffer 14, so when one buffer is enabled, the other buffer is disabled. Become. TD 1 and TD 2 are the terminals that determine the direction of the bus, and as mentioned above, they are used for the write signal.
For example, when this is "L", the direction of the bus is from the processor side to the memory side, data is written, and it becomes "H".
In this case, reading is performed from the memory side to the processor side.

第7図は第3図におけるコントロールユニツト
の具体例を示す構成図である。第7図において、
NA1〜5はナンドゲート、IN1〜3はインバー
タゲート、S0は切換信号、RQ1,2はそれぞれ
ラツチ素子10,13の出力信号、S3,S4はそれ
ぞれデコーダ8,9の出力信号である。
FIG. 7 is a block diagram showing a specific example of the control unit in FIG. 3. In Figure 7,
NA1-5 are NAND gates, IN1-3 are inverter gates, S0 is a switching signal, RQ1 and 2 are output signals of latch elements 10 and 13, respectively, and S3 and S4 are output signals of decoders 8 and 9, respectively.

ここで、例えばプロセツサ1が共通メモリ3を
使用しようとするときは、要求信号RQ1を
“H”レベルにする。このとき、プロセツサ2側
からの要求信号RQ2がなくて“L”レベルであ
るとすると、回路の論理構成から切換信号S0
“L”レベルとなり、プロセツサ1による共通メ
モリ3の使用が可能となる。なお、この状態で
は、プロセツサ1,2に対するWAIT要求信号
はともに“H”レベルである。次いで、プロセツ
サ2による共通メモリの使用要求があつて要求信
号RQ2が“L”→“H”になると、切換信号S0
の論理は“L”を保持するが、プロセツサ2から
のイネーブル信号S4が“H”となるため、ナンド
ゲートNA2の出力は“L”となつて、プロセツ
サ2に対してWAIT要求が掛かる。その後、プ
ロセツサ1が共通メモリ3の使用を終了して要求
信号RQ1を“H”→“L”にしたときに始め
て、切換信号S0は“L”→“H”となり、これが
インバータIN1にて“L”にされてナンドゲー
トNA2に与えられるため、その出力は“L”→
“H”となつてWAIT要求が解除され、プロセツ
サ2による共通メモリ3の使用が可能となる。な
お、同図におけるナンドゲートNA3,NA4に
よつてR―S型フリツプフロツプが形成され、こ
れによつて、プロセツサ1,2による信号を互い
に排他的に切り換えるようにしている。なお、プ
ロセツサ2が共通メモリを使用しているときの動
作も上記と同様であり、この状態でプロセツサ1
が使用要求を発すれば、プロセツサ1に対して
WAIT要求が掛かることになる。
Here, for example, when the processor 1 wants to use the common memory 3, the request signal RQ1 is set to "H" level. At this time, if there is no request signal RQ2 from the processor 2 side and it is at the "L" level, the switching signal S0 will be at the "L" level due to the logic configuration of the circuit, and the common memory 3 can be used by the processor 1. Become. In this state, the WAIT request signals for processors 1 and 2 are both at the "H" level. Next, when the processor 2 makes a request to use the common memory and the request signal RQ2 changes from "L" to "H", the switching signal S0
The logic of is held "L", but since the enable signal S4 from the processor 2 becomes "H", the output of the NAND gate NA2 becomes "L" and a WAIT request is applied to the processor 2. After that, when the processor 1 finishes using the common memory 3 and changes the request signal RQ1 from "H" to "L", the switching signal S0 changes from "L" to "H", and this changes at the inverter IN1. Since it is set to “L” and given to NAND gate NA2, its output is “L” →
When the signal becomes "H", the WAIT request is canceled and the common memory 3 can be used by the processor 2. Note that an RS type flip-flop is formed by NAND gates NA3 and NA4 in the figure, and thereby the signals from the processors 1 and 2 are mutually exclusive switched. Note that the operation when processor 2 is using the common memory is the same as above, and in this state, processor 1
issues a usage request to processor 1.
A WAIT request will be issued.

〔発明の効果〕〔Effect of the invention〕

この発明によれば、複数のプロセツサ間で共通
メモリを介してデータ交信を行なうマルチプロセ
ツサシステムにおいて、プロセツサ間で同期式ま
たは非同期式のいずれにてもデータ交信が可能と
なるようにその制御を行なう制御回路と、その方
式選択を行なう選択回路とを設けることにより、
極めて簡単にマルチシステムに組み込むことがで
きるので、システムの目的や同期方式の相違に関
係なく柔軟に対処することができる利点がもたら
されるものである。
According to the present invention, in a multiprocessor system in which data is exchanged between a plurality of processors via a common memory, the control is performed to enable data exchange between the processors in either a synchronous or asynchronous manner. By providing a control circuit to perform the method and a selection circuit to select the method,
Since it can be incorporated into multiple systems extremely easily, it has the advantage of being able to be flexibly handled regardless of differences in system objectives or synchronization methods.

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

第1図は一般的なマルチプロセツサシステムに
おけるプロセツサ間のデータ交信方式を説明する
ための説明図、第2図はこの発明の実施例を示す
システム構成図、第3図はこの発明における制御
回路の具体例を示す構成図、第4図はマルチプレ
クサ選択方式の変形例を示す構成図、第5図は制
御ロジツクの具体例を示す構成図、第6図はデー
タバスバツフア周辺回路部の具体例を示す構成
図、第7図はコントロールユニツトの具体例を示
す構成図である。 符号説明、1,2,PR…プロセツサ、3,
CM…共通メモリ、4,5…セレクタ、6…コン
トロールユニツト、7…マルチプレクサ、8,9
…デコーダ、10〜13…一時記憶(ラツチ)素
子、14,15…データバスバツフア、16〜1
8制御ロジツク、MUT…マスタユニツト、SUT
1,2,N…スルーブユニツト、CT…制御回路、
BS…共通バス、AB…アドレスバス、DB…デー
タバス、CB…コントロールバス、SW…マニユ
アルスイツチ、IN,IN1〜3…インバータゲー
ト、NA,NA1〜5…ナンドゲート、OR1,2
…オアゲート。
FIG. 1 is an explanatory diagram for explaining a data communication method between processors in a general multiprocessor system, FIG. 2 is a system configuration diagram showing an embodiment of the present invention, and FIG. 3 is a control circuit according to the present invention. 4 is a block diagram showing a modification of the multiplexer selection method. FIG. 5 is a block diagram showing a specific example of the control logic. FIG. 6 is a block diagram showing a specific example of the data bus buffer peripheral circuit. FIG. 7 is a block diagram showing a specific example of the control unit. Code explanation, 1, 2, PR...Processor, 3,
CM...Common memory, 4, 5...Selector, 6...Control unit, 7...Multiplexer, 8, 9
...Decoder, 10-13...Temporary storage (latch) element, 14, 15...Data bus buffer, 16-1
8 control logic, MUT...master unit, SUT
1, 2, N...Thrube unit, CT...Control circuit,
BS...Common bus, AB...Address bus, DB...Data bus, CB...Control bus, SW...Manual switch, IN, IN1~3...Inverter gate, NA, NA1~5...NAND gate, OR1,2
…orgate.

Claims (1)

【特許請求の範囲】[Claims] 1 少なくとも待機要求素子と割込み要求素子と
をそれぞれ有する複数のプロセツサ間で共通メモ
リを介して互いにデータ交信を行なうマルチプロ
セツサシステムにおいて、該プロセツサの少なく
とも1つには自プロセツサから他プロセツサに対
して共通メモリとのデータ交信を同期式で行なう
ための割込み信号と自または他プロセツサに対し
て共通メモリとのデータ交信を非同期式で行なう
ための待機要求信号とのいずれかを送出してその
制御を行なうコントロール手段と、所定信号を一
時記憶し該記憶出力にもとづいてコントロール手
段からの割込みまたは待機要求信号のいずれか一
方のみを選択する選択手段とを設け、該選択手段
にていずれか一方の同期方式を選択してデータ交
信を行なうことを特徴とするマルチプロセツサシ
ステム。
1. In a multiprocessor system in which a plurality of processors, each having at least a standby request element and an interrupt request element, communicate data with each other via a common memory, at least one of the processors has a It controls by sending either an interrupt signal to perform data communication with the common memory in a synchronous manner or a standby request signal to perform data communication with the common memory in an asynchronous manner to its own or other processor. and a selection means for temporarily storing a predetermined signal and selecting only one of the interrupt or standby request signal from the control means based on the stored output, and the selection means synchronizes either one of the interrupts or the standby request signal. A multiprocessor system characterized by selecting a method for data communication.
JP59025160A 1984-02-15 1984-02-15 Multiprocessor system Granted JPS60169971A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59025160A JPS60169971A (en) 1984-02-15 1984-02-15 Multiprocessor system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59025160A JPS60169971A (en) 1984-02-15 1984-02-15 Multiprocessor system

Publications (2)

Publication Number Publication Date
JPS60169971A JPS60169971A (en) 1985-09-03
JPH024934B2 true JPH024934B2 (en) 1990-01-31

Family

ID=12158265

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59025160A Granted JPS60169971A (en) 1984-02-15 1984-02-15 Multiprocessor system

Country Status (1)

Country Link
JP (1) JPS60169971A (en)

Also Published As

Publication number Publication date
JPS60169971A (en) 1985-09-03

Similar Documents

Publication Publication Date Title
US5125081A (en) Inter-configuration changing controller based upon the connection and configuration information among plurality of clusters and the global storage
US4819232A (en) Fault-tolerant multiprocessor arrangement
US4716526A (en) Multiprocessor system
JPH0421053A (en) Asynchronous data transmission device
JPH0786870B2 (en) Data transfer control method of coprocessor and circuit thereof
US3924241A (en) Memory cycle initiation in response to the presence of the memory address
JP2548428B2 (en) Timing generator
JPH024934B2 (en)
EP0067294B1 (en) Data processing apparatus with master/slave control
JPS6226493B2 (en)
KR890000973B1 (en) Processor communication circuit
JPH0773140A (en) Circuit structure of shared register and its data transmission method
JPH04263333A (en) Memory duplication system
JPH0673099B2 (en) File device occupancy control method
JPH07121483A (en) Shared memory access control circuit
JPS6336428Y2 (en)
JPH09325935A (en) Bus switching circuit
SU1124275A1 (en) Microprocessor communication device
JP2697420B2 (en) Data writer
JP2680013B2 (en) Programmable controller external input/output control circuit
RU1810891C (en) Multichannel equipment to exchange data between modules of computer system
SU1587520A1 (en) Device for input/output of information
JPS5892052A (en) Resource lock device
JPS61121152A (en) Inter-processor communication control system
JPH0690657B2 (en) Clock switching circuit