JPH0247778B2 - - Google Patents
Info
- Publication number
- JPH0247778B2 JPH0247778B2 JP59043501A JP4350184A JPH0247778B2 JP H0247778 B2 JPH0247778 B2 JP H0247778B2 JP 59043501 A JP59043501 A JP 59043501A JP 4350184 A JP4350184 A JP 4350184A JP H0247778 B2 JPH0247778 B2 JP H0247778B2
- Authority
- JP
- Japan
- Prior art keywords
- cpu
- main
- main cpu
- slave
- bus
- 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.)
- Expired - Lifetime
Links
Landscapes
- Hardware Redundancy (AREA)
Description
【発明の詳細な説明】
[産業上の利用分野]
本発明は、マルチプロセツサシステムに関しさ
らに詳しくは、スレーブ中央処理装置(以下、
CPUと略す。)がメインバスを占有するサイクル
で異常が生じた時に常に正確にメインCPUがス
レーブCPUに関する異常処理ルーチンを実行す
るマルチプロセツサシステムに関する。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a multiprocessor system, and more particularly, to a slave central processing unit (hereinafter referred to as
Abbreviated as CPU. ) relates to a multiprocessor system in which a main CPU always accurately executes an abnormality processing routine regarding a slave CPU when an abnormality occurs in a cycle in which a main CPU occupies the main bus.
[従来の技術]
メインCPUとスレーブCPUとから成る従来の
マルチプロセツサシステムにおいて、スレーブ
CPUがメインバスを使用しているサイクル中に
何らかの異常が検出された場合には、割り込みが
発生しメインCPUによつてスレーブCPUの異常
処理ルーチンが実行されていた。[Prior art] In a conventional multiprocessor system consisting of a main CPU and a slave CPU, the slave
If any abnormality is detected during a cycle in which the CPU is using the main bus, an interrupt is generated and the abnormality handling routine of the slave CPU is executed by the main CPU.
[発明が解決しようとする課題]
しかし、この場合、異常が検出されて異常処理
ルーチンへ飛ぼうとしてもメインCPU自体にホ
ールトがかけられていてその動作が停止している
時には、メインCPU自体も異常処理ルーチンを
実行できない。又、当然異常があつたためスレー
ブCPUは処理を実行できない。したがつて、メ
インもスレーブも動作が停止したままとなり、シ
ステム全体が機能しなくなつてしまう。[Problem to be solved by the invention] However, in this case, even if an abnormality is detected and an attempt is made to jump to the abnormality processing routine, the main CPU itself is halted and its operation is stopped. Unable to execute error handling routine. Also, as a result of the abnormality, the slave CPU cannot execute the process. Therefore, both the main and slave devices remain inactive, causing the entire system to stop functioning.
本発明は、上記の欠点を除去し、マルチプロセ
ツサシステムにおいてスレーブCPUのサイクル
時に異常が検出された場合、常に正確にメイン
CPUによつて異常処理ルーチンが実行される装
置を提供することを目的とする。 The present invention eliminates the above-mentioned drawbacks, and in a multiprocessor system, whenever an abnormality is detected during the slave CPU cycle, the main
The object of the present invention is to provide a device in which an abnormality handling routine is executed by a CPU.
[課題を解決するための手段]
本発明は、
メインバスを使用するメインCPUと、
前記メインバスを使用するスレーブCPUと、
前記メインCPU及び前記スレーブCPUが前記
メインバスを占有する比率を設定するメインバス
占有率設定手段と、
前記スレーブCPUが前記メインバスを使用中
に発生したエラーを検出し、該エラーを検出する
と同時に前記スレーブCPUの前記メインバス占
有比率を0とし、さらにエラーに応答して割込み
信号の発生指示する信号をを出力する異常検出手
段と、
該異常検出手段よりの出力信号に応答して前記
メインCPUを制御する手段に対し初期化を指示
する信号を与え、前記メインCPUがホールト状
態にあつた場合には該ホールト状態を解除すべく
前記メインCPUを制御することを特徴とする。[Means for Solving the Problems] The present invention provides: a main CPU that uses a main bus; a slave CPU that uses the main bus; and a ratio at which the main CPU and the slave CPU occupy the main bus. a main bus occupancy setting means, detecting an error that occurs while the slave CPU is using the main bus, setting the main bus occupancy ratio of the slave CPU to 0 at the same time as detecting the error, and further responding to the error. an abnormality detection means for outputting a signal instructing the generation of an interrupt signal, and a signal for instructing initialization to the means for controlling the main CPU in response to the output signal from the abnormality detection means; If the main CPU is in a halt state, the main CPU is controlled to release the halt state.
[実施例]
本発明は、スレーブCPUがメインバスを占有
するサイクルで異常が生じた場合、異常検出回路
がそれを検出し、さらにそれがメインCPUを制
御しているレジスタを操作したり、スレーブ
CPUのメインバス占有率を0にしてメインCPU
がスレーブCPUの異常処理ルーチンを確実に実
行する。[Example] In the present invention, when an abnormality occurs in a cycle in which the slave CPU occupies the main bus, the abnormality detection circuit detects it and further operates the register controlling the main CPU, and the slave CPU
Set the main bus occupancy rate of the CPU to 0 and use the main CPU
ensures that the slave CPU's error handling routine is executed.
本発明は、たとえばメインバスにおけるスレー
ブCPUの占有率を決定するための可変的な数値
を格納するメインバス占有率設定レジスタを備え
メインCPUとスレーブCPUを2者択一的にメイ
ンバスと接続・切断するバスマルチプレクサと、
メインバス上に異常が生じたことを検出する機能
と異常を検出した時に、復旧処理用レジスタに異
常の起きた時の状態をラツチさせる機能とさらに
同時に前記メインバス占有率設定レジスタをクリ
アする機能と前記メインCPUに割り込みを発生
させるための割り込み発生回路にトリガ信号を入
力する機能とを備える異常検出回路と、前記メイ
ンバスとつながり前記メインCPUを制御しさら
に前記割り込み発生回路からの信号によりクリア
されるメインCPU制御レジスタと、前記メイン
バスとつながり前記スレーブCPU制御するスレ
ーブCPU制御レジスタとから構成される。 The present invention provides a main bus occupancy setting register that stores a variable value for determining the occupancy of the slave CPU on the main bus, and connects the main CPU and the slave CPU to the main bus. a bus multiplexer to disconnect;
A function to detect that an abnormality has occurred on the main bus, a function to latch the state at the time of the abnormality in the recovery processing register when an abnormality is detected, and a function to simultaneously clear the main bus occupancy rate setting register. and a function of inputting a trigger signal to an interrupt generation circuit for generating an interrupt to the main CPU; and an abnormality detection circuit that is connected to the main bus, controls the main CPU, and is further cleared by a signal from the interrupt generation circuit. The slave CPU control register is connected to the main bus and controls the slave CPU.
第1図は、本発明の1実施例の概略を示すブロ
ツク図である。メインCPU1とスレーブCPU2
はバスマルチプレクサ5によつてメインバス7と
2者択一的に接続・切断される。又、スレーブ
CPU2のメインバス7を占有する比率はバスマ
ルチプレクサレシオ(以下BMRと略す。)レジ
スタ6によつて決定される。 FIG. 1 is a block diagram schematically showing one embodiment of the present invention. Main CPU1 and slave CPU2
is selectively connected to or disconnected from the main bus 7 by the bus multiplexer 5. Also, slave
The ratio at which the CPU 2 occupies the main bus 7 is determined by a bus multiplexer ratio (hereinafter abbreviated as BMR) register 6.
このBMRレジスタ6は、メインバス7の占有
率を最適化するためのものであり、たとえばメイ
ンCPU1に対する負荷が大きく、スレーブCPU
2に対する負荷が小さい時には、このBMRレジ
スタ6の値を小さくし(すなわち、メインバス7
におけるメインCPU1の占有率を大きくしスレ
ーブCPU2の占有率を小さくすることである。)
メインCPU1とスレーブCPU2の処理の同期化
を計ることができる。 This BMR register 6 is used to optimize the occupancy rate of the main bus 7. For example, if the load on the main CPU 1 is large and the slave CPU
When the load on the main bus 7 is small, the value of this BMR register 6 is small (i.e., when the load on the main bus 7 is small).
The goal is to increase the occupancy rate of the main CPU 1 and reduce the occupancy rate of the slave CPU 2. )
It is possible to synchronize the processing of the main CPU 1 and slave CPU 2.
異常検出回路3は、メインバス7上での異常を
検出しさらにトリガ信号36をエラーコードレジ
スタ(以下、ECRレジスタと略す。)22に出力
しECRレジスタ22にバスの異常状態をラツチ
することを指示する。ECRレジスタ22は、信
号32を使つて異常状態をラツチするものであ
る。 The abnormality detection circuit 3 detects an abnormality on the main bus 7 and further outputs a trigger signal 36 to an error code register (hereinafter abbreviated as ECR register) 22 to latch the abnormal state of the bus in the ECR register 22. Instruct. ECR register 22 uses signal 32 to latch an abnormal condition.
メインプロセツサコントロールレジスタ(以下
MCRレジスタと略す。)21は、信号34によつ
てメインCPU1を直接制御するためのものであ
る。さらに説明すると、メインCPU1は、メイ
ンバス7上のメインCPU制御信号31を用いて
MCRレジスタ21の内容を操作し、その操作さ
れた結果によつて再びメインCPU1が制御され
るのである。つまりメインCPU1はMCRレジス
タ21を介して自分で自分を制御しているわけで
ある。又、スレーブプロセツサコントロールレジ
スタ(以下SCRレジスタと略す。)23は、信号
39によつてスレーブCPU2を制御するレジス
タであり、その内容は、メインCPU1が、メイ
ンバス7及びスレーブCPU制御信号33を使つ
て操作する。 Main processor control register (below)
Abbreviated as MCR register. ) 21 is for directly controlling the main CPU 1 by a signal 34. To explain further, the main CPU 1 uses the main CPU control signal 31 on the main bus 7.
The contents of the MCR register 21 are manipulated, and the main CPU 1 is controlled again based on the manipulated results. In other words, the main CPU 1 controls itself via the MCR register 21. Further, the slave processor control register (hereinafter abbreviated as SCR register) 23 is a register that controls the slave CPU 2 by a signal 39, and its contents are as follows: use and operate.
又、割り込み発生回路4は、異常検出回路3か
らの信号38によつて割り込み発生信号35を
MCRレジスタ21及びメインCPU1に入力し、
MCRレジスタ21をクリアしさらにメインCPU
1に割り込みを発生させるものである。又、メモ
リ8はメインバス7につながるメインCPU1と
スレーブCPU2の共有メモリである。 Further, the interrupt generation circuit 4 generates an interrupt generation signal 35 based on the signal 38 from the abnormality detection circuit 3.
Input to MCR register 21 and main CPU 1,
Clear MCR register 21 and then clear the main CPU
1 to generate an interrupt. Further, the memory 8 is a shared memory between the main CPU 1 and the slave CPU 2 connected to the main bus 7.
次に本発明の動作を第1図を用いて説明する。
まず、スレーブCPU2がメインバス7を占有す
るサイクルで異常が発生すると、異常検出回路3
がそれを検出し、信号36によつてECRレジス
タ22にエラー発生時のバスの状態をラツチする
ように命令する。そのため、ECRレジスタ22
は信号32を用いてエラー発生時のメインバス7
の状態をラツチする。又、異常検出回路3はそれ
と同時に信号37を発しBMRレジスタ6をクリ
アし、さらに信号38を割り込み発生回路4に入
力する。ここで、BMRレジスタ6がクリアされ
てしまうとスレーブCPU2のメインバス占有率
が0となつてしまうから、メインバス7はそれ以
後、完全にメインCPU1に占有されることにな
る。又、割り込み発生回路4は、信号38を受け
取ると割り込み発生信号35をMCRレジスタ2
1及びメインCPU1に入力する。このためMCR
レジスタ21は、クリアされ、又メインCPU1
には、割り込みがかかることになる。ここで、異
常が発生する以前に、メインCPU1がメインバ
ス7及びメインCPU制御信号31を使つてMCR
レジスタ21の1ビツトにフラグを立て自らにホ
ールトをかけていた場合には、割り込み発生回路
4からの割り込み発生信号35によつてMCRレ
ジスタ21はクリアされてしまうから、それまで
メインCPU1にかかつていたホールトが異常検
出と共に解除されることになる。 Next, the operation of the present invention will be explained using FIG.
First, if an error occurs in a cycle in which the slave CPU 2 occupies the main bus 7, the error detection circuit 3
detects this and instructs the ECR register 22 by signal 36 to latch the state of the bus at the time of the error. Therefore, ECR register 22
uses signal 32 to connect main bus 7 when an error occurs.
Latch the state. At the same time, the abnormality detection circuit 3 issues a signal 37 to clear the BMR register 6, and further inputs a signal 38 to the interrupt generation circuit 4. Here, if the BMR register 6 is cleared, the main bus occupancy rate of the slave CPU 2 becomes 0, so the main bus 7 will be completely occupied by the main CPU 1 from then on. Further, upon receiving the signal 38, the interrupt generation circuit 4 sends the interrupt generation signal 35 to the MCR register 2.
1 and main CPU1. For this reason, MCR
Register 21 is cleared and main CPU 1
will be interrupted. Here, before the abnormality occurs, the main CPU 1 uses the main bus 7 and the main CPU control signal 31 to control the MCR.
If a flag is set in one bit of the register 21 to put a halt on the CPU itself, the MCR register 21 will be cleared by the interrupt generation signal 35 from the interrupt generation circuit 4, so that until then the main CPU 1 The halt will be canceled when an abnormality is detected.
以上のように、メインCPU1は、ホールト状
態から解除されるわけであるから先に述べた割り
込み要求を受けつけてECRレジスタ22に保持
されている情報をもとにスレーブCPU2のバス
サイクルでおきた異常の復旧作業を行なうことが
できる。 As mentioned above, since the main CPU 1 is released from the halt state, the abnormality that occurred in the bus cycle of the slave CPU 2 is detected based on the information held in the ECR register 22 after receiving the interrupt request mentioned above. Restoration work can be carried out.
又、この復旧処理に於て必要に応じてメイン
CPU1は、メインバス7、信号33経由でSCR
レジスタ23の1ビツトにフラグを立てそれによ
つてスレーブCPU2を初期化することが可能で
ある。 Also, in this recovery process, if necessary,
CPU1 receives SCR via main bus 7 and signal 33.
It is possible to initialize the slave CPU 2 by setting a flag in one bit of the register 23.
[発明の効果]
以上説明したように、本発明では例えばスレー
ブCPUがメインバスを占有しているサイクルで
異常が起きた場合、異常検出回路がそれを検出
し、そしてそれがスレーブCPUのメインバス占
有率を0にセツトしさらに異常検出回路によつて
起動をかけられた割り込み発生回路がメイン
CPUを制御するメインCPU制御レジスタをクリ
アしてメインCPUに対する割り込みを可能にす
る構成となつている。[Effects of the Invention] As explained above, in the present invention, for example, if an abnormality occurs in a cycle in which the slave CPU occupies the main bus, the abnormality detection circuit detects it, and The main interrupt generation circuit sets the occupancy to 0 and is activated by the abnormality detection circuit.
The configuration allows interrupts to the main CPU by clearing the main CPU control register that controls the CPU.
したがつて本発明によれば、スレーブCPUが
メインバスを占有しているサイクルで異常が検出
された場合たとえそれまでメインCPUにホール
トがかかつていてメインCPUが停止状態にあつ
たとしてもそれを解除してからメインCPUに割
り込みをかけるので、上記のような場合メイン
CPUは常に正確にスレーブCPUの異常処理ルー
チンを実行でき、メインCPUの異常に拘束され
ることなくメインCPUが処理を続けるのでシス
テム全体の信頼性が大幅に向上するという効果が
得られる。 Therefore, according to the present invention, if an abnormality is detected in a cycle in which the slave CPU occupies the main bus, even if the main CPU has been in a halt state until then and the main CPU is in a stopped state. Since the main CPU is interrupted after being released, in the above case, the main
The CPU can always accurately execute the error handling routine of the slave CPU, and the main CPU continues processing without being restricted by the error in the main CPU, resulting in a significant improvement in the reliability of the entire system.
又、本発明は、更に「異常検出手段よりの出力
信号に応答して前記メインCPUを制御する手段
に対し初期化を指示する信号与え前記メイン
CPUがホールト状態にあつた場合には該ホール
ト状態を解除すべく前記メインCPUを制御する」
ので、エラーが検出されるとメインCPUを制御
する手段が初期化され、それまでメインCPUに
ホールトをかける旨指示していた情報がクリアさ
れて、メインCPUのホールト状態が解除される。
そのため、エラーが起つた後、メインCPUによ
るエラー処理が、確実に実行できシステムの安全
性、信頼性が大幅に向上する。 Further, the present invention further provides a method for providing a signal instructing initialization to the means for controlling the main CPU in response to an output signal from the abnormality detecting means.
If the CPU is in a halt state, control the main CPU to release the halt state.
Therefore, when an error is detected, the means for controlling the main CPU is initialized, the information that had previously instructed the main CPU to be halted is cleared, and the halt state of the main CPU is released.
Therefore, after an error occurs, error handling by the main CPU can be reliably executed, greatly improving system safety and reliability.
また、メインCPUを制御する手段(例えば、
第1図のMCRレジスタ21が相当する)がクリ
アされるので、エラー処理に於てメインCPUは
初期状態から起動することになる。従つて、メイ
ンCPUはエラーによる悪影響を全く受けること
なく(初期状態から起動するので)、次のエラー
処理を実行できる。従つて、エラー処理を確実に
実行できる。 Also, a means of controlling the main CPU (e.g.
Since the MCR register 21 in FIG. 1 is cleared, the main CPU will be started from the initial state in error processing. Therefore, the main CPU can execute the next error process without being affected by the error at all (because it starts from the initial state). Therefore, error processing can be executed reliably.
また、メインCPUが、エラー処理を開始する
時点に於て前記メインCPUを制御する手段は初
期化されている。従つて、例えばキーボード、
FDD等よりの割り込みが禁止される(前記初期
化によつて)こととなり、メインCPUにエラー
処理の割り込みが確実に受け付けられる。従つ
て、エラーが発生するとメインCPUが迅速にエ
ラー処理を実行できる。 Further, at the time when the main CPU starts error processing, the means for controlling the main CPU has been initialized. Therefore, for example, a keyboard,
Interrupts from the FDD, etc. are prohibited (by the initialization), and error processing interrupts are reliably accepted by the main CPU. Therefore, when an error occurs, the main CPU can quickly perform error processing.
また、メインCPUが、エラー処理を開始する
時点に於ては、前記メインCPUを制御する手段
の保持する情報は常に所定の値(初期化された
値)である。このため、メインCPUは、エラー
処理の実行時に於て前記メインCPUを制御する
手段が保持する情報の内容をいちいち確認する必
要がなくなる。そのため、メインCPUのエラー
処理における制御プログラムが大幅に簡略化でき
る。 Further, at the time when the main CPU starts error processing, the information held by the means for controlling the main CPU is always a predetermined value (initialized value). Therefore, the main CPU does not need to check each time the contents of the information held by the means for controlling the main CPU when executing error processing. Therefore, the control program for error handling of the main CPU can be greatly simplified.
第1図は、本発明の一実施例の概略ブロツク図
である。
1……メインCPU、2……スレーブCPU、3
……異常検出回路、4……割り込み発生回路、5
……バスマルチプレクサ、6……BMRレジス
タ。
FIG. 1 is a schematic block diagram of one embodiment of the present invention. 1...Main CPU, 2...Slave CPU, 3
... Abnormality detection circuit, 4 ... Interrupt generation circuit, 5
...Bus multiplexer, 6...BMR register.
Claims (1)
メインバスを占有する比率を設定するメインバス
占有率設定手段と、 前記スレーブCPUが前記メインバスを使用中
に発生したエラーを検出し、該エラーを検出する
と同時に前記スレーブCPUの前記メインバス占
有比率を0とし、さらにエラーに応答して割込み
信号の発生を指示する信号を出力する異常検出手
段と、 該異常検出手段よりの出力信号に応答して前記
メインCPUを制御する手段に対し初期化を指示
する信号を与え、前記メインCPUがホールト状
態にあつた場合には該ホールト状態を解除すべく
前記メインCPUを制御することを特徴とするマ
ルチプロセツサシステム。[Scope of Claims] 1. A main CPU that uses a main bus, a slave CPU that uses the main bus, and a main bus occupancy rate setting means that sets a ratio at which the main CPU and the slave CPU occupy the main bus. and detecting an error that occurred while the slave CPU was using the main bus, setting the main bus occupation ratio of the slave CPU to 0 at the same time as detecting the error, and further generating an interrupt signal in response to the error. abnormality detection means for outputting an instructing signal; and a signal for instructing initialization to be given to the means for controlling the main CPU in response to the output signal from the abnormality detection means, and the main CPU is in a halt state. A multiprocessor system characterized in that the main CPU is controlled to release the halt state if the main CPU is in the halt state.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP59043501A JPS60189058A (en) | 1984-03-07 | 1984-03-07 | Multiprocessor system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP59043501A JPS60189058A (en) | 1984-03-07 | 1984-03-07 | Multiprocessor system |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS60189058A JPS60189058A (en) | 1985-09-26 |
| JPH0247778B2 true JPH0247778B2 (en) | 1990-10-22 |
Family
ID=12665463
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP59043501A Granted JPS60189058A (en) | 1984-03-07 | 1984-03-07 | Multiprocessor system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS60189058A (en) |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS58134359A (en) * | 1982-02-05 | 1983-08-10 | Hitachi Ltd | Bus switching device |
-
1984
- 1984-03-07 JP JP59043501A patent/JPS60189058A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS60189058A (en) | 1985-09-26 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US4096564A (en) | Data processing system with interrupt functions | |
| US6463492B1 (en) | Technique to automatically notify an operating system level application of a system management event | |
| US6321289B1 (en) | Apparatus for automatically notifying operating system level applications of the occurrence of system management events | |
| EP0125797A1 (en) | Interrupt signal handling apparatus | |
| JPH0247778B2 (en) | ||
| JPH1153225A (en) | Fault handling device | |
| JPH0273451A (en) | Controller | |
| JPH05233374A (en) | Watchdog timer device | |
| JPH0430245A (en) | Multiprocessor control system | |
| JPH06131218A (en) | CPU control system | |
| JPH0212531A (en) | Interruption control system for virtual computer | |
| JP2570108B2 (en) | Software debugging method | |
| JP2568535B2 (en) | Microprocessor control circuit | |
| JPS6389941A (en) | Monitor and control equipment for microprocessor applied equipment | |
| JPS62147538A (en) | Reset system for watchdog timer for device using microcomputer | |
| JP2985188B2 (en) | Redundant computer system | |
| JPH0251748A (en) | Microcomputer | |
| JPS61267810A (en) | Deciding circuit for detection of service interruption | |
| JPH01310422A (en) | Microcomputer reset circuit | |
| JPS60173601A (en) | Digital controller | |
| JP2725107B2 (en) | Interrupt device | |
| JPS59221702A (en) | Digital controller | |
| JPH03204739A (en) | Microcomputer | |
| JPS62209627A (en) | Data processor | |
| JPH01116739A (en) | Monitor equipment for cpu |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| EXPY | Cancellation because of completion of term |