JPH0512221A - Data exchange speeding up system between multi cpu - Google Patents

Data exchange speeding up system between multi cpu

Info

Publication number
JPH0512221A
JPH0512221A JP3192799A JP19279991A JPH0512221A JP H0512221 A JPH0512221 A JP H0512221A JP 3192799 A JP3192799 A JP 3192799A JP 19279991 A JP19279991 A JP 19279991A JP H0512221 A JPH0512221 A JP H0512221A
Authority
JP
Japan
Prior art keywords
cpu
memory
data exchange
cpus
control unit
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
JP3192799A
Other languages
Japanese (ja)
Inventor
Hiroshi Tawara
弘志 田原
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.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP3192799A priority Critical patent/JPH0512221A/en
Publication of JPH0512221A publication Critical patent/JPH0512221A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To speed up data exchange between CPU by providing a control part having a function which subordinetes memories respectively to plural CPU and which exchanges a part of the memories in different CPU by an input/ output instruction from CPU. CONSTITUTION:At the time of transmitting data from CUP 1 to CPU 2, CPU 1 gives the notice of the use start of a memory for inter-CPU data exchange 10 to a control part 13 and writes transmission information to CPU 2 into the exchange memory 10. CPU 1 gives the notice of use termination to the control part 13 after writing, and gives the command of switching the memory for inter-CPU data exchange between CPU 1 and CPU 2. The control part 13 checks whether CPU 2 is in the middle of using a memory for inter-CPU data exchange 11 or not by internal information. When it is not in the middle of use, the memories for inter-CPU data exchange 10 and 11 in CPU 1 and CPU 2 are immediately switched. Thus, a processing is speeded up since data transfer between a local memory and a common memory is not required.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は複数のCPUを有するマ
ルチCPUシステムにおけるマルチCPU間データ交換
高速化方式に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a multi-CPU data exchange speed-up system in a multi-CPU system having a plurality of CPUs.

【0002】[0002]

【従来の技術】従来のマルチCPUシステムでは、複数
のCPU間のデータ交換手段として、ローカルエリアネ
ットワークを用いる方式や複数のCPU間で共通に読み
書きできる共有メモリを使用する方式があった。従来の
マルチCPU間データ交換方式の一例を図4に示し説明
すると、この図4はCPUが3台のシステムをローカル
エリアネットワークで結合した例である。この図4にお
いて、21,22,23はCPUで、このCPU21,
CPU22およびCPU23は、各々のCPUだけが読
み書きできるローカルメモリ24,ローカルメモリ25
およびローカルメモリ26を有する。そして、この3台
のCPU21,22,23はローカルエリアネットワー
ク27で結合され、データを交換する場合には、送信元
のCPUから送信先のCPUのアドレスを付加した情報
をローカルエリアネットワーク27に対して送出し、送
信先のCPUで受信する。
2. Description of the Related Art In a conventional multi-CPU system, as a data exchange means between a plurality of CPUs, there are a method using a local area network and a method using a shared memory which can be commonly read and written among a plurality of CPUs. An example of a conventional multi-CPU data exchange system is shown in FIG. 4 and explained. FIG. 4 shows an example in which a system having three CPUs is connected by a local area network. In FIG. 4, reference numerals 21, 22, 23 are CPUs, and the CPU 21,
The CPU 22 and the CPU 23 are the local memory 24 and the local memory 25 which can be read and written only by the respective CPUs.
And has a local memory 26. The three CPUs 21, 22, and 23 are connected by the local area network 27, and when exchanging data, information to which the address of the destination CPU is added from the CPU of the source is added to the local area network 27. And sends it out, and the CPU at the destination receives it.

【0003】図5は従来のマルチCPU間データ交換方
式の他の例を示すブロック図で、共有メモリを使用した
場合を示すものである。この図5において図4と同一符
号のものは相当部分を示し、28は3台のCPU21,
CPU22およびCPU23から共通に読み書きできる
共有メモリである。そしてCPU間のデータ交換を実現
する場合には、送信元のCPUが共有メモリ28に、送
信先のCPUのアドレスを付加した情報を書き込み、送
信先のCPUから読み出す。
FIG. 5 is a block diagram showing another example of a conventional multi-CPU data exchange system, showing a case where a shared memory is used. In FIG. 5, the same reference numerals as those in FIG. 4 indicate the corresponding parts, and 28 is the three CPUs 21,
It is a shared memory that can be commonly read and written by the CPU 22 and the CPU 23. Then, when data exchange between the CPUs is realized, the transmission source CPU writes information with the address of the transmission destination CPU added to the shared memory 28 and reads it from the transmission destination CPU.

【0004】[0004]

【発明が解決しようとする課題】上述した従来のマルチ
CPU間データ交換方式において、前者のローカルエリ
アネットワークを用いる場合には、ローカルエリアネッ
トワークのデータ転送速度の制限のため、データ送受信
を高速化できないという課題があった。また、後者の共
有メモリを使用する方式でも、送信元のCPUがローカ
ルメモリから共有メモリへデータを転送する時間と、送
信先のCPUが共有メモリからローカルメモリへデータ
を転送する時間を余分に必要とするという課題があっ
た。
In the above-mentioned conventional multi-CPU data exchange method, when the former local area network is used, the speed of data transmission / reception cannot be increased due to the limitation of the data transfer speed of the local area network. There was a problem called. Even in the latter method using the shared memory, an extra time is required for the transmission source CPU to transfer the data from the local memory to the shared memory and an extra time for the transmission destination CPU to transfer the data from the shared memory to the local memory. There was a problem to do.

【0005】[0005]

【課題を解決するための手段】本発明のマルチCPU間
データ交換高速化方式は、複数のCPUを有するマルチ
CPUシステムにおいて、各々のCPUに従属するメモ
リと、上記CPUからの入出力命令により上記メモリの
一部を異なるCPU間で交換する機能を持つ制御部を搭
載することにより、CPU間のデータ交換を高速化する
ようにしたものである。
In the multi-CPU data exchange accelerating method of the present invention, in a multi-CPU system having a plurality of CPUs, a memory subordinate to each CPU and an input / output instruction from the CPU are used for the above-mentioned operation. By mounting a control unit having a function of exchanging a part of the memory between different CPUs, the speed of data exchange between the CPUs is increased.

【0006】[0006]

【作用】本発明においては、制御部のメモリに搭載され
るプログラムに基づいて、バス切り換え部を介してCP
U間データ交換用メモリの切り替えを実現する。
In the present invention, the CP is controlled via the bus switching unit based on the program loaded in the memory of the control unit.
The switching of the memory for data exchange between U is realized.

【0007】[0007]

【実施例】図1は本発明によるマルチCPU間データ交
換高速化方式の一実施例を示すブロック図である。この
図1において、1,2,3はCPU、4,5,6はそれ
ぞれこのCPU1,2,3に従属するメモリ(ローカル
メモリ)で、この各ローカルメモリ4,5,6は読み書
きするCPUが固定であるCPU固定メモリ7,8,9
とCPU間データ交換用メモリ10,11,12に分け
られる。13はCPUからの入出力命令によりメモリの
一部を異なるCPU間で交換する機能を持つ制御部であ
る。ここで、CPU間データ交換用メモリ10,11,
12は制御部13の命令により読み書きするCPUを変
更できる。また、制御部13は各CPU1,2,3がC
PU間データ交換用メモリ10,11,12を使用中か
どうかの情報を格納する。各CPU1,2,3と制御部
13とは、入出力命令により情報を交換する。このよう
に、本発明のマルチCPU間データ高速化方式は、各々
のCPU1,2,3に従属するメモリ4,5,6と、C
PU1〜3からの入出力命令によりメモリ4〜6の一部
を異なるCPU間で交換する機能を持つ制御部13を搭
載することにより、CPU間のデータ交換を高速化する
ように構成されている。
DESCRIPTION OF THE PREFERRED EMBODIMENTS FIG. 1 is a block diagram showing an embodiment of a high speed data exchange system between multiple CPUs according to the present invention. In FIG. 1, 1, 2, 3 are CPUs, 4, 5, 6 are memories (local memories) subordinate to the CPUs 1, 2, 3, respectively, and the local memories 4, 5, 6 are CPUs for reading and writing. Fixed CPU fixed memory 7,8,9
And memory for data exchange between CPUs 10, 11, and 12. A control unit 13 has a function of exchanging a part of the memory between different CPUs according to input / output instructions from the CPU. Here, the memory for data exchange between CPUs 10, 11,
The CPU 12 can change the CPU for reading and writing according to an instruction from the control unit 13. Further, in the control unit 13, each CPU 1, 2, 3 is C
Stores information on whether the memories 10, 11, 12 for data exchange between PUs are in use. The CPUs 1, 2, and 3 and the control unit 13 exchange information by input / output commands. As described above, the multi-CPU data speedup method of the present invention includes the memories 4, 5, and 6 which are subordinate to the CPUs 1, 2, and 3, and C, respectively.
By mounting a control unit 13 having a function of exchanging a part of the memories 4 to 6 between different CPUs according to input / output instructions from the PUs 1 to 3, it is configured to speed up data exchange between the CPUs. ..

【0008】図2はこの図1に示す実施例における制御
の流れを示す説明図である。
FIG. 2 is an explanatory diagram showing the flow of control in the embodiment shown in FIG.

【0009】つぎに図1に示す実施例の動作をCPU1
からCPU2へ送信する場合を例にとり図2を参照して
説明する。CPU1は、まず、制御部13に対してCP
U間データ交換用メモリ10の使用開始を通知する。そ
の後、CPU1はCPU間データ交換用メモリ10にC
PU2に対する送信情報を書き込み、書き込み終了後、
制御部13に対して、使用終了を通知する。最後に、C
PU1は制御部13に対して、CPU1とCPU2との
CPU間データ交換用メモリ切り替え命令を発行する。
Next, the operation of the embodiment shown in FIG.
2 to CPU 2 will be described as an example with reference to FIG. The CPU 1 first sends a CP to the control unit 13.
The start of use of the U-to-U data exchange memory 10 is notified. After that, the CPU 1 stores C in the memory 10 for exchanging data between CPUs.
Write the transmission information for PU2, and after writing,
The control unit 13 is notified of the end of use. Finally, C
The PU 1 issues a memory switching instruction for data exchange between the CPU 1 and the CPU 2 to the control unit 13.

【0010】つぎに、制御部13では、CPU2がCP
U2のCPU間データ交換用メモリ11を使用中かどう
かを内部情報によりチェックし、使用中でないならば、
直ちに、CPU1とCPU2のCPU間データ交換用メ
モリ10,11を切り替える。そして、使用中の場合に
は、CPU2から、使用終了通知を受け取るまで切り替
えを延期する。ここで、この切り換えの延期は、通常、
まれな出来ごとであり、処理時間にはほとんど影響しな
い。制御部13は切り換え完了後、CPU2に対して割
り込みにより切り換えが発生したことを通知する。そし
て、この実施例のCPU間データ交換においては、ロー
カルエリアネットワークによるデータ転送を必要とせ
ず、また、ローカルメモリと共有メモリ間のデータ転送
時間も必要としないため、処理が高速になる。
Next, in the control unit 13, the CPU 2 makes the CP
It is checked by internal information whether the memory 11 for data exchange between CPUs of U2 is in use, and if it is not in use,
Immediately, the data exchange memories 10 and 11 between the CPU 1 and the CPU 2 are switched. Then, when it is in use, the switching is postponed until the use end notification is received from the CPU 2. Here, the postponement of this switching is usually
Since this is a rare event, it hardly affects the processing time. After the switching is completed, the control unit 13 notifies the CPU 2 that the switching has occurred by an interrupt. Further, in the data exchange between the CPUs of this embodiment, the data transfer by the local area network is not required, and the data transfer time between the local memory and the shared memory is not required, so that the processing becomes faster.

【0011】図3は図1における制御部13の構成例を
示すブロック図である。制御部13は制御部のCPU1
3−1と制御部のメモリ13−2および周辺LSI13
−3からなる制御装置であり、制御部のメモリ13−2
に搭載されるプログラムに基づいて、バス切り換え部1
3−4を介してCPU間データ交換用メモリ10,1
1,12の切り換えを実現する。
FIG. 3 is a block diagram showing a configuration example of the control unit 13 in FIG. The control unit 13 is the CPU 1 of the control unit.
3-1 and memory 13-2 of control unit and peripheral LSI 13
3 is a control device including a memory of the control unit 13-2.
Bus switching unit 1 based on the program installed in
Memory for data exchange between CPUs 1 and 3 via 3-4
Switching between 1 and 12 is realized.

【0012】[0012]

【発明の効果】以上説明したように本発明は、各々のC
PUに従属するメモリと、CPUからの入出力命令によ
りメモリの一部を異なるCPU間で交換する機能を持つ
制御部を具備し、制御部のメモリに搭載されるプログラ
ムに基づいて、バス切り換え部を介してCPU間データ
交換用メモリの切り換えを実現するようにしたので、C
PU間のデータ交換を高速化できるという効果を有す
る。
As described above, according to the present invention, each C
The bus switching unit includes a memory subordinate to the PU and a control unit having a function of exchanging a part of the memory between different CPUs according to an input / output instruction from the CPU, and based on a program installed in the memory of the control unit. Since the switching of the memory for data exchange between CPUs is realized via
This has the effect of speeding up data exchange between PUs.

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

【図1】本発明によるマルチCPU間データ交換高速化
方式の一実施例を示すブロック図である。
FIG. 1 is a block diagram showing an embodiment of a method for accelerating data exchange between multiple CPUs according to the present invention.

【図2】図1に示す実施例における制御の流れを示す説
明図である。
FIG. 2 is an explanatory diagram showing a control flow in the embodiment shown in FIG.

【図3】図1における制御部の構成例を示すブロック図
である。
FIG. 3 is a block diagram showing a configuration example of a control unit in FIG.

【図4】従来のマルチCPU間データ交換方式の一例を
示すブロック図である。
FIG. 4 is a block diagram showing an example of a conventional multi-CPU data exchange system.

【図5】従来のマルチCPU間データ交換方式の他の例
を示すブロック図である。
FIG. 5 is a block diagram showing another example of a conventional multi-CPU data exchange system.

【符号の説明】[Explanation of symbols]

1〜3 CPU 4〜6 ローカルメモリ(メモリ) 7〜9 CPU固定メモリ 10〜12 CPU間データ交換用メモリ 13 制御部 1-3 CPU 4-6 Local memory (memory) 7-9 CPU fixed memory 10-12 CPU data exchange memory 13 Control unit

Claims (1)

【特許請求の範囲】 【請求項1】 複数のCPUを有するマルチCPUシス
テムにおいて、各々のCPUに従属するメモリと、前記
CPUからの入出力命令により前記メモリの一部を異な
るCPU間で交換する機能を持つ制御部を搭載すること
により、CPU間のデータ交換を高速化するようにした
ことを特徴とするマルチCPU間データ交換高速化方
式。
Claim: What is claimed is: 1. In a multi-CPU system having a plurality of CPUs, a memory subordinate to each CPU and a part of the memory are exchanged between different CPUs according to an input / output instruction from the CPU. A high-speed data exchange method between multiple CPUs, which is characterized by accelerating data exchange between CPUs by mounting a control unit having functions.
JP3192799A 1991-07-08 1991-07-08 Data exchange speeding up system between multi cpu Pending JPH0512221A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3192799A JPH0512221A (en) 1991-07-08 1991-07-08 Data exchange speeding up system between multi cpu

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3192799A JPH0512221A (en) 1991-07-08 1991-07-08 Data exchange speeding up system between multi cpu

Publications (1)

Publication Number Publication Date
JPH0512221A true JPH0512221A (en) 1993-01-22

Family

ID=16297185

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3192799A Pending JPH0512221A (en) 1991-07-08 1991-07-08 Data exchange speeding up system between multi cpu

Country Status (1)

Country Link
JP (1) JPH0512221A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100475392B1 (en) * 2001-07-11 2005-03-10 세이코 엡슨 가부시키가이샤 Data processing apparatus and data inputting/outputting method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100475392B1 (en) * 2001-07-11 2005-03-10 세이코 엡슨 가부시키가이샤 Data processing apparatus and data inputting/outputting method

Similar Documents

Publication Publication Date Title
JPH07225727A (en) Computer system
CA2234635C (en) Method and device for exchanging data
KR100357284B1 (en) The one chip asynchronous microprocessor Inter Processor Communication circuit
JPH0512221A (en) Data exchange speeding up system between multi cpu
JP2988443B2 (en) Data transfer method
JP2000155738A (en) Data processor
JPH06202894A (en) Shared memory control circuit
JPH11252150A (en) Network connection device and network connection control method
JP3399776B2 (en) Computer and method for transferring peripheral device control data in computer
JPH02211571A (en) Information processor
JPH06243672A (en) Writing/reading structure of fifo memory
JPS5834858B2 (en) Data exchange control method
RU1835551C (en) Data processor
JP2803270B2 (en) SCSI host adapter circuit
JP2821176B2 (en) Information processing device
JPH08305658A (en) I/o bus
JPH05250332A (en) Electronic equipment
JPH10171670A (en) Task switching device and medium recording task switching program
JPH0652101A (en) Multiport memory for data buffer
JPH03108048A (en) Communication system between general purpose computer and work station
JPS62297960A (en) Data transfer system
JP2001175583A (en) Semiconductor integrated circuit device and method for using the same
JPH02301851A (en) System bus accessing system
JPH0697447B2 (en) Communication controller of processing device
JPH09212344A (en) Method for executing new/old generation program