JPH0228863A - Inter-cpu data transfer system - Google Patents

Inter-cpu data transfer system

Info

Publication number
JPH0228863A
JPH0228863A JP17985088A JP17985088A JPH0228863A JP H0228863 A JPH0228863 A JP H0228863A JP 17985088 A JP17985088 A JP 17985088A JP 17985088 A JP17985088 A JP 17985088A JP H0228863 A JPH0228863 A JP H0228863A
Authority
JP
Japan
Prior art keywords
memory
data
cpu
memories
cpus
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
JP17985088A
Other languages
Japanese (ja)
Inventor
Takashi Tokura
戸倉 隆
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 JP17985088A priority Critical patent/JPH0228863A/en
Publication of JPH0228863A publication Critical patent/JPH0228863A/en
Pending legal-status Critical Current

Links

Landscapes

  • Multi Processors (AREA)

Abstract

PURPOSE:To transfer a large quantity of data at high speed by providing a selector to attain access from two CPUs and controlling its direction from the system board of the CPU which is a master. CONSTITUTION:A signal line 9 is controlled and memories 51 and 52 are replaced from under microprocessors (MPU) 1 and 2 to under the contrary MPUs 2 and 1 respectively. The memory of the MPU 1 consists of memories 121, 131 and 51 and the memory of the MPU 2 consists of memories 122, 132 and 52. When the memories are interchanged, the MPU 1 operates to access the memory 52, the MPU 2 operates to access to the memory 122 and the memory used by the other side CPU can be accessed.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は複数のCPUを備えた装置において、CPU間
で情報を授受する方式に関し、特に大量データを高速に
転送する方式に関する。。
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to a system for exchanging information between CPUs in a device equipped with a plurality of CPUs, and particularly relates to a system for transferring large amounts of data at high speed. .

(従来の技術) 従来、この種のCPU間におけるデータの転送は、CP
Uの周辺デバイスであるシリアルI10゜またはパラン
IMI10によるデータのI10転送が採用きれていた
。上記においては、各CPUは各自のメモリから必要な
情報をデバイスに書込み、相手方から送られてきた情報
を自身のI10デバイスから自身のメモリに引取る第1
の方式、ならびにデュアルポートメモリをCPU間の共
通メモリとして備え、相互にそれらのメモリに読書きす
る第2の方式が公知であった。
(Prior art) Conventionally, this type of data transfer between CPUs
I10 transfer of data using the serial I10° or paran IMI10, which is a peripheral device of the U, has been successfully adopted. In the above, each CPU writes necessary information from its own memory to the device, and receives information sent from the other party from its own I10 device to its own memory.
A second method is known in which a dual port memory is provided as a common memory between CPUs and mutually read and write from and to the memory.

(発明が解決しようとする課題) 上述した従来の第1のI10転送方式は、メモリからバ
イト単位でデータを引出し、I10デバイスを使って送
信し1相手側も同様にI10デバイスからメモリに引取
る方式であるため、大量のデータを転送するには常時、
両CPUを介在せざるを得ない。よって、CPUKよる
処理を当肢作業に多く割振る必要性があり、大量のデー
タの高速転送には不向きであるという欠点があった。
(Problem to be Solved by the Invention) The first conventional I10 transfer method described above extracts data in bytes from memory, transmits it using an I10 device, and receives data from the other party's memory from the I10 device in the same way. method, it is always necessary to transfer large amounts of data.
Both CPUs have no choice but to intervene. Therefore, it is necessary to allocate a large amount of processing by the CPU to the current work, and there is a drawback that it is unsuitable for high-speed transfer of large amounts of data.

従来のデュアルポートメモUKよる第2の方式は、大容
量デバイスの入手が不可能であるため、メモリ容量を大
規模圧すると高価になるという欠点があり、さらにデュ
アルポートながら同アドレスの同時アクセスは待合わせ
になるなどの欠点があった。。
The second method using the conventional dual port memory UK has the disadvantage that large-scale memory capacity becomes expensive because large-capacity devices are not available.Also, although it is a dual port, simultaneous access to the same address is not possible. There were drawbacks, such as having to wait for a meeting. .

本発明の目的は、メモリリード/ライト等の制御信号、
アドレス、ならびにデータについて、両方のCPUから
のアクセスを可能とするためのセレクタを設け、この方
向をマスタとなるCPUのシステムボートから制御する
ととKより上記欠点を除去し、大量のデータを高速に転
送できるように構成し&CPUCPU間転送方式を提供
するととKある。。
An object of the present invention is to provide control signals for memory read/write, etc.
Providing a selector to enable access from both CPUs for addresses and data, and controlling this direction from the system port of the master CPU, eliminates the above disadvantages and allows large amounts of data to be processed at high speed. It is possible to configure it so that it can be transferred and to provide an inter-CPU transfer method. .

(課題を解決するための手段) 本発明によるCPU間データ転送方式は2個のCPUと
、一対のメモリと、−式のセレクタと、システムボート
/ハスとを具備して構成したものである、。
(Means for Solving the Problems) The CPU-to-CPU data transfer method according to the present invention includes two CPUs, a pair of memories, a - type selector, and a system board/lotus. .

2個のCPUはマスタ、およびスレーブとじて動作し、
大量のデータを送受信するための亀のである。。
The two CPUs operate as master and slave,
It is a turtle for sending and receiving large amounts of data. .

一対のメモリは、2個のCPUのそれぞれにより切替え
メモリとして使用するためのものである。。
The pair of memories are for use as switching memories by each of the two CPUs. .

−式のセレクタは、マスタとなるCPUからの指示によ
り該当するメモリへの制御信号、アドレス、およびデー
タを相互に相手方CPUへと切替えるためのものである
The - type selector is used to mutually switch control signals, addresses, and data to the corresponding memory to the other CPU based on instructions from the master CPU.

システムボート/パスは、相手側CPUに対応したメモ
リの内容を自メモリ空間に取込み、大量のデータを高速
に送受信するためのものである。。
The system port/pass is used to import the contents of the memory corresponding to the CPU of the other party into its own memory space, and to transmit and receive large amounts of data at high speed. .

(実施例) 次に1本発明について図面を参照して説明する。。(Example) Next, one embodiment of the present invention will be explained with reference to the drawings. .

第1図は、本発明によるCPU間データ転送方式の一実
施例を示すブロック図である。。
FIG. 1 is a block diagram showing an embodiment of an inter-CPU data transfer method according to the present invention. .

第1図において、1.2はそれぞれデータ転送を必要と
するCPUを内部に備え九マイクロプロセサユニット(
MPU)である1、ここでは、マイクロプロセサユニッ
ト1がマスタ側として表現しである。、31.32はそ
れぞれ各マイクロプロセサ1,2から送出されるメモリ
リード/ライト郷の制御信号、およびアドレス情報を転
送するためのアドレスバスであり、41.42はそれぞ
れデータバスである。、Sl、S2はそれぞれ相互に交
換の対称となるメモリである。、 6 j 、 62は
それぞれセレクタであり、メモリブロック151.82
に入力されるアドレス信号等のうち、アドレスバス31
上の信号、またはアドレスバス32上の信号を選択する
ものである。、 7..1 、72はそれぞれ双方向の
セレクタであり、データバス41、ま九はデータバス4
2に接続されている1、セレクタ61.62.フ1.フ
2の選択信号は信号線9を介してマスタ側のシステムボ
ート81の第1ビツトから出力される。
In Figure 1, 1.2 each has nine microprocessor units (9 microprocessor units) each containing a CPU that requires data transfer.
Here, the microprocessor unit 1 is expressed as the master side. , 31 and 32 are address buses for transferring memory read/write control signals and address information sent from each microprocessor 1 and 2, respectively, and 41 and 42 are data buses, respectively. , Sl, and S2 are memories that can be exchanged with each other. , 6 j , 62 are selectors, respectively, and memory blocks 151.82
Of the address signals etc. input to the address bus 31
The signal on the address bus 32 or the signal on the address bus 32 is selected. , 7. .. 1 and 72 are bidirectional selectors, respectively, data bus 41, and data bus 4
1 connected to selector 61.62.2. F1. The selection signal for F2 is output from the first bit of the system port 81 on the master side via the signal line 9.

10.11はそれぞれシステムボート81゜82からメ
モ!Jgl、82の交換を確認するため、CPU間で使
用される制御用信号線である1、信号線1(1,11上
の制御信号の授受方式の実例は、後述する第8図で詳細
に説明する。、121゜122.131.132はそれ
ぞれ各マイクロプロセサ1,2が独立して所持するメモ
リであり、メモリマツプの説明を第2図で説明するため
に表現した本のである11以上の方式において、信号線
9を制御することくより、メモリ51.82をそれぞれ
マイクロプロセサユニツ)1.2の配下から逆のMPU
配下Kfil換えることが可能となる。
Notes for 10.11 from system boats 81 and 82 respectively! In order to confirm the exchange of Jgl and 82, an example of the method of transmitting and receiving control signals on the control signal lines 1 and 1 (1 and 11, which are the control signal lines used between the CPUs, will be explained in detail in Fig. 8, which will be described later). , 121, 122, 131, and 132 are memories owned independently by each microprocessor 1 and 2, and the memory map is explained in Figure 2. In this case, rather than controlling the signal line 9, the memories 51 and 82 are connected to the reverse MPU from under the microprocessor unit 1.2.
It becomes possible to change the subordinate Kfil.

第2図はCPUメモリマツプであり、第1図で示したメ
モリが置換される様子を示す亀のである。
FIG. 2 is a CPU memory map, which is a turtle showing how the memory shown in FIG. 1 is replaced.

マイクロプロセサユニット(MPU1)1のメモリはM
l 1 、Ml 2 、Ml 8で構成され、マイクロ
プロセサユニット(MPU2)2はM21.M2R、M
2Rで構成されている亀のとする。全体の空間はMPU
I 、MPU2で同容量の必要はないが、交換の対象と
なるメモリMI2.FII!22は論理的に同じ空間容
量をもっている必要がある。。
The memory of microprocessor unit (MPU1) 1 is M
I 1 , Ml 2 , Ml 8, and the microprocessor unit (MPU2) 2 is M21. M2R, M
Let's say a turtle is made up of 2Rs. The entire space is an MPU
Although it is not necessary for MPU2 to have the same capacity, memory MI2.I and MPU2 are the target of replacement. FII! 22 must logically have the same space capacity. .

しかし、この場合にも絶対アドレスは一致している必要
はない1、メモリの交換が行なわれると、第2図に示す
ように左から右にメモリマツプ上のメモリが入替わる1
、すなわち、MPU1はメモリM22をアクセスし、M
PU2はメモリM21をアクセスするように動作して、
相手側CPUが使用していたメモリをアクセスすること
が可能となる。。
However, even in this case, the absolute addresses do not need to match 1. When memory is exchanged, the memories on the memory map are swapped from left to right as shown in Figure 2.
, that is, MPU1 accesses memory M22 and MPU1 accesses memory M22.
PU2 operates to access memory M21,
It becomes possible to access the memory used by the other party's CPU. .

よって、上記によりブロックレベルでデータのCPU間
転送が実現できることになる1、メモリの交換を何の予
告もなしに実行すれば、各CPUが暴走するのを防ぐた
め釦ハンドクエイクが必要である1、第8図は、前記ハ
ンドシェイクの実例を示す説明図である1、第1図の信
号線9〜11上のシステムボート信号がハンドシェイク
用の信号に該肖する1、まず、送信データのデータ処理
が実行された場合、マスタCPU1は信号線11上にリ
クエスト(REQ)信号を送出し、MPU2の体制を開
<、、MPU2では自身のデータ処理が完了していれば
、信号線10を介してアクノリッジ(ACK)信号をM
PUIに送出して肯定応答を知らせるaMPUIはAC
Kを受取ると、信号線9を介してパス切替え信号をセレ
クタ61゜62、フ1,72に送出する。同時に、MP
U1は切替え実行中を示すエクゼギュート(EXE)信
号を信号線9上に送出する1、切替えを元に戻すときも
、同様の手順を経過するととKなる。
Therefore, with the above, it is possible to transfer data between CPUs at the block level1.If memory exchange is performed without any prior notice, a button handquake is required to prevent each CPU from going out of control1. , FIG. 8 is an explanatory diagram showing an example of the handshake. 1. The system boat signals on signal lines 9 to 11 in FIG. 1 correspond to handshake signals. 1. First, the transmission data is When data processing is executed, the master CPU 1 sends a request (REQ) signal to the signal line 11 and opens the system of the MPU 2. M
The aMPUI sends an acknowledgment to the PUI.
When it receives K, it sends a path switching signal to the selectors 61, 62 and F1, 72 via the signal line 9. At the same time, M.P.
U1 sends an EXE signal on the signal line 9 indicating that switching is in progress, and becomes K when the same procedure is followed to restore the switching.

もし、スレーブ側からの要求によっても実行する必要の
あるとき釦は、制御ll信号線の数を増加すればよい、
これによってスレーブ側からREQ信号をマスタ側に送
出し、マスタ側で同様の手順を繰返すことができる。こ
のような手順は一例であり、確認するには制御信号をキ
ャラクタベースで授受するなど、公知の手法が利用でき
ることはいうまでもない、。
If the button needs to be executed based on a request from the slave side, just increase the number of control signal lines.
This allows the slave side to send the REQ signal to the master side, and repeat the same procedure on the master side. Such a procedure is just an example, and it goes without saying that known methods such as sending and receiving control signals on a character basis can be used for confirmation.

(発明の効果) 以上説明したように本発明は、メモリのアドレス/デー
タをパスごとく交換することKより、大容量の情報をメ
モリに格納したまま相手のCPUに受渡すことができる
ため、高速にデータを転送できるという効果がある。こ
れKより、各CPUが通信に割振る時間は極めて短くな
り、転送後のデータ処理能力が数段向上するという効果
がある。
(Effects of the Invention) As explained above, the present invention allows a large amount of information to be transferred to the other party's CPU while being stored in memory, rather than exchanging memory addresses/data for each pass. This has the effect of allowing data to be transferred to. As a result of this K, the time allocated to each CPU for communication becomes extremely short, and there is an effect that the data processing capacity after transfer is improved by several steps.

また、本発明に使用されるメモリは通常のランダムアク
セスメモリであ)、大容量化は任意に可能で、高価なデ
ュアルポートメモリを使用しなくとも効率的なデータ転
送が可能になるという効果がある、。
Furthermore, since the memory used in the present invention is a normal random access memory, the capacity can be increased arbitrarily, and the effect is that efficient data transfer is possible without using expensive dual-port memory. be,.

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

第1図は、本発明によ、RCPU間データ転送方式の一
実施例を示すブロック図である1、第2図は、第1図で
示した本発明の実施例におけるメモリマツプの遷移を示
す説明図である。 第8図は、メモリ切換えの手順を示す説明図である。 第4図は、従来のI10デバイスによる通信方式例を示
すブロック図である。。 1.2−−・マイクロプロセサユニット31.32・―
・アドレスバス 41.42・・−データバス !51.82,121.122,131.132・・・
・・メモリ 61.62.フ1.フ2・―・セレクタ81.82・・
・システムポート 141.142・・・I10デバイス 9〜11−−−信号線 第3図 〈マスタン 24図
FIG. 1 is a block diagram showing an embodiment of the RCPU-to-RCPU data transfer method according to the present invention. FIG. 2 is an explanation showing the transition of the memory map in the embodiment of the present invention shown in FIG. It is a diagram. FIG. 8 is an explanatory diagram showing the procedure of memory switching. FIG. 4 is a block diagram showing an example of a communication method using a conventional I10 device. . 1.2--Microprocessor unit 31.32--
・Address bus 41.42...-Data bus! 51.82, 121.122, 131.132...
...Memory 61.62. F1. F2...Selector 81.82...
・System ports 141, 142...I10 devices 9 to 11---Signal lines Figure 3 (Mastan Figure 24)

Claims (1)

【特許請求の範囲】[Claims] マスタおよびスレーブとして動作し大量のデータを送受
信するための2個のCPUと、前記2個のCPUのそれ
ぞれにより切替えメモリとして使用するための一対のメ
モリと、前記マスタとなるCPUからの指示により該当
する前記メモリへの制御信号、アドレス、およびデータ
を相互い相手方CPUへと切替えるための一式のセレク
タと、前記相手側CPUに対応したメモリの内容を自メ
モリ空間に取込み、大量のデータを高速に送受信するた
めのシステムポート/バスとを具備して構成したことを
特徴とするCPU間データ転送方式。
Two CPUs that operate as a master and a slave to transmit and receive large amounts of data, a pair of memories that are used as switching memories by each of the two CPUs, and a corresponding memory that is configured according to instructions from the master CPU. A set of selectors for switching control signals, addresses, and data to the memory to each other CPU, and the content of the memory corresponding to the other CPU is imported into the own memory space, and a large amount of data can be processed at high speed. An inter-CPU data transfer method characterized by comprising a system port/bus for sending and receiving data.
JP17985088A 1988-07-19 1988-07-19 Inter-cpu data transfer system Pending JPH0228863A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP17985088A JPH0228863A (en) 1988-07-19 1988-07-19 Inter-cpu data transfer system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP17985088A JPH0228863A (en) 1988-07-19 1988-07-19 Inter-cpu data transfer system

Publications (1)

Publication Number Publication Date
JPH0228863A true JPH0228863A (en) 1990-01-30

Family

ID=16073004

Family Applications (1)

Application Number Title Priority Date Filing Date
JP17985088A Pending JPH0228863A (en) 1988-07-19 1988-07-19 Inter-cpu data transfer system

Country Status (1)

Country Link
JP (1) JPH0228863A (en)

Similar Documents

Publication Publication Date Title
US5392446A (en) Multiple cluster signal processor architecture
JPS6126103B2 (en)
US5182801A (en) Apparatus and method for providing fast data transfer between multiple devices through dynamic reconfiguration of the memory space of the devices
JPS63255759A (en) Control system
JPH02144649A (en) Directory memory access controller in multiprocessor system
US7970960B2 (en) Direct memory access controller and data transmitting method of direct memory access channel
JPS63255760A (en) Control system
JP2962787B2 (en) Communication control method
JP2570872B2 (en) One-chip microcomputer
CA2234635C (en) Method and device for exchanging data
US5978889A (en) Multiple device data transfer utilizing a multiport memory with opposite oriented memory page rotation for transmission and reception
JPH0228863A (en) Inter-cpu data transfer system
JPH09506731A (en) Bus structure for multiprocessor systems
JP3178474B2 (en) Communication control device
JPH03131951A (en) Data transfer system
JPH0160864B2 (en)
JP2705955B2 (en) Parallel information processing device
JP2002091934A (en) Data transmission system using dual port memory, and dual port memory
JP2576236B2 (en) Communication method of programmable controller
JP2573790B2 (en) Transfer control device
JPS6051145B2 (en) Computer connection method
JPH02199574A (en) Multiprocessor system
JPS63104155A (en) Electronic computer
JPH0391339A (en) Communication controller
JPS6262643A (en) Data transmission system