JPS62108345A - Data communication circuit - Google Patents

Data communication circuit

Info

Publication number
JPS62108345A
JPS62108345A JP60248011A JP24801185A JPS62108345A JP S62108345 A JPS62108345 A JP S62108345A JP 60248011 A JP60248011 A JP 60248011A JP 24801185 A JP24801185 A JP 24801185A JP S62108345 A JPS62108345 A JP S62108345A
Authority
JP
Japan
Prior art keywords
fifo memory
data
cpu
register
communication circuit
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
JP60248011A
Other languages
Japanese (ja)
Inventor
Hidetaka Yamamizu
山水 英貴
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.)
Fuji Electric Co Ltd
Original Assignee
Fuji Electric Co 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 Fuji Electric Co Ltd filed Critical Fuji Electric Co Ltd
Priority to JP60248011A priority Critical patent/JPS62108345A/en
Publication of JPS62108345A publication Critical patent/JPS62108345A/en
Pending legal-status Critical Current

Links

Landscapes

  • Multi Processors (AREA)
  • Computer And Data Communications (AREA)

Abstract

PURPOSE:To decrease the number of parts of an equipment, and to reduce the burden of a CPU by coupling plural CPUs through a first-in first-out FIFO memory, and providing a means for initializing the FIFO memory in accordance with a command of one CPU. CONSTITUTION:A CPU selects an FIFO memory 3 having necessary and sufficient capacity in accordance with the quantity of data to be delivered, and buffering of the data is executed in the FIFO memory 3. Accordingly, each CPU can execute access to the FIFO memory 3 without having a waiting time. Also, an internal state of the FIFO memory 3 is varied automatically, and its internal state can be known by a full signal F and an empty signal E, therefore, a command register becomes unnecessary. Moreover, in order to initialize the FIFO memory 3, a reset input R which is supplied to an address pointer is supplied to the FIFO memory 3 through a register 4 from the second CPU side.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、複数のcpuを用いて構成される制御システ
ムにおけるCPU間のデータの受渡しを低コストでかつ
CPUの負担を極力軽減させ、しかもまた高いデータ信
頼性を得るようにしたデータ通信回路に関する。
[Detailed Description of the Invention] [Field of Industrial Application] The present invention enables data transfer between CPUs in a control system configured using a plurality of CPUs at low cost and reduces the burden on the CPU as much as possible. The present invention also relates to a data communication circuit that achieves high data reliability.

[従来の技術] CPU間の通信回路として、従来は、たとえば第3図に
示すような通信回路が知られている。ここで、11は送
信側の第1 (:PII 、 12はデータを送信した
ことを通知する送信側コマンドレジスタ、13はデータ
のラッチを行う送信側出力データレジスタ、14は受信
側の状態を調べる送信側ステータスレジスタ、21は受
信側の第2 C’PU 、 22は送信データがあるか
否かを調べる受信側ステータスレジスタ、23はデータ
のラッチを行う受信側入力データレジスタ、24は受信
可能か否かやエラーの有無等を通知する受信側コマンド
レジスタである。
[Prior Art] As a communication circuit between CPUs, a communication circuit as shown in FIG. 3, for example, is conventionally known. Here, 11 is the first (:PII) on the sending side, 12 is the sending side command register that notifies that data has been sent, 13 is the sending side output data register that latches the data, and 14 is the checking state of the receiving side. A transmitting side status register, 21 is the second C'PU on the receiving side, 22 is a receiving side status register that checks whether there is transmission data, 23 is a receiving side input data register that latches data, 24 is whether reception is possible. This is a receiving side command register that notifies whether or not there is an error.

ところがこのような通信回路は、第1および第2CPf
lllおよび21の各々の側に出力データレジスタ13
および入力データレジスタ23を必要とし、さらにデー
タ受渡しのタイミングをとるために送信側コマンドレジ
スタ12および受信側コマンドレジスタ24と受信側ス
テータスレジスタ22および送信側ステータスレジスタ
14の組合せを必要とするので、部品点数が増加し、コ
ストアップや信頼性の低下などを招き、機器の小型化の
面からも好ましくない。
However, in such a communication circuit, the first and second CPf
Output data register 13 on each side of Ill and 21
and an input data register 23, and also requires a combination of the transmitting side command register 12, the receiving side command register 24, the receiving side status register 22, and the transmitting side status register 14 in order to set the timing of data transfer. This increases the number of points, leading to increased costs and decreased reliability, which is also unfavorable from the standpoint of miniaturizing equipment.

さらに、各(:PIlllおよび21は、出力データレ
ジスタ13および入力データレジスタ23にアクセス可
能か否かを送信側ステータスレジスタ14および受信側
ステータスレジスタ22の状態を見ながら判断しなけれ
ばならないため、通信のために要するCPUタイムが大
きく、ソフトウェアのオーバヘッドが増大するとともに
、通信速度を低下させるという欠点があった。
Furthermore, each (:PIll and 21 must judge whether or not the output data register 13 and the input data register 23 can be accessed while checking the states of the transmitting side status register 14 and the receiving side status register 22, so the communication This has disadvantages in that it requires a large amount of CPU time, increases software overhead, and reduces communication speed.

[発明が解決しようとする問題点] そこで、本発明の目的は、CPU間のデータ受渡しにお
いて、機器の小型化を図るために部品点数を減らし、し
かも専用の通信用プロセサを設ける必要がないように、
データ通信に対するCPUの負担を軽減させることので
きるデータ通信回路を提供することにある。
[Problems to be Solved by the Invention] Therefore, the purpose of the present invention is to reduce the number of parts in data exchange between CPUs in order to downsize the device, and to eliminate the need to provide a dedicated communication processor. To,
An object of the present invention is to provide a data communication circuit that can reduce the burden on a CPU for data communication.

[問題点を解決するための手段] このような目的を達成するために、本発明は、複数個の
CPU間でのデータの授受を行うデータ通信回路におい
て、複数個のCPU間を、データを一時的に蓄えること
のできるファーストイン・ファーストアウトメモリを介
して結合し、複数個のCPUのいずれからの指令に応じ
てファーストイン・ファーストアウトメモリを初期化す
るためのリセット手段を備えたことを特徴とする。
[Means for Solving the Problems] In order to achieve such an object, the present invention provides a data communication circuit that transmits and receives data between a plurality of CPUs. The first-in/first-out memory is connected via a first-in/first-out memory that can be temporarily stored, and includes a reset means for initializing the first-in/first-out memory in response to a command from any one of the plurality of CPUs. Features.

[作 用] 本発明では、データ受渡し用レジスタとしてリード/ラ
イトを非同期で行えるファーストイン・ファーストアウ
トメモリ、すなわち、FIFOメモリを使用し、両CP
Uからのアクセスの競合を防止するためのステータスレ
ジスタおよびコマンドレジスタを簡略化することによっ
て、使用部品を削減し、かつそれぞれのCPt1は、相
手側CPUの状態如何に拘らずに都合の良いタイミング
でデータのアクセスを行うことができる。
[Function] In the present invention, a first-in/first-out memory, that is, a FIFO memory, which can be read/written asynchronously, is used as a data transfer register, and both CPUs
By simplifying the status register and command register to prevent access conflicts from U, the number of parts used is reduced, and each CPt1 can be used at a convenient timing regardless of the state of the other CPU. Data can be accessed.

本発明によれば、通信に必要なコマンド信号およびステ
ータス信号の生成をFIFOメモリに委ねることができ
るため、通信回路の部品点数を大幅に削減することがで
き、あわせて、コストの低減。
According to the present invention, since the generation of command signals and status signals necessary for communication can be left to the FIFO memory, the number of components in the communication circuit can be significantly reduced, and costs can also be reduced.

装置の小型化および機器信頼性の向上などの効果が得ら
れる。
Effects such as miniaturization of the device and improvement in device reliability can be obtained.

[実施例コ 以下に図面を参照して本発明の詳細な説明する。[Example code] The present invention will be described in detail below with reference to the drawings.

本発明の一実施例を第1図に示す。ここで、第t cp
u itおよび第2CPt121との間のデータレジス
タとして、データを一時的に蓄えることのできるファー
ストイン・ファーストアウトメモリ、すなわちFIFO
メモリ3を配置する。第t CPU 11はFIFOメ
モリ3がフル状態でなければいつでもデータをFIFO
メモリ3に書込むことができる。第2CPII21はF
IFOメモリ3がEmp tyでなければエンプティ状
態になるまで続けてデータを読出すことができる。
An embodiment of the present invention is shown in FIG. Here, the t cp
As a data register between u it and the second CPt 121, there is a first-in/first-out memory that can temporarily store data, that is, a FIFO.
Place memory 3. The t-th CPU 11 transfers data to the FIFO at any time unless the FIFO memory 3 is full.
It can be written to memory 3. 2nd CPII21 is F
If the IFO memory 3 is not empty, data can be read out continuously until it becomes empty.

受渡すデータ量に応じて必要十分なる容量のFIFOメ
モリ3を選択することにより、FIFOメモリ3内でデ
ータのバッファリングが行われ、各CPUはほとんど待
ち時間なしにFIFOメモリ3にアクセスすることがで
きる。また、FIFOメモリ3にリード/ライトするこ
とによりFIFOメモリ3の内部状態が自動的に変化し
、フル信号Fおよびエンプティ信号Eによりその内部状
態を知ることができるので、コマンドレジスタは不要と
なる。
By selecting a FIFO memory 3 with a necessary and sufficient capacity according to the amount of data to be transferred, data is buffered within the FIFO memory 3, and each CPU can access the FIFO memory 3 with almost no waiting time. can. Further, the internal state of the FIFO memory 3 automatically changes by reading/writing to the FIFO memory 3, and the internal state can be known from the full signal F and the empty signal E, so a command register is not required.

さらに、FIFOメモリ3の内部状態を初期化するため
に、そのアドレスポインタに供給するリセット人力Rは
、第2CPLI21側から制御レジスタ4を介してFI
FOメモリ3に供給する。これにより、電源投入時およ
び通信エラー発生時にFIFOメモリ3内のアドレスポ
インタの初期化を行うことができる。
Furthermore, in order to initialize the internal state of the FIFO memory 3, the reset human power R supplied to the address pointer is transmitted from the second CPLI 21 side to the FIFO memory 3 via the control register 4.
Supplied to FO memory 3. Thereby, the address pointer in the FIFO memory 3 can be initialized when the power is turned on and when a communication error occurs.

第2図は本発明の他の実施例を示すもので、本例では、
第1図と相違して、複数個のFIFOメモリ、たとえば
第1 FIFOメモリ31および第2 FIFOメモリ
32を並列に設けることにより、データの幅(ビット数
)を大きくする。これにより、1命令で扱えるデータの
サイズを大きくすることができ、16ビツトや32ビツ
トのCPUに対しても容易に接続することができる。し
かもまた、本例では、データにチェックコードを付けて
送信し、受信側でエラーチェックを行い、その結果を制
御レジスタ4からステータスレジスタ5を介して第1 
CPt111に通知することにより、一層信頼性の高い
データ通信およびきめ細かいエラー処理が可能となる。
FIG. 2 shows another embodiment of the present invention, in which:
Unlike FIG. 1, the data width (number of bits) is increased by providing a plurality of FIFO memories, for example, a first FIFO memory 31 and a second FIFO memory 32 in parallel. As a result, the size of data that can be handled by one instruction can be increased, and it can be easily connected to a 16-bit or 32-bit CPU. Moreover, in this example, data is sent with a check code attached, an error check is performed on the receiving side, and the result is sent from the control register 4 to the status register 5 to the first
By notifying the CPt 111, more reliable data communication and detailed error handling become possible.

[発明の効果] 以上から明らかなように、本発明によれば、通信に必要
なコマンド信号およびステータス信号の生成をFIFO
メモリに委ねることができるため、通信回路の部品点数
を大幅に削減することができ、あわせて、コストの低減
、装置の小型化および機器信頼性の向上などの効果が得
られる。
[Effects of the Invention] As is clear from the above, according to the present invention, command signals and status signals necessary for communication are generated using FIFO.
Since the communication circuit can be left to the memory, the number of components in the communication circuit can be significantly reduced, and effects such as cost reduction, miniaturization of the device, and improvement in device reliability can be obtained.

さらに、FIFOメモリのバッファリング機能を利用し
て、それぞれのCPUが都合のよいタイミングで複数語
のデータをまとめて書込み、または読出すことができる
ため、相手側のCPUの動作を妨げることがほとんどな
くなる。これにより各CPUの通信処理に対するオーバ
ヘッドを抑えることができ、各cpuは本来の制御処理
により多くの時間を割くことが可能となる利点もある。
Furthermore, by using the buffering function of FIFO memory, each CPU can write or read multiple words of data all at once at a convenient timing, so it rarely interferes with the operation of the other CPU. It disappears. This has the advantage that the overhead for communication processing by each CPU can be suppressed, and each CPU can spend more time on its original control processing.

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

第1図は本発明の一実施例を示すブロック線図、 第2図は本発明の他の実施例を示すブロック線図、 第3図は従来のCPU間データ通信回路を示すブロック
線図である。 3・・・FIFOメモリ、 4・・・FIFO制御レジスタ、 5・・・ステータスレジスタ、 11 ・・・第1 CPII 。 12・・・送信側コマンドレジスタ、 13・・・送信側データレジスタ、 14・・・送信側ステータスレジスタ、21・・・第2
CPII。 22・・・受信側ステータスレジスタ、23・・・受信
側データレジスタ、 24・・・受信側コマンドレジスタ。 A\づ%’s月大方引う11のフ゛′ロツ2矛阜図紐8
月大方れ多りのフ゛ロツ2緯5り 第2図 ネも來イ列1のブ°o−/2祿図 第3図
Fig. 1 is a block diagram showing one embodiment of the present invention, Fig. 2 is a block diagram showing another embodiment of the invention, and Fig. 3 is a block diagram showing a conventional inter-CPU data communication circuit. be. 3...FIFO memory, 4...FIFO control register, 5...Status register, 11...1st CPII. 12... Sending side command register, 13... Sending side data register, 14... Sending side status register, 21... Second
C.P.II. 22...Receiving side status register, 23...Receiving side data register, 24...Receiving side command register. A\zu%'s month is mostly drawn 11 figures 8
The moon has a lot of filth, 2nd latitude, 5th figure, 2nd figure.

Claims (1)

【特許請求の範囲】[Claims] 複数個のCPU間でのデータの授受を行うデータ通信回
路において、前記複数個のCPU間を、データを一時的
に蓄えることのできるファーストイン・ファーストアウ
トメモリを介して結合し、前記複数個のCPUのいずれ
かからの指令に応じて前記ファーストイン・ファースト
アウトメモリを初期化するためのリセット手段を備えた
ことを特徴とするデータ通信回路。
In a data communication circuit that sends and receives data between a plurality of CPUs, the plurality of CPUs are coupled via a first-in/first-out memory that can temporarily store data, and the plurality of CPUs are connected via a first-in/first-out memory that can temporarily store data. A data communication circuit comprising a reset means for initializing the first-in/first-out memory in response to a command from one of the CPUs.
JP60248011A 1985-11-07 1985-11-07 Data communication circuit Pending JPS62108345A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60248011A JPS62108345A (en) 1985-11-07 1985-11-07 Data communication circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60248011A JPS62108345A (en) 1985-11-07 1985-11-07 Data communication circuit

Publications (1)

Publication Number Publication Date
JPS62108345A true JPS62108345A (en) 1987-05-19

Family

ID=17171864

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60248011A Pending JPS62108345A (en) 1985-11-07 1985-11-07 Data communication circuit

Country Status (1)

Country Link
JP (1) JPS62108345A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7930523B2 (en) 2005-11-11 2011-04-19 Denso Corporation Inter-CPU data transfer device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7930523B2 (en) 2005-11-11 2011-04-19 Denso Corporation Inter-CPU data transfer device

Similar Documents

Publication Publication Date Title
US4860244A (en) Buffer system for input/output portion of digital data processing system
US5093780A (en) Inter-processor transmission system having data link which automatically and periodically reads and writes the transfer data
US4419728A (en) Channel interface circuit providing virtual channel number translation and direct memory access
US4649512A (en) Interface circuit having a shift register inserted between a data transmission unit and a data reception unit
US5592629A (en) Apparatus and method for matching data rates to transfer data between two asynchronous devices
US20090024776A1 (en) High data rate serial peripheral interface
US5068785A (en) Bus control for small computer system interface with transfer indication preceding final word transfer and buffer empty indication preceding receipt acknowledgement
US4779190A (en) Communication bus interface
US7035956B2 (en) Transmission control circuit, reception control circuit, communications control circuit, and communications control unit
US5944788A (en) Message transfer system and control method for multiple sending and receiving modules in a network supporting hardware and software emulated modules
US6898659B2 (en) Interface device having variable data transfer mode and operation method thereof
EP0187813B1 (en) High speed data transfer between first and second processing means
EP0267974B1 (en) Control interface for transferring data between a data processing unit and input/output devices
US6141741A (en) Computer system with a shared address bus and pipelined write operations
US5754802A (en) Increasing data transfer efficiency for a read operation in a non-split transaction bus environment by substituting a write operation for the read operation
JPS58109960A (en) Data processing system
JPS62108345A (en) Data communication circuit
US6865638B1 (en) Apparatus and method for transferring multi-byte words in a fly-by DMA operation
JPH0326583B2 (en)
JPH1063617A (en) Serial communication device
JP2505298B2 (en) Variable bus width designation method and variable bus width information reception method in split bus
JPS61166666A (en) Information processing system
JPH0115100B2 (en)
JPH06105922B2 (en) Communication control device
JPS60195657A (en) Data processing system