JPS5882357A - Interprocessor communication system - Google Patents

Interprocessor communication system

Info

Publication number
JPS5882357A
JPS5882357A JP56179683A JP17968381A JPS5882357A JP S5882357 A JPS5882357 A JP S5882357A JP 56179683 A JP56179683 A JP 56179683A JP 17968381 A JP17968381 A JP 17968381A JP S5882357 A JPS5882357 A JP S5882357A
Authority
JP
Japan
Prior art keywords
processor
processors
local
memory
transfer
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP56179683A
Other languages
Japanese (ja)
Inventor
Tsutomu Shirahase
白波瀬 務
Koreyuki Tanaka
田中 惟之
Kunio Fujisaki
藤崎 邦夫
Hiroshi Honma
本間 宏
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP56179683A priority Critical patent/JPS5882357A/en
Publication of JPS5882357A publication Critical patent/JPS5882357A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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

Abstract

PURPOSE:To perform information transfer among plural processors which do not use a memory in common through simple constitution, by executing an instruction group stored in the memory of a global processor at specified intevals of time. CONSTITUTION:In the system wherein local processors 12 and 13 use their own memories 15 and 16 in common with only a global processor 14, instructions A and B for transfer between the processors 12 and 13 are set up in the memory 30 of the processor 14, and are selected by an external clock. Further, a communication area between the processor 12 and 13 is transferred, clock by clock, in predetermined order, and the processors 12 and 13 are inhibited from accessing the communication area between the processors 12 and 13 until the transfer ends, thereby outputting access permit signals from the processors 12 and 13.

Description

【発明の詳細な説明】 本発明は、プロセッサ間通信方式に関し、特に互いにメ
モリを共有しないプロセッサ間の情報伝達方式に閃する
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to an inter-processor communication system, and particularly relates to an information transmission system between processors that do not share memory with each other.

従来、例えば第1図に示す如く、2台のローカルプロセ
ッサ2,3と、これらを統轄するグローバルプロセッサ
lとから成るシステムにおいて、各p−カルブpセッサ
(2)、CB)2.3が有するメモリ5,6をグ田−パ
ルプロセッサlが共有しており、前記ローカルプロセッ
サ(A) 、ω)2,3間は互いにメモリを共有してい
ない場合、前記ローカル7’o七ツサ(4)、03)2
.3の間で通信を行うためには、該ローカルプロセッサ
(A)、CB)2.3間にレジスタ7を設ける必要があ
った。 そして、ローカルプロセッサ(A)2がレジス
タ7をリードまたはライトするときには、該ローカルプ
ロセッサ(5)2がレジスタ7をアクセス中であること
を示す信号10を出し、ゲート9によりローカルプロセ
ッサ(B) 3に対してレジスタ7へのアクセスを禁止
し、ローカルプロセッサ(3)2がリードまたはライト
を終了すると、前記信号lOを解除し、ローカルプロセ
ッサの)3にアクセスを許可していた。 逆に、ローカ
ルプロセッサ山)3がレジスタ7をリード−またはライ
トするときは、信号11を出しゲート8によりローカル
プロセッサ(A)2のレジスタ7へのアクセスを禁止し
てから、レジスタ7ヘリードまたはライトを行い、終了
後は前記信号11を解除し元の状態に戻っていた。
Conventionally, as shown in FIG. 1, for example, in a system consisting of two local processors 2 and 3 and a global processor l that supervises them, each p-carb p processor (2), CB) 2.3 has If the memories 5 and 6 are shared by the Guta-Pal processor l, and the local processors (A) and ω) 2 and 3 do not share the memory with each other, the local 7'o Nanatsusa (4) ,03)2
.. In order to communicate between the local processors (A) and CB) 2 and 3, it was necessary to provide a register 7 between them. When the local processor (A) 2 reads or writes the register 7, the local processor (5) 2 outputs a signal 10 indicating that the register 7 is being accessed, and the gate 9 causes the local processor (B) 3 to read or write the register 7. When the local processor (3) 2 completes reading or writing, the signal IO is released and the local processor (3) is allowed to access the register 7. Conversely, when local processor (A) 3 reads or writes register 7, it outputs signal 11 and prohibits local processor (A) 2 from accessing register 7 through gate 8, and then reads or writes to register 7. After the process was completed, the signal 11 was released and the original state returned.

上述の如く、従来の方式ではローカルプロセッサ間に設
けたレジスタを槍して、該ローカルプロセッサ間の通信
が行われるものであるため、ローカルプロセッサの数が
3個以上になった場合には、前記アクセス禁止のための
制御が複雑になり、前記レジスタの容置を大きくしたり
、個数を増やしたりしなければなら々いという同順かあ
った。
As mentioned above, in the conventional system, communication between local processors is performed by using registers provided between the local processors, so when the number of local processors becomes three or more, the above-mentioned The control for prohibiting access has become complicated, and it has become necessary to increase the capacity or number of the registers.

゛また、前記レジスタを経由して細分化された大容量の
データを何度も授受する場合、該レジスタを1つのロー
カルプロセッサがV有することになり、他のローカルプ
ロセッサは前記レジスタが空くまで待たされるという事
態になって、優先権の管理が必要になるという問題もあ
った。
゛Also, when sending and receiving a large amount of fragmented data many times via the register, one local processor will have V of the register, and other local processors will have to wait until the register becomes free. There was also the problem of having to manage priority rights.

このような四組を解決するために、四−カルプルセッサ
間に前述の如きレジスタを設けるかわりに、ローカルプ
ロセッサが個々に有するメモリ内に、ローカルプロセッ
サ間連絡エリアを設けて、これをグローバルプロセッサ
が転送するようにすることも考えられるが、これには、
次のような問題があった。すなわち、上述のローカルプ
ロセッサ間連絡エリアにデータをライトしようとするロ
ーカルプロセッサと、それを転送しようとするグローバ
ルプロセッサが同時に同じエリアをアクセスすると、デ
ータが破壊されることがあるという問題である。
In order to solve such four sets, instead of providing registers as described above between the four processors, an inter-local processor communication area is provided in the memory of each local processor, and this is transferred to the global processor. It is also possible to do so, but for this,
There were the following problems. That is, if a local processor attempting to write data to the above-mentioned local inter-processor communication area and a global processor attempting to transfer it access the same area at the same time, the data may be destroyed.

本発明は上記事情に鑑みでなされたもので、その目的と
するところは、従来のプロセッサ間通信方式の上述の如
ム問題を郷消し、簡単な構成で互いにメモリを共有しな
い膜数のプロセッサ間の情報伝達を可能とするプロセッ
サ間通信方式を提供することにある。
The present invention has been made in view of the above circumstances, and its purpose is to eliminate the above-mentioned problems of the conventional inter-processor communication method, and to enable communication between a large number of processors that do not share memory with each other with a simple configuration. An object of the present invention is to provide an inter-processor communication method that enables information transmission between processors.

本発明の上記目的は、複数のローカルプロセッサと、こ
れらを統轄するグローバルプロセッサとから成り、前記
複数のローカルプロセッサの各々カーq するメモリは
前記グローバルプロセッサとだケ共有し、前記ローカル
プロセッサ間では互いに共有しないように構成されたシ
ステムにおいて、前記グローバルプロセッサのメモリ内
に転送命令群を用意し、該命令群を一定時間間隔で実行
することにより前記ローカルプロセッサ間の情報伝達を
行うようにしたプロセッサ間通信方式によって達成され
る。
The above object of the present invention is to consist of a plurality of local processors and a global processor that supervises them, the memory of each of the plurality of local processors is shared with the global processor, and the local processors share mutual memory. In a system configured not to share information, a group of transfer instructions is prepared in the memory of the global processor, and information is transmitted between the local processors by executing the group of instructions at fixed time intervals. This is achieved through communication methods.

本発明の要点は、前記システムにおいて、グローバルプ
ロセッサにローカルプロセッサ間転送命令を用意し、外
部クロックによりこれを選択し、各ローカルプロセッサ
間連絡エリアを決め参れた順に1クロツクごとに転送す
るようにして、転送終了までは、各ローカルプロセッサ
が前記ローカルプロセッサr+も連絡エリアにアクセス
することができないように、アクセス許可信号を設けた
点にある。
The gist of the present invention is that, in the above system, a local processor transfer instruction is prepared in the global processor, this is selected by an external clock, and the transfer is performed every clock in the determined order of each local processor communication area. The access permission signal is provided so that each local processor, even the local processor r+, cannot access the communication area until the transfer is completed.

以下、本発明の実施例を図面に基づいて詳細に説明する
Embodiments of the present invention will be described in detail below with reference to the drawings.

第2図は本発明の一実施例を示ずp−カルプルセッサ間
通信を行う場合の構成図、第3図はそのタイムチャート
である。
FIG. 2 shows an embodiment of the present invention, but is a block diagram for communication between p-cal processors, and FIG. 3 is a time chart thereof.

第2図は、ローカルプロセッサ(4)、@12.13’
とグローバルプロセッサ14から成るシステムにおいて
、前記ローカルプロセッサ(4)、Q3)12.13の
有するメモリ15.16のローカルプルセッサ間連絡エ
リア17.18および19.20を用いて、ローカルプ
ロセッサ間通信を行う。
Figure 2 shows the local processor (4) @12.13'
In a system consisting of a global processor 14 and a global processor 14, local processor communication areas 17.18 and 19.20 of the memory 15.16 of the local processor (4), Q3) 12.13 are used to perform local processor communication. conduct.

クロック発生器21け電源投入により動作を開始し、2
値の論理値を発生するもので、最初は“0であり、以後
電源をオフするまで、“l と0 とを一定時間間隔で
繰り返すものである。
The clock generator 21 starts operating when the power is turned on, and
It generates a logical value, which is initially "0" and thereafter repeats "l" and "0" at regular time intervals until the power is turned off.

ローカルプロセッサ(4)12はゲート26からの信号
が“0 の間は自メモリ15内にあるローカルプロセッ
サ[有])13からの情報を受は取る領域、LPB情報
18に対してアクセスすることができないが、自メモリ
15内の他の領域は常に参照できる。 該メモリ15内
のI、 P A情報17は、ローカルプロセッサの)1
3へ伝達する情報を格納する領域で、グローバルプロセ
ッサ14の転送命令AによってローカルプロセッサQ3
)13のLPA’11報19へ転送される。
While the signal from the gate 26 is "0", the local processor (4) 12 cannot access the LPB information 18, which is an area in its own memory 15 that receives information from the local processor (4) 13. However, other areas in the local memory 15 can always be referenced.The I, PA information 17 in the memory 15 is
This is an area for storing information to be transmitted to local processor Q3 by transfer command A of global processor 14.
) 13 is forwarded to LPA'11 Report 19.

同様に、ローカルプロセッサ@13はゲート2σからの
信号が“1 o +″の間は自メモリ16内にあるLP
A情報19に対してアクセスすることができないが、自
メモリ16内の他の領域は常に参照できる。 該メモリ
16内のLPE情報20はローカルプロセッサ(至)1
2へ伝達する情報を格納する領域で、グローバルプロセ
ッサ14の転送命令Bによってローカルプロセッサ(A
)12のLPB’1ill報16へ転送される。
Similarly, while the signal from the gate 2σ is “1 o +”, the local processor @13 uses the LP in its own memory 16.
Although the A information 19 cannot be accessed, other areas within the own memory 16 can always be referenced. The LPE information 20 in the memory 16 is stored in the local processor (to) 1.
This area stores information to be transmitted to the local processor (A
) 12 is transferred to the LPB'ill report 16.

上記の如く構成された本実施例装置の動作について以下
説明する。
The operation of the apparatus of this embodiment configured as described above will be explained below.

クロック信号21Aが“0“から1″になると、ゲート
24によって転送命令Aアドレス22が選択されてプロ
グラムカウンタ27にセットされ、転送命令Aが実行さ
れる。該転送命令Aは前記LPA情報17をLPA情報
19へ転送する命令である。  このとき、プログラム
カウンタ27から送出される信号27Aは転送終了まで
は“0 であるため、ゲー)28,29の出力はともに
“0で、ローカルプロセッサ(4)12はLPB情報1
8を、ローカルプロセッサCB)13はLPA情報19
をアクセスすることができない。 これは第3図の■の
範囲に相当する。
When the clock signal 21A changes from "0" to 1, the transfer instruction A address 22 is selected by the gate 24 and set in the program counter 27, and the transfer instruction A is executed. This is an instruction to transfer to the LPA information 19. At this time, since the signal 27A sent from the program counter 27 is "0" until the end of the transfer, the outputs of the game) 28 and 29 are both "0", and the output of the local processor (4) is "0". )12 is LPB information 1
8, local processor CB) 13 is LPA information 19
cannot be accessed. This corresponds to the range marked ■ in FIG.

転送が終了すると、プログラムカウンタ27から送出さ
れる信号27Aが1′″となるため、ゲート29の出力
が“1”になり、ローカルプロセッサCB) 13はL
PA情報19をアクセスすることができるようになるが
、ローカルプロセッサ(A)1.2はまたLPB情報1
δをアクセスすることができない。これは第3図の■の
範囲に相当する。
When the transfer is completed, the signal 27A sent from the program counter 27 becomes 1''', so the output of the gate 29 becomes "1", and the local processor CB) 13 becomes L.
Although the PA information 19 will be accessible, the local processor (A) 1.2 will also be able to access the LPB information 1.
δ cannot be accessed. This corresponds to the range marked ■ in FIG.

次に、クロック信号2LAが1.1”から0になった場
合、ゲー)25によって転送命令Bアドレス23が選択
されてプログラムカウンタ27にセットされ、転送命令
Bが実行される。 該転送命令Bは、LPE情@20を
LPB情@18へ転送する命令である。 転送終了まで
は、ゲート2829の出力はともに“0′″であるため
、ローカルプロセッサ(A)12.同の)13はそわぞ
れLPE情報18 、LPA’1llt19をアクセス
することができない。これは第3図の■の範囲に相当す
る。
Next, when the clock signal 2LA changes from 1.1'' to 0, the transfer instruction B address 23 is selected by the game 25 and set in the program counter 27, and the transfer instruction B is executed. is an instruction to transfer LPE information @20 to LPB information @18. Until the transfer is completed, the outputs of gate 2829 are both "0'", so local processors (A) 12 and 13 are fidgety. It is not possible to access the LPE information 18 and LPA'1llt 19, respectively.This corresponds to the range (■) in FIG.

転送が終了すると、今度はゲート28の出力が1にナル
タめローカルプロセッサ(A)12がLPB情報18に
対してアクセスすることができるようになる。 これは
第3図の■の範囲に相当する。
When the transfer is completed, the output of the gate 28 becomes 1, allowing the local processor (A) 12 to access the LPB information 18. This corresponds to the range marked ■ in FIG.

以後も同様にクロック信号21Aにより転送命令を実行
しローカルプロセッサ(A)l 2 、 同(B)13
間の情報伝達を行う。なお、第3図において、12Aは
ローカルプロセッサ囚12のアクセス許可信号を、13
Aは同の)15のアクセス許可信号を示すものである。
Thereafter, transfer instructions are similarly executed using the clock signal 21A, and the local processors (A) l 2 and (B) 13
Transmit information between. In addition, in FIG. 3, 12A is the access permission signal of the local processor prisoner 12, and 13A is the access permission signal of the local processor prisoner 12.
A indicates the same access permission signal of 15.

上記実施例に43いては、20!11のローカルプロセ
ッサ間で情報の伝達を行う楊合?示したが、ローカルプ
ロセッサの敗が13個以上にkつても、転送命令2−ク
ロックを数えるカウンタとを追加すれば、簡単にプロセ
ッサ間通信を行うととがでちる。
In the above embodiment, in 43 cases, information is transmitted between 20!11 local processors? As shown, even if there are 13 or more failed local processors, inter-processor communication can be easily performed by adding a transfer command 2 and a counter that counts clocks.

1だ、lクロック堪時に複数の転送を行うよう←すねば
、ローカルプロセッサ間連絡エリアの転送周期が小さく
なり、ローカルプロセッサ間の通信速度を向上させるこ
とができる。
1. If multiple transfers are performed in one clock cycle, the transfer cycle of the communication area between local processors becomes shorter, and the communication speed between local processors can be improved.

以上述べた如く、本発明によれば、扱数のロータルプロ
セッサと、これらを統轄するグローノくルプロセッサと
から成り、前記複数のローカルフロセッサの各々が有す
るメモリは前記グローバルプロセッサとだけ共有し、前
記ローカルプロセッサ間では互いに共有しないように構
成されたシステムにおいて、前記グローバルプロセッサ
のメモリ内に転送命令群を用意し、該命令群を一定時間
間隔で実行することにより、前記ローカルフロセッサ間
の情報伝達を行うようにしたので、簡単な構成で互いに
メモリを共有しない複数のプロセゲサ間の情報伝達を可
能とし、侍にシステムを構成するローカルプロセッサの
数が増えた場合でも84に対処することが可能なプロセ
ッサ間通信方式を実現するという顕著な効果を奏するも
のである。
As described above, according to the present invention, the present invention includes a plurality of rotary processors and a global processor that supervises them, and the memory of each of the plurality of local processors is shared only with the global processor, In a system configured such that the local processors do not share information with each other, information between the local processors is transferred by preparing a group of transfer instructions in the memory of the global processor and executing the group of instructions at fixed time intervals. Since communication is performed, it is possible to transfer information between multiple processors that do not share memory with each other with a simple configuration, and even when the number of local processors that make up the Samurai system increases, it is possible to deal with 84. This has the remarkable effect of realizing a reliable inter-processor communication system.

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

第1図は従来方式を示すブロック図、第2図は本発明の
一実施例を示すブロック図、第3図はその動作を示すタ
イムチャートである。 12:ローカルプロセッサ(4)、13:ローカルプロ
セッサCB)、14−ニゲローバルプロセッサ、15゜
16:ローカルプロセッサのメモリ、17.19:LP
A情報、18.20 : LPB情報、218クロック
発生器、22,23:転送命令アドレス、24.25,
26,28,29  :ゲート、27:プログラムカウ
ンタ、30:主メモリ、12A 、13A:0−カルプ
ロセッサアクセス許可i号、21A:クロック信号、2
7A:転送終了信号。 特許出願人 株式会社 日立製作所 【’r ’−゛?’ 第1図 1哩 第2図 第3図
FIG. 1 is a block diagram showing a conventional system, FIG. 2 is a block diagram showing an embodiment of the present invention, and FIG. 3 is a time chart showing its operation. 12: Local processor (4), 13: Local processor CB), 14-Nigelobal processor, 15° 16: Local processor memory, 17.19: LP
A information, 18.20: LPB information, 218 clock generator, 22, 23: Transfer instruction address, 24.25,
26, 28, 29: Gate, 27: Program counter, 30: Main memory, 12A, 13A: 0-cal processor access permission number i, 21A: Clock signal, 2
7A: Transfer end signal. Patent applicant: Hitachi, Ltd. ['r '−゛? ' Figure 1 Figure 1 Figure 2 Figure 3

Claims (1)

【特許請求の範囲】[Claims] 機能を分担する複数のローカルプロセッサと、これらを
統轄し一連の動作を行うグローバルプロセッサとから成
り、前記複数のローカルプロセッサの各々が有するメモ
リは前記グローバルプロセッサとだけ共有し、前記ロー
カルプロセッサ間では互いに共有しないように構成され
たシステムにおいて、前記グローバルプロセッサのメモ
リ内に転送命令群を用意し、該命令群を一定時間間隔で
実行することにより、前記ローカルプロセッサ間の情報
伝達を行うことを特徴とするプロセッサ間通信方式。
It consists of a plurality of local processors that share functions, and a global processor that supervises them and performs a series of operations.The memory of each of the plurality of local processors is shared only with the global processor, and the local processors share the memory with each other. In a system configured so as not to be shared, information is transmitted between the local processors by preparing a group of transfer instructions in the memory of the global processor and executing the group of instructions at fixed time intervals. Inter-processor communication method.
JP56179683A 1981-11-11 1981-11-11 Interprocessor communication system Pending JPS5882357A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP56179683A JPS5882357A (en) 1981-11-11 1981-11-11 Interprocessor communication system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP56179683A JPS5882357A (en) 1981-11-11 1981-11-11 Interprocessor communication system

Publications (1)

Publication Number Publication Date
JPS5882357A true JPS5882357A (en) 1983-05-17

Family

ID=16070040

Family Applications (1)

Application Number Title Priority Date Filing Date
JP56179683A Pending JPS5882357A (en) 1981-11-11 1981-11-11 Interprocessor communication system

Country Status (1)

Country Link
JP (1) JPS5882357A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003050759A1 (en) * 2001-12-12 2003-06-19 Sony Corporation Image processing apparatus and method thereof

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003050759A1 (en) * 2001-12-12 2003-06-19 Sony Corporation Image processing apparatus and method thereof
CN1297939C (en) * 2001-12-12 2007-01-31 索尼公司 Image processing apparatus and method thereof
US7333115B2 (en) 2001-12-12 2008-02-19 Sony Corporation Image processing apparatus and method thereof

Similar Documents

Publication Publication Date Title
US4282572A (en) Multiprocessor memory access system
JPH0421053A (en) Asynchronous data transmission device
US4250547A (en) Information processing apparatus capable of effecting parallel processings by using a divided common bus
JPH0146946B2 (en)
CN106933756B (en) DMA fast transposition method and device for variable matrix
JPS5882357A (en) Interprocessor communication system
JPH03668B2 (en)
JPH0238968B2 (en)
JPS599767A (en) Multiprocessor
JPH031264A (en) Multi-processor system
JP3178474B2 (en) Communication control device
JPS592051B2 (en) Mutual exclusion request selection device
JPS63142455A (en) Semiconductor storage device
JPS58144959A (en) Controller
JP2687716B2 (en) Information processing device
JPS5833584B2 (en) information processing equipment
JP3314948B2 (en) Data Exchange Method for Multi-CPU Programmable Controller
JP2547329B2 (en) Lock data setting device
JPS6029139B2 (en) Connection method between processing units
JPS6232505B2 (en)
JPS62241057A (en) Circuit for increasing input/output processing speed
JPH0736178B2 (en) Memory controller
JPS63201810A (en) Time system for information processing system
JPH04188350A (en) Memory circuit and decentralized processing system
JPS58123142A (en) Information processor