JPH01106158A - Control system for inter-processor data communication - Google Patents

Control system for inter-processor data communication

Info

Publication number
JPH01106158A
JPH01106158A JP26159987A JP26159987A JPH01106158A JP H01106158 A JPH01106158 A JP H01106158A JP 26159987 A JP26159987 A JP 26159987A JP 26159987 A JP26159987 A JP 26159987A JP H01106158 A JPH01106158 A JP H01106158A
Authority
JP
Japan
Prior art keywords
data
register
cpu
flag
processor
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
JP26159987A
Other languages
Japanese (ja)
Inventor
Kazuo Yamamoto
和男 山本
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 JP26159987A priority Critical patent/JPH01106158A/en
Publication of JPH01106158A publication Critical patent/JPH01106158A/en
Pending legal-status Critical Current

Links

Landscapes

  • Multi Processors (AREA)

Abstract

PURPOSE:To instantaneously fetch data when the data on one of two CPUs is required by transmitting data from the other CPU before the data on a first CPU is required and storing the received data. CONSTITUTION:A CPU 2 writes data to a data register 9 regardless of the state of the flag of a conditional register 7. In the case, a fact that an address 2 is set at a low level is stored in the register 7 in the form of a data fetching permission flag. A CPU 1 starts to monitor said permission flag of the register 7 when the data is required for processing and then fetches the data from the register 9 after detecting the fact that the permission flag is set at a low level. At the same time, the data fetching flag of the register 7 is set at a high level owing to the data fetched from the register 9. Thus the data communication is through with a 1st byte.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、プロセッサ間のデータ通信制御方式に係り、
特にマルチCPU方式採用のコンピュータに、使用して
好適なプロセッサ間のデータ通信制御方式に関する。
[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to a data communication control system between processors,
In particular, the present invention relates to a data communication control method between processors suitable for use in computers employing a multi-CPU method.

〔従来の技術〕[Conventional technology]

従来の通信制御方式は、第2図のハンドシェイク処理手
順によりデータ通信を行う場合、第1のCPUから出力
されたデータ送出要求を第2のCPUはその処理の一部
であるデータ送出処理期間において快出しデータ送出し
ていた。なお、この種の装置として関連するものには例
えば特公昭61−11876号等が挙げられる。
In the conventional communication control method, when data communication is performed using the handshake processing procedure shown in FIG. It was sending out data quickly. Note that related devices of this type include, for example, Japanese Patent Publication No. 11876/1983.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

上記従来技術は、第4図のタイムチャートに示す通り一
方のCPUからのデータ要求に対して、他方のCPUが
、データを準備し送出するまで、一方のCPUの処理を
停止させることとなり、処理効率低下・処理時間の増大
を生じる問題があった。更に、データ送出側CPUが他
の処理中であるときζこは、直ちに条件データの送出を
行うことができないので、当該処理が終了するまで待つ
必要があり時間のロスが大きくなるという欠点があり、
高速処理において問題であった。
In the above conventional technology, in response to a data request from one CPU, the processing of one CPU is stopped until the other CPU prepares and sends the data, as shown in the time chart of FIG. There were problems that resulted in decreased efficiency and increased processing time. Furthermore, when the data sending CPU is in the middle of other processing, the condition data cannot be sent immediately, so it is necessary to wait until the processing is finished, resulting in a large loss of time. ,
This was a problem in high-speed processing.

本発明の目的は、データ要求の出力からデータ受取りま
で0) CP U処理停止時間を安価かつ簡単な回路の
追加により短縮するプロセッサ間のデータ通信制御方式
を提供することにある。
An object of the present invention is to provide an inter-processor data communication control system that shortens the CPU processing stop time from the output of a data request to the data reception by adding an inexpensive and simple circuit.

〔問題点を解決するための手段〕[Means for solving problems]

上記目的は、第1図に示すように、一方のCPUのデー
タ取込み動作を検出する手段10と、前記データ取込み
動作によりデータ要求信号を発生し、他方のCPUの監
視するレジスタ12に入力するための回路11を具備し
、一方のCPUのデータ要求以前に他方のCPUからデ
ータを送出させ、そのデータをレジスタ13にて保存す
ることにより、達成される。
As shown in FIG. 1, the above purpose is to provide a means 10 for detecting a data acquisition operation of one CPU, and a means for generating a data request signal by the data acquisition operation and inputting it to a register 12 monitored by the other CPU. This is achieved by having the other CPU send data before one CPU requests data, and storing the data in the register 13.

〔作用〕[Effect]

データ読出し順序が決っているCPU間同志の通信で従
来一方のCPUよりデータを要求する場合、他方のCP
Uの処理終了まで博つ必要があった。本発明ではCPU
間にレジスタを設け、一方のCPUの読出し動作完了を
検出し、次データ送出要求を発生することにより、他方
のCPUは、そのデータ送出要求番こより該レジスタヘ
データ送出し一時保存する。これにより一方のCPUか
らのデータ要求以前に、他方のCPUはデータを先出し
し、一方のCPU0J読出し用レジスタにデータを入力
することとなる。これにより、一方のCPUのデータ要
求時には、レジスタにデータが保存されているため即座
にデータ取込みを行うことができる。
Conventionally, when data is requested from one CPU in communication between CPUs where the data reading order is determined, the other CPU
It was necessary to expand until the processing of U was completed. In the present invention, the CPU
A register is provided between them, and by detecting the completion of the read operation of one CPU and generating a next data sending request, the other CPU sends the data from the data sending request number to the register and temporarily stores it. As a result, before a data request is made from one CPU, the other CPU outputs the data first and inputs the data to the read register of one CPU0J. As a result, when one CPU requests data, data can be taken in immediately since the data is stored in the register.

〔実施例〕〔Example〕

以下、本発明の一実施例を第3図、第5因により説明す
る。
Hereinafter, one embodiment of the present invention will be explained with reference to FIG. 3 and the fifth factor.

第31は、本発明の一実施例としてCPU2からCPU
1ヘデ一タ通信する場合について示した回路開成図、第
5図は、本発明のハンドシェイク処理によるデータ通信
タイムチャート、をそれぞれ示す。
No. 31, as an embodiment of the present invention, from CPU2 to CPU
FIG. 5 is a circuit schematic diagram showing a case where one data communication is performed, and FIG. 5 shows a data communication time chart by handshake processing of the present invention.

次(こ本発明の実施例そCPU2からCPU 1へのデ
ータ通信について説明する。
Next, data communication from CPU 2 to CPU 1 will be explained in this embodiment of the present invention.

第3図において、アドレスデコード回路4は、CPU1
のデータ取込み期間においてL Ow  レベルとなる
信号を発生する回路、条件データレジスタ6は前記アド
レスデコード回路4の出力信号をCPU2により監視可
能とするための一時保存回路、データレジスタ9はCP
U2から書込み可能であり、CPU1から取込み可能で
ある1バイトデータの一時保存回路、条件データレジス
タ7は、CP U 2からの条件データをCPU1で監
視するための回路をそれぞれ示す。尚、条件データレジ
スタ6.7は、データ送出要求フラグとデータ取込み許
可フラグを持つ。
In FIG. 3, the address decoding circuit 4 includes a CPU 1
The condition data register 6 is a temporary storage circuit for enabling the CPU 2 to monitor the output signal of the address decoding circuit 4, and the data register 9 is a circuit that generates a signal that becomes the Low level during the data acquisition period.
The condition data register 7, which is a temporary storage circuit for 1-byte data that can be written from U2 and readable from the CPU 1, indicates a circuit for monitoring condition data from the CPU 2 by the CPU 1, respectively. Note that the condition data register 6.7 has a data transmission request flag and a data import permission flag.

処理開始時、CPU2は条件レジスタ7のフラグの状態
にかかわらずデータレジスタ9に対してアドレスしデー
タの書込みを行う。この書込みにおいてアドレス2がし
OW  レベルとなったことを条件データレジスタ7で
データ取込み許可フラグとして保存する。CPU1は、
その処理(こおいてデータが必要となった時、条件デー
タレジスタ7のデータ取込み許可フラグの監視を始め、
フラグがLow 七なったことを検知するとデータレジ
スタ9よりデータを取込む。また、条件データレジスタ
7のデータ取込みフラグは、データレジスタ9からのデ
ータ取込みにより)li ghレベルとなる。以上によ
り第1バイト目のデータ通信は完了する。
At the start of processing, the CPU 2 addresses the data register 9 and writes data regardless of the state of the flag in the condition register 7. In this write, the fact that address 2 has become OW level is stored in the condition data register 7 as a data import permission flag. CPU1 is
Processing (when data is needed, start monitoring the data import permission flag of condition data register 7,
When detecting that the flag has become low, data is taken from the data register 9. Furthermore, the data acquisition flag of the condition data register 7 becomes a low level (by the data acquisition from the data register 9). With the above steps, the first byte data communication is completed.

第2バイト目からは、CPU1のデータレジスタ9から
のデータ取込み時にアドレスデコード回路4より出力さ
れるアドレス4信号がLowレベル七なることを条件デ
ータレジスタ6のデータ送出要求フラグとして保存し、
このフラグをCPU2においてそのデータ送出処理中で
監視し、データ送出要求フラグがLowレベルであるこ
とを検出するとデータをデータレジスタ9に誓込む。尚
、CPU2のデータレジスタ9へのデータ書込みにより
条件データレジスタ6のデータ送出要求フラグはl−1
−1iレベルとなる。その後の手順は第1バイト目のデ
ータ通信と同様である。
From the second byte, the fact that the address 4 signal output from the address decoding circuit 4 is at a low level of 7 when data is taken in from the data register 9 of the CPU 1 is stored as a data sending request flag in the condition data register 6.
This flag is monitored by the CPU 2 during the data sending process, and when it detects that the data sending request flag is at a low level, the data is committed to the data register 9. Furthermore, by writing data to the data register 9 of the CPU 2, the data sending request flag of the condition data register 6 becomes l-1.
-1i level. The subsequent procedure is the same as the first byte data communication.

以上説明したデータ通信手順をタイムチャートにて示す
と第5図に示すように、データ受取り側CPUであるC
PUIのデータ要求時に、既にデータ送出側CPUであ
るCPL12からのデータがデータレジスタ9に保存さ
れていることとなるため、第4図に示す一般的なハンド
シェイク処理のようEこ、CPUIがデータ要求時にC
PUIヘデータ送出要求を出すよりも、データ1のデー
タ要求からデータ受取りまでのデータ待ち時間を短縮で
き高速化を実現できる。CPUI力)らCPU2へのデ
ータ通信も同様の処理により実現できる。
When the data communication procedure explained above is shown in a time chart, as shown in FIG.
When the PUI requests data, the data from the data sending CPU, CPL 12, is already stored in the data register 9. Therefore, as shown in the general handshake process shown in FIG. C on request
Compared to issuing a data sending request to the PUI, the data waiting time from the data request for data 1 to the data reception can be shortened and the speed can be increased. Data communication from the CPU 2 to the CPU 2 can also be realized by similar processing.

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

本発明によれば、CPUのデータ要求を、CPUの処理
において出力する必要がないため、CPUの処理負荷の
低減による処理効率の向上、及びCPUのデータ要求出
力からデータ取込みまでの待ち時間の短縮による処理の
高速化を、低価格かつ商単な回路構成で実現できる。
According to the present invention, there is no need to output a CPU data request during CPU processing, so processing efficiency is improved by reducing the CPU processing load, and waiting time from the CPU data request output to data capture is shortened. It is possible to achieve high-speed processing using a low-cost and commercially simple circuit configuration.

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

第1図は、本発明の特徴とする動作原理を示すブロック
図、第2図はハンドシェイク処理の手順を示す流れ図、
第3図は本発明囚−実施例を示すブロック図、第4図は
一般的なハンドシェイクによるデータ通信のタイムチャ
ート、第5図は本発明によるデータ通信のタイムチャー
ト、である。 1.2’、3・・・CPU4,5・・・アドレスデコー
ド回路 6,7・・・条件データレジスタ 8.9・・
・データレジスタ −0・・・データ取込み動作検出手
段 11・・・データ要求信号発生回路 12・・・条
件データレジスタ −6・・・データレジスタを
FIG. 1 is a block diagram showing the operating principle that characterizes the present invention, and FIG. 2 is a flow chart showing the procedure of handshake processing.
FIG. 3 is a block diagram showing an embodiment of the present invention, FIG. 4 is a time chart of data communication using a general handshake, and FIG. 5 is a time chart of data communication according to the present invention. 1.2', 3...CPU4,5...Address decoding circuit 6,7...Condition data register 8.9...
・Data register -0... Data fetching operation detection means 11... Data request signal generation circuit 12... Condition data register -6... Data register

Claims (1)

【特許請求の範囲】 1、第1のプロセッサと第2のプロセッサとの間のデー
タ通信において、 データレジスタと第1の条件レジスタと第2の条件レジ
スタとを具備し、第1のプロセッサは送出すべきデータ
を前記データレジスタに書き込むと共にその旨の書き込
み完了フラグを前記第1の条件レジスタに立て、第2の
プロセッサはデータが必要なとき、前記第1の条件レジ
スタを監視してそこに書き込み完了フラグが立っている
のを検出すると、前記データレジスタからデータを取り
込み、それと共に該第1の条件レジスタにおける書き込
み完了フラグをオフに転じ、同時に第2の条件レジスタ
にデータ送出要求フラグを立て、第1のプロセッサは該
第2の条件レジスタを監視していてそこにデータ送出要
求フラグが立っていることを検出すると、前記データレ
ジスタに送出すべきデータを書き込み、それと共にその
旨の書き込み完了フラグを前記第1の条件レジスタに立
て、かつ前記第2の条件レジスタにおけるデータ送出要
求フラグをオフに転じ、以下同様にして第1のプロセッ
サから第2のプロセッサへのデータ転送を行うことを特
徴とするプロセッサ間のデータ通信制御方式。
[Claims] 1. In data communication between a first processor and a second processor, a data register, a first condition register, and a second condition register are provided, and the first processor transmits data. The data to be output is written to the data register and a write completion flag indicating this is set in the first condition register, and when data is required, the second processor monitors the first condition register and writes there. When detecting that the completion flag is set, fetches data from the data register, simultaneously turns off the write completion flag in the first condition register, and simultaneously sets a data sending request flag in the second condition register; When the first processor monitors the second condition register and detects that the data sending request flag is set there, it writes the data to be sent to the data register, and also sets a write completion flag to that effect. is set in the first condition register, the data transmission request flag in the second condition register is turned off, and data is transferred from the first processor to the second processor in the same manner. A data communication control method between processors.
JP26159987A 1987-10-19 1987-10-19 Control system for inter-processor data communication Pending JPH01106158A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP26159987A JPH01106158A (en) 1987-10-19 1987-10-19 Control system for inter-processor data communication

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP26159987A JPH01106158A (en) 1987-10-19 1987-10-19 Control system for inter-processor data communication

Publications (1)

Publication Number Publication Date
JPH01106158A true JPH01106158A (en) 1989-04-24

Family

ID=17364147

Family Applications (1)

Application Number Title Priority Date Filing Date
JP26159987A Pending JPH01106158A (en) 1987-10-19 1987-10-19 Control system for inter-processor data communication

Country Status (1)

Country Link
JP (1) JPH01106158A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0613091A2 (en) * 1993-02-26 1994-08-31 Nec Corporation Parallel data transfer circuit
JPH06332871A (en) * 1993-05-24 1994-12-02 Nec Corp Parallel processing system
JPH07129521A (en) * 1993-01-11 1995-05-19 Nec Corp Parallel processing system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07129521A (en) * 1993-01-11 1995-05-19 Nec Corp Parallel processing system
EP0613091A2 (en) * 1993-02-26 1994-08-31 Nec Corporation Parallel data transfer circuit
EP0613091A3 (en) * 1993-02-26 1996-09-11 Nec Corp Parallel data transfer circuit.
JPH06332871A (en) * 1993-05-24 1994-12-02 Nec Corp Parallel processing system

Similar Documents

Publication Publication Date Title
JP2564805B2 (en) Information processing device
US4949241A (en) Microcomputer system including a master processor and a slave processor synchronized by three control lines
US5109333A (en) Data transfer control method and apparatus for co-processor system
JP5213485B2 (en) Data synchronization method and multiprocessor system in multiprocessor system
JPH01106158A (en) Control system for inter-processor data communication
JPS634219B2 (en)
JP2679440B2 (en) Information processing device
JPH0570866B2 (en)
JPS6240565A (en) Memory control system
JPS6293742A (en) Inter-processor interface system
JPS62288949A (en) Serializing instruction control system
JPH0415496B2 (en)
JP3457535B2 (en) Communication device between processors
JP3219422B2 (en) Cache memory control method
JPS6221130B2 (en)
JPH02197961A (en) Information processor
JPS6325732A (en) Microprogram controller
JPS63298638A (en) Data processor
JPS63257856A (en) Serial communication system
JPH01240932A (en) Data processor
JPH04352058A (en) Dma high-speed data transfer control system
JPH058459B2 (en)
JPH04264640A (en) Buffer storage device
JPH05265967A (en) Data communicating method for multi-processor system
JPS6127790B2 (en)