JPH03219359A - Interface circuit - Google Patents
Interface circuitInfo
- Publication number
- JPH03219359A JPH03219359A JP1589790A JP1589790A JPH03219359A JP H03219359 A JPH03219359 A JP H03219359A JP 1589790 A JP1589790 A JP 1589790A JP 1589790 A JP1589790 A JP 1589790A JP H03219359 A JPH03219359 A JP H03219359A
- Authority
- JP
- Japan
- Prior art keywords
- data
- cpu
- memory
- square wave
- end signal
- 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
Links
- 230000015654 memory Effects 0.000 claims abstract description 22
- 230000004044 response Effects 0.000 claims description 4
- 230000009977 dual effect Effects 0.000 abstract description 17
- 230000005540 biological transmission Effects 0.000 abstract description 13
- 238000010586 diagram Methods 0.000 description 2
- 230000003111 delayed effect Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000000737 periodic effect Effects 0.000 description 1
Landscapes
- Multi Processors (AREA)
Abstract
Description
【発明の詳細な説明】
技術分野
本発明はインタフェース回路に関し、特に020間のデ
ータ転送で用いられるインタフェース回路に関する。DETAILED DESCRIPTION OF THE INVENTION Technical Field The present invention relates to an interface circuit, and particularly to an interface circuit used for data transfer between 020 and 020.
従来技術
従来、この種のインタフェース回路においては、CPU
間のデータ転送がデュアルポートRAM(ランダムアク
セスメモリ)を介して行われており、相手のCPUに対
してデータを送信するときのデュアルポートRAMへの
データの書込み、および相手のCPUからのデータを受
信するときのデュアルポートRAMからのデータの読込
みはCPUによるメモリの転送命令で行われていた。Prior Art Conventionally, in this type of interface circuit, the CPU
Data transfer between the two is done via dual-port RAM (random access memory), and data is written to the dual-port RAM when sending data to the other CPU, and data is transferred from the other CPU. Reading of data from the dual port RAM during reception was performed by a memory transfer command from the CPU.
このような従来のインタフェース回路では、デュアルポ
ートRAMへのデータの書込みおよび読込みがCPUに
よるメモリの転送命令で行われていたので、CPU間の
データ転送のデータ数が多くなった場合、データの送受
信に時間がかかるという欠点かある。In such conventional interface circuits, writing and reading data to and from the dual port RAM was performed using memory transfer instructions from the CPU, so when the number of data transferred between CPUs increases, data transmission and reception may be delayed. The disadvantage is that it takes time.
発明の目的
本発明は上記のような従来のものの欠点を除去すべくな
されたもので、CPU間のデータ転送のデータ数か多く
なった場合でもデータの送受信に要する時間を減少させ
ることができるインタフェース回路の提供を目的とする
。Purpose of the Invention The present invention has been made to eliminate the drawbacks of the conventional ones as described above, and provides an interface that can reduce the time required for data transmission and reception even when the number of data transferred between CPUs increases. The purpose is to provide circuits.
発明の構成
本発明によるインタフェース回路は、第1および第2の
中央処理装置に共通に設けられた記憶手段を介して前記
第1および第2の中央処理装置各のデータ転送を行うイ
ンタフェース回路であって、前記第1および第2の中央
処理装置名々に対応して、前記第1および第2の中央処
理装置からの指令に応じて前記記憶手段に対してダイレ
クトメモリアクセスを行うよう制御する制御手段を設け
たことを特徴とする。Structure of the Invention The interface circuit according to the present invention is an interface circuit that transfers data between the first and second central processing units through storage means provided in common to the first and second central processing units. control to perform direct memory access to the storage means in response to commands from the first and second central processing units, corresponding to the first and second central processing units; It is characterized by having a means.
実施例
次に、本発明の一実施例について図面を参照して説明す
る。Embodiment Next, an embodiment of the present invention will be described with reference to the drawings.
第1図は本発明の一実施例の構成を示すブロック図であ
る。図において、CPU (中央処理装置)]、2の間
にはインタフェース用のデュアルポートRAM7が設け
られており、このデュアルポートRAM7に対するデー
タの読込み書込みはDMA (Direct Memo
ry Access)制御回路5.6の制御により行わ
れる。FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention. In the figure, a dual port RAM 7 for an interface is provided between the CPU (Central Processing Unit) and 2, and reading and writing of data to and from the dual port RAM 7 is performed using DMA (Direct Memo
ry Access) control circuit 5.6.
CPUメモリ34は夫々アドレスバスaおよびデータバ
スbを介してCPUI、2およびDMA制御回路5.6
に接続されており、またDMA制御回路5,6は夫々ア
ドレスバスaおよびデータバスbを介してデュアルポー
)RAM7に接続されている。The CPU memory 34 is connected to the CPU I, 2 and the DMA control circuit 5.6 via address bus a and data bus b, respectively.
The DMA control circuits 5 and 6 are connected to a dual-port RAM 7 via an address bus a and a data bus b, respectively.
DMA制御回路5.6のDMAリクエスト端子には方形
波ジェネレータ8,9からの周期的な方形波入力信号が
入力され、チャネル1の方形波入力信号をCPUメモリ
3,4からデュアルポートRAM7へのデータの書込み
に使用し、チャネル2の方形波入力信号をデュアルポー
トRAM7からCPUメモリ3,4へのデータの書込み
に使用する。Periodic square wave input signals from square wave generators 8 and 9 are input to the DMA request terminal of the DMA control circuit 5.6, and the square wave input signal of channel 1 is sent from the CPU memories 3 and 4 to the dual port RAM 7. The square wave input signal of channel 2 is used to write data from the dual port RAM 7 to the CPU memories 3 and 4.
一方、チャネル1のDMA終了信号はデータ送信終了信
号として相手のCPU2,1および方形波ジェネレータ
8.9に出力され、チャネル2のDMA終了信号はデー
タ受信終了信号としてCPU1,2および方形波ジェネ
レータ8.9に出力される。On the other hand, the DMA end signal of channel 1 is output as a data transmission end signal to the other party's CPUs 2, 1 and square wave generator 8.9, and the DMA end signal of channel 2 is output as a data reception end signal to CPUs 1, 2 and square wave generator 8. .9 is output.
また、チャネル1およびチャネル2はともにデマンドリ
リースモード、メモリツーメモリ (meIl。Also, both channel 1 and channel 2 are in demand release mode, memory-to-memory (meIl).
ry to memory)の設定とする。ry to memory).
すなわち、チャネル1の方形波入力信号およびチャネル
2の方形波入力信号がハイの場合に、アドレスバスaお
よびデータバスbを介してCPUメモリ3,4とデュア
ルポートRAM7との間のデータ転送を行い、チャネル
1の方形波入力信号およびチャネル2の方形波入力信号
がローの場合に、CPU1.2がアドレスバスaおよび
データバスbを使用して夫々処理動作を行うようになっ
ている。That is, when the square wave input signal of channel 1 and the square wave input signal of channel 2 are high, data is transferred between the CPU memories 3 and 4 and the dual port RAM 7 via the address bus a and the data bus b. , when the square wave input signal of channel 1 and the square wave input signal of channel 2 are low, the CPU 1.2 uses address bus a and data bus b to perform processing operations, respectively.
次に、第1図を用いて本発明の一実施例の動作について
説明する。Next, the operation of one embodiment of the present invention will be explained using FIG.
まず、CPUIからCPU2にデータを送信する場合、
CPUIはCPUメモリ3にセットした送信用のデータ
を、DMA制御回路5のメモリツーメモリ動作によりデ
ュアルポートRAM7に転送する。First, when sending data from CPUUI to CPU2,
The CPU transfers the transmission data set in the CPU memory 3 to the dual port RAM 7 by the memory-to-memory operation of the DMA control circuit 5.
このとき、CPU1か方形波ジェネレータ8に対してチ
ャネル1への方形波入力信号の出力を指示するので、D
MA制御回路5のチャネル1には方形波ジェネレータ8
からの方形波人力信号が人力され、DMA制御回路5で
はこの方形波入力信号をイネーブルとしてメモリツーメ
モリ動作が起動され、CPUメモリ3にセットした送信
用のデータをデュアルポートRAM7に転送する。At this time, the CPU 1 or the square wave generator 8 is instructed to output the square wave input signal to channel 1, so D
A square wave generator 8 is connected to channel 1 of the MA control circuit 5.
A square wave input signal is input manually, and the DMA control circuit 5 activates the memory-to-memory operation by enabling this square wave input signal, and transfers the transmission data set in the CPU memory 3 to the dual port RAM 7.
CPUメモリ3にセットされた送信用のデータがデュア
ルポートRAM7に転送されると、DMA制御回路5は
チャネル1のDMA終了信号をデータ送信終了信号とし
てCPU2および方形波ジェネレータ8に出力する。When the data for transmission set in the CPU memory 3 is transferred to the dual port RAM 7, the DMA control circuit 5 outputs the DMA end signal of channel 1 to the CPU 2 and the square wave generator 8 as a data transmission end signal.
方形波ジェネレータ8てはDMA制御回路5からのデー
タ送信終了信号をチャネル1への方形波入力信号の出力
に対するディスエーブル信号として使用する。The square wave generator 8 uses the data transmission end signal from the DMA control circuit 5 as a disable signal for outputting the square wave input signal to channel 1.
一方、CPU2ではDMA制御回路5からのデータ送信
終了信号を割込み信号として使用し、CPUメモリ3か
らデュアルポートRAM7に書込まれたデータの読込み
を行う。On the other hand, the CPU 2 uses the data transmission end signal from the DMA control circuit 5 as an interrupt signal to read data written from the CPU memory 3 to the dual port RAM 7.
すなわち、CPU2はデュアルポートRAM7に書込ま
れたデータを、DMA制御回路6のメモリツーメモリ動
作によりCPUメモリ4に転送する。That is, the CPU 2 transfers the data written in the dual port RAM 7 to the CPU memory 4 by the memory-to-memory operation of the DMA control circuit 6.
このとき、CPIJ2が方形波ジェネレータ9に対して
チャネル2への方形波入力信号の出力を指示するので、
DMA制御回路6のチャネル2には方形波ジェネレータ
9からの方形波入力信号が入力され、DMA制御回路6
ではこの方形波人力信号をイネーブルとしてメモリツー
メモリ動作が起動され、デュアルポートRAM7に書込
まれたデータをCPUメモリ4に転送する。At this time, CPIJ2 instructs square wave generator 9 to output a square wave input signal to channel 2, so
A square wave input signal from a square wave generator 9 is input to channel 2 of the DMA control circuit 6, and the DMA control circuit 6 receives a square wave input signal from a square wave generator 9.
Then, by enabling this square wave human input signal, a memory-to-memory operation is started, and the data written in the dual port RAM 7 is transferred to the CPU memory 4.
デュアルポートRAM7に書込まれたデータがCPUメ
モリ4に転送されると、DMA制御回路6はチャネル2
のDMA終了信号をデータ受信終了信号としてCPU2
および方形波ジェネレータ9に出力する。When the data written in the dual port RAM 7 is transferred to the CPU memory 4, the DMA control circuit 6
The CPU 2 uses the DMA end signal as the data reception end signal.
and output to the square wave generator 9.
方形波ジェネレータ9てはDMA制御回路6からのデー
タ受信終了信号をチャネル2への方形波入力信号の出力
に対するディスエーブル信号として使用する。The square wave generator 9 uses the data reception end signal from the DMA control circuit 6 as a disable signal for outputting the square wave input signal to channel 2.
これにより、CPUIからCPtT2にデータが送信さ
れるので、CPUI、2間のデータ転送のデータ数が多
くなった場合でもデータの送受信に要する時間を減少さ
せることができる。As a result, data is transmitted from the CPUI to the CPtT2, so even if the amount of data transferred between the CPUI and the CPU2 increases, the time required for data transmission and reception can be reduced.
CPU2からCPUIにデータを送信する場合も、上述
のCPUIからCPU2へのデータの送信の処理動作と
同様にしてデータを送信することができる。When transmitting data from the CPU 2 to the CPU I, the data can be transmitted in the same manner as the processing operation for transmitting data from the CPU I to the CPU 2 described above.
このように、CPUI、2各々に対応して、CPU1,
2からの指令に応じてデュアルポートRAM7に対して
ダイレクトメモリアクセスを行うよう制御するDMA制
御回路5,6を設けるようにすることによって、CPU
I、2間のインタフェースにおいてデータ数が多くなっ
た場合でもデータの送受信に要する時間を減少させるこ
とができる。In this way, corresponding to CPUI, 2, CPU1,
By providing DMA control circuits 5 and 6 that control direct memory access to the dual port RAM 7 in response to commands from the CPU 2,
Even if the amount of data increases at the interface between I and 2, the time required for data transmission and reception can be reduced.
発明の詳細
な説明したように本発明によれば、第コおよび第2の中
央処理装置からの指令に応じて、第1および第2の中央
処理装置に共通に設けられ、これら中央処理装置各のデ
ータ転送を行うための記憶手段に対してダイレクトメモ
リアクセスを行うよう制御する制御手段を第1および第
2の中央処理装置各々に対応して設けるようにすること
によって、これら中央処理装置各のデータ転送のデータ
数が多くなった場合でもデータの送受信に要する時間を
減少させることができるという効果がある。DETAILED DESCRIPTION OF THE INVENTION According to the present invention, in response to instructions from the first and second central processing units, the first and second central processing units are provided in common, and each of these central processing units By providing control means corresponding to each of the first and second central processing units to control direct memory access to the storage means for data transfer, the control means for each of these central processing units can be Even when the amount of data to be transferred increases, there is an effect that the time required for data transmission and reception can be reduced.
第1図は本発明の一実施例の構成を示すブロック図であ
る。
主要部分の符号の説明
12・・・・CPU
34・・・・・・CPUメモリ
56・・ ・DMA制御回路
7・・・・デュアルポートRAM
89・・・方形波ジェネレータFIG. 1 is a block diagram showing the configuration of an embodiment of the present invention. Explanation of symbols of main parts 12... CPU 34... CPU memory 56... DMA control circuit 7... Dual port RAM 89... Square wave generator
Claims (1)
た記憶手段を介して前記第1および第2の中央処理装置
間のデータ転送を行うインタフェース回路であって、前
記第1および第2の中央処理装置各々に対応して、前記
第1および第2の中央処理装置からの指令に応じて前記
記憶手段に対してダイレクトメモリアクセスを行うよう
制御する制御手段を設けたことを特徴とするインタフェ
ース回路。(1) An interface circuit that transfers data between the first and second central processing units via a storage means provided in common to the first and second central processing units, A control means is provided corresponding to each of the two central processing units for controlling direct memory access to the storage means in response to commands from the first and second central processing units. interface circuit.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1589790A JPH03219359A (en) | 1990-01-25 | 1990-01-25 | Interface circuit |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1589790A JPH03219359A (en) | 1990-01-25 | 1990-01-25 | Interface circuit |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH03219359A true JPH03219359A (en) | 1991-09-26 |
Family
ID=11901571
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP1589790A Pending JPH03219359A (en) | 1990-01-25 | 1990-01-25 | Interface circuit |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH03219359A (en) |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS60173655A (en) * | 1984-01-27 | 1985-09-07 | Nippon Telegr & Teleph Corp <Ntt> | Memory system of multiprocessor |
| JPS63175964A (en) * | 1987-01-16 | 1988-07-20 | Hitachi Ltd | shared memory |
| JPS63245755A (en) * | 1987-04-01 | 1988-10-12 | Ricoh Co Ltd | I/O device controller |
| JPS6470993A (en) * | 1987-09-10 | 1989-03-16 | Nec Corp | Dual port ram |
-
1990
- 1990-01-25 JP JP1589790A patent/JPH03219359A/en active Pending
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS60173655A (en) * | 1984-01-27 | 1985-09-07 | Nippon Telegr & Teleph Corp <Ntt> | Memory system of multiprocessor |
| JPS63175964A (en) * | 1987-01-16 | 1988-07-20 | Hitachi Ltd | shared memory |
| JPS63245755A (en) * | 1987-04-01 | 1988-10-12 | Ricoh Co Ltd | I/O device controller |
| JPS6470993A (en) * | 1987-09-10 | 1989-03-16 | Nec Corp | Dual port ram |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP2962787B2 (en) | Communication control method | |
| JPH03219359A (en) | Interface circuit | |
| JPH0343804A (en) | Sequence controller | |
| JPH0238968B2 (en) | ||
| JP3079956B2 (en) | Printer | |
| JPS6162961A (en) | Input/ouput device | |
| JP2583586B2 (en) | Bus control method | |
| JPS6130300B2 (en) | ||
| JPS6217879Y2 (en) | ||
| JPS59223871A (en) | Data transfer system | |
| JP2554423Y2 (en) | Memory controller | |
| JPS61233857A (en) | data transfer device | |
| JPS61271555A (en) | Transferring system for direct memory access | |
| JP2821176B2 (en) | Information processing device | |
| JPS5844426Y2 (en) | Inter-processor information transfer device | |
| JPH04263333A (en) | Memory duplication system | |
| JPH02133856A (en) | Data transfer device | |
| JPH05265923A (en) | Data transfer equipment | |
| JPH0535693A (en) | Data transfer device | |
| JPS63192152A (en) | Data transfer system | |
| JPS58213336A (en) | Communication controller | |
| JPS63279359A (en) | Data transfer device for multi-cpu | |
| JPH03167648A (en) | Direct memory access controller | |
| JPH08185370A (en) | Microprocessor controller | |
| JPH0756860A (en) | Multi-cpu system |