JP2002049606A - Multi-cpu system - Google Patents

Multi-cpu system

Info

Publication number
JP2002049606A
JP2002049606A JP2000236807A JP2000236807A JP2002049606A JP 2002049606 A JP2002049606 A JP 2002049606A JP 2000236807 A JP2000236807 A JP 2000236807A JP 2000236807 A JP2000236807 A JP 2000236807A JP 2002049606 A JP2002049606 A JP 2002049606A
Authority
JP
Japan
Prior art keywords
cpu
interrupt
bus
data
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
Application number
JP2000236807A
Other languages
Japanese (ja)
Inventor
Kazunori Iwazawa
和則 岩澤
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 Saitama Ltd
Original Assignee
NEC Saitama 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 NEC Saitama Ltd filed Critical NEC Saitama Ltd
Priority to JP2000236807A priority Critical patent/JP2002049606A/en
Publication of JP2002049606A publication Critical patent/JP2002049606A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To make each CPU(central processing unit) surely receive interrupt generated from a low order unit in response to the command that the CPU itself issues to the low order unit. SOLUTION: The low order unit 3 is provided with a control part 32 which generates an interrupt signal 441 in the DPRAM 31 for storing bus acquisition signals BG 431, 432 (in this case, BG 431 is active, and BG 432 is inactive) and the CPU unit 2-1 corresponding to the bus acquisition signals stored in the DPRAM 31 in response to the accepted command when having accepted the command from the CPU unit 2-1 (storing data on a data bus 42 in a DPRAM 31).

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、下位装置を共有す
るマルチCPUシステムに関し、特に、CPU装置から
のコマンドに対応した下位装置からの割込の処理を行う
マルチシステムに関する。
[0001] 1. Field of the Invention [0002] The present invention relates to a multi-CPU system sharing a lower-level device, and more particularly to a multi-system for processing an interrupt from a lower-level device corresponding to a command from a CPU device.

【0002】[0002]

【従来の技術】従来、下位装置を共有するマルチCPU
システムは、例えば、図8のように構成されている。図
8を参照すると、外部装置1と、マルチCPUとして運
用する複数のCPU装置8と、複数の下位装置9と、1
つのCPU装置8を介して下位装置9を監視または試験
する外部装置1とから構成され、CPU装置8−1、8
−2、および下位装置9を、共通のアドレスバス41
と、データバス42と、バス獲得信号BG431,BG
432と、割込信号44とが接続される構成になってい
る。CPU装置8は、CPU81と制御部82とから構
成され、下位装置9は、DPRAM91と、制御部92
と、RAM93と、CPU94とから構成される。
2. Description of the Related Art Conventionally, multiple CPUs sharing a lower-level device
The system is configured, for example, as shown in FIG. Referring to FIG. 8, the external device 1, a plurality of CPU devices 8 operating as a multi-CPU, a plurality of lower devices 9,
And an external device 1 that monitors or tests the lower-level device 9 via one CPU device 8.
-2 and the lower order device 9 are connected to a common address bus 41.
, Data bus 42 and bus acquisition signals BG431, BG
432 and the interrupt signal 44 are connected. The CPU device 8 includes a CPU 81 and a control unit 82, and the lower order device 9 includes a DPRAM 91, a control unit 92
, A RAM 93, and a CPU 94.

【0003】このシステム動作中に、外部装置1がCP
U装置8−1を介して下位装置9に対して、例えば、R
AM93の内容を読み出したい場合、CPU装置8−1
に下位装置9の読み出しコマンドを発行すると、CPU
装置81は制御部82を介して共通バスを獲得し、デー
タ要求命令を下位装置9に送出する。ところが、下位装
置9のCPU94は、データ要求命令をDPRAM91
に受信すると、RAM93に格納されているデータをD
PRAM91にロードし、制御部92を介して割込信号
44を発行させる。CPU装置8−1がその割込信号4
4を認識すると、CPU装置8−1のCPU81は、制
御部82を介して再度共通バスを獲得し、制御部82を
介してDPRAM91からデータを読み出し、更に、外
部装置1に読み取ったデータを送信する。
During the operation of this system, the external device 1
For example, R
If the user wants to read the contents of AM93, the CPU device 8-1
Issues a read command for the lower-level device 9 to the CPU.
The device 81 acquires the common bus via the control unit 82 and sends a data request command to the lower order device 9. However, the CPU 94 of the lower order device 9 sends the data request command to the DPRAM 91
, The data stored in the RAM 93 is stored in D
The data is loaded into the PRAM 91 and the interrupt signal 44 is issued via the control unit 92. The CPU device 8-1 outputs the interrupt signal 4
Upon recognizing No. 4, the CPU 81 of the CPU device 8-1 acquires the common bus again via the control unit 82, reads data from the DPRAM 91 via the control unit 82, and transmits the read data to the external device 1. I do.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、上述の
ような従来のマルチCPUシステムでは、命令の発信元
を示す手段がないため、下位装置9が命令のあったCP
U装置8−1を判別することができないという問題点、
更に、割込信号44が1本しかなく共通の割込線となっ
ているため、下位装置8からの割込要求を受け付けるC
PU装置8がどのCPU装置8になるか特定することが
できないという問題点がある。また、下位装置が割込信
号44を発生したとしてもCPU装置8−1以外のCP
U装置8が認識することがあり、CPU装置8−1に確
実に送ることができないという問題点がある。すなわ
ち、外部装置1を接続したCPU装置8から下位装置9
にデータを要求した場合、必ずCPU装置8で処理され
るという保証が無く、何度もデバッグ操作(コマンドの
再発行)を繰り返す必要があった。
However, in the conventional multi-CPU system as described above, there is no means for indicating the source of the instruction, so that the
A problem that the U device 8-1 cannot be determined;
Furthermore, since there is only one interrupt signal 44 and a common interrupt line, the interrupt signal C that receives an interrupt request from the lower-level device 8 is received.
There is a problem that it is not possible to specify which CPU device 8 the PU device 8 will be. Further, even if the lower-level device generates the interrupt signal 44, a CP other than the CPU device 8-1 is used.
There is a problem that the U device 8 may recognize it and cannot send it to the CPU device 8-1 without fail. That is, from the CPU device 8 to which the external device 1 is connected to the lower-order device 9
When data is requested, there is no guarantee that the data will be processed by the CPU device 8, and the debugging operation (reissue of the command) must be repeated many times.

【0005】本発明の目的は、上記の問題点を鑑み、各
CPU装置が、自分が下位装置に発行するコマンドに対
応して下位装置から発生した割込を確実に受信すること
にある。
SUMMARY OF THE INVENTION In view of the above problems, it is an object of the present invention to ensure that each CPU device receives an interrupt generated from a lower device in response to a command issued to the lower device.

【0006】また、本発明の目的は、1つのCPU装置
に接続した外部装置から発生したコマンドの内容をCP
U装置を介して受け付けた下位装置が、確実にコマンド
に対する応答を外部装置に返すこと、すなわち、要求の
あったCPU装置に割込信号を発生することにある。
It is another object of the present invention to convert a command generated from an external device connected to one CPU device into a CP.
The lower-level device accepted via the U device surely returns a response to the command to the external device, that is, to generate an interrupt signal to the requested CPU device.

【0007】[0007]

【課題を解決するための手段】上記の目的を達成するた
めに、本発明の第1のマルチCPUシステムは、共通バ
スに接続した複数のCPU装置と複数の下位装置とを備
え、前記CPU装置毎に対応したバス獲得信号により共
通バスの獲得を行うマルチCPUシステムにおいて、前
記下位装置は、前記CPU装置からのコマンドを受け付
けた場合に前記バス獲得信号を記憶する記憶手段と、前
記記憶手段によって記憶したバス獲得信号に対応するC
PU装置に割込を発生する割込発生手段とを有すること
を特徴としている。
In order to achieve the above object, a first multi-CPU system of the present invention comprises a plurality of CPU units connected to a common bus and a plurality of lower units, and the CPU unit comprises: In a multi-CPU system that acquires a common bus by a bus acquisition signal corresponding to each of the sub-devices, the lower-level device stores a bus acquisition signal when a command from the CPU device is received; C corresponding to the stored bus acquisition signal
Interrupt generating means for generating an interrupt in the PU device.

【0008】また、本発明の第2のマルチCPUシステ
ムは、共通バスに接続した複数のCPU装置と複数の下
位装置とを備え、前記CPU装置毎に対応したバス獲得
信号により共通バスの獲得を行うマルチCPUシステム
において、1つの前記CPU装置に接続した外部装置を
備え、前記外部装置が接続している前記CPU装置に対
して前記下位装置へのデータの読出要求を行うと、前記
CPU装置は、前記バス獲得信号を発生することにより
前記共通バスを介してデータ要求のコマンドを送信する
要求手段と、前記要求手段により前記下位装置から発生
した割込信号を受信すると、前記バス獲得信号を発生す
ることにより前記共通バスを介して前記下位装置から要
求したデータを読み出して前記外部装置に読み出したデ
ータを転送する読出転送手段とを有し、前記下位装置
は、前記要求手段によるデータ要求のコマンドを受け付
けると共に前記バス獲得信号を記憶する記憶手段と、前
記受け付けたデータ要求のコマンドに従ってデータを渡
す準備を行うと前記記憶手段によって記憶したバス獲得
信号に対応するCPU装置に割込を発生する割込発生手
段とを有することを特徴としている。
A second multi-CPU system according to the present invention includes a plurality of CPU units and a plurality of lower units connected to a common bus, and acquires a common bus by a bus acquisition signal corresponding to each CPU unit. The multi-CPU system includes an external device connected to one of the CPU devices, and issues a data read request to the lower-level device to the CPU device to which the external device is connected. Request means for transmitting a data request command via the common bus by generating the bus acquisition signal; and generating the bus acquisition signal upon receiving an interrupt signal generated from the lower-level device by the request means. Reading the data requested from the lower-level device via the common bus and transferring the read data to the external device. A transfer unit, wherein the lower-level device receives a data request command from the request unit and stores the bus acquisition signal, and prepares to transfer data according to the received data request command. Interrupt generating means for generating an interrupt in the CPU device corresponding to the bus acquisition signal stored by the storage means.

【0009】更に、上記の第1または第2のマルチCP
Uシステムにおいて、前記記憶手段は、前記共通バス上
に乗ったコマンドの内容を書き込むメモリのデータ巾を
拡張したエリアに書き込むことを特徴としている。
Further, the above-mentioned first or second multi-CP
The U system is characterized in that the storage means writes the contents of the command on the common bus to an area having an extended data width of a memory.

【0010】更に、上記の第1または第2のマルチCP
Uシステムにおいて、前記記憶手段は、フリップフロッ
プに書き込むことを特徴としている。
Further, the above-mentioned first or second multi-CP
In the U system, the storage means writes data to a flip-flop.

【0011】また、本発明の第3のマルチCPUシステ
ムは、共通バスに接続した複数のCPU装置と複数の下
位装置とを備え、前記CPU装置が前記CPU装置毎に
対応したバス獲得信号により共通バスの獲得を行うこと
で前記下位装置のデータのやり取りを行い、前記CPU
装置が前記下位装置からの共通の割込信号により割込を
受け付けるマルチCPUシステムにおいて、前記共通バ
スの獲得を行った前記CPU装置が前記下位装置からの
割込を自分以外のCPU装置に割込を抑える共通の割込
禁止信号を前記共通バス上に備え、前記CPU装置は、
前記バス獲得信号の発生時に前記割込禁止信号を発生す
る割込禁止発生手段と、前記割込禁止発生手段による前
記割込禁止信号発生中に前記下位装置からの割込信号が
発生されると、割込要求を受け付ける割込受付手段とを
有することを特徴としている。
A third multi-CPU system of the present invention includes a plurality of CPU devices and a plurality of lower-level devices connected to a common bus, wherein the CPU devices are shared by a bus acquisition signal corresponding to each CPU device. The lower-level device exchanges data by acquiring a bus, and the CPU
In a multi-CPU system in which a device accepts an interrupt by a common interrupt signal from the lower device, the CPU device that has acquired the common bus interrupts the interrupt from the lower device to a CPU device other than itself. A common interrupt prohibition signal for suppressing the above is provided on the common bus, and the CPU device includes:
An interrupt prohibition generating means for generating the interrupt prohibition signal when the bus acquisition signal is generated, and when an interrupt signal from the lower device is generated during generation of the interrupt prohibition signal by the interrupt prohibition generating means. And an interrupt receiving means for receiving an interrupt request.

【0012】更に、上記の第3のマルチCPUシステム
において、前記CPU装置は、前記割込禁止信号を発生
していない場合に前記下位装置からの前記割込信号が発
生されても割込要求を受け付けない割込非受付手段を有
することを特徴としている。
Further, in the third multi-CPU system, when the interrupt signal is not generated, the CPU device issues an interrupt request even if the interrupt signal is generated from the lower-level device. It is characterized by having interrupt non-accepting means for not accepting.

【0013】[0013]

【発明の実施の形態】次に、本発明の第1の実施の形態
であるマルチCPUシステムを図を参照して説明する。
先ず、CPU装置を2つ用いた場合のマルチCPUシス
テムついて、図1を参照して説明する。
Next, a multi-CPU system according to a first embodiment of the present invention will be described with reference to the drawings.
First, a multi-CPU system using two CPU devices will be described with reference to FIG.

【0014】図1を参照すると、本発明の第1の実施の
形態は、命令(コマンド)を発生する外部装置1と、マ
ルチCPUとして運用するCPU装置2(2−1,2−
2)と、複数の下位装置3[3−1,3−2,・・・,
3−n(nは正の整数)]とから構成され、各CPU装
置2と各下位装置3間を、共通バスのアドレスバス41
と、共通バスのデータバス42と、CPU装置2−1に
対応するバス獲得信号であるBG431と、CPU装置
2−2に対応するバス獲得信号であるBG432と、C
PU装置2−1への割込要求の信号である割込信号44
1,CPU装置2−2への割込の要求信号である割込信
号442とで接続されている。
Referring to FIG. 1, in a first embodiment of the present invention, an external device 1 for generating an instruction (command) and a CPU device 2 (2-1, 2-
2) and a plurality of lower-level devices 3 [3-1, 3-2,.
3-n (n is a positive integer)], and a common bus address bus 41
A data bus 42 of a common bus, a BG 431 which is a bus acquisition signal corresponding to the CPU 2-1; a BG 432 which is a bus acquisition signal corresponding to the CPU 2-2;
An interrupt signal 44 which is a signal of an interrupt request to the PU device 2-1
1, are connected by an interrupt signal 442 which is a request signal of an interrupt to the CPU device 2-2.

【0015】外部装置1が下位装置3の監視または検査
(評価時の試験も含む)を行う場合に、外部装置1がコ
マンドによりCPU装置2とのやり取りを行って、CP
U装置2がそのコマンドを解釈し、下位装置に対して命
令を発する。そのため、外部装置1とCPU装置2間の
インタフェースにおいては、外部装置1が発生するコマ
ンドをCPU装置2のCPU21が解釈できるように、
いくつかのコマンド(例えば、RAM33の内容の読み
出し等の要求命令)を設けている。なお、CPU装置2
と下位装置3との間のやり取りは、あらかじめ決められ
た共通バス上のインタフェース(アドレスバス41およ
びデータバス42に載せる命令、各種信号等のやり取り
も含む)に従って行う。更に、各下位装置3へのアクセ
スの振り分けは、アドレスバスに設定される値によって
決まる(例えば、上位8ビットを3−1,・・・、3−
nへの振り分けにする)。
When the external device 1 monitors or inspects the lower device 3 (including the test at the time of evaluation), the external device 1 communicates with the CPU device 2 by using a command, and
The U device 2 interprets the command and issues a command to the lower device. Therefore, in the interface between the external device 1 and the CPU device 2, a command generated by the external device 1 is interpreted by the CPU 21 of the CPU device 2.
Several commands (for example, a request command for reading the contents of the RAM 33, etc.) are provided. Note that the CPU device 2
The communication between the host and the lower-level device 3 is performed in accordance with a predetermined interface on the common bus (including the exchange of commands to be put on the address bus 41 and the data bus 42, various signals, and the like). Further, the distribution of accesses to each lower device 3 is determined by the value set in the address bus (for example, the upper 8 bits are 3-1,..., 3-
n).

【0016】CPU装置2は、プログラム制御により動
作するCPU21(CPU)と、各装置とのインタフェ
ースを制御する制御部22とから構成される。CPU装
置2は、本システム内の監視制御を司り、さらにデバッ
グ用ツールを接続するインタフェースを具備する。すな
わち、CPU装置2の制御部22を介してデバッグツー
ルである外部装置1(例えば、パーソナルコンピュータ
等)を接続すると、外部装置1からも本システム内の監
視制御が可能となる。
The CPU device 2 includes a CPU 21 (CPU) that operates under program control, and a control unit 22 that controls an interface with each device. The CPU device 2 manages monitoring and control in the present system, and further includes an interface for connecting a debugging tool. That is, when the external device 1 (for example, a personal computer or the like), which is a debugging tool, is connected via the control unit 22 of the CPU device 2, the external device 1 can also monitor and control the system.

【0017】CPU装置2の制御部22は、共通バス上
の各種信号(データ信号、制御信号)の送受信を行い、
外部装置1とのデータのやり取りを行う。
The control unit 22 of the CPU device 2 transmits and receives various signals (data signals and control signals) on the common bus.
Exchange data with the external device 1.

【0018】CPU装置2のCPU21は、制御部22
を介して、CPU装置2とのバス獲得制御、下位装置3
からの割込応答処理、外部装置1からの命令実行等を処
理する。また、CPU装置2−1とCPU装置2−2と
は、お互いに共通バス(アドレスバス2およびデータバ
ス3)を使用して下位装置3の監視制御を行うため、C
PU装置2−1は、CPU装置2−2との間でバス獲得
制御を行う必要がある。そこでバスマスタとなるために
お互いのBG431またはBG432の信号をそれぞれ
監視することによりバスファイト(バス上の信号のぶつ
かり)を発生させずに、共通バスを使用することができ
る。例えば、BG431がLowアクティブ信号として
CPU装置2−1がバスを獲得する場合、CPU装置2
−1の制御部21がBG432をLowレベルとして出
力する。CPU装置2−2では、BG431の入力がL
owレベルになっているのでCPU装置2−1がバスマ
スタとなったと認識することができ、自身のBG432
の信号をアサート(アクティブ、または発生とも言う)
せず、バスファイトを回避するようになっている。その
後、BG431の信号がHighレベルになると、CP
U装置2−1またはCPU装置2−2のうち、次にバス
獲得信号BG(BG431,またはBG432)をアサ
ートしたCPU装置がバスマスタとなる。なお、CPU
装置2の制御部22は、1サイクル(例えば、ライトサ
イクル、応答サイクル、リードサイクル、バーストリー
ドサイクル等)の処理が終わる毎に共通バスの獲得を手
放すために、バス獲得信号BGをHighレベルに戻
す。
The CPU 21 of the CPU device 2 includes a control unit 22
Via the bus control with the CPU device 2 and the lower device 3
, An instruction from the external device 1, and the like. Further, the CPU device 2-1 and the CPU device 2-2 perform monitoring and control of the lower-level device 3 by using a common bus (address bus 2 and data bus 3).
The PU device 2-1 needs to perform bus acquisition control with the CPU device 2-2. Therefore, the common bus can be used without generating a bus fight (collision of a signal on the bus) by monitoring each signal of the BG 431 or BG 432 to become a bus master. For example, when the CPU device 2-1 acquires a bus as the BG431 as a low active signal, the CPU device 2
The −1 control unit 21 outputs the BG 432 as a low level. In the CPU device 2-2, the input of BG431 is L
Since it is at the low level, it can be recognized that the CPU device 2-1 has become a bus master, and its own BG432
Assert signal (also called active or generated)
Instead, they avoid bus fights. After that, when the signal of BG431 becomes High level, CP
Of the U device 2-1 or the CPU device 2-2, the CPU device that has asserted the bus acquisition signal BG (BG431 or BG432) next becomes the bus master. In addition, CPU
The control unit 22 of the device 2 sets the bus acquisition signal BG to a high level in order to release the acquisition of the common bus every time one cycle (for example, a write cycle, a response cycle, a read cycle, a burst read cycle, etc.) is completed. return.

【0019】下位装置3は、CPU装置2からのバスア
クセスのインタフェースとなるDPRAM31(例え
ば、読み出し書き込みが同時にできるデュアルポートR
AMを示す)と、下位装置3内部を制御する制御部32
と、各種データ格納用のRAM33(例えば、RAMを
示す)と、下位装置3内の動作をプログラム制御で司る
CPU34(CPU)とから構成される。
The lower-level device 3 includes a DPRAM 31 (for example, a dual port R that can simultaneously read and write data) serving as an interface for bus access from the CPU device 2.
AM) and a control unit 32 for controlling the inside of the lower-level device 3.
And a RAM 33 (for example, a RAM) for storing various data, and a CPU 34 (CPU) for controlling the operation in the lower-level device 3 by program control.

【0020】下位装置3のCPU31は、CPU装置2
からDPRAM31にライトされたデータの内容を読み
だし、命令内容を認識(解析)し、それに従って動作す
る。例えば、命令を認識した下位装置3のCPU31
は、その命令が特定のCPU装置2に対して割込要求す
る命令(リード系のコマンド)なのか、全てのCPU装
置2に対して割込要求する命令(リード系のコマンド)
なのかを判別し、前者の場合は下位装置3の制御部32
に対して特定の割込信号(割込信号441または44
2)をアサートさせ、後者の場合は全ての割込信号(割
込信号431および432)をアサートさせることにな
る。
The CPU 31 of the lower-level device 3
, The contents of the data written to the DPRAM 31 are read out, the contents of the instruction are recognized (analyzed), and the operation is performed according to the contents. For example, the CPU 31 of the lower device 3 that has recognized the command
Is an instruction that requests an interrupt to a specific CPU device 2 (read command) or an instruction that requests an interrupt to all CPU devices 2 (read command)
And in the former case, the control unit 32 of the lower device 3
To a specific interrupt signal (interrupt signal 441 or 44
2) is asserted, and in the latter case, all interrupt signals (interrupt signals 431 and 432) are asserted.

【0021】例えば、下位装置3のCPU34がCPU
装置2−1の命令に従いCPU装置2−1に出力すべき
データの準備(DPRAM31にデータをロードする)
を完了すると、下位装置3のCPU34は、DPRAM
31から読み出したBG(BG431および432)の
信号のセーブデータとCPU装置2−1の命令の内容と
に従って、CPU装置2−1に割込要求を発生すべき命
令であれば、それに対応した割込信号431を制御部3
2にアサートさせ、命令を発したCPU装置2−1に対
して制御部32を介して割込要求をする。また、CPU
装置2からの命令の内容が全てのCPU装置2に対して
割込要求する命令であれば、DPRAM31にセーブし
ておいたバス獲得信号BGの状態によらず全ての割込信
号(割込信号441および442)を制御部32にアサ
ートさせる。
For example, if the CPU 34 of the lower device 3 is a CPU
Preparation of data to be output to the CPU 2-1 in accordance with an instruction from the device 2-1 (loading data into the DPRAM 31)
Is completed, the CPU 34 of the lower-level device 3
According to the save data of the BG (BG 431 and 432) signal read from the CPU 31 and the contents of the instruction of the CPU device 2-1, if the instruction is to issue an interrupt request to the CPU device 2-1, the corresponding interrupt request is issued. Control signal 3
2 is asserted, and an interrupt request is issued via the control unit 32 to the CPU device 2-1 that has issued the command. Also, CPU
If the content of the instruction from the device 2 is an instruction for requesting an interrupt to all the CPU devices 2, all the interrupt signals (interrupt signals) regardless of the state of the bus acquisition signal BG saved in the DPRAM 31. 441 and 442) are asserted by the control unit 32.

【0022】割込信号441を受信したCPU装置2−
1は、割込応答処理を実行する。割込応答のバスサイク
ルが終了すると、DPRAM31にロードされているデ
ータをリードする。それが完了すると、CPU装置2−
1は、CPU装置2−1は、一連の割込動作の動作完了
となる。
CPU device 2 receiving interrupt signal 441
1 executes an interrupt response process. When the interrupt response bus cycle ends, the data loaded in the DPRAM 31 is read. When that is completed, the CPU device 2-
1 indicates that the CPU device 2-1 completes a series of interrupt operations.

【0023】CPU装置2に外部装置1が接続される
と、CPU装置2の制御部22は、CPU装置2のCP
U21と外部装置1との両方からの命令要求を処理する
ようになり、どちらからの命令要求であるかを判別す
る。すなわち、制御部22は、外部装置1からの命令要
求の場合には、一端CPU21に制御(命令要求)を渡
し、CPU21が下位装置3内で解釈できる命令要求に
置き換え、その命令要求をCPU21から受けることに
より、共通バスの制御を行うことで下位装置とのやり取
りを行う。従って、前述の共通バス上での割込動作の説
明と同じように、外部装置1からも下位装置3の監視制
御ができるような構成になっている。
When the external device 1 is connected to the CPU device 2, the control unit 22 of the CPU device 2
Command requests from both U21 and the external device 1 are processed, and it is determined from which command request. That is, in the case of a command request from the external device 1, the control unit 22 once passes control (command request) to the CPU 21, replaces the command request with a command request that the CPU 21 can interpret in the lower-level device 3, and converts the command request from the CPU 21. The communication with the lower-level device is performed by controlling the common bus. Therefore, as in the description of the interrupt operation on the common bus, the external device 1 is configured to be able to monitor and control the lower-level device 3 as well.

【0024】次に、図1および図2を参照して、本実施
の形態例の動作を説明する。すなわち、本システムにお
ける、CPU装置2−1に接続された外部装置1が、下
位装置3−1のデータをリードする(データ要求命令を
CPU装置3−1に対して送信する)時のデバッグ動作
について図1、図2を用いて説明する。
Next, the operation of this embodiment will be described with reference to FIGS. That is, the debugging operation in the present system when the external device 1 connected to the CPU device 2-1 reads data of the lower device 3-1 (transmits a data request command to the CPU device 3-1). This will be described with reference to FIGS.

【0025】先ず外部装置1からデータ要求命令がCP
U装置2−1の制御部22に入力される。データ要求命
令を受け取った制御部22は、CPU21に制御を渡
す。すると、CPU21は、データ要求命令(データ要
求するコマンド)の内容を解析し、CPU21は、下位
装置3−1へのデータ要求命令を制御部22経由で行
う。制御部22は、データ要求命令(データを要求する
コマンド)を下位装置3に対して送信するために、BG
432の信号がHighレベルになっていることを確認
してからBG431の信号をLowレベルにして、共通
バスの使用権を獲得する。すなわち、CPU装置2−1
は、バスマスタとなる(ステップS1)。
First, the data request command from the external device 1 is CP
It is input to the control unit 22 of the U device 2-1. The control unit 22 that has received the data request command passes control to the CPU 21. Then, the CPU 21 analyzes the contents of the data request command (command for requesting data), and the CPU 21 issues a data request command to the lower-level device 3-1 via the control unit 22. The control unit 22 transmits a data request command (command for requesting data) to the lower
After confirming that the signal 432 is at the high level, the signal of the BG 431 is changed to the low level to acquire the right to use the common bus. That is, the CPU device 2-1
Becomes a bus master (step S1).

【0026】バスマスタとなったCPU装置2−1のC
PU21は、下位装置3−1のDPRAM31に前述の
データ要求命令をデータバス42に乗せることによりラ
イトする(ステップS2)。
C of the CPU device 2-1 which has become the bus master
The PU 21 writes the above-mentioned data request command on the data bus 42 in the DPRAM 31 of the lower device 3-1 (step S2).

【0027】下位装置3−1のDPRAM31は、デー
タバス42に乗っているデータ要求命令の内容をセーブ
すると共に、BG431およびBG432の状態もセー
ブする(ステップS3)。
The DPRAM 31 of the lower device 3-1 saves the contents of the data request command on the data bus 42 and also saves the states of the BG 431 and BG 432 (step S3).

【0028】次に下位装置3−1のCPU34がDRA
M31にライトされたデータ要求命令を読み出し、その
命令の内容に従って出力すべきデータをRAM33から
DPRAM31にロードする(ステップS4)。
Next, the CPU 34 of the lower-level device 3-1
The data request command written in M31 is read, and data to be output is loaded from the RAM 33 to the DPRAM 31 in accordance with the content of the command (step S4).

【0029】ロードが完了すると、下位装置3−1のC
PU34は、制御部32に割込出力を要求する。要求を
受けた制御部32は、DPRAM31にセーブしておい
たBG441およびBG442の状態からCPU装置2
−1に対して割込を発生させることを認識し、割込信号
441がアクティブになっていないことを確認してから
CPU装置2−1に対して割込信号441をアサートす
る(ステップS5)。
When the loading is completed, the lower device 3-1
The PU 34 requests the control unit 32 to output an interrupt. Upon receiving the request, the control unit 32 changes the state of the BG 441 and BG 442 saved in the DPRAM 31 to the CPU device 2.
-1 is recognized to generate an interrupt, and after confirming that the interrupt signal 441 is not active, the CPU 2-1 asserts the interrupt signal 441 (step S5). .

【0030】下位装置3−1からの割込信号441の入
力を認識したCPU装置2−1の制御部22は、CPU
21に割込が発生したことを知らせる。すると、CPU
21は、制御部22を介してBG431の信号をLow
レベルにして再度バスマスタとなり、割込応答サイクル
を実行する(ステップS6)。
The control unit 22 of the CPU device 2-1 that recognizes the input of the interrupt signal 441 from the lower-level device 3-1,
21 is notified that an interrupt has occurred. Then, CPU
Reference numeral 21 designates the signal of the BG 431 being Low via the control unit 22.
The level becomes the bus master again, and an interrupt response cycle is executed (step S6).

【0031】割込応答サイクルに対して下位装置3−1
のCPU34は、前もって受けた命令内容に応じたベク
タ番号等の応答をデータバス42を介してCPU装置2
−1にする(ステップS7)。
The lower order device 3-1 for the interrupt response cycle
The CPU 34 sends a response such as a vector number corresponding to the content of the command received in advance via the data bus 42 to the CPU device 2.
It is set to -1 (step S7).

【0032】制御部22を介してベクタ番号(割込から
の種別を示す:この場合はデータリードの準備が完了し
たことを示す)を受信したCPU装置2−1のCPU2
1は、ベクタ番号を解析することで、下位装置3−1に
対するデータ要求に対してデータリードの準備が完了し
たことを認識し、制御部22を介して下位装置3のDP
RAM31からデータをリードする(ステップS8)。
The CPU 2 of the CPU device 2-1 having received the vector number (indicating the type from the interrupt; in this case, indicating that the preparation for data reading has been completed) via the control unit 22
1 recognizes that the preparation for data read has been completed in response to the data request to the lower order device 3-1 by analyzing the vector number, and transmits the DP of the lower order device 3 via the control unit 22.
Data is read from the RAM 31 (step S8).

【0033】データを制御部22を介してリードしたC
PU装置2−1のCPU21は、リードしたデータを制
御部22を介して順次外部装置1に送られ、全ての必要
なデータをリードし終わると、一連の動作が終了となる
(ステップS9)。
The data read from the control unit 22 through the C
The CPU 21 of the PU device 2-1 sequentially sends the read data to the external device 1 via the control unit 22, and when all necessary data is read, a series of operations ends (step S9).

【0034】次に、CPU装置が3つの場合について、
図3を参照して説明する。図1との相違点は、CPU装
置2−3、バス獲得信号BG433、割込信号443が
追加されていることである。
Next, in the case of three CPU units,
This will be described with reference to FIG. The difference from FIG. 1 is that a CPU device 2-3, a bus acquisition signal BG433, and an interrupt signal 443 are added.

【0035】下位装置3のDPRAM31に新たにBG
433が追加されているので、下位装置3のCPU34
は割込信号443の出力先であるCPU装置2−1,2
−2,および2−3を前述の第1の実施の形態例のCP
U装置2台と同じように選択可能となるのは明らかであ
る。
A new BG is stored in the DPRAM 31 of the lower device 3.
433 has been added, so that the CPU 34
Are the CPU devices 2-1 and 2-2 to which the interrupt signal 443 is output.
-2 and 2-3 correspond to the CP of the first embodiment.
Obviously, it can be selected in the same way as two U devices.

【0036】上記したようにバス獲得信号BGと割込信
号をCPU装置が1つ増える毎に1つずつ追加していけ
ば、3つ以上のCPU装置から構成されるシステムにお
いても同様の動作が得られる。
As described above, if the bus acquisition signal BG and the interrupt signal are added one by one for each additional CPU device, the same operation can be performed in a system including three or more CPU devices. can get.

【0037】次に、本発明の第2の実施の形態につい
て、図を参照して説明する。図4を参照すると、図3と
の相違点は、バス獲得信号BG433の接続を下位装置
3のDPRAM31から下位装置5の制御部52に変更
したことである。DPRAM31のようなRAMデバイ
スは物理的にデータバス幅が決まっており、そこにバス
獲得信号BGを追加していくと、本来必要とするデータ
バスの本数を減らすことになるかDPRAMのハードウ
ェアの構成が大きくなる。
Next, a second embodiment of the present invention will be described with reference to the drawings. Referring to FIG. 4, the difference from FIG. 3 is that the connection of the bus acquisition signal BG433 is changed from the DPRAM 31 of the lower device 3 to the control unit 52 of the lower device 5. In a RAM device such as the DPRAM 31, the data bus width is physically determined, and if the bus acquisition signal BG is added to the data bus width, the number of data buses originally required will be reduced. The configuration becomes large.

【0038】すなわち、下位装置5は、CPU装置2か
らの共通バス上のデータのやり取りを行うDPRAM5
1と、共通バスの制御のやり取りを行い下位装置3内部
を制御する制御部52と、各種データ格納用のRAM5
3と、下位装置5内の動作をプログラム制御により司る
CPU54とから構成される。なお、制御部52は、B
G431,432,および433を一時的に保存する図
示していないフリップフロップを持っている。その他の
構成は、図3と同じ構成なので説明を省略する。
That is, the lower order device 5 is a DPRAM 5 for exchanging data on the common bus from the CPU device 2.
1, a control unit 52 for exchanging control of a common bus and controlling the inside of the lower order device 3, and a RAM 5 for storing various data.
3 and a CPU 54 that controls operations in the lower-level device 5 by program control. Note that the control unit 52
G431, 432, and 433 have a flip-flop (not shown) for temporarily storing. Other configurations are the same as those in FIG.

【0039】次に、図5および図6を参照して、本発明
の第2の実施の形態の動作について説明する。今、CP
U装置2−1に接続された外部装置1が、下位装置5−
1のデータをリードするコマンド(データ要求命令)を
CPU装置2に送信したとする。すると、外部装置1か
らデータ要求命令がCPU装置2−1の制御部22に入
力される。データ要求命令を受け取った制御部22は、
CPU21に制御を渡す。すると、CPU21は、デー
タ要求命令の内容を解析し、CPU21は、下位装置5
−1へのデータ要求命令を制御部22経由で行う。制御
部22は、データ要求命令(データを要求するコマン
ド)を下位装置5に対して送信するために、BG432
およびBG433の信号がHighレベルになっている
ことを確認してからBG431の信号をLowレベルに
して、共通バスの使用権を獲得する。すなわち、CPU
装置2−1は、バスマスタとなる(ステップS21)。
Next, the operation of the second embodiment of the present invention will be described with reference to FIGS. Now, CP
The external device 1 connected to the U device 2-1 is connected to the lower device 5-
It is assumed that a command (data request command) for reading the first data has been transmitted to the CPU device 2. Then, a data request command is input from the external device 1 to the control unit 22 of the CPU device 2-1. Upon receiving the data request command, the control unit 22
The control is passed to the CPU 21. Then, the CPU 21 analyzes the content of the data request command, and the CPU 21
-1 is issued via the control unit 22. The control unit 22 transmits a data request command (a command for requesting data) to the lower
Then, after confirming that the signal of the BG 433 is at the High level, the signal of the BG 431 is changed to the Low level to acquire the right to use the common bus. That is, CPU
The device 2-1 becomes a bus master (Step S21).

【0040】バスマスタとなったCPU装置2−1のC
PU21は、下位装置5−1のDPRAM51に前述の
データ要求命令をデータバス42に乗せることによりラ
イトする(ステップS22)。
C of the CPU device 2-1 that has become the bus master
The PU 21 writes the data request command described above on the data bus 42 in the DPRAM 51 of the lower-level device 5-1 (step S22).

【0041】下位装置のDPRAM51は、データバス
42に乗っているデータ要求命令の内容をセーブする
と、制御部52は、DPRAM51にデータ要求命令の
内容がセーブされるタイミングで制御部52内のフリッ
プフロップに、BG431,432,および433の状
態をセーブする(ステップS23)。
When the DPRAM 51 of the lower-level device saves the contents of the data request command on the data bus 42, the control unit 52 sets the flip-flop in the control unit 52 at the timing when the contents of the data request command are saved in the DPRAM 51. Then, the states of the BGs 431, 432, and 433 are saved (step S23).

【0042】次に下位装置5−1のCPU54がDRA
M51にライトされたデータ要求命令を読み出し、その
命令の内容に従って出力すべきデータをRAM53から
DPRAM51にロードする(ステップS24)。
Next, the CPU 54 of the lower order device 5-1
The data request command written in M51 is read, and data to be output is loaded from the RAM 53 to the DPRAM 51 in accordance with the content of the command (step S24).

【0043】ロードが完了すると、下位装置5−1のC
PU54は、制御部32に割込出力を要求する。要求を
受けた制御部52は、制御部52内のフリップフロップ
にセーブしておいたBG441、BG442、BG44
3の状態からCPU装置2−1に対して割込を発生させ
ることを認識し、割込信号441がアクティブになって
いないことを確認してからCPU装置2−1に対して割
込信号441をアサートする(ステップS25)。
When the loading is completed, the C
The PU 54 requests the control unit 32 to output an interrupt. Upon receiving the request, the control unit 52 saves the BG441, BG442, and BG44 saved in the flip-flop in the control unit 52.
3 to recognize that an interrupt is to be generated to the CPU 2-1 and confirm that the interrupt signal 441 is not active, and then to the CPU 2-1 for the interrupt signal 441. Is asserted (step S25).

【0044】下位装置5−1からの割込信号441の入
力を認識したCPU装置2−1の制御部22は、CPU
21に割込が発生したことを知らせる。すると、CPU
21は、制御部22を介してBG431の信号をLow
レベルにして再度バスマスタとなり、割込応答サイクル
を実行する(ステップS26)。
The control unit 22 of the CPU device 2-1 that recognizes the input of the interrupt signal 441 from the lower-level device 5-1,
21 is notified that an interrupt has occurred. Then, CPU
Reference numeral 21 designates the signal of the BG 431 being Low via the control unit 22.
The level becomes the bus master again, and an interrupt response cycle is executed (step S26).

【0045】割込応答サイクルに対して下位装置5−1
のCPU54は、前もって受けた命令内容に応じたベク
タ番号等の応答をデータバス42を介してCPU装置2
−1にする(ステップS27)。
The lower order device 5-1 responds to the interrupt response cycle.
The CPU 54 sends a response such as a vector number according to the content of the command received in advance via the data bus 42 to the CPU device 2.
It is set to -1 (step S27).

【0046】制御部22を介してベクタ番号(割込から
の種別を示す:この場合はデータリードの準備が完了し
たことを示す)を受信したCPU装置2−1のCPU2
1は、ベクタ番号を解析することで、下位装置5−1に
対するデータ要求に対してデータリードの準備が完了し
たことを認識し、制御部52を介して下位装置5−1の
DPRAM51からデータをリードする(ステップS2
8)。
The CPU 2 of the CPU device 2-1 that has received the vector number (indicating the type from the interrupt; in this case, indicating that the preparation for data reading has been completed) via the control unit 22
1 recognizes that the preparation for data read has been completed in response to the data request to the lower order device 5-1 by analyzing the vector number, and transfers the data from the DPRAM 51 of the lower order device 5-1 via the control unit 52. Read (step S2)
8).

【0047】データを制御部22を介してリードしたC
PU装置2−1のCPU21は、リードしたデータを制
御部22を介して順次外部装置1に送られ、全ての必要
なデータをリードし終わると、一連の動作が終了となる
(ステップS29)。
The data read from the control unit 22 through the C
The CPU 21 of the PU device 2-1 sequentially sends the read data to the external device 1 via the control unit 22, and when all necessary data has been read, a series of operations ends (step S29).

【0048】以上説明したように、本発明の第2の実施
の形態は、第1の実施の形態でのCPU装置2からの命
令時に下位装置3のDPRAM31ではなく、制御部5
2でどのCPU制御部2からの命令であるかをフリップ
フロップにセーブされたBGにより認識することによ
り、前記第1の実施の形態と同様の効果が可能となり、
デュアルポートRAMのデータバス幅も最大限に使用す
ることができる。
As described above, according to the second embodiment of the present invention, the control unit 5 is used instead of the DPRAM 31 of the lower order device 3 at the time of an instruction from the CPU device 2 in the first embodiment.
2 recognizes the instruction from which CPU control unit 2 from the BG saved in the flip-flop, thereby enabling the same effect as in the first embodiment.
The data bus width of the dual port RAM can also be used to the maximum.

【0049】次に、本発明の第3の実施の形態につい
て、図を参照して説明する。図6を参照すると、図3と
の相違点は、CPU装置2をCPU装置6に、下位装置
3を下位装置7に、それぞれ置き替えた点と、各CPU
装置6の入力および各下位装置7の出力に使用している
それぞれの割込信号を割込信号44の1本化にし、下位
装置7に割込禁止信号45を全てのCPU装置6に接続
することにより、他のCPU装置6の割込応答処理を禁
止した点である。
Next, a third embodiment of the present invention will be described with reference to the drawings. Referring to FIG. 6, the difference from FIG. 3 is that the CPU device 2 is replaced with the CPU device 6 and the lower device 3 is replaced with the lower device 7, respectively.
The respective interrupt signals used for the input of the device 6 and the output of each lower device 7 are integrated into the interrupt signal 44, and the interrupt prohibition signal 45 is connected to the lower device 7 to all the CPU devices 6. Thus, the interrupt response processing of the other CPU device 6 is prohibited.

【0050】すなわち、CPU装置6は、プログラム制
御により動作するCPU61(CPU)と、各装置との
インタフェースを制御する制御部62とから構成され
る。CPU装置62は、本システム内の監視制御を司
り、さらにデバッグ用ツールを接続するインタフェース
を具備する。すなわち、CPU装置6の制御部62を介
してデバッグツールである外部装置1を接続すると、第
1の実施の形態と同様に外部装置1からも本システム内
の監視制御が可能となる。
That is, the CPU device 6 includes a CPU 61 (CPU) that operates under program control, and a control unit 62 that controls an interface with each device. The CPU device 62 manages monitoring and control in the system, and further includes an interface for connecting a debugging tool. That is, when the external device 1 which is a debugging tool is connected via the control unit 62 of the CPU device 6, monitoring and control in the system can be performed from the external device 1 as in the first embodiment.

【0051】CPU装置2の制御部62は、共通バス上
の各種信号(データ信号、制御信号)の送受信を行い、
外部装置1とのデータのやり取りを行う。CPU装置6
のCPU装置61は、制御部62を介して、CPU装置
6とのバス獲得制御、下位装置7からの割込処理、外部
装置1からの命令実行等を処理する。
The control unit 62 of the CPU device 2 transmits and receives various signals (data signals and control signals) on the common bus.
Exchange data with the external device 1. CPU device 6
The CPU device 61 processes bus acquisition control with the CPU device 6, interrupt processing from the lower-level device 7, execution of instructions from the external device 1, and the like via the control unit 62.

【0052】下位装置7は、CPU装置6からの共通バ
ス上のデータのやり取りを行うDPRAM71と、共通
バスの制御のやり取りを行い下位装置7内部を制御する
制御部72と、各種データ格納用のRAM73と、下位
装置7内の動作をプログラム制御により司るCPU74
とから構成される。
The lower device 7 includes a DPRAM 71 for exchanging data on the common bus from the CPU device 6, a control unit 72 for exchanging control of the common bus and controlling the inside of the lower device 7, and a control unit 72 for storing various data. A RAM 73 and a CPU 74 for controlling operations in the lower-level device 7 by program control
It is composed of

【0053】CPU装置6の制御部62が、下位装置へ
の命令を転送する場合または割込応答処理を行う場合、
各バス獲得信号BGと割込禁止信号45とを監視し、両
方ともアクティブになっていなければ、他のCPU装置
6の割込応答動作を禁止するために、割込禁止信号44
をアサートし、割込応答動作を確保する。どちらかがア
クティブになっている場合には、両方ともアンアクティ
ブになるまで待つことになる。また、制御部62は、自
分が割込禁止信号44を発生しているときに割込信号4
5が共通バス上で発生すると、下位装置7からの割込と
して割込信号を認識し、自分が割込禁止信号44を発生
していないときに割込信号45が共通バス上で発生した
としても、下位装置7からの割込として割込信号を認識
しない。なお、CPU装置6間同士の転送の場合は、割
込禁止信号45を監視しないで、各バス獲得信号BGを
監視し、アクティブになっていなければ、自分のバス獲
得信号をアクティブすることにより、バスを獲得する。
When the control unit 62 of the CPU device 6 transfers an instruction to a lower-level device or performs an interrupt response process,
Each bus acquisition signal BG and the interrupt prohibition signal 45 are monitored, and if both are not active, the interrupt prohibition signal 44 is prohibited in order to prohibit another CPU device 6 from responding to the interrupt.
Is asserted to secure the interrupt response operation. If either is active, it will wait until both become inactive. When the control unit 62 generates the interrupt prohibition signal 44, the control unit 62 outputs the interrupt signal 4
5 is generated on the common bus, the interrupt signal is recognized as an interrupt from the lower-level device 7, and if the interrupt signal 45 is generated on the common bus when the own device does not generate the interrupt prohibition signal 44, Also does not recognize an interrupt signal as an interrupt from the lower order device 7. In the case of transfer between the CPU devices 6, each bus acquisition signal BG is monitored without monitoring the interrupt prohibition signal 45, and if not activated, the own bus acquisition signal is activated. Get the bus.

【0054】このように、第1および第2の実施の形態
と比較すると、割込信号の配線の数量の減少(CPU装
置が増えると効果大)および下位装置へのバス獲得信号
の配慮がなくなる。
As described above, as compared with the first and second embodiments, the number of interrupt signal wirings is reduced (the effect increases as the number of CPU devices increases), and the consideration of the bus acquisition signal to lower devices is eliminated. .

【0055】次に、図6および図7を参照して、本発明
の第3の実施の形態の動作について説明する。今、CP
U装置6−1に接続された外部装置1が、下位装置7−
1のデータをリードするコマンド(データ要求命令)を
CPU装置6−1に送信したとする。すると、外部装置
1からデータ要求命令がCPU装置6−1の制御部62
に入力される。データ要求命令を受け取った制御部62
は、CPU61に制御を渡す。すると、CPU61は、
データ要求命令の内容を解析し、CPU61は、下位装
置7−1へのデータ要求命令(データを要求するコマン
ド)を制御部62経由で行う。制御部62は、データ要
求命令を下位装置7−1に対して送信するために、BG
432およびBG433の信号がHighレベル(アン
アクティブ)および割込禁止信号45がHighレベル
(アンアクティブ)になっていることを確認してからB
G431の信号および割込禁止信号45をそれぞれLo
wレベル(アクティブ)にして、共通バスの使用権を獲
得する。すなわち、CPU装置6−1は、バスマスタと
なる(ステップS41)。
Next, the operation of the third embodiment of the present invention will be described with reference to FIGS. Now, CP
The external device 1 connected to the U device 6-1 is connected to the lower device 7-
It is assumed that a command (data request command) for reading the first data has been transmitted to the CPU device 6-1. Then, the data request command is sent from the external device 1 to the control unit 62 of the CPU device 6-1.
Is input to Control unit 62 that has received the data request command
Passes control to the CPU 61. Then, the CPU 61
The CPU 61 analyzes the contents of the data request command, and issues a data request command (command for requesting data) to the lower-level device 7-1 via the control unit 62. The control unit 62 transmits a data request command to the lower-level device 7-1.
After confirming that the signals 432 and BG433 are at the high level (inactive) and the interrupt prohibition signal 45 is at the high level (inactive),
The G431 signal and the interrupt prohibition signal 45 are set to Lo, respectively.
At the w level (active), the right to use the common bus is acquired. That is, the CPU device 6-1 becomes a bus master (step S41).

【0056】バスマスタとなったCPU装置6−1のC
PU61は、下位装置7−1のDPRAM71に前述の
データ要求命令をデータバス42に乗せることによりラ
イトする(ステップS42)。
C of the CPU device 6-1 which has become the bus master
The PU 61 writes the above-mentioned data request command on the data bus 42 in the DPRAM 71 of the lower order device 7-1 (step S42).

【0057】下位装置7−1のDPRAM71は、デー
タバス42に乗っているデータ要求命令の内容をセーブ
すると、制御部72は、DPRAM71にデータ要求命
令の内容がセーブされる(ステップS43)。
When the DPRAM 71 of the lower order device 7-1 saves the content of the data request command on the data bus 42, the control unit 72 saves the content of the data request command in the DPRAM 71 (step S43).

【0058】次に下位装置7−1のCPU74がDRA
M71にライトされたデータ要求命令を読み出し、その
命令の内容に従って出力すべきデータをRAM73から
DPRAM71にロードする(ステップS44)。
Next, the CPU 74 of the lower order device 7-1 sends the DRA
The data request command written in M71 is read, and data to be output is loaded from RAM 73 to DPRAM 71 in accordance with the content of the command (step S44).

【0059】ロードが完了すると、下位装置7−1のC
PU74は、制御部72に割込出力を要求する。要求を
受けた制御部72は、割込信号44がアクティブになっ
ていないことを確認してから割込信号44をアサートす
る(ステップS45)。
When the loading is completed, the C
The PU 74 requests the control unit 72 to output an interrupt. Upon receiving the request, the control unit 72 confirms that the interrupt signal 44 is not active, and then asserts the interrupt signal 44 (step S45).

【0060】下位装置7−1からの割込信号44の入力
を認識したCPU装置6−1の制御部62は、CPU6
1に割込が発生したことを知らせる。すると、CPU6
1は、制御部62を介してBG431の信号をLowレ
ベルにして再度バスマスタとなり、割込応答サイクルを
実行する(ステップS46)。
The control unit 62 of the CPU device 6-1 that recognizes the input of the interrupt signal 44 from the lower device 7-1,
Inform 1 that an interrupt has occurred. Then, CPU6
1 sets the signal of the BG 431 to the Low level via the control unit 62 and becomes the bus master again, and executes the interrupt response cycle (step S46).

【0061】割込応答サイクルに対して下位装置7−1
のCPU74は、前もって受けた命令内容に応じたベク
タ番号等の応答をデータバス42を介してCPU装置6
−1にする(ステップS47)。
The lower order device 7-1 for the interrupt response cycle
The CPU 74 sends a response such as a vector number corresponding to the content of the command received in advance via the data bus 42 to the CPU device 6.
It is set to -1 (step S47).

【0062】制御部62を介してベクタ番号(割込から
の種別を示す:この場合はデータリードの準備が完了し
たことを示す)を受信したCPU装置6−1のCPU6
1は、ベクタ番号を解析するとことで、下位装置7−1
に対するデータ要求に対してデータリードの準備が完了
したことを認識し、制御部72を介して下位装置7−1
のDPRAM71からデータをリードする(ステップS
48)。
The CPU 6 of the CPU device 6-1 that has received the vector number (indicating the type from the interrupt; in this case, indicating that the preparation for data reading has been completed) via the control unit 62.
1 indicates that the lower-level device 7-1 is to analyze the vector number.
That the data read preparation is completed in response to the data request to the lower device 7-1 via the control unit 72.
Is read from the DPRAM 71 (step S
48).

【0063】データを制御部62を介してリードしたC
PU装置6−1のCPU61は、リードしたデータを制
御部62を介して順次外部装置1に送られ、全ての必要
なデータをリードし終わると、一連の動作が終了となる
(ステップS49)。
The data which is read via the control unit 62
The CPU 61 of the PU device 6-1 sequentially sends the read data to the external device 1 via the control unit 62, and when all necessary data has been read, a series of operations ends (step S49).

【0064】以上第3の実施の形態で説明したようなシ
ステムを構成すると、下位装置7への配線を削減し、さ
らに割込信号を1本に削減することができつつ、外部装
置1を接続したCPU装置6のみが下位装置7からの割
込要求を受け取ることができる。
When the system as described in the third embodiment is configured, the wiring to the lower-level device 7 can be reduced, the number of interrupt signals can be reduced to one, and the external device 1 can be connected. Only the CPU device 6 that has received the interrupt request from the lower-level device 7 can receive the interrupt request.

【0065】[0065]

【発明の効果】以上、説明したように本発明は、マルチ
CPU装置システムで使用されるバス獲得信号を下位装
置に接続して、CPU装置の命令受信時にバス獲得信号
の状態もセーブするようにし、下位装置が割込発生時に
セーブしたバス獲得信号を下位装置が読み出すことで割
込先のCPU装置を判別できるようにしているため、C
PU装置の外に割込を制御する回路を設けることなく、
最小限の回路変更により下位装置から命令のあったCP
U装置にのみに割込が可能になるという効果がある。更
に、このような構成に、複数のCPU装置の内1つに接
続した外部装置が、下位装置に対してデータ要求の命令
を発するときも、下位装置が割込発生時に割込先のCP
U装置を下位装置が判別できるため、他のCPU装置に
割込が行かないようになり、外部装置がデータ要求の命
令の発行をやり直す必要なく、要求のあったデータが確
実に外部装置の届くという効果がある。
As described above, according to the present invention, the bus acquisition signal used in the multi-CPU system is connected to the lower-level device so that the state of the bus acquisition signal is saved when the CPU device receives an instruction. Since the lower-level device reads the bus acquisition signal saved by the lower-level device when an interrupt occurs, the lower-level device can determine the CPU device of the interrupt destination.
Without providing a circuit for controlling interrupts outside the PU device,
CP that received an instruction from the lower-level device with minimal circuit changes
There is an effect that an interrupt can be made only to the U device. Further, even when an external device connected to one of the plurality of CPU devices issues a data request command to a lower-level device, the lower-level device has an interrupt destination CP when an interrupt occurs.
Since the U device can be determined by the lower device, the CPU does not interrupt other CPU devices, and the external device does not need to reissue the data request instruction, and the requested data can reach the external device reliably. This has the effect.

【0066】また、本発明は、CPU装置が、バス獲得
信号の発生時に割込禁止信号を発生し、その割込禁止信
号発生中に下位装置からの割込信号が発生されると、割
込要求を受け付けるようにしているため、CPU装置の
外に割込を制御する回路を設けることなく、最小限の回
路変更により下位装置から命令のあったCPU装置にの
みに割込が可能になるという効果がある。
Further, according to the present invention, when a CPU device generates an interrupt prohibition signal when a bus acquisition signal is generated and an interrupt signal from a lower device is generated during the generation of the interrupt prohibition signal, Since the request is accepted, it is possible to interrupt only to the CPU device that has been instructed by the lower-level device with a minimum circuit change without providing a circuit for controlling the interrupt outside the CPU device. effective.

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

【図1】本発明の第1の実施の形態におけるシステムの
構成(CPU装置2台)を示すブロック図である。
FIG. 1 is a block diagram illustrating a configuration of a system (two CPU devices) according to a first embodiment of the present invention.

【図2】図1のCPU装置の下位装置への命令実行時に
おけるフローチャートである。
FIG. 2 is a flowchart at the time of executing an instruction to a lower-level device of the CPU device of FIG. 1;

【図3】本発明の第1の実施の形態におけるシステムの
構成(CPU装置3台)を示すブロック図である。
FIG. 3 is a block diagram showing a system configuration (three CPU units) according to the first embodiment of the present invention.

【図4】本発明の第2の実施の形態におけるシステムの
構成を示すブロック図である。
FIG. 4 is a block diagram illustrating a configuration of a system according to a second embodiment of the present invention.

【図5】図4のCPU装置の下位装置への命令実行時に
おけるフローチャートである。
5 is a flowchart at the time of executing an instruction to a lower-level device of the CPU device of FIG. 4;

【図6】本発明の第3の実施の形態におけるシステムの
構成を示すブロック図である。
FIG. 6 is a block diagram illustrating a configuration of a system according to a third embodiment of the present invention.

【図7】図6のCPU装置の下位装置への命令実行時に
おけるフローチャートである。
7 is a flowchart at the time of executing an instruction to a lower-level device of the CPU device of FIG. 6;

【図8】従来のシステムの構成を示すブロック図であ
る。
FIG. 8 is a block diagram showing a configuration of a conventional system.

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

1 外部装置 2,6 CPU装置 3,5,7 下位装置 21,34,54,61,74 CPU 22,32,52,62,72 制御部 31,51,71 DPRAM 33,53,73 RAM 1 External device 2, 6 CPU device 3, 5, 7 Lower device 21, 34, 54, 61, 74 CPU 22, 32, 52, 62, 72 Controller 31, 51, 71 DPRAM 33, 53, 73 RAM

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 共通バスに接続した複数のCPU装置と
複数の下位装置とを備え、前記CPU装置毎に対応した
バス獲得信号により共通バスの獲得を行うマルチCPU
システムにおいて、前記下位装置は、前記CPU装置か
らのコマンドを受け付けた場合に前記バス獲得信号を記
憶する記憶手段と、前記記憶手段によって記憶したバス
獲得信号に対応するCPU装置に割込を発生する割込発
生手段とを有することを特徴とするマルチCPUシステ
ム。
1. A multi-CPU having a plurality of CPU devices and a plurality of lower-level devices connected to a common bus, and acquiring a common bus by a bus acquisition signal corresponding to each CPU device.
In the system, the lower-level device generates an interrupt to a storage device that stores the bus acquisition signal when a command from the CPU device is received, and to a CPU device corresponding to the bus acquisition signal stored by the storage device. A multi-CPU system comprising an interrupt generating means.
【請求項2】 共通バスに接続した複数のCPU装置と
複数の下位装置とを備え、前記CPU装置毎に対応した
バス獲得信号により共通バスの獲得を行うマルチCPU
システムにおいて、1つの前記CPU装置に接続した外
部装置を備え、前記外部装置が接続している前記CPU
装置に対して前記下位装置へのデータの読出要求を行う
と、前記CPU装置は、前記バス獲得信号を発生するこ
とにより前記共通バスを介してデータ要求のコマンドを
送信する要求手段と、前記要求手段により前記下位装置
から発生した割込信号を受信すると、前記バス獲得信号
を発生することにより前記共通バスを介して前記下位装
置から要求したデータを読み出して前記外部装置に読み
出したデータを転送する読出転送手段とを有し、前記下
位装置は、前記要求手段によるデータ要求のコマンドを
受け付けると共に前記バス獲得信号を記憶する記憶手段
と、前記受け付けたデータ要求のコマンドに従ってデー
タを渡す準備を行うと前記記憶手段によって記憶したバ
ス獲得信号に対応するCPU装置に割込を発生する割込
発生手段とを有することを特徴とするマルチCPUシス
テム。
2. A multi-CPU having a plurality of CPU devices and a plurality of lower-level devices connected to a common bus, and acquiring a common bus by a bus acquisition signal corresponding to each CPU device.
An external device connected to one CPU device in the system, wherein the CPU connected to the external device
When a data read request to the lower-level device is issued to the device, the CPU device generates a bus acquisition signal to transmit a data request command via the common bus; Means for receiving the interrupt signal generated from the lower device, generating the bus acquisition signal, reading the data requested from the lower device via the common bus, and transferring the read data to the external device. A read transfer unit, wherein the lower-level device receives a data request command from the request unit and stores the bus acquisition signal, and prepares to transfer data according to the received data request command. Interrupt generating means for generating an interrupt in the CPU device corresponding to the bus acquisition signal stored by the storage means. Multi-CPU system, characterized in that.
【請求項3】 前記記憶手段は、前記共通バス上に乗っ
たコマンドの内容を書き込むメモリのデータ巾を拡張し
たエリアに書き込むことを特徴とする請求項1または2
記載のマルチCPUシステム。
3. The storage unit according to claim 1, wherein the storage unit writes the content of the command on the common bus to an area having an extended data width of a memory for writing the content of the command.
A multi-CPU system as described.
【請求項4】 前記記憶手段は、フリップフロップに書
き込むことを特徴とする請求項1または2記載のマルチ
CPUシステム。
4. The multi-CPU system according to claim 1, wherein said storage means writes data to a flip-flop.
【請求項5】 共通バスに接続した複数のCPU装置と
複数の下位装置とを備え、前記CPU装置が前記CPU
装置毎に対応したバス獲得信号により共通バスの獲得を
行うことで前記下位装置のデータのやり取りを行い、前
記CPU装置が前記下位装置からの共通の割込信号によ
り割込を受け付けるマルチCPUシステムにおいて、前
記共通バスの獲得を行った前記CPU装置が前記下位装
置からの割込を自分以外のCPU装置に割込を抑える共
通の割込禁止信号を前記共通バス上に備え、前記CPU
装置は、前記バス獲得信号の発生時に前記割込禁止信号
を発生する割込禁止発生手段と、前記割込禁止発生手段
による前記割込禁止信号発生中に前記下位装置からの割
込信号が発生されると、割込要求を受け付ける割込受付
手段とを有することを特徴とするマルチCPUシステ
ム。
5. A system comprising: a plurality of CPU devices connected to a common bus; and a plurality of lower-level devices, wherein the CPU device includes a CPU.
In a multi-CPU system in which the lower device is exchanged by acquiring a common bus by a bus acquisition signal corresponding to each device, and the CPU device accepts an interrupt by a common interrupt signal from the lower device. Wherein the CPU device that has acquired the common bus has a common interrupt prohibition signal on the common bus for suppressing an interrupt from the lower-level device to a CPU device other than itself,
The device includes an interrupt prohibition generating means for generating the interrupt prohibition signal when the bus acquisition signal is generated, and an interrupt signal from the lower-level device being generated during generation of the interrupt prohibition signal by the interrupt prohibition generating means. And an interrupt receiving means for receiving an interrupt request.
【請求項6】 前記CPU装置は、前記割込禁止信号を
発生していない場合に前記下位装置からの前記割込信号
が発生されても割込要求を受け付けない割込非受付手段
を有することを特徴とする請求項5記載のマルチCPU
システム。
6. The CPU device further includes an interrupt non-accepting unit that does not accept an interrupt request even when the interrupt signal is generated from the lower-level device when the interrupt prohibiting signal is not generated. The multi-CPU according to claim 5, wherein
system.
JP2000236807A 2000-08-04 2000-08-04 Multi-cpu system Pending JP2002049606A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000236807A JP2002049606A (en) 2000-08-04 2000-08-04 Multi-cpu system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000236807A JP2002049606A (en) 2000-08-04 2000-08-04 Multi-cpu system

Publications (1)

Publication Number Publication Date
JP2002049606A true JP2002049606A (en) 2002-02-15

Family

ID=18728793

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000236807A Pending JP2002049606A (en) 2000-08-04 2000-08-04 Multi-cpu system

Country Status (1)

Country Link
JP (1) JP2002049606A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005342031A (en) * 2004-05-31 2005-12-15 Takeya Co Ltd Game machine
JP2006352706A (en) * 2005-06-17 2006-12-28 Hitachi Ltd Microprocessor, network system and communication method
JP2013539577A (en) * 2010-08-23 2013-10-24 クゥアルコム・インコーポレイテッド Interrupt-based command processing

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005342031A (en) * 2004-05-31 2005-12-15 Takeya Co Ltd Game machine
JP2006352706A (en) * 2005-06-17 2006-12-28 Hitachi Ltd Microprocessor, network system and communication method
JP2013539577A (en) * 2010-08-23 2013-10-24 クゥアルコム・インコーポレイテッド Interrupt-based command processing

Similar Documents

Publication Publication Date Title
KR100513820B1 (en) Bus-to-bus bridge circuit with integrated loopback test capability and method of use
JP2002342299A (en) Cluster system, computer and program
US20080010643A1 (en) Multiprocessor system and access right setting method in the multiprocessor system
JPH02224140A (en) Interruption testing device
US6523077B1 (en) Data processing apparatus and data processing method accessing a plurality of memories in parallel
JPS621057A (en) Transfer controller
JP2002049606A (en) Multi-cpu system
US20060117226A1 (en) Data communication system and data communication method
US20020174282A1 (en) Multiprocessor system
US6940311B2 (en) Data transmission system
US11455248B2 (en) Semiconductor device capable of performing software lock-step
JP2002032326A (en) Extended slot hot plug controller
KR101226389B1 (en) SYSTEM AND METHOD FOR CONTROLLING EXCLUSIVE ACCESS IN SoC
JP2584903B2 (en) External device control method
US6505276B1 (en) Processing-function-provided packet-type memory system and method for controlling the same
JP3596730B2 (en) Memory control device and memory control method
KR20050067324A (en) Interface device between master/slave devices and method thereof
JPH03292540A (en) Diagnostic device for abnormality of computer
US20030220782A1 (en) Configuration for in-circuit emulation of a program-controlled unit
KR20010060493A (en) Method For Inter Processonr Memory Coherency Verification in Switching System
JPH06150026A (en) Microcomputer and emulator
JPH04205047A (en) Data processor
JPH0830514A (en) Controller system
JPH06195239A (en) Integrated circuit chip mounting cpu and emulator pod
JPH0238279A (en) Data transmission control device

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20050315

RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20050317

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050516

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20050802