JPS62262170A - Data transfer system - Google Patents

Data transfer system

Info

Publication number
JPS62262170A
JPS62262170A JP61104695A JP10469586A JPS62262170A JP S62262170 A JPS62262170 A JP S62262170A JP 61104695 A JP61104695 A JP 61104695A JP 10469586 A JP10469586 A JP 10469586A JP S62262170 A JPS62262170 A JP S62262170A
Authority
JP
Japan
Prior art keywords
microprocessor
processor
memory
shared memory
bus
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
JP61104695A
Other languages
Japanese (ja)
Inventor
Takao Sato
孝夫 佐藤
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 JP61104695A priority Critical patent/JPS62262170A/en
Publication of JPS62262170A publication Critical patent/JPS62262170A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To transfer data between memories in two processors with a simplified means, by providing a shared memory, and means which performs the read and the write of a specific value at the specific address of the shared memory, at each processor. CONSTITUTION:A memory 3 is provided in a microprocessor 1, and a memory 6 is provided in a micro processor 2. A shared memory 9 is switched and connected to the processor 1, or the processor 2 through bus switching circuits 10, and 10'. The processors 1 and 2 are equipped with functions to perform the read and the write of the specific value at the specific address of the memory 9, and it is decided to which processor, 1 or 2, the memory 9 is connected, by the operation of the function. The circuits 10 and 10' are switched by a switch control circuit 14, and the data in the memories 3 and 6 are transferred alternately by using a simplified circuit through the memory 9.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はデータ転送方式に関するもので、更に具体的に
はバスの切替によって、メモリ間にてデータを転送でき
るようにした方式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a data transfer system, and more specifically to a system in which data can be transferred between memories by switching buses.

〔従来の技術〕[Conventional technology]

近年、マイクロプロセッサを使用した装置が多様さ終る
ようになって来ている。
In recent years, devices using microprocessors have become increasingly diverse.

現在主として使用されている8ビツトのマイクロプロセ
ッサを高速のデータ通信をしながら各種処理を行う機器
として使用する場合には、その処理スピードは充分速い
とは言えず、従来は16ビソ4ト等の高位のマイクロプ
ロセ・ノサを使用するとか、8ビツトのマイクロプロセ
ッサを複数個使用し、処理機能を分散するとかして高速
システムに対応している。
When using the currently mainly used 8-bit microprocessor as a device that performs various types of processing while communicating at high speed, its processing speed cannot be said to be fast enough. High-speed systems are supported by using high-level microprocessors or multiple 8-bit microprocessors to distribute processing functions.

このように、高速化を図るのにかかる方法があるが、後
者の方法のように複数個のマイクロプロセッサで処理動
作牽行わせる場合、各マイクロプロセッサの動作を有効
に行わせる為には、各マイクロプロセッサのメモリデー
タの転送が必要である。従来はこの為のデータ転送方式
として、DMA(ダイレクト・メモリ・アクセス)方式
が使われている。
As described above, there are methods to increase speed, but when using multiple microprocessors to perform processing operations as in the latter method, in order to make each microprocessor operate effectively, it is necessary to Transfer of microprocessor memory data is required. Conventionally, a DMA (direct memory access) method has been used as a data transfer method for this purpose.

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

しかし、そのようなメモリ間でのデータ転送を従来のよ
うにDMA方式で行う場合は、DMA転送(直接メモリ
アクセス制御による転送)のための制御回路を使用しな
ければならないが、このような回路の構成は簡単なもの
ではない。
However, if such data transfer between memories is performed using the conventional DMA method, a control circuit for DMA transfer (transfer using direct memory access control) must be used; The configuration is not easy.

即ち、DMA方式の場合、マイクロプロセッサを経由し
ないで直接メモリ間のデータの転送を行う為、転送メモ
リのアドレス信号発生回路や、このアドレス信号発生回
路のスタート・アドレス。
That is, in the case of the DMA method, since data is transferred directly between memories without going through a microprocessor, the address signal generation circuit of the transfer memory and the start address of this address signal generation circuit.

アドレス長(転送データ長)を制御する回路が必要とな
り、複雑高価になるという欠点がある。
It requires a circuit to control the address length (transfer data length), which has the disadvantage of being complicated and expensive.

本発明の目的は、従来方式のこのような欠点を除去し、
簡単な構成によって各プロセッサのメモリ間でデータ転
送が行えるデータ転送方式を提供することにある。
The purpose of the present invention is to eliminate these drawbacks of the conventional method,
It is an object of the present invention to provide a data transfer method that allows data transfer between memories of respective processors with a simple configuration.

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

本発明のデータ転送方式は、 第1のプロセッサ及び第2のプロセッサと、これらプロ
セッサから使用される共用メモリと、この共用メモリの
バスを上記第1のプロセッサ側と第2のプロセッサ側へ
選択的に切替接続する切替接続手段と、 上記第1及び第2のプロセッサにてそれぞれ共用メモリ
の特定アドレスに対し、特定値の書き込み読み出しを行
う手段とを有することを特徴としている。
The data transfer method of the present invention includes a first processor, a second processor, a shared memory used by these processors, and a bus for this shared memory selectively transferred to the first processor side and the second processor side. The present invention is characterized in that it has a switching connection means for switching connection to the memory, and a means for writing and reading a specific value to and from a specific address of the shared memory in each of the first and second processors.

〔実施例〕〔Example〕

次に、本発明について図面を参照して説明する。 Next, the present invention will be explained with reference to the drawings.

第1図は本発明の一実施例のブロック図で、マイクロプ
ロセッサを2個使用し、各マイクロプロセッサのメモリ
データの転送を行う場合を示している。
FIG. 1 is a block diagram of an embodiment of the present invention, showing a case where two microprocessors are used and memory data of each microprocessor is transferred.

図において、1はメイン・マイクロプロセッサ、2はサ
ブ・マイクロプロセッサでメイン・マイクロプロセッサ
1側は、メモリ3.I10制御回路(110C0NT)
4.ROM5を有し、同様にサブ・マイクロプロセッサ
2側もメモリ6、I10制御回路(110C0NT)?
、ROM8を備えている。
In the figure, 1 is a main microprocessor, 2 is a sub-microprocessor, and the main microprocessor 1 side has a memory 3. I10 control circuit (110C0NT)
4. It has ROM5, and similarly, the sub-microprocessor 2 side also has memory 6 and I10 control circuit (110C0NT).
, ROM8.

9は各マイクロプロセッサ1.2のメモリ3゜6間でデ
ータを転送するのに使用される共用メモリ、10.10
’は共用メモリ9のデータバス11.アドレスバス12
及び共用メモリ9の書き込み読み出しを制御する制御線
13のバス切替のためのバス切替回路、14はこれらバ
ス切替回路10.10”を制御するバス切替制御回路で
、バス切替回路10はメイン・マイクロプロセッサ1側
のデータバス11.アドレスバス12及び制御線13と
の間に挿入されており、バス切替回路10’はサブ・マ
イクロプロセッサ2例のデータバス11.アドレスバス
12及び制御線13との間に挿入されている。
9 is a shared memory used to transfer data between the memories 3 and 6 of each microprocessor 1.2; 10.10
' is the data bus 11 of the shared memory 9. address bus 12
14 is a bus switching control circuit for controlling these bus switching circuits 10 and 10'', and the bus switching circuit 10 is connected to the main micro The bus switching circuit 10' is inserted between the data bus 11, address bus 12, and control line 13 on the processor 1 side, and the bus switching circuit 10' is inserted between the data bus 11, address bus 12, and control line 13 of the two sub-microprocessors. inserted in between.

バス切替制御回路14は、それぞれのマイクロプロセッ
サ1.2側のI10制御回路4,6により制御されるフ
リップ・フロップ(F、F、)15と、このフリップ・
フロップ15の出力によりバス切替回路10.10’を
駆動する駆動部16とを備えている。
The bus switching control circuit 14 includes a flip-flop (F, F,) 15 controlled by the I10 control circuit 4, 6 on the side of each microprocessor 1.2;
The bus switching circuit 10 is also provided with a driving section 16 that drives the bus switching circuits 10 and 10' using the output of the flop 15.

このように、この例では2つのマイクロプロセッサシス
テムの間には、共用メモリ9とバス切替回路10.10
′と、バス切替制御回路14が設けられており、これら
バス切替回路10.10’、バス切替制御回路14によ
って、共用メモリ9のデータバス11、アドレスバス1
2および制御線13を、サブ・マイクロプロセッサ゛2
からの制御によりメイン・マイクロプロセッサ1側へ切
替接続するか、メイン・マイクロプロセッサ1からの制
御によりサブ・マイクロプロセッサ2側へ切替接続する
ようバスの切替を行うようにしている。
Thus, in this example there is a shared memory 9 and a bus switching circuit 10.10 between the two microprocessor systems.
' and a bus switching control circuit 14 are provided, and these bus switching circuits 10, 10' and the bus switching control circuit 14 control the data bus 11 and address bus 1 of the shared memory 9.
2 and the control line 13 to the sub microprocessor 2.
The bus is switched such that the connection is switched to the main microprocessor 1 side under control from the main microprocessor 1, or the bus is switched to the sub microprocessor 2 side under control from the main microprocessor 1.

また、メイン・マイクロプロセッサ1及びサブ・マイク
ロプロセッサ2は、それぞれ共用メモリ9の特定のアド
レスに対して特定値の書き込み読み出しを行う機能を備
えるようにしている。即ち、共用メモリ9に割り当てら
れているアドレス内の特定のアドレスに対し特定値を書
き込み、同アドレスの内容を読み出す動作を行うことに
よって、書き込んだ値が正しく読み出せるかどうかで、
現在、共用メモリ9がどちら側に接続されているかを判
断することができる0例えば、もし、共用メモリ9がサ
ブ・マイクロプロセッサ2側へ切替接続されている場合
、サブ−・マイクロプロセッサ2側において、書き込ん
だ値が正しく読み出せることになるから、これによりて
共用メモリ9がサブ・マイクロプロセッサ2側に接続さ
れている状態が検出され、この状態で、サブ・マイクロ
プロセッサ2のメモリ6と共用メモリ9間でデータ転送
を行えばよい、逆にメイン・マイクロプロセッサ10F
Iに接続されているときも同様である。
Further, the main microprocessor 1 and the sub-microprocessor 2 each have a function of writing and reading a specific value to a specific address of the shared memory 9. In other words, by writing a specific value to a specific address among the addresses allocated to the shared memory 9 and reading the contents of the same address, it is determined whether the written value can be read correctly.
Currently, it is possible to determine which side the shared memory 9 is connected to. For example, if the shared memory 9 is switched to the sub-microprocessor 2 side, the sub-microprocessor 2 side , since the written value can be read correctly, the state that the shared memory 9 is connected to the sub-microprocessor 2 side is detected, and in this state, the shared memory 9 and the shared memory 6 of the sub-microprocessor 2 are connected. All you have to do is transfer data between the memory 9 and the main microprocessor 10F.
The same applies when connected to I.

このように、メイン・マイクロプロセッサ1及びサブ・
マイクロプロセッサ2にて、それぞれ共用メモリ9の特
定アドレスに対して特定値を書き込み、これの読み出し
を行うようにしており、このような手段としては、例え
ば、それぞれの側のROM5.8に、そのような書き込
み、読み出し動作を周期的に行って正しく読み出せるか
否かを判別するようなプログラムを組み込んでお(など
して構成することができる。
In this way, the main microprocessor 1 and the sub-microprocessor 1
Each microprocessor 2 writes a specific value to a specific address in the shared memory 9, and reads the value.For example, such a method includes writing a specific value in the ROM 5.8 on each side. It can be constructed by incorporating a program that periodically performs such writing and reading operations and determines whether or not reading can be performed correctly.

次に、−例として、サブ・マイクロプロセッサ2が、サ
ブ・マイクロプロセッサ2側のメモリ6のデータをメイ
ン・マイクロプロセッサ1のメモI73へ転送する場合
を例にとって、本方式によるデータ転送の動作について
説明する。
Next, we will discuss the data transfer operation according to this method, taking as an example the case where the sub-microprocessor 2 transfers the data in the memory 6 on the sub-microprocessor 2 side to the memo I73 of the main microprocessor 1. explain.

サブ・マイクロプロセッサ2が、サブ・マイクロプロセ
ッサ2側のメモリ6のデータをメイン・マイクロプロセ
ッサ1のメモリ3へ転送する場合、サブ・マイクロプロ
セッサ2は、共用メモリ9に割り当てられているアドレ
スの内、特定アドレスに対して特定値を書き込み、同ア
ドレスの内容を読み出す動作を周期的に行うことで、書
き込んだ値が正しく読み出せたとき、共用メモリ9が、
サブ・マイクロプロセッサ2側に接続されている状態を
検出し、サブ・マイクロプロセッサ2のメモI76のデ
ータを共用メモリ9へ転送し、メイン・マイクロプロセ
ッサ1のメモリ3にデータを引き渡せる状態とする。そ
の後、サブ・マイクロプロセッサ2はサブ・マイクロプ
ロセッサ2の!10制御回路7より、バス切替の制御回
路14のフリップ・フロップ15を制御し、共用、メモ
リ9のバスをメイン・マイクロプロセッサ1側へ切り替
える。
When the sub-microprocessor 2 transfers data in the memory 6 on the sub-microprocessor 2 side to the memory 3 of the main microprocessor 1, the sub-microprocessor 2 transfers data from the memory 6 on the sub-microprocessor 2 side to the memory 3 of the main microprocessor 1. , by periodically writing a specific value to a specific address and reading the contents of the same address, when the written value can be read correctly, the shared memory 9
Detects the state of connection to the sub-microprocessor 2 side, transfers the data in the memo I76 of the sub-microprocessor 2 to the shared memory 9, and makes it possible to transfer the data to the memory 3 of the main microprocessor 1. . After that, sub-microprocessor 2's ! 10 control circuit 7 controls flip-flop 15 of bus switching control circuit 14 to switch the bus of shared memory 9 to the main microprocessor 1 side.

メイン・マイクロプロセッサ1においてもサブ・マイク
ロプロセッサ2と同様、共用メモリ9内の特定アドレス
に対して、書き込んだ値を正しく読み出せることにより
、共用メモリ9がメイン・マイクロプロセッサ1側に接
続されたことを検出し、メイン・マイクロプロセッサ1
は、メモリ間転送命令により、共用メモリ9のデータを
メイン・マイクロプロセッサ1のメモリ3へ転送する。
Similarly to the sub-microprocessor 2, in the main microprocessor 1, the shared memory 9 is connected to the main microprocessor 1 by being able to correctly read the written value to a specific address in the shared memory 9. main microprocessor 1
transfers the data in the shared memory 9 to the memory 3 of the main microprocessor 1 using an inter-memory transfer instruction.

メモリ領域の転送が終了すると、メイン・マイクロプロ
セッサ1は、メイン・マイクロプロセッサ1のI10制
御回路4より、バス切替制御回路14のフリップ・フロ
ップ15を制御し、共用メモリ9のバスをサブ・マイク
ロプロセッサ2側へ切り替える。
When the transfer of the memory area is completed, the main microprocessor 1 controls the flip-flop 15 of the bus switching control circuit 14 from the I10 control circuit 4 of the main microprocessor 1, and switches the bus of the shared memory 9 to the sub-microprocessor. Switch to processor 2 side.

このように、サブ・マイクロプロセッサ2側からメイン
・マイクロプロセッサ1側へデータ転送する場合、共用
メモリ9のデータバス11.アドレスバス12及び共用
メモリ9の書き込み読み出しを制御する線13をサブ・
マイクロプロセッサ2の制御によりメイン・マイクロプ
ロセッサ1側へ切替接続し、また、メイン・マイクロプ
ロセッサ1の制御によりサブ・マイクロプロセッサ2側
へ切替接続する。
In this way, when data is transferred from the sub-microprocessor 2 side to the main microprocessor 1 side, the data bus 11. The line 13 that controls the address bus 12 and the read/write of the shared memory 9 is sub-wired.
The connection is switched to the main microprocessor 1 side under the control of the microprocessor 2, and the connection is switched to the sub microprocessor 2 side under the control of the main microprocessor 1.

このように、共用メモリ9のバスをサブ・マイクロプロ
セッサ2側へ切り替えて、共用メモリ9をサブ・マイク
ロプロセッサ2の制御へもどし、次の転送に移る。
In this way, the bus of the shared memory 9 is switched to the sub-microprocessor 2 side, the shared memory 9 is returned to the control of the sub-microprocessor 2, and the next transfer is started.

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

以上説明したように、本発明によれば、バスの切替によ
ってデータの転送を行え、簡単な構成のデータ転送方式
が実現できる。
As described above, according to the present invention, data can be transferred by switching buses, and a data transfer system with a simple configuration can be realized.

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

第1図は本発明の一実施例を示すブロック図である。 1・・・・・メイン・マイクロプロセッサ2・・・・・
サブ・マイクロプロセッサ3.6・・・メモリ 4.7・・・I10制御回路 5.8・・・ROM 9・・・・・共用メモリ 10.10゛・・バス切替回路 11・・・・・データバス 12・・・・・アドレスバス 13・・・・・制御線 14・・・・・バス切替制御回路 15・・・・・フリップ・フロップ 16・・・・・駆動部
FIG. 1 is a block diagram showing one embodiment of the present invention. 1... Main microprocessor 2...
Sub-microprocessor 3.6...Memory 4.7...I10 control circuit 5.8...ROM 9...Shared memory 10.10゛...Bus switching circuit 11... Data bus 12... Address bus 13... Control line 14... Bus switching control circuit 15... Flip-flop 16... Drive unit

Claims (2)

【特許請求の範囲】[Claims] (1)第1のプロセッサ及び第2のプロセッサと、これ
らプロセッサから使用される共用メモリと、この共用メ
モリのバスを上記第1のプロセッサ側と第2のプロセッ
サ側へ選択的に切替接続する切替接続手段と、 上記第1及び第2のプロセッサにてそれぞれ共用メモリ
の特定アドレスに対し特定値の書き込み、読み出しを行
う手段とを有することを特徴とするデータ転送方式。
(1) Switching for selectively connecting the first processor, the second processor, the shared memory used by these processors, and the bus of this shared memory to the first processor side and the second processor side. A data transfer system comprising: a connection means; and a means for writing and reading specific values to and from specific addresses of a shared memory in the first and second processors, respectively.
(2)特許請求の範囲第1項に記載のデータ転送方式に
おいて、 前記切替接続されるバスは、共用メモリのデータバスと
アドレスバスと書き込み読み出しを制御する線であり、
切替接続手段はこれらデータバス、アドレスバス及び書
き込み読み出しを制御する線を、第2のプロセッサから
の制御により第1のプロセッサ側へ切替接続し、また、
第1のプロセッサからの制御により第2のプロセッサ側
へ切替接続することを特徴とするデータ転送方式。
(2) In the data transfer method according to claim 1, the switch-connected bus is a data bus, an address bus, and a line for controlling writing and reading of a shared memory,
The switching connection means switches and connects these data buses, address buses, and lines for controlling write and read operations to the first processor side under control from the second processor, and
A data transfer method characterized by switching connection to a second processor under control from a first processor.
JP61104695A 1986-05-09 1986-05-09 Data transfer system Pending JPS62262170A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61104695A JPS62262170A (en) 1986-05-09 1986-05-09 Data transfer system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61104695A JPS62262170A (en) 1986-05-09 1986-05-09 Data transfer system

Publications (1)

Publication Number Publication Date
JPS62262170A true JPS62262170A (en) 1987-11-14

Family

ID=14387610

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61104695A Pending JPS62262170A (en) 1986-05-09 1986-05-09 Data transfer system

Country Status (1)

Country Link
JP (1) JPS62262170A (en)

Similar Documents

Publication Publication Date Title
JP2886856B2 (en) Redundant bus connection method
JPS62262170A (en) Data transfer system
JPS6269348A (en) Data transfer device
JPH0222748A (en) Non-volatile memory control circuit
JPH02207363A (en) Data transfer system, device controller, and memory controller
JP2821176B2 (en) Information processing device
JPS6217879Y2 (en)
JPS62262169A (en) Data transfer system
JPH04263333A (en) Memory duplication system
JPH02307149A (en) Direct memory access control system
JP2671743B2 (en) Microcomputer
JPS63196968A (en) Input/output controller
JPS59223871A (en) Data transfer system
JPH05334234A (en) High speed dma transferring device
JPH03252854A (en) One bus control system by two processors
JPH02211571A (en) Information processor
JPS62127962A (en) Microcomputer
JPH036762A (en) Direct access method for image memory
JPH02171949A (en) Dma transfer system
JPS6184706A (en) Programmable controller
JPS63104155A (en) Electronic computer
JPH08185370A (en) Microprocessor controller
JPH06149764A (en) Information processor
JPS63304358A (en) Bus control system
JPS63279359A (en) Data transfer device for multi-cpu