JPH07306840A - Computer system - Google Patents

Computer system

Info

Publication number
JPH07306840A
JPH07306840A JP9857694A JP9857694A JPH07306840A JP H07306840 A JPH07306840 A JP H07306840A JP 9857694 A JP9857694 A JP 9857694A JP 9857694 A JP9857694 A JP 9857694A JP H07306840 A JPH07306840 A JP H07306840A
Authority
JP
Japan
Prior art keywords
data
cpu
storage means
flip
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.)
Withdrawn
Application number
JP9857694A
Other languages
Japanese (ja)
Inventor
Masahiro Suzuki
正広 鈴木
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.)
Toshiba Corp
Original Assignee
Toshiba 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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP9857694A priority Critical patent/JPH07306840A/en
Publication of JPH07306840A publication Critical patent/JPH07306840A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Multi Processors (AREA)

Abstract

PURPOSE:To send and receive data in two ways. CONSTITUTION:The computer system which has a 1st CPU 1 and a 2nd CPU 2 and make those CPUs 1 and 2 interchange data with each other is equipped with a 1st storage means 3 through which the 1st CPU 1 writes data and the 2nd CPU 2 reads the data out, a 2nd storage means 4 through which the 2nd CPU 2 writes data and the 1st CPU 1 reads the data out, and an interruption circuit 7 which informs the 2nd CPU 2 that the data are written in the 1st storage means 3 and also informs the 1st CPU 1 that the data are written in the 2nd storage means 4.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】この発明は、PBXのラインカー
ド等に搭載され、2つのCPUにより構成されるコンピ
ュータシステムに関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a computer system mounted on a PBX line card or the like and composed of two CPUs.

【0002】[0002]

【従来の技術】従来、PBXのラインカードには、交換
の制御を行っている制御部とデータ送受を行うCPU
と、端末との間でデータ送受を行うCPUとが搭載され
ている。これら2つのCPUは、相互にデータを交換し
て動作する必要があり、そのために図5に示される構成
を採用していた。
2. Description of the Related Art Conventionally, a PBX line card has a CPU that controls data exchange and a control unit that controls exchange.
And a CPU that sends and receives data to and from the terminal. These two CPUs need to exchange data with each other to operate, and for that reason, the configuration shown in FIG. 5 has been adopted.

【0003】つまり、交換の制御を行っている制御部と
データ送受を行う第1のCPU101と、端末との間で
データ送受を行う第2のCPU102とに、メモリ等に
より構成される記憶装置103を接続する。それぞれの
CPU101、102は、それぞれ、アドレスアサイナ
105、106を介して記憶装置103をアクセスし、
データバス8を介してデータのリードライトを行う。
That is, a storage unit 103 composed of a memory and the like, a first CPU 101 for transmitting and receiving data to and from a control unit which controls exchange, and a second CPU 102 for transmitting and receiving data to and from a terminal. Connect. The respective CPUs 101, 102 access the storage device 103 via the address assigners 105, 106, respectively,
Data is read and written via the data bus 8.

【0004】このシステムにおいては、記憶装置103
に対するデータのリードライトを管理するため、割込回
路104が設けられている。この割込回路104を用い
て、第1のCPU101と第2のCPU102とは、図
6に示すフローチャートの手順により動作を行う。第1
のCPU101は、第2のCPU102へ送出すべきデ
ータがあるか否かを検出し(S61)、データが生じる
と第1のCPU101は記憶装置103へデータを書き
込み(S62)、割込回路104へデータの読み出し要
求を書き込む(S64)。これにより、第2のCPU1
02では、割込入力端子に割込回路104から割込信号
を受けることになる。そこで、第2のCPU102は、
記憶装置103からデータを読み出し(S64)、ステ
ータス出力端子から読み出し完了を示すステータスを割
込回路104へ送出し、記憶装置103が空になったこ
とを示す(S65)。ここで、第1のCPU101が割
込回路104から第2のCPU102により送出された
ステータスによるデータを何時読み出すかは自由であ
る。
In this system, the storage device 103
An interrupt circuit 104 is provided to manage the reading and writing of data to and from. Using this interrupt circuit 104, the first CPU 101 and the second CPU 102 operate according to the procedure of the flowchart shown in FIG. First
CPU 101 detects whether or not there is data to be sent to the second CPU 102 (S61), and when data is generated, the first CPU 101 writes the data to the storage device 103 (S62), and then to the interrupt circuit 104. A data read request is written (S64). As a result, the second CPU 1
In 02, the interrupt signal is received from the interrupt circuit 104 at the interrupt input terminal. Therefore, the second CPU 102
Data is read from the storage device 103 (S64), and a status indicating the completion of reading is sent from the status output terminal to the interrupt circuit 104, indicating that the storage device 103 has become empty (S65). Here, it is arbitrary when the first CPU 101 reads the data according to the status sent from the interrupt circuit 104 by the second CPU 102.

【0005】一方、ステップS61において第2のCP
U102へ送出すべきデータがないことを検出したとき
は、第1のCPU101は、第2のCPU102から第
1のCPU101へ送出すべきデータがあるか否かを割
込回路104から該当データを読み出して検出しており
(S66)、データがあると第2のCPU102に対
し、記憶装置103へのデータ書き込み要求を割込回路
104を介して送出する(S67)。つまり、割込回路
104に対しデータ書き込み要求をセットすると第2の
CPU102の割込入力端子に対し割込回路104から
データ書き込み要求の割込信号が送出される。この割込
信号を受けて、CPU102は記憶装置103へデータ
を書き込むとともに(S68)、割込回路104にデー
タの書き込みを示すステータスを出力して記憶装置10
3にデータがあることを第1のCPU101へ通知して
おく(S69)。つまり上記ステータス送出により割込
回路104にデータの書き込みを示すフラグがセットさ
れ、第1のCPU101が割込回路104から読み出し
を行って第2のCPU102による記憶装置103への
データの書き込みを検出し、記憶装置103からデータ
を読み出す(S70)。ここにおいても、第1のCPU
101が割込回路104から第2のCPU102により
送出されたステータスによるデータを何時読み出すか及
び記憶装置103のデータを何時読み出すかは自由であ
る。
On the other hand, in step S61, the second CP
When it is detected that there is no data to be sent to U102, the first CPU 101 reads from the interrupt circuit 104 whether or not there is data to be sent from the second CPU 102 to the first CPU 101. If there is data, a data write request to the storage device 103 is sent to the second CPU 102 via the interrupt circuit 104 (S67). That is, when a data write request is set to the interrupt circuit 104, the interrupt signal of the data write request is sent from the interrupt circuit 104 to the interrupt input terminal of the second CPU 102. In response to the interrupt signal, the CPU 102 writes data to the storage device 103 (S68), and outputs a status indicating the writing of data to the interrupt circuit 104 to output the storage device 10.
The first CPU 101 is notified that there is data in No. 3 (S69). That is, a flag indicating data writing is set in the interrupt circuit 104 by the above-mentioned status transmission, and the first CPU 101 reads from the interrupt circuit 104 to detect the writing of data to the storage device 103 by the second CPU 102. , Data is read from the storage device 103 (S70). Again, the first CPU
When the 101 reads the data according to the status sent from the interrupt circuit 104 by the second CPU 102 and when the data of the storage device 103 is read freely.

【0006】[0006]

【発明が解決しようとする課題】以上の通り、従来のコ
ンピュータシステムにおいては、一方のCPUが他方の
CPUの記憶装置に対する書き込み、読み出しについて
指揮権を有しており、この指揮権による書き込み要求が
なければ、他方のCPUがデータを書き込むことができ
ず、場合によっては本来、記憶装置に書き込むべきデー
タが失われてしまうことがあった。また、記憶装置に対
してデータが書き込まれ読み出しが行われていないとき
には、読み出しが行われるまでデータを書き込むことが
できず、いずれのCPUにとってもデータの書き込み待
ち時間が多くなり、効率的なデータの送受を行い得ない
という問題点が生じていた。
As described above, in the conventional computer system, one CPU has the command right for writing and reading with respect to the storage device of the other CPU, and the write request by this command right is issued. Otherwise, the other CPU cannot write the data, and in some cases, the data originally to be written in the storage device may be lost. Further, when data is written to the storage device but not read, the data cannot be written until the read is performed, which increases the data write waiting time for any CPU, resulting in efficient data writing. There was a problem that it could not be sent and received.

【0007】本発明はこの様な従来のコンピュータシス
テムの問題点を解決せんとしてなされたもので、その目
的は、2つのCPUがデータを送受する場合に、これを
効率良く行い得るコンピュータシステムを提供すること
である。
The present invention has been made to solve the above problems of the conventional computer system, and an object thereof is to provide a computer system which can efficiently perform the data transmission and reception when two CPUs send and receive data. It is to be.

【0008】[0008]

【課題を解決するための手段】そこで請求項1に記載の
発明では、第1のCPUと第2のCPUとを有し、これ
らのCPUが相互にデータの交換を行うコンピュータシ
ステムにおいて、前記第1のCPUがデータを書き込
み、前記第2のCPUがデータを読み出すための第1の
記憶手段と、前記第2のCPUがデータを書き込み、前
記第1のCPUがデータを読み出すための第2の記憶手
段と、前記第1の記憶手段にデータを書き込んだことを
第2のCPUに通知し、また、前記第2の記憶手段にデ
ータを書き込んだことを第1のCPUに通知するための
割込信号を送出する割込回路とを備えさせてコンピュー
タシステムを構成するようにした。
Therefore, in the invention described in claim 1, in a computer system having a first CPU and a second CPU, and these CPUs exchange data mutually, A first storage means for the first CPU to write data and the second CPU to read the data; and a second storage means for the second CPU to write the data and the first CPU to read the data. A storage unit and an interrupt for notifying the second CPU that the data has been written to the first storage unit and also notifying the first CPU that the data has been written to the second storage unit. A computer system is configured by including an interrupt circuit that sends an interrupt signal.

【0009】また、請求項2に記載の発明では、第1の
CPUと第2のCPUとを有し、これらのCPUが相互
にデータの交換を行うコンピュータシステムにおいて、
前記第1のCPUがデータを書き込み、前記第2のCP
Uがデータを読み出すための第1の記憶手段と、前記第
2のCPUがデータを書き込み、前記第1のCPUがデ
ータを読み出すための第2の記憶手段と、前記第1の記
憶手段のデータを読み出したことを第1のCPUに通知
し、また、前記第2の記憶手段のデータを読み出したこ
とを第2のCPUに通知するための割込信号を送出する
割込回路とを備えさせてコンピュータシステムを構成し
た。
According to a second aspect of the invention, in a computer system having a first CPU and a second CPU, and these CPUs exchange data with each other,
The first CPU writes data and the second CP
A first storage means for U to read data, a second storage means for the second CPU to write data and a data to be read by the first CPU, and data of the first storage means. And an interrupt circuit for sending an interrupt signal for notifying the second CPU that the data of the second storage means has been read. Computer system.

【0010】また、請求項3に記載の発明では、割込回
路は、第1のCPUからデータバスの所定ビット使用し
て送出されるデータと、第2のCPUから送出されるス
テータスと、当該割込み回路に対する選択信号と、割込
回路に対するリードライト信号により制御されて、対応
の通知を第1のCPUまたは第2のCPUに対して行う
ことを特徴とする。
According to another aspect of the invention, the interrupt circuit is configured to transmit the data transmitted from the first CPU by using a predetermined bit of the data bus, the status transmitted from the second CPU, and It is characterized in that it is controlled by the selection signal for the interrupt circuit and the read / write signal for the interrupt circuit to notify the corresponding to the first CPU or the second CPU.

【0011】更に、請求項4に記載の発明では、割込回
路が、第1のフリップフロップと、第2のフリップフロ
ップとを備えており、前記第1のフリップフロップの出
力が第1の記憶手段に対するデータの書き込みを通知す
る信号となり、この第1のフリップフロップのクリアが
前記第1の記憶手段からのデータの読み出し通知の信号
により行われ、前記第2のフリップフロップの出力が第
2の記憶手段からのデータの読み出し通知の信号とな
り、この第2のフリップフロップのクリアが第2の記憶
手段に対するデータの書き込みを通知する信号となって
いることを特徴とする。
Further, in the invention described in claim 4, the interrupt circuit comprises a first flip-flop and a second flip-flop, and the output of the first flip-flop is the first memory. The first flip-flop is cleared by the signal for notifying the reading of the data from the first storage means, and the output of the second flip-flop is the second signal. It is characterized in that it becomes a signal for notifying the reading of data from the storage means and that the clearing of the second flip-flop becomes a signal for notifying the writing of data to the second storage means.

【0012】[0012]

【作用】請求項1に記載の発明によると、第1のCPU
がデータを書き込み、第2のCPUがデータを読み出す
ための第1の記憶手段と、前記第2のCPUがデータを
書き込み、前記第1のCPUがデータを読み出すための
第2の記憶手段とが備えられているため、それぞれの記
憶手段を用いてデータを双方向に送受可能である。しか
も、割込回路により、第1の記憶手段にデータを書き込
んだことを第2のCPUに通知し、また、前記第2の記
憶手段にデータを書き込んだことを第1のCPUに通知
するための割込信号を送出するので、一方のCPUが指
揮権を持つことなく、適切なデータの送受を可能とす
る。
According to the invention described in claim 1, the first CPU
Includes a first storage unit for writing data and a second CPU for reading data, and a second storage unit for the second CPU to write data and the first CPU reads data. Since it is provided, it is possible to send and receive data bidirectionally using the respective storage means. Moreover, the interrupt circuit notifies the second CPU that data has been written to the first storage means, and also notifies the first CPU that data has been written to the second storage means. Since the CPU interrupt signal is transmitted, one of the CPUs can transmit and receive appropriate data without having command authority.

【0013】また、請求項2に記載の発明によると、割
込回路により、第1の記憶手段のデータを読み出したこ
とを第1のCPUに通知し、また、前記第2の記憶手段
のデータを読み出したことを第2のCPUに通知するた
めの割り込み信号を送出するようにしているため、一方
のCPUが指揮権を持つことなく、適切なデータの送受
を可能とする。
According to the second aspect of the present invention, the interrupt circuit notifies the first CPU that the data of the first storage means has been read, and the data of the second storage means. Since an interrupt signal for notifying the second CPU that the data has been read is transmitted, one of the CPUs can transmit and receive appropriate data without having command authority.

【0014】また、請求項3に記載の発明によると、第
1のCPUはデータバスの所定ビット使用してデータを
送出して、また、第2のCPUはステータスを送出する
ことにより、割込回路を制御でき、従来の制御を変更す
ることなく、適切なデータの送受を可能とする。
According to the third aspect of the present invention, the first CPU sends data by using a predetermined bit of the data bus, and the second CPU sends status to interrupt. The circuit can be controlled, and appropriate data can be transmitted and received without changing the conventional control.

【0015】更に、請求項4に記載の発明によると、割
込回路が、第1のフリップフロップと、第2のフリップ
フロップとを備えており、これをセット及びクリアする
ことにより、第1、第2の記憶手段のデータのリードラ
イト通知が適切に行われ、双方向のデータ送受が効率良
くなされる。
Further, according to the invention described in claim 4, the interrupt circuit includes a first flip-flop and a second flip-flop, and by setting and clearing the first flip-flop, the first and second flip-flops are provided. The read / write notification of the data of the second storage means is appropriately performed, and the bidirectional data transmission / reception is efficiently performed.

【0016】[0016]

【実施例】以下添付図面を参照して、本発明の実施例に
係るコンピュータシステムを説明する。図1には、実施
例に係るコンピュータシステムの構成例が示されてい
る。交換の制御を行っている制御部とデータ送受を行う
第1のCPU1と、端末との間でデータ送受を行う第2
のCPU2とに、例えば、デュアルポートRAMにより
構成される記憶装置第1の記憶手段3、第2の記憶手段
4を接続する。第1の記憶手段3では、第1のCPU1
がデータバス8−1を介してデータを書き込み、第2の
CPU2がデータバス8−2を介してデータを読み出
す。第2の記憶手段4では、第2のCPU2がデータバ
ス8−2を介してデータを書き込み、第1のCPU1が
データバス8−1を介してデータを読み出す。第1のC
PU1はアドレスアサイナ5を介して、第2のCPU2
はアドレスアサイナ6を介して、それぞれ第1の記憶手
段3及び第2の記憶手段4をアクセスする。アドレスア
サイナ5の出力、データバス8−1のデータ、第2のC
PU2からの割込要求信号が入力される割込回路7は、
第1のCPU1、第2のCPU2に対してデータを第1
の記憶手段3、第2記憶手段4にデータが書き込まれた
ことをそれぞれ通知する割込みを発生する。割込回路7
は、第1の記憶手段3のデータが読み出されたことを第
1のCPU1へデータバス8−1の1ビットを用いて通
知可能とし、第2記憶手段4のデータが読み出されたこ
とを第2のCPU2に対して割込信号を用いて通知す
る。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT A computer system according to an embodiment of the present invention will be described below with reference to the accompanying drawings. FIG. 1 shows a configuration example of a computer system according to the embodiment. A first CPU 1 that exchanges data with a control unit that controls exchange, and a second CPU that exchanges data with a terminal.
The CPU 2 is connected to the storage device first storage means 3 and second storage means 4 which are constituted by, for example, a dual port RAM. In the first storage means 3, the first CPU 1
Writes data via the data bus 8-1, and the second CPU 2 reads data via the data bus 8-2. In the second storage unit 4, the second CPU 2 writes data via the data bus 8-2, and the first CPU 1 reads data via the data bus 8-1. First C
The PU 1 is connected to the second CPU 2 via the address assigner 5.
Accesses the first storage means 3 and the second storage means 4 via the address assigner 6, respectively. Output of address assigner 5, data on data bus 8-1, second C
The interrupt circuit 7 to which the interrupt request signal from PU2 is input is
First data is sent to the first CPU1 and the second CPU2.
An interrupt for notifying that the data has been written in the storage means 3 and the second storage means 4 is generated. Interrupt circuit 7
Makes it possible to notify the first CPU 1 that the data in the first storage means 3 has been read out by using 1 bit of the data bus 8-1, and that the data in the second storage means 4 has been read out. Is notified to the second CPU 2 using an interrupt signal.

【0017】図2には、割込回路7の構成ブロック図が
示されている。割込回路7には、第1の記憶手段3にデ
ータが書き込まれたことを通知するためのフリップフロ
ップ11と、第2の記憶手段4からデータが読み出され
たことを通知するためのフリップフロップ12とが備え
られている。これらフリップフロップ11、12はアド
レスアサイナ5から出力される当該割込回路7を指定す
る信号SELとライト信号WRとがLレベルのとき、そ
れぞれデータバス8−1の最下位ビット及びその次のビ
ットを取り込み、第2のCPU2へ割込み信号として送
出し、また、第2のCPU2からのステータスによりク
リアされる。また、フリップフロップ11の出力はアド
レスアサイナ5の当該割込回路7を指定する信号SEL
とリード信号RDとがLレベルのときに、3ステートバ
ッファ15を介してデータバス8−1の最下位ビットに
読み出される。ナンドゲート13は3ステートバッファ
15を制御するためのゲートであり、アンドゲート14
はフリップフロップ11、12へクロックを与えるため
のゲートである。フリップフロップ12に対するクリア
信号は第1のCPU1へ、第2の記憶手段4にデータが
書き込まれたことを通知する割込信号として与えられ
る。
FIG. 2 shows a block diagram of the interrupt circuit 7. The interrupt circuit 7 includes a flip-flop 11 for notifying that data has been written to the first storage means 3 and a flip-flop for notifying that data has been read from the second storage means 4. 12 are provided. When the signal SEL designating the interrupt circuit 7 output from the address assigner 5 and the write signal WR are at the L level, the flip-flops 11 and 12 respectively output the least significant bit of the data bus 8-1 and the next bit. The bit is fetched, sent to the second CPU 2 as an interrupt signal, and cleared by the status from the second CPU 2. The output of the flip-flop 11 is a signal SEL designating the interrupt circuit 7 of the address assigner 5.
When the read signal RD and the read signal RD are at the L level, they are read out to the least significant bit of the data bus 8-1 via the 3-state buffer 15. The NAND gate 13 is a gate for controlling the 3-state buffer 15, and the AND gate 14
Is a gate for supplying a clock to the flip-flops 11 and 12. The clear signal for the flip-flop 12 is given to the first CPU 1 as an interrupt signal for notifying that the data has been written in the second storage means 4.

【0018】第1のCPU1及び第2のCPU2は、図
3に示されるようなフローチャートのに対応して動作す
るためのプログラムを有し、これを使用して第1の記憶
手段3のデータの送受に係る制御を行うので以下に説明
する。第1のCPU1では、第2のCPU2へ送出すべ
きデータが発生したか否かを監視している(S31)。
第2のCPU2へ送出すべきデータが発生すると、第1
のCPU1はアドレスアサイナ5に対し割込回路7を指
定する信号SELとリード信号RDとがLレベルとなる
ようにアドレスを出力する。すると、ナンドゲート13
がその出力をLレベルとするので、3ステートバッファ
15が出力状態となり、フリップフロップ11のQ端子
の出力を反転してデータバス8−1の最下位ビットへ送
出する。第1のCPU1はこの最下位ビット(D0)を
取り込み、第1の記憶手段3の空塞を検出する(S3
2)。つまり、第1の記憶手段3からデータを読み出す
と第2のCPU2はフリップフロップ11へクリア信号
を与えるので、フリップフロップ11のQ端子の出力は
Lレベルとなる。従って、データバス8−1の最下位ビ
ットがHレベルのときには、第1の記憶手段3が空であ
ることになる。第1の記憶手段3が空であるときには、
第1のCPU1は第2のCPU2に送出すべきデータを
第1の記憶手段3へ書き込み(S33)、アドレスアサ
イナ5に対し割込回路7を指定する信号SELとライト
信号WRとがLレベルとなるようにアドレスを出力す
る。すると、アンドゲート14がその出力をHレベルと
するので、フリップフロップ11、12のクロック端子
ckにクロックが与えられる。このとき同時に第1のC
PU1は、データバス8−1の最下位ビットへHレベル
を送出する(最下位ビットの次のビットはLレベル)。
これによって、フリップフロップ11がセット状態とな
り、そのQ端子の出力がHレベルとなり、第2のCPU
2へ、第1の記憶手段3にデータが書き込まれた旨の割
込信号が与えられる(S34)。割込みを受けた第2の
CPU2は、割込みの優先度に従って処理を行い、第1
の記憶手段3からデータを読み出すことになる(S3
5)。読み出しを終了すると、第2のCPU2はフリッ
プフロップ11へクリア信号を与えるので、フリップフ
ロップ11のQ端子の出力はLレベルとなり、第1の記
憶手段3が空であることが示される(S36)。
The first CPU 1 and the second CPU 2 have a program for operating corresponding to the flow chart shown in FIG. 3, and by using this program, the data in the first storage means 3 is stored. The transmission / reception control will be described below. The first CPU 1 monitors whether or not data to be sent to the second CPU 2 has occurred (S31).
When data to be sent to the second CPU 2 occurs, the first
The CPU 1 outputs the address to the address assigner 5 so that the signal SEL designating the interrupt circuit 7 and the read signal RD become L level. Then Nand Gate 13
Sets its output to the L level, so that the 3-state buffer 15 enters the output state, inverts the output of the Q terminal of the flip-flop 11 and sends it to the least significant bit of the data bus 8-1. The first CPU 1 fetches the least significant bit (D0) and detects the air blockage of the first storage means 3 (S3).
2). That is, when the data is read from the first storage means 3, the second CPU 2 gives a clear signal to the flip-flop 11, so that the output of the Q terminal of the flip-flop 11 becomes L level. Therefore, when the least significant bit of the data bus 8-1 is at H level, the first storage means 3 is empty. When the first storage means 3 is empty,
The first CPU 1 writes the data to be sent to the second CPU 2 into the first storage means 3 (S33), and the signal SEL designating the interrupt circuit 7 for the address assigner 5 and the write signal WR are at L level. The address is output so that Then, the AND gate 14 sets its output to the H level, so that the clock is applied to the clock terminals ck of the flip-flops 11 and 12. At the same time, the first C
PU1 sends H level to the least significant bit of data bus 8-1 (the bit next to the least significant bit is L level).
As a result, the flip-flop 11 is set, the output of its Q terminal becomes H level, and the second CPU
An interrupt signal to the effect that data has been written to the first storage means 3 is given to 2 (S34). The second CPU 2 that has received the interrupt performs processing according to the priority of the interrupt, and
The data is read from the storage means 3 (S3
5). When the reading is completed, the second CPU 2 gives a clear signal to the flip-flop 11, so that the output of the Q terminal of the flip-flop 11 becomes L level, indicating that the first storage means 3 is empty (S36). .

【0019】第1のCPU1及び第2のCPU2は、図
4に示されるようなフローチャートのに対応して動作す
るためのプログラムを有し、これを使用して第2の記憶
手段4のデータの送受に係る制御を行うので以下に説明
する。第2のCPU2では、第1のCPU1へ送出すべ
きデータが発生したか否かを監視している(S41)。
第2のCPU2は第1のCPU1へ送出すべきデータが
発生すると、割込入力端子を介してフリップフロップ1
2のQ端子の出力を取り込み第2の記憶手段4の空塞を
検出する(S42)。つまり、第1のCPUは第2の記
憶手段4からデータを読み出したときには、フリップフ
ロップ12をセット状態とするので、Q端子の出力はH
レベルとなる。従って、信号線23の信号レベルがHレ
ベルであるときには、第2の記憶手段4が空であること
になる。第2の記憶手段4が空であるときには、第2の
CPU2は第1のCPU1に送出すべきデータを第2の
記憶手段4へ書き込み(S43)、フリップフロップ1
2をクリアするステータス(Lレベル)を信号線25を
介して送出する。このステータスは第1のCPU1の割
込入力端子へ信号線21を介して送られるように構成さ
れ、第1のCPU1に対し、第2の記憶手段4にデータ
が書き込まれた旨の割込信号が与えられる(S44)。
割込みを受けた第1のCPU1は、割込みの優先度に従
って処理を行い、第2の記憶手段4からデータを読み出
すことになる(S45)。読み出しを終了すると、第1
のCPU1は、アドレスアサイナ5に対し割込回路7を
指定する信号SELとライト信号WRとがLレベルとな
るようにアドレスを出力する。すると、アンドゲート1
4がその出力をHレベルとするので、フリップフロップ
11、12のクロック端子ckにクロックが与えられ
る。このとき同時に第1のCPU1は、データバス8−
1の最下位ビットの次のビット(D1)へHレベルを送
出する(最下位ビットはLレベル)。これによって、フ
リップフロップ12がセット状態となり、そのQ端子の
出力がHレベルとなり、第2のCPU2へ、第2の記憶
手段4のデータを読み出した旨(第2の記憶手段2が空
である旨)の割込信号が与えられる(S46)。
The first CPU 1 and the second CPU 2 have a program for operating corresponding to the flow chart shown in FIG. 4, and by using this program, the data in the second storage means 4 is stored. The transmission / reception control will be described below. The second CPU 2 monitors whether data to be sent to the first CPU 1 has occurred (S41).
When the data to be sent to the first CPU 1 is generated, the second CPU 2 generates the flip-flop 1 via the interrupt input terminal.
The output of the Q terminal of No. 2 is fetched and the air blockage of the second storage unit 4 is detected (S42). That is, the first CPU sets the flip-flop 12 to the set state when the data is read from the second storage means 4, so that the output of the Q terminal is H.
It becomes a level. Therefore, when the signal level of the signal line 23 is H level, the second storage means 4 is empty. When the second storage means 4 is empty, the second CPU 2 writes the data to be sent to the first CPU 1 into the second storage means 4 (S43), and the flip-flop 1
The status (L level) for clearing 2 is transmitted via the signal line 25. This status is configured to be sent to the interrupt input terminal of the first CPU 1 via the signal line 21, and the interrupt signal indicating that the data has been written in the second storage means 4 is sent to the first CPU 1. Is given (S44).
The first CPU 1 that has received the interrupt performs processing according to the priority of the interrupt and reads the data from the second storage unit 4 (S45). When reading is completed, the first
The CPU 1 outputs the address to the address assigner 5 so that the signal SEL designating the interrupt circuit 7 and the write signal WR become L level. Then, AND gate 1
4 sets its output to the H level, so that the clock is applied to the clock terminals ck of the flip-flops 11 and 12. At this time, the first CPU 1 simultaneously operates the data bus 8-
The H level is sent to the bit (D1) next to the least significant bit of 1 (the least significant bit is the L level). As a result, the flip-flop 12 is set, the output of the Q terminal thereof becomes H level, and the fact that the data of the second storage means 4 has been read out to the second CPU 2 (the second storage means 2 is empty). To the effect (S46).

【0020】斯して、第1のCPU1と第2のCPU2
とは、それぞれ別の記憶手段3、4を用いて方向性の異
なるデータの送受を同時に行うことが可能となる。しか
も、相互に割込みを行うので、一方に指揮権がある場合
と比べて、割込みを行ってデータを読み出させて、次の
データ送信(格納)に備えることができ、データが送ら
れずに消失する可能性を少なくする。また、第1のCP
U1が割込みを受ける以外には、従来と同様に第1のC
PU1がデータバスを用いて割込回路7を制御し、第2
のCPU2がステータスを用いて割込回路7を制御する
ように構成してあり、制御を大きく変えることなく、適
切なデータの送受が可能となる。
Thus, the first CPU 1 and the second CPU 2
In other words, it becomes possible to simultaneously send and receive data having different directions by using different storage means 3 and 4, respectively. Moreover, since they interrupt each other, compared to the case where one side has the command authority, it is possible to read the data by interrupting and prepare for the next data transmission (storage). Less likely to disappear. Also, the first CP
As before, except for U1 being interrupted, the first C
The PU1 controls the interrupt circuit 7 using the data bus,
The CPU 2 is configured to control the interrupt circuit 7 using the status, and it is possible to send and receive appropriate data without significantly changing the control.

【0021】[0021]

【発明の効果】以上説明したように発明によれば、記憶
手段を用いてデータを双方向に送受可能である。そし
て、請求項1の発明では、割込回路により、第1の記憶
手段にデータを書き込んだことを第2のCPUに通知
し、また、前記第2の記憶手段にデータを書き込んだこ
とを第1のCPUに通知するための割込信号を送出する
ようにしているので、一方のCPUが指揮権を持つこと
なく、適切なデータの送受を可能とする。
As described above, according to the present invention, data can be transmitted and received bidirectionally using the storage means. Further, in the invention of claim 1, the interrupt circuit notifies the second CPU that the data has been written in the first storage means, and the data writing in the second storage means is notified. Since the interrupt signal for notifying to one CPU is sent out, it is possible to send and receive appropriate data without one CPU having command authority.

【0022】また、請求項2に記載の発明よれば、読み
出しを相互に通知しているために、記憶手段への書き込
みを適切に行うことができ、一方のCPUが指揮権を持
つことなく、適切なデータの送受を可能とする。
According to the second aspect of the invention, since the reading is mutually notified, the writing to the storage means can be appropriately performed, and one CPU does not have the command authority. Enables sending and receiving of appropriate data.

【0023】また、請求項3に記載の発明によれば、第
1のCPUはデータバスの所定ビット使用して、また、
第2のCPUはステータスを送出することにより、割込
回路を制御するので、従来の制御を大きく変更すること
なく、適切なデータの送受を可能とする。
According to the invention of claim 3, the first CPU uses a predetermined bit of the data bus,
Since the second CPU controls the interrupt circuit by sending the status, it is possible to send and receive appropriate data without significantly changing the conventional control.

【0024】更に請求項4に記載の発明によれば、割込
回路が、第1のフリップフロップと、第2のフリップフ
ロップとを備えており、これをセット及びクリアするこ
とにより、第1、第2の記憶手段のデータのリードライ
ト通知が適切に行われ、双方向のデータ送受が効率良く
なされる。
Further, according to the invention described in claim 4, the interrupt circuit comprises a first flip-flop and a second flip-flop. By setting and clearing the first flip-flop, the first and second flip-flops are provided. The read / write notification of the data of the second storage means is appropriately performed, and the bidirectional data transmission / reception is efficiently performed.

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

【図1】本発明の実施例に係るコンピュータシステムの
構成図。
FIG. 1 is a configuration diagram of a computer system according to an embodiment of the present invention.

【図2】本発明の実施例に係るコンピュータシステムの
要部の詳細構成図。
FIG. 2 is a detailed configuration diagram of a main part of a computer system according to an embodiment of the present invention.

【図3】本発明の実施例に係るコンピュータシステムの
動作を説明するためのフローチャート。
FIG. 3 is a flowchart for explaining the operation of the computer system according to the embodiment of the present invention.

【図4】本発明の実施例に係るコンピュータシステムの
動作を説明するためのフローチャート。
FIG. 4 is a flowchart for explaining the operation of the computer system according to the embodiment of the present invention.

【図5】従来例に係るコンピュータシステムの構成図。FIG. 5 is a configuration diagram of a computer system according to a conventional example.

【図6】従来例に係るコンピュータシステムの動作を説
明するためのフローチャート。
FIG. 6 is a flowchart for explaining the operation of a computer system according to a conventional example.

【符号の説明】[Explanation of symbols]

1 第1のCPU 2 第2のC
PU 3 第1の記憶手段 4 第2の記
憶手段 5、6 アドレスアサイナ 7 割込回路 8−1、8−2 データバス 11、12
フリップフロップ 13 ナンドゲート 14 アンド
ゲート 15 3ステートバッファ
1 First CPU 2 Second C
PU 3 First storage means 4 Second storage means 5, 6 Address assigner 7 Interrupt circuit 8-1, 8-2 Data bus 11, 12
Flip-flop 13 NAND gate 14 AND gate 15 3-state buffer

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 第1のCPUと第2のCPUとを有し、
これらのCPUが相互にデータの交換を行うコンピュー
タシステムにおいて、 前記第1のCPUがデータを書き込み、前記第2のCP
Uがデータを読み出すための第1の記憶手段と、 前記第2のCPUがデータを書き込み、前記第1のCP
Uがデータを読み出すための第2の記憶手段と、 前記第1の記憶手段にデータを書き込んだことを第2の
CPUに通知し、また、前記第2の記憶手段にデータを
書き込んだことを第1のCPUに通知するための割込信
号を送出する割込回路とを備えることを特徴とするコン
ピュータシステム。
1. A first CPU and a second CPU are provided,
In a computer system in which these CPUs exchange data with each other, the first CPU writes data and the second CP
U is a first storage unit for reading data, the second CPU writes data, the first CP
U notifies the second CPU that the U has read the data, the second CPU that the U has written the data, and that the U has written the data to the second storage. An interrupt circuit that sends an interrupt signal for notifying the first CPU.
【請求項2】 第1のCPUと第2のCPUとを有し、
これらのCPUが相互にデータの交換を行うコンピュー
タシステムにおいて、 前記第1のCPUがデータを書き込み、前記第2のCP
Uがデータを読み出すための第1の記憶手段と、 前記第2のCPUがデータを書き込み、前記第1のCP
Uがデータを読み出すための第2の記憶手段と、 前記第1の記憶手段のデータを読み出したことを第1の
CPUに通知し、また、前記第2の記憶手段のデータを
読み出したことを第2のCPUに通知するための割込信
号を送出する割込回路とを備えることを特徴とするコン
ピュータシステム。
2. A first CPU and a second CPU are provided,
In a computer system in which these CPUs exchange data with each other, the first CPU writes data and the second CP
U is a first storage unit for reading data, the second CPU writes data, the first CP
U notifies the first CPU that the second storage means for reading data and the data of the first storage means has been read, and that the data of the second storage means has been read. A computer system, comprising: an interrupt circuit for sending an interrupt signal for notifying the second CPU.
【請求項3】 割込回路は、第1のCPUからデータバ
スの所定ビット使用して送出されるデータと、第2のC
PUから送出されるステータスと、当該割込み回路に対
する選択信号と、前記割込回路に対するリードライト信
号により制御されて、対応の通知を第1のCPUまたは
第2のCPUに対して行うことを特徴とするコンピュー
タシステム。
3. The interrupt circuit includes data sent from the first CPU using a predetermined bit of the data bus and a second C.
Controlled by a status sent from the PU, a selection signal for the interrupt circuit, and a read / write signal for the interrupt circuit, the corresponding notification is sent to the first CPU or the second CPU. Computer system to do.
【請求項4】 割込回路は、第1のフリップフロップ
と、第2のフリップフロップとを備え、 前記第1のフリップフロップの出力が第1の記憶手段に
対するデータの書き込みを通知する信号となり、この第
1のフリップフロップのクリアが前記第1の記憶手段か
らのデータの読み出し通知の信号により行われ、 前記第2のフリップフロップの出力が第2の記憶手段か
らのデータの読み出し通知の信号となり、この第2のフ
リップフロップのクリアが第2の記憶手段に対するデー
タの書き込みを通知する信号となっていることを特徴と
するコンピュータシステム。
4. The interrupt circuit comprises a first flip-flop and a second flip-flop, the output of the first flip-flop being a signal notifying the writing of data to the first storage means, The first flip-flop is cleared by the signal of the data read notification from the first storage means, and the output of the second flip-flop becomes the signal of the data read notification from the second storage means. A computer system characterized in that the clearing of the second flip-flop is a signal notifying the writing of data into the second storage means.
JP9857694A 1994-05-12 1994-05-12 Computer system Withdrawn JPH07306840A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9857694A JPH07306840A (en) 1994-05-12 1994-05-12 Computer system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9857694A JPH07306840A (en) 1994-05-12 1994-05-12 Computer system

Publications (1)

Publication Number Publication Date
JPH07306840A true JPH07306840A (en) 1995-11-21

Family

ID=14223501

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9857694A Withdrawn JPH07306840A (en) 1994-05-12 1994-05-12 Computer system

Country Status (1)

Country Link
JP (1) JPH07306840A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6907480B2 (en) 2001-07-11 2005-06-14 Seiko Epson Corporation Data processing apparatus and data input/output apparatus and data input/output method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6907480B2 (en) 2001-07-11 2005-06-14 Seiko Epson Corporation Data processing apparatus and data input/output apparatus and data input/output method
JP2010152926A (en) * 2001-07-11 2010-07-08 Seiko Epson Corp Data processing device, data input/output device, and data input/output method

Similar Documents

Publication Publication Date Title
JP3807250B2 (en) Cluster system, computer and program
JPS62227243A (en) Transmission control system
JPH07104826B2 (en) Transfer control device
US4539656A (en) Memory access selection circuit
JPH07306840A (en) Computer system
US7336657B2 (en) Inter-nodal data transfer system and data transfer apparatus
JP2000155738A (en) Data processor
JPS593775B2 (en) Bus request processing unit
JP3261665B2 (en) Data transfer method and data processing system
JP2752834B2 (en) Data transfer device
JPH0324634A (en) Double system device
JP2003022212A (en) Bi-directional ram
JPH09212469A (en) Lock transfer control circuit
JP3364751B2 (en) Data transfer system
KR100208283B1 (en) Method & apparatus for packet handler interrupt in full eletronic switching system
JP2573790B2 (en) Transfer control device
JPS638500B2 (en)
JPH0673099B2 (en) File device occupancy control method
JP3210939B2 (en) Process control device with PIO simulation memory
JP2820054B2 (en) Bus interface device
JPH0642227B2 (en) Data transfer device
JPS6227846A (en) Input and output channel
JPH0782468B2 (en) Transfer control device
JPH0131224B2 (en)
JPH0380359A (en) Inter-processor communication system

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20010731