JPH03282669A - Inter-cpu interface circuit - Google Patents
Inter-cpu interface circuitInfo
- Publication number
- JPH03282669A JPH03282669A JP8327390A JP8327390A JPH03282669A JP H03282669 A JPH03282669 A JP H03282669A JP 8327390 A JP8327390 A JP 8327390A JP 8327390 A JP8327390 A JP 8327390A JP H03282669 A JPH03282669 A JP H03282669A
- Authority
- JP
- Japan
- Prior art keywords
- data
- cpu
- transfer
- status
- register
- 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
- 239000013256 coordination polymer Substances 0.000 claims description 5
- 238000010586 diagram Methods 0.000 description 6
- 238000000034 method Methods 0.000 description 5
- 230000002457 bidirectional effect Effects 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 230000002159 abnormal effect Effects 0.000 description 1
Landscapes
- Multi Processors (AREA)
Abstract
Description
【発明の詳細な説明】
[産業上の利用分野〕
この発明は、CPU間のデータ転送を行なうCPU間イ
ンターフェイス回路するものである。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an inter-CPU interface circuit that transfers data between CPUs.
従来、CPU間のデータ転送の方式としては、FIFO
(1?1rsj−il First−out)を使用す
る方式やラッチを使用する方式等が提案されている。Conventionally, FIFO was used as a method for data transfer between CPUs.
A method using (1?1rsj-il First-out), a method using a latch, etc. have been proposed.
第4回は例えば、FIFOを使用する方式を示す図であ
り、図において、1はCPUI、2はCPUII、3は
FIFO,4はFIFO3の入出力を制御するFTFO
制御回路である。The fourth part is a diagram showing a method using FIFO, for example, in the diagram, 1 is CPUUI, 2 is CPUII, 3 is FIFO, and 4 is FTFO that controls the input/output of FIFO3.
It is a control circuit.
また、第5図は例えば特開昭58−182776号公報
に示された、ランチを使用する従来のCPU間インター
フェイス回路す図であり、図において、5はラッチ、6
はラッチ5の読み書きを制御するラッチ制御回路である
。Further, FIG. 5 is a diagram of a conventional CPU-to-CPU interface circuit using a launch, as shown in, for example, Japanese Patent Laid-Open No. 58-182776. In the figure, 5 is a latch, 6
is a latch control circuit that controls reading and writing of the latch 5.
次に動作について説明する。Next, the operation will be explained.
第4図において、CPUIIはF I FO3がFUL
Lかどうかをセンスしながら、FIFO3に転送データ
を書き込む。この間、CPUII 2がFIFO3をア
クセスしないように、CPUlI2に対してFIFO制
御回路4からBUSY信号を出しておく。CPUII2
はBUSY信号をセンスしてBUSY信号が解除される
と、F r FO3に書き込まれた転送データの読込み
を開始する。In Figure 4, CPU II is F I FO3 is FUL
Transfer data is written to FIFO3 while sensing whether it is low. During this time, the FIFO control circuit 4 outputs a BUSY signal to the CPU II 2 so that the CPU II 2 does not access the FIFO 3. CPUII2
senses the BUSY signal and, when the BUSY signal is released, starts reading the transfer data written to F r FO3.
CPUlI2は、FIFO3がEMPTYかどうかをセ
ンスしながらデータを読込み、E M I) T Yに
なったところで読込みを終了する。FIFO!lJ御回
路4ばCPUII 2がデータ読込みの間、CPUT1
に対してBUSY信号を出し、CPUIIがFIFOに
アクセスするのを禁止する。The CPU 2 reads data while sensing whether the FIFO 3 is EMPTY, and ends the reading when the FIFO 3 becomes EMPTY. FIFO! While CPU II 2 is reading data, CPU II control circuit 4
It issues a BUSY signal to the CPU II and prohibits it from accessing the FIFO.
また、第5図において、CPU11はある固定数個の転
送データをラッチ5に書き込む。この時、ラッチ制御回
路6はCPUIIに対してWAIT信号を出して、ラッ
チ5の書き込みを禁止し、方CPUlI2に対しては、
READY信号を出してラッチ5のデータの読込みを許
可する。CPUII2が一ヒ記固定数個の転送データを
読み込んで、1サイクルの終了である。固定数個基」−
のデータを転送するためには、このサイクルを繰り返す
ことになる。Further, in FIG. 5, the CPU 11 writes a fixed number of transfer data into the latch 5. At this time, the latch control circuit 6 issues a WAIT signal to the CPU II to prohibit writing to the latch 5, and
A READY signal is issued to permit reading of data from latch 5. One cycle ends when the CPU II 2 reads a fixed number of transfer data. Fixed number group”−
This cycle will be repeated in order to transfer data.
[発明が解決しようとする課題〕
従来のCPU間インターフェイス以上のように構成され
ているので、次のような問題点があった。[Problems to be Solved by the Invention] Since the interface between CPUs is configured as described above, there are the following problems.
■ 第4図の回路においては、F U L L E
MPTY、BUS¥信号を常時センスする必要があり、
CPUの負荷が大きくなる。■ In the circuit shown in Figure 4, F U L L E
It is necessary to constantly sense the MPTY and BUS\ signals.
CPU load increases.
■ 第5図の回路においては、データ数が固定であり、
データ数が可変であるようなデータ転送を行えない。■ In the circuit shown in Figure 5, the number of data is fixed,
Data transfer where the number of data is variable cannot be performed.
■ 第4図、第5図ともに、送り側のCP U 1がパ
リテイ・エラー等のデータ転送のステータスを知ること
ができない。(2) In both FIGS. 4 and 5, the CPU 1 on the sending side cannot know the status of data transfer, such as parity errors.
この発明は、上記のような問題点を解消するためになさ
れたもので、CPUに負担をかけることなく、任意の数
の転送データを転送することができるとともに、送り側
のCPU lがデータ転送のステータスを知ることがで
きるCPU間インターフェイス回路ることを目的とする
。This invention was made to solve the above-mentioned problems, and it is possible to transfer an arbitrary number of transfer data without putting a burden on the CPU, and the sending side CPU can also transfer data. The purpose is to create an inter-CPU interface circuit that can know the status of the CPU.
この発明に係るCPU間インターフェイス回路転送デー
タ数を通知するためのレジスタIおよびステータスを通
知するだめのレジスタ■■を設けるとともに、それぞれ
のレジスタに転送データ数およびステータスを書き込む
ことにより、自動的にCPUに対して転送開始および転
送終了の割込が発生するようにしたものである。The CPU-to-CPU interface circuit according to the present invention provides a register I for notifying the number of transferred data and a register for notifying the status, and by writing the number of transferred data and status to each register, the CPU automatically Interrupts for the start and end of transfer are generated for the transfer.
この発明においては、2つのレジスタが、それぞれ転送
データ数とステータスを他方のCP [Jに伝達するよ
うに機能するとともに、転送開始および終了を他方のC
PUに通知するための割込を発生するので、CPUの負
荷を増大させることなく任意の数の転送データを転送で
き、かつ送り側のCPU Iがデータ転送のステータス
を知ることができる。In this invention, two registers each function to transmit the number and status of transferred data to the other CP [J], and also function to transmit the start and end of transfer to the other CP [J].
Since an interrupt is generated to notify the PU, any number of transfer data can be transferred without increasing the load on the CPU, and the sending CPU I can know the status of data transfer.
以下、この発明の一実施例を図について説明する。 An embodiment of the present invention will be described below with reference to the drawings.
第1図は本発明の一実施例によるC P U間インター
フェイス回路を示し、図において、1はCPU1.2は
CPUII、7はこれらのCPUのメモリ空間にマンピ
ングされる転送データを蓄積するメモリ■、8ばこのメ
モリ7に蓄えられたデータ数を示すとともに、CPU1
12に対して割込を発生するメモリ空間にマツピングさ
れたレジスタI、9はデータ転送のステータスを示すと
ともに、CPUIIに対して割込を発生するメモリ空間
にマツピングされたレジスタ■、10はCPUII用の
ローカルRAM、11はCP tJ It 2用のロー
カルRAMである。FIG. 1 shows an inter-CPU interface circuit according to an embodiment of the present invention. In the figure, 1 indicates a CPU II for CPUs 1 and 2, and 7 indicates a memory for storing transfer data to be manipulated in the memory space of these CPUs. , 8 indicates the number of data stored in the memory 7, and also indicates the number of data stored in the memory 7 of the CPU 1.
Register I is mapped to the memory space that generates interrupts for 12, 9 indicates the status of data transfer, and register ■ and 10 are mapped to the memory space that generates interrupts for CPU II. 11 is a local RAM for CP tJ It 2.
次に動作について、第1図および第2図に基づいて説明
する。Next, the operation will be explained based on FIGS. 1 and 2.
CPUIIは転送データをメモリ7に書き込み(ステッ
プS1)、次に転送データ数をレジスタI8に書き込む
(ステップS2)。レジスタI8は転送データ数を書き
込むことによって、転送開始を指示する割込(INTI
)を自動的に発生する。この後、CPUIIは転送終了
の割込(INT2)を受は取るまで、データ転送作業か
ら解放される。The CPU II writes the transfer data to the memory 7 (step S1), and then writes the number of transfer data to the register I8 (step S2). By writing the number of data to be transferred, register I8 generates an interrupt (INTI) that instructs the start of transfer.
) occurs automatically. Thereafter, the CPU II is released from data transfer work until it receives an interrupt (INT2) indicating the end of the transfer.
一方、CPOff2は割込lNTlによってデー夕転送
作業を開始する。まずレジスタI8から転送ワード数を
読込み(ステップS3)、これに従ってメモリ■7から
転送データを全て読み込む(ステップS4)。読込みが
終了すると、データ転送のステータス(パリテイ・エラ
ー等)をレジスタ■9に書き込む(ステップS5)。レ
ジスタ■9はデータ転送のステータス書き込むことによ
って、転送終了を通知する割込(lNT2)を自動的に
発生する。この後、CPUII 2は割込IN′「1を
入力するまで、データ転送作業から解放される。On the other hand, CPoff2 starts data transfer work by interrupt lNTl. First, the number of transfer words is read from register I8 (step S3), and in accordance with this, all transfer data is read from memory 7 (step S4). When the reading is completed, the data transfer status (parity error, etc.) is written to register 9 (step S5). Register 9 automatically generates an interrupt (1NT2) notifying the end of the transfer by writing the data transfer status. After this, the CPU II 2 is released from data transfer work until the interrupt IN'``1'' is input.
次に、割込INT2を受は取ったCPUIIは、レジス
タ■9からステータスを読込み(ステップS6)、正常
であればデータ転送を完了し、異常であればそれに応じ
た処理を行う(ステップS7)なお、メモリ■7 レジ
スタI8 レジスタ■9ばCPUのメモリ空間にマツピ
ングされているため、通常のRAMイメージで読み書き
ができる。Next, the CPU II that received the interrupt INT2 reads the status from register ■9 (step S6), and if it is normal, completes the data transfer, and if it is abnormal, performs the corresponding process (step S7). Note that the memory 7, register I8, and register 9 are mapped to the CPU's memory space, so they can be read and written using a normal RAM image.
なお、上記実施例では、CPUIIからCPUII2へ
のデータ転送について説明したが、同じ回路をもう1つ
用意して、双方向のデータ転送を行ってもよい。In the above embodiment, data transfer from the CPU II to the CPU II 2 has been described, but another same circuit may be prepared to perform bidirectional data transfer.
第3図に双方向データ転送を行う、本発明の他の実施例
を示す。FIG. 3 shows another embodiment of the invention that performs bidirectional data transfer.
図において、12はCPUlI2からCPUIIへの転
送データを蓄積するメモリ■、13は転送データ数を示
すとともにCPUIIに対して転送開始の割込(INT
3)を発生するレジスタ■、14はデータ転送のステー
タスを示すとともにCPUII 2に対して、転送終了
の割込(INT4)を発生ずるレジスタ■である。In the figure, 12 is a memory that stores the data transferred from CPUII2 to CPUII, and 13 is the number of transferred data and an interrupt (INT) to CPUII to start the transfer.
3), the register 14 indicates the status of data transfer and also generates a transfer end interrupt (INT4) to the CPU II 2.
CPUIIからCPUlI2へのデータ転送は、第2図
に示した動作と同しであり、またCPUlI2からCP
UIIへのデータ転送についても、方向が逆になるだけ
で、動作原理は全く同じである。The data transfer from CPUII to CPUII2 is the same as the operation shown in FIG.
Regarding data transfer to the UII, the operating principle is exactly the same, only the direction is reversed.
以上のように、この発明に係るCPU間イフィンタフェ
イス回路れば、転送データ数およびステータスを保持す
るレジスタを設け、転送データ数およびステータスをこ
れらのレジスタに書き込むことにより、自動的に転送開
始、終了を指示する割込を発生するようにしたので、C
PUに負荷をかけることなく、任意の数のデータを転送
することが可能となり、また送信側のCPUが転送ステ
ータスを認識できることにより、確実に転送が行えると
いう効果がある。As described above, the CPU-to-CPU interface circuit according to the present invention includes registers that hold the number of data to be transferred and the status, and by writing the number and status of data to be transferred to these registers, the transfer can be started automatically. Since an interrupt is generated to instruct termination, C
It is possible to transfer any number of data without placing a load on the PU, and since the CPU on the sending side can recognize the transfer status, the transfer can be performed reliably.
【図面の簡単な説明】
第1図は、この発明の一実施例によるCPU間インター
フェイス回路を示す図、第2図は第1図の動作を説明す
るためのフローチャート図、第3図はこの発明の他の実
施例を示す図、第4図および第5図は従来のCPU間イ
ンターフェイス回路を示す図である。
図において、1はCPUI、2はCPUII、3はFI
F○、4はFIFO制御回路、5はラッチ、6はラッチ
制御回路、7はメモリ[8はレジスタ■、9はレジスタ
■、10はCPU I用メモリ、11はCPUII用メ
モリ、12はメモリ■、13はレジスタ■、14はレジ
スタ■である。
なお図中同一符号は同−又は相当部分を示す。
>+−S3図
特開平3−282669 (5)
9134図
し茄τjt/J//TTコ寸口[BRIEF DESCRIPTION OF THE DRAWINGS] FIG. 1 is a diagram showing a CPU-to-CPU interface circuit according to an embodiment of the present invention, FIG. 2 is a flowchart for explaining the operation of FIG. 1, and FIG. 3 is a diagram of the present invention. 4 and 5 are diagrams showing conventional inter-CPU interface circuits. In the figure, 1 is CPUI, 2 is CPUII, and 3 is FI
F○, 4 is FIFO control circuit, 5 is latch, 6 is latch control circuit, 7 is memory [8 is register ■, 9 is register ■, 10 is memory for CPU I, 11 is memory for CPU II, 12 is memory ■ , 13 is a register ■, and 14 is a register ■. Note that the same reference numerals in the figures indicate the same or equivalent parts. >+-S3 figure JP-A-3-282669 (5) 9134 figure Shimato τjt/J//TT ko size
Claims (1)
U I 、CPUIIという)間のデータ転送を行なうCP
U間インターフェイス回路において、このCPU I か
らCPUIIへの転送データを蓄えるメモリと、 このメモリに蓄えられたデータ数を示すとともにCPU
IIに対して、データの読込みを指示するレジスタ I と
、 パリテイ・エラー等のデータ転送のステータスを示すと
ともにデータの読込みが終了したことを知らせるレジス
タIIとを備えたことを特徴とするCPU間インターフェ
イス回路。(1) Two processors 1 and 2 (hereinafter referred to as CP)
CP that performs data transfer between U I and CPU II)
In the U-U interface circuit, there is a memory that stores the data transferred from CPU I to CPU II, and the number of data stored in this memory.
A CPU-to-CPU interface characterized by having a register I that instructs II to read data, and a register II that indicates the status of data transfer such as a parity error and notifies that data reading has been completed. circuit.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP8327390A JPH03282669A (en) | 1990-03-29 | 1990-03-29 | Inter-cpu interface circuit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP8327390A JPH03282669A (en) | 1990-03-29 | 1990-03-29 | Inter-cpu interface circuit |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH03282669A true JPH03282669A (en) | 1991-12-12 |
Family
ID=13797748
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP8327390A Pending JPH03282669A (en) | 1990-03-29 | 1990-03-29 | Inter-cpu interface circuit |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH03282669A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO1999022307A1 (en) * | 1997-10-27 | 1999-05-06 | Mitsubishi Denki Kabushiki Kaisha | Data interface and high-speed communication system using the same |
-
1990
- 1990-03-29 JP JP8327390A patent/JPH03282669A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO1999022307A1 (en) * | 1997-10-27 | 1999-05-06 | Mitsubishi Denki Kabushiki Kaisha | Data interface and high-speed communication system using the same |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US5784712A (en) | Method and apparatus for locally generating addressing information for a memory access | |
US4467447A (en) | Information transferring apparatus | |
US5696989A (en) | Microcomputer equipped with DMA controller allowed to continue to perform data transfer operations even after completion of a current data transfer operation | |
JPS62221057A (en) | Method and apparatus for generating pointer address | |
JPH01237864A (en) | Dma transfer controller | |
JP3703532B2 (en) | Computer system with multiplexed address bus | |
JPH03282669A (en) | Inter-cpu interface circuit | |
US6134642A (en) | Direct memory access (DMA) data transfer requiring no processor DMA support | |
JP2821176B2 (en) | Information processing device | |
JP2594611B2 (en) | DMA transfer control device | |
JPS599324Y2 (en) | multiprocessor device | |
JPH07325789A (en) | Parallel processors | |
JP2856709B2 (en) | Bus coupling system | |
JPH0425581B2 (en) | ||
JPH0736806A (en) | Dma system | |
JP2871171B2 (en) | Microcomputer | |
JPS61156454A (en) | Data transfer control device | |
JPS63226738A (en) | Retry system in continuous data transfer | |
JPH01234939A (en) | Interruption control system | |
JPH0429101B2 (en) | ||
JPH06332839A (en) | Data transfer processor | |
JPS60254245A (en) | False fault setting system | |
JPH01158554A (en) | Data processing system providing dma device | |
JPH04177444A (en) | Method and device for controlling interruption | |
JPS59211149A (en) | Comparison stopping system |