JPH11184734A - Mutual monitor device for cpu - Google Patents

Mutual monitor device for cpu

Info

Publication number
JPH11184734A
JPH11184734A JP9355773A JP35577397A JPH11184734A JP H11184734 A JPH11184734 A JP H11184734A JP 9355773 A JP9355773 A JP 9355773A JP 35577397 A JP35577397 A JP 35577397A JP H11184734 A JPH11184734 A JP H11184734A
Authority
JP
Japan
Prior art keywords
cpu
monitoring
state
output
register
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
JP9355773A
Other languages
Japanese (ja)
Inventor
Hiroki Meguro
裕樹 目黒
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.)
Ando Electric Co Ltd
Original Assignee
Ando Electric Co 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 Ando Electric Co Ltd filed Critical Ando Electric Co Ltd
Priority to JP9355773A priority Critical patent/JPH11184734A/en
Publication of JPH11184734A publication Critical patent/JPH11184734A/en
Withdrawn legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To quickly detect failure by another CPU when failure is generated in one CPU. SOLUTION: A monitoring circuit 20-1 is provided corresponding to a CPU 10, and the state of the CPU 10 is monitored. A detecting circuit 22-1 is provided corresponding to a CPU 12, and when the state change of the CPU 10 is present, it is communicated to the CPU 12 based on the monitored result of the monitoring circuit 20-1. In the same way, a monitoring circuit 20-2 for monitoring the state of the CPU 12 is provided corresponding to the CPU 12, and a detecting circuit 22-2 for communicating the state change of the CPU 12 to the CPU 10 based on the monitored result of the monitoring circuit 20-2 is provided corresponding to the CPU 10.

Description

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

【0001】[0001]

【発明の属する技術分野】この発明はCPUの相互監視
装置に係り、特にCPUを複数搭載し相互にメモリを介
してデータの送受信を行う装置や、障害発生時の迅速な
検出を行って2次的な障害発生の防止が要求される通信
装置に適用されるCPUの相互監視装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a mutual monitoring device for CPUs, and more particularly, to a device having a plurality of CPUs for mutually transmitting and receiving data via a memory, and a secondary device for performing quick detection when a failure occurs. The present invention relates to a mutual monitoring device for a CPU applied to a communication device that requires prevention of a temporary failure.

【0002】[0002]

【従来の技術】図4は、従来のCPUの相互監視装置の
構成を示すブロック図である。図4において、10,1
2はCPU(中央処理装置)であり、14はメモリであ
る。CPU10はCPUバスB1によってメモリ14と
接続され、CPU12はCPUバスB2によってメモリ
14と接続される。ここでいうCPUバスとは、メモリ
の書き込みアドレスを指定するアドレスバス及びデータ
を送受信するデータバスを両方含んだものである。
2. Description of the Prior Art FIG. 4 is a block diagram showing a configuration of a conventional CPU mutual monitoring device. In FIG. 4, 10, 1
2 is a CPU (Central Processing Unit), and 14 is a memory. The CPU 10 is connected to the memory 14 by a CPU bus B1, and the CPU 12 is connected to the memory 14 by a CPU bus B2. Here, the CPU bus includes both an address bus for specifying a write address of a memory and a data bus for transmitting and receiving data.

【0003】また、CPU10がメモリ14に対してデ
ータを書き込んだ場合に、CPU10がメモリ14に対
して書き込みがあった旨を示す割り込み信号を送出する
ための割り込み信号線I1がCPU10とメモリ14と
の間に設けられ、同様に、CPU12がメモリ14に対
して書き込みがあった旨を示す割り込み信号を送出する
ための割り込み信号線I2がCPU12とメモリ14と
の間に設けられている。
When the CPU 10 writes data to the memory 14, an interrupt signal line I1 for transmitting an interrupt signal indicating that the CPU 10 has written data to the memory 14 is connected to the CPU 10 and the memory 14. Similarly, an interrupt signal line I2 for transmitting an interrupt signal indicating that the CPU 12 has written data to the memory 14 is provided between the CPU 12 and the memory 14.

【0004】上記構成において、CPU10がCPUバ
スB1を介してメモリ14に対してデータを送信し、メ
モリ14にデータを書き込む場合には、メモリ14はデ
ータを受信して書き込みを行った後、割り込み信号線I
2を介して接続先のCPU12に対し割込み信号を発生
し、CPU10からデータを受信した旨を通知する。こ
の割り込み信号を受けると、CPU12はCPUバスB
2を介してデータの受信処理を行う。
In the above configuration, when the CPU 10 transmits data to the memory 14 via the CPU bus B1 and writes data to the memory 14, the memory 14 receives and writes the data, Signal line I
An interrupt signal is generated to the connection-destination CPU 12 via the CPU 2 to notify that data has been received from the CPU 10. Upon receiving this interrupt signal, the CPU 12
2 for receiving data.

【0005】[0005]

【発明が解決しようとする課題】CPU12が、CPU
10から送出されたデータを正常に受信した旨をCPU
10に対して応答しないよう設計されている装置におい
ては、CPU10は、CPU12に異常が発生し、CP
U10が送出したデータを正常に受信できない状態にC
PU12があることを判別できない。
SUMMARY OF THE INVENTION The CPU 12 has a CPU
10 that the data sent from 10 has been received normally.
In an apparatus that is not designed to respond to the CPU 10, the CPU 10 generates an
In a state where the data transmitted by U10 cannot be normally received, C
The presence of the PU 12 cannot be determined.

【0006】CPU12がデータを受信した場合に受信
応答をCPU10へ返すように設計されている装置にお
いては、CPU10に対してタイマを設け、CPU10
がメモリ14にデータを送信した後、このタイマを起動
して一定時間内にCPU12からの応答がない場合にC
PU12に何らかの異常が発生した事を判別する。しか
し、この装置の場合には、CPU12がどのような状態
にあるのかは判別できないので、障害発生後の復旧処理
はCPU10が独自に進めることとなる。しかし、CP
U12の異常の要因が判定できないために適切な処置を
とることができない。
In a device designed to return a reception response to the CPU 10 when the CPU 12 receives data, a timer is provided for the CPU 10 and the CPU 10
After transmitting data to the memory 14, this timer is started, and if there is no response from the CPU 12 within a predetermined time, C
It is determined that some abnormality has occurred in the PU 12. However, in the case of this device, it is not possible to determine what state the CPU 12 is in, and the recovery process after the occurrence of the failure is independently performed by the CPU 10. However, CP
Since the cause of the abnormality of U12 cannot be determined, appropriate measures cannot be taken.

【0007】CPU12に障害が発生した場合に復旧さ
せる手順としては、装置の管理者がCPU12の障害を
取り除いた後にCPU10及びCPU12の双方をリセ
ットし、CPU10,12の状態を初期の状態に戻すこ
とで行う。また、他の復旧方法としては、装置の管理者
がCPU12の障害を取り除いた後にCPU12の側か
らCPU10へ割込み信号を発生し、CPU10に対し
障害が取り除かれた旨を通知することで行う。
[0007] As a procedure for recovering from the occurrence of a failure in the CPU 12, the administrator of the apparatus removes the failure in the CPU 12, resets both the CPU 10 and the CPU 12, and returns the states of the CPUs 10 and 12 to the initial state. Do with. As another recovery method, an administrator of the apparatus removes a fault in the CPU 12, generates an interrupt signal from the CPU 12 to the CPU 10, and notifies the CPU 10 that the fault has been removed.

【0008】ところで、このような従来の装置において
は、上述したようにCPU10がCPU12に障害が発
生したか否かを判断するにはCPU10にタイマを設
け、データを送信してから計時する必要がある。CPU
10がCPU12において障害が発生した事を判別する
のに要する時間は、CPU10がCPU12に対しデー
タを送信した後、タイマが予め設定された時間を計時す
る時間分必要になる。タイマに予め設定された時間は、
CPU10が他の処理を終了するまでの時間時間を考慮
し余裕をもたせて、通常数十秒に設定される。
In such a conventional apparatus, as described above, in order to determine whether or not a failure has occurred in the CPU 12, it is necessary to provide a timer in the CPU 10, transmit data, and measure the time. is there. CPU
The time required for the CPU 10 to determine that a failure has occurred in the CPU 12 is the time required for the timer to measure a preset time after the CPU 10 transmits data to the CPU 12. The time preset in the timer is
The time is usually set to several tens of seconds with a margin in consideration of the time until the CPU 10 completes another process.

【0009】このため、CPU10は、CPU12に障
害が発生した直後に、この障害を検出することは困難で
ある。更に、障害発生から検出までの時間は予測できな
い。定期的にCPU10,12相互間において、CPU
10,12の状態を示す信号の送受信を行い正常性の確
認を行う装置構成も考えられるが、CPU10,12の
処理能力の一部がこの処理のために必要となって装置の
処理能力の低下を招く事から頻繁に行うにも限度がある
という問題がある。更に、このような装置においては、
障害の発生を検出するまでの間に2次的な障害を誘発す
る危険性があるという問題がある。
For this reason, it is difficult for the CPU 10 to detect the failure immediately after the failure has occurred in the CPU 12. Further, the time from the occurrence of a failure to the detection cannot be predicted. Periodically between the CPUs 10 and 12, the CPU
Although an apparatus configuration for transmitting and receiving signals indicating the states of the statuses 10 and 12 and checking the normality can be considered, a part of the processing capability of the CPUs 10 and 12 is required for this processing, and the processing capability of the device is reduced. There is a problem that there is a limit to frequent performances because of inviting. Further, in such a device,
There is a problem that there is a risk of inducing a secondary failure before the occurrence of the failure is detected.

【0010】図4に示されたような複数のCPUを搭載
する通信装置においては、障害の検出は障害が発生した
後1秒以内に行う必要があり、また発生した障害に起因
する2次的な障害は極力発生を押さえる必要があるが、
従来の方式では実現できないという課題があった。
In a communication device having a plurality of CPUs as shown in FIG. 4, it is necessary to detect a fault within one second after the fault has occurred, and to perform secondary detection caused by the fault. It is necessary to suppress the occurrence of a major obstacle as much as possible,
There is a problem that it cannot be realized by the conventional method.

【0011】本発明は、上記事情に鑑みてなされたもの
であり、1つのCPUに障害が発生した場合に、他のC
PUが迅速に障害を検出することのできるCPUの相互
監視装置を提供することを主たる目的とする。また、本
発明は、1つのCPUに障害が発生した場合に、他のC
PUが障害の生じているCPUの状態を的確に検出する
ことができるCPUの相互監視装置を提供することを目
的とする。
The present invention has been made in view of the above circumstances, and when one CPU fails, the other C
A main object of the present invention is to provide a mutual monitoring device for CPUs in which a PU can quickly detect a failure. In addition, the present invention provides a method in which when one CPU fails, another C
It is an object of the present invention to provide a CPU mutual monitoring device capable of accurately detecting the state of a failed CPU in a PU.

【0012】[0012]

【課題を解決するための手段】上記課題を解決するた
め、本発明は、2以上のCPU各々に対して設けられ、
当該CPUの状態を監視する監視手段と、前記CPU各
々に対して設けられ、対応している当該CPU以外のC
PUに対して設けられている前記監視手段の監視結果に
基づいて前記CPUの状態変化を検出し、対応している
当該CPUに状態変化があった旨を通知する検出手段と
を具備することを特徴とする。また、本発明は、前記検
出手段が、前記監視手段から出力された監視結果を記憶
するレジスタと、前記レジスタの記憶内容と、前記監視
手段から出力されている監視結果とを比較し、比較結果
が異なる場合に対応する前記CPUに対して状態変化が
あった旨を通知する比較器とからなることを特徴とす
る。また、本発明は、前記CPUが、対応する前記検出
手段から状態変化があった旨が通知された場合に前記レ
ジスタの記憶内容と前記監視手段から出力されている監
視結果とを読み出し、前記CPUの状態を判断すること
を特徴とする。また、本発明は、前記監視回路が、前記
CPUの状態を監視するウオッチドッグタイマと、前記
CPUのリセットを行うリセット回路と、前記CPUの
動作状況を記憶するレジスタとを有し、前記監視結果
は、前記ウオッチドッグタイマの出力と、前記リセット
回路及びレジスタの出力のNAND出力とからなること
を特徴とする。また、本発明は、前記CPUが、異なる
ユニットに搭載され、前記ウオッチドッグタイマの出力
及び前記NAND出力は抵抗器によりプルアップされて
おり、前記CPUは、前記監視結果に基づいて、CPU
が搭載された前記ユニットが接続されているかを判断す
ることを特徴とする。
In order to solve the above problems, the present invention is provided for each of two or more CPUs,
Monitoring means for monitoring the state of the CPU; and C provided for each of the CPUs, except for the corresponding CPU.
Detecting means for detecting a state change of the CPU based on a monitoring result of the monitoring means provided for the PU, and notifying that the corresponding CPU has changed state. Features. Further, according to the present invention, the detecting means compares a register storing the monitoring result output from the monitoring means, a storage content of the register, and a monitoring result output from the monitoring means, And a comparator for notifying the CPU corresponding to the case where the state is different that the state has changed. Further, the present invention is characterized in that the CPU reads out the stored contents of the register and the monitoring result output from the monitoring means when the corresponding detection means notifies that the state has changed, and Is determined. Further, according to the present invention, the monitoring circuit has a watchdog timer for monitoring a state of the CPU, a reset circuit for resetting the CPU, and a register for storing an operation state of the CPU, Comprises the output of the watchdog timer and the NAND output of the outputs of the reset circuit and the register. Also, in the present invention, the CPU is mounted on a different unit, and the output of the watchdog timer and the NAND output are pulled up by a resistor.
It is characterized in that it is determined whether or not the unit mounted with is connected.

【0013】[0013]

【発明の実施の形態】以下、図面を参照して本発明の一
実施形態について説明する。図1は、本発明の一実施形
態によるCPUの相互監視装置の構成を示すブロック図
である。図1において、10,12はCPU(中央処理
装置)であり、14はメモリである。CPU10はCP
UバスB10によってメモリ14と接続され、CPU1
2はCPUバスB12によってメモリ14と接続され
る。ここでいうCPUバスとは、メモリの書き込みアド
レスを指定するアドレスバス及びデータを送受信するデ
ータバスを両方含んだものである。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing a configuration of a mutual monitoring device for CPUs according to an embodiment of the present invention. In FIG. 1, reference numerals 10 and 12 denote CPUs (central processing units), and reference numeral 14 denotes a memory. CPU 10 is a CP
The CPU 14 is connected to the memory 14 by the U bus B10.
2 is connected to the memory 14 by the CPU bus B12. Here, the CPU bus includes both an address bus for specifying a write address of a memory and a data bus for transmitting and receiving data.

【0014】また、CPU10がメモリ14に対してデ
ータを書き込んだ場合に、CPU10がメモリ14に対
して書き込みがあった旨を示す割り込み信号を送出する
ための割り込み信号線I1がCPU10とメモリ14と
の間に設けられ、同様に、CPU12がメモリ14に対
して書き込みがあった旨を示す割り込み信号を送出する
ための割り込み信号線I2がCPU12とメモリ14と
の間に設けられている。
When the CPU 10 writes data to the memory 14, an interrupt signal line I1 for sending an interrupt signal indicating that the CPU 10 has written to the memory 14 is connected to the CPU 10 and the memory 14. Similarly, an interrupt signal line I2 for transmitting an interrupt signal indicating that the CPU 12 has written data to the memory 14 is provided between the CPU 12 and the memory 14.

【0015】図中20−1は、CPU10の状態を監視
する監視回路であり、CPUバスB10を介してCPU
10と接続されている。また22−1は障害を検出する
ための検出回路である。検出回路22−1はCPUバス
B12を介してCPU12と接続されており、更に割り
込み信号線32−1によってCPU12と接続されてい
る。また、この検出回路22−1は、信号線24−1,
26−1を介して監視回路20−1と接続されている。
信号線24−1,26−1は、各々1ビットの信号線で
あり、各々の信号線には抵抗器28−1,30−1がそ
れぞれ接続されている、抵抗器28−1,30−1は電
源に接続されている。
In the figure, reference numeral 20-1 denotes a monitoring circuit for monitoring the state of the CPU 10, which is connected to the CPU 10 via a CPU bus B10.
10 is connected. Reference numeral 22-1 denotes a detection circuit for detecting a failure. The detection circuit 22-1 is connected to the CPU 12 via the CPU bus B12, and further connected to the CPU 12 via an interrupt signal line 32-1. The detection circuit 22-1 is connected to the signal lines 24-1,
26-1 is connected to the monitoring circuit 20-1.
The signal lines 24-1 and 26-1 are 1-bit signal lines, respectively, and the resistors 28-1 and 30-1 are connected to the respective signal lines. 1 is connected to a power supply.

【0016】図中20−2は、CPU12の状態を監視
する監視回路であり、CPUバスB12を介してCPU
12と接続されている。また22−2は障害を検出する
ための検出回路である。検出回路22−2はCPUバス
B10を介してCPU10と接続されており、更に割り
込み信号線32−2によってCPU10と接続されてい
る。また、この検出回路22−2は、信号線24−2,
26−2を介して監視回路20−2と接続されている。
信号線24−2,26−2は、各々1ビットの信号線で
あり、各々の信号線には抵抗器28−2,30−2がそ
れぞれ接続されている、抵抗器28−2,30−2は電
源に接続されている。
In the drawing, reference numeral 20-2 denotes a monitoring circuit for monitoring the state of the CPU 12, which is connected to the CPU 12 via the CPU bus B12.
12 is connected. Reference numeral 22-2 denotes a detection circuit for detecting a failure. The detection circuit 22-2 is connected to the CPU 10 via the CPU bus B10, and further connected to the CPU 10 via an interrupt signal line 32-2. The detection circuit 22-2 includes a signal line 24-2,
It is connected to the monitoring circuit 20-2 via 26-2.
The signal lines 24-2 and 26-2 are 1-bit signal lines, respectively, and the resistors 28-2 and 30-2 are connected to the respective signal lines. 2 is connected to a power supply.

【0017】次に、監視回路20−1及び検出回路22
−1について詳細に説明する。図2は、監視回路20−
1及び検出回路22−1の内部構成を示すブロック図で
ある。図2に示されたように、監視回路20−1は、ウ
オッチドッグタイマ50、リセット回路52、レジスタ
54、及びNAND回路56からなる。尚、以下の説明
においては、論理レベルのハイレベルを“1”と表し、
ローレベルを“0”と表す。
Next, the monitoring circuit 20-1 and the detection circuit 22
-1 will be described in detail. FIG. 2 shows the monitoring circuit 20-
FIG. 2 is a block diagram illustrating an internal configuration of a first detection circuit and a detection circuit. As shown in FIG. 2, the monitoring circuit 20-1 includes a watchdog timer 50, a reset circuit 52, a register 54, and a NAND circuit 56. In the following description, the high level of the logic level is represented as “1”,
The low level is represented as “0”.

【0018】ウオッチドッグタイマ50は、CPU10
に障害が発生していない場合は“0”の出力信号を出力
し、CPU10に障害が発生した場合に“1”の出力信
号を出力する。このウオッチドッグタイマ50は信号線
24に接続されている。リセット回路52は、電源投入
後所定時間“0”の出力信号を出力し、この所定時間を
経過すると“1”の出力信号を出力する。
The watch dog timer 50 is a CPU
If a failure has not occurred in the CPU 10, an output signal of "0" is output, and if a failure has occurred in the CPU 10, an output signal of "1" is output. The watch dog timer 50 is connected to the signal line 24. The reset circuit 52 outputs an output signal of “0” for a predetermined time after the power is turned on, and outputs an output signal of “1” when the predetermined time has elapsed.

【0019】レジスタ54はCPU10の動作状況を書
き込むためのものである。例えば、CPU10がリセッ
ト状態であり、このリセット状態が解除されると、CP
U10はレジスタ54に対して“1”を書き込む。上記
リセット回路52及びレジスタ54はNAND回路56
に接続されており、NAND回路56の出力端は信号線
26−1に接続されている。
The register 54 is for writing the operation status of the CPU 10. For example, when the CPU 10 is in a reset state and the reset state is released, the CP 10
U10 writes "1" into the register 54. The reset circuit 52 and the register 54 include a NAND circuit 56
, And the output terminal of the NAND circuit 56 is connected to the signal line 26-1.

【0020】次に、検出回路22−1の内部構成につい
て説明する。検出回路22−1は、図2に示されたよう
に、レジスタ60と比較器62とからなる。これらレジ
スタ60及び比較器62はリード信号線70によってC
PU12と接続されている。尚、図1においてはリード
信号線70は図示を省略している。
Next, the internal configuration of the detection circuit 22-1 will be described. The detection circuit 22-1 includes a register 60 and a comparator 62, as shown in FIG. The register 60 and the comparator 62 are connected by a read signal line 70 to C
It is connected to PU12. Note that the read signal line 70 is not shown in FIG.

【0021】レジスタ60は、信号線24−1,26−
1に接続され、信号線24−1,26−1の論理状態を
一時的に保持するものである。比較器62は、一対の入
力端を2つ有し、これら各々の一対の入力端の入力され
る信号が異なる場合に、割り込み信号線32−1介して
CPU12にその旨を通知する割り込み信号を出力す
る。
The register 60 includes signal lines 24-1 and 24-26.
1 and temporarily holds the logic state of the signal lines 24-1 and 26-1. The comparator 62 has two pairs of input terminals, and outputs an interrupt signal for notifying the CPU 12 via the interrupt signal line 32-1 when the signals input to each of the pair of input terminals are different. Output.

【0022】一方の一対の入力端(以下、A入力端と称
する)には、信号線24−1,26−1が接続され、他
方の一対の入力端(以下、B入力端と称する)には、レ
ジスタ60の出力端が接続される。この比較器62はC
PUバスB12を介してCPU12に接続される。つま
り、検出回路22−1は、信号線24−1又は26−1
を介して送信される信号の論理レベルが変化した場合
に、その旨をCPU12に通知し、CPU12がリード
信号を発することにより変化前後の信号の論理レベルを
把握することのできる構成となっている。以上、監視回
路20−1と検出回路22−2の内部構成について説明
したが、監視回路20−2は監視回路20−1と同様の
構成であり、検出回路22−1は検出回路22−2と同
様の構成である。
Signal lines 24-1 and 26-1 are connected to one pair of input terminals (hereinafter, referred to as A input terminals), and to the other pair of input terminals (hereinafter, referred to as B input terminals). Is connected to the output terminal of the register 60. This comparator 62 is C
It is connected to the CPU 12 via the PU bus B12. That is, the detection circuit 22-1 is connected to the signal line 24-1 or 26-1.
When the logical level of a signal transmitted through the CPU changes, the CPU 12 is notified of the change, and the CPU 12 issues a read signal, so that the logical level of the signal before and after the change can be grasped. . The internal configuration of the monitoring circuit 20-1 and the detection circuit 22-2 has been described above. However, the monitoring circuit 20-2 has the same configuration as the monitoring circuit 20-1, and the detection circuit 22-1 has the detection circuit 22-2. This is the same configuration as.

【0023】尚、図1及び図2中において、符号Sが付
された線は、CPU10とCPU12とを異なるユニッ
ト、例えば、CPU10とCPU12とがそれぞれ異な
る基板上に設けられている場合の分割点を示す。このよ
うにCPU10とCPU12とを異なる基板に分割して
実装する場合には、同じ基板上に監視回路と検出回路と
が1つづつ設けられる。例えばCPU10に対しては監
視回路20−1と検出回路22−2が設けられ、CPU
12に対しては監視回路20−2と検出回路22−1が
設けられる。
In FIGS. 1 and 2, a line denoted by a symbol S indicates a dividing point when the CPU 10 and the CPU 12 are provided on different units, for example, when the CPU 10 and the CPU 12 are provided on different substrates. Is shown. When the CPU 10 and the CPU 12 are separately mounted on different boards as described above, one monitoring circuit and one detection circuit are provided on the same board. For example, a monitoring circuit 20-1 and a detection circuit 22-2 are provided for the CPU 10, and the CPU 10
For 12, a monitoring circuit 20-2 and a detection circuit 22-1 are provided.

【0024】次に、上記構成におけるCPUの相互監視
装置の動作について図1〜図3を参照して詳細に説明す
る。図3は、信号線24−1,26−1の論理レベルが
変化した場合における障害状況を説明するための図表で
ある。尚、以下の説明においては、CPU10に障害等
が生じ、CPU12が検出する場合について説明する
が、CPU12に障害等が生じ、CPU10が検出する
場合も同様である。
Next, the operation of the mutual monitoring device of the CPU having the above configuration will be described in detail with reference to FIGS. FIG. 3 is a chart for explaining a failure situation when the logic levels of the signal lines 24-1 and 26-1 change. In the following description, a case where a failure or the like occurs in the CPU 10 and the CPU 12 detects the failure will be described.

【0025】図3中において、符号aが付された行及び
列は、信号線24−1,26−1の論理レベルが共に
“1”であることを意味する。また、符号bが付された
行及び列は、信号線24−1の論理レベルが“0”であ
り、信号線26−1の論理レベルが“1”であることを
意味する。また、符号cが付された行及び列は、信号線
24−1の論理レベルが“1”であり、信号線26−1
の論理レベルが“0”であることを意味する。また、符
号dが付された行及び列は、信号線24−1,26−1
の論理レベルが共に“0”であることを意味する。以
下、上記符号a〜dで示された信号線24−1,26−
1の論理レベルの状態をそれぞれ状態a〜dと称する。
In FIG. 3, the rows and columns denoted by the symbol a mean that the logic levels of the signal lines 24-1 and 26-1 are both "1". Further, the row and column denoted by the symbol “b” mean that the logical level of the signal line 24-1 is “0” and the logical level of the signal line 26-1 is “1”. In the rows and columns to which the symbol c is attached, the logic level of the signal line 24-1 is "1", and the signal line 26-1
Is "0". The rows and columns denoted by the symbol d are the signal lines 24-1 and 26-1.
Are both "0". Hereinafter, the signal lines 24-1 and 26 indicated by the reference numerals a to d will be described.
The states of the logic level 1 are referred to as states a to d, respectively.

【0026】まず、電源が投入された場合には検出回路
22−1の電源投入後の初期値は“0”であるので、C
PU12はリード信号をリード信号線70を介して出力
することにより信号線24−1,26−1の値を取り込
む。
First, when the power is turned on, the initial value of the detection circuit 22-1 after the power is turned on is "0".
The PU 12 captures the values of the signal lines 24-1 and 26-1 by outputting a read signal via the read signal line 70.

【0027】仮に、監視回路20−1が別のユニットに
搭載された場合であって、検出回路22−1と接続され
ていない場合、検出回路22−1へ入力される信号の論
理レベルは全て“1”になる。これは、信号線24−
1,26−1がそれぞれ抵抗器28−1,30−1を介
して電源に接続されている、つまりプルアップされてい
ることによる。
If the monitoring circuit 20-1 is mounted on another unit and is not connected to the detection circuit 22-1, the logic levels of the signals input to the detection circuit 22-1 are all It becomes “1”. This is because the signal line 24-
1 and 26-1 are connected to the power supply via the resistors 28-1 and 30-1, that is, pulled up.

【0028】また、監視回路20−1が別のユニットに
搭載された場合であって検出回路22−1に接続されて
いる場合や、監視回路20−1と検出回路22−1とが
同一ユニット内に搭載された場合は、電源投入直後に監
視回路20−1内のリセット回路52が動作してその出
力が“0”になるので、信号線26−1の論理レベルは
“1”となる。リセット回路52が動作している間は、
ウオッチドッグタイマ50の出力は“0”に固定される
ため、信号線24−1の論理レベルは“0”になる。
Also, when the monitoring circuit 20-1 is mounted on another unit and is connected to the detection circuit 22-1, or when the monitoring circuit 20-1 and the detection circuit 22-1 are in the same unit. When the power supply is mounted inside the power supply, the reset circuit 52 in the monitoring circuit 20-1 operates immediately after the power is turned on, and its output becomes "0", so that the logical level of the signal line 26-1 becomes "1". . While the reset circuit 52 is operating,
Since the output of the watchdog timer 50 is fixed at "0", the logical level of the signal line 24-1 becomes "0".

【0029】電源投入直後の信号線24−1,26−1
の論理レベルは、レジスタ60に格納され、比較器62
のB入力端へ出力されている。信号線24−1又は信号
線26−1の論理レベルが変化すると、A入力端に入力
される信号の論理レベルとB入力端に入力される信号の
論理レベルが変化するため、比較器62は割り込み信号
線32−1を介して割り込み信号をCPU12へ出力す
る。
Signal lines 24-1 and 26-1 immediately after power-on
Is stored in the register 60 and the comparator 62
Is output to the B input terminal. When the logical level of the signal line 24-1 or the signal line 26-1 changes, the logical level of the signal input to the A input terminal and the logical level of the signal input to the B input terminal change. An interrupt signal is output to the CPU 12 via the interrupt signal line 32-1.

【0030】割り込み信号が比較器62からCPU12
へ出力されると、CPU12はリード信号線70を介し
てリード信号を出力し、比較器62のA入力端及びB入
力端に入力されている信号を読み出す。上記の場合に
は、論理レベルが変化する前は、信号線24−1,26
−1の論理レベルは共に“0”であり、変化後は信号線
24−1の論理レベルは“0”、信号線26−1の論理
レベルは“1”である。つまり、状態dから状態bに変
化したこととなる。この場合には、図3に示された図表
に基づいて、CPU12は接続先のCPU10がリセッ
ト中、即ち初期化中であると判別する。
An interrupt signal is sent from the comparator 62 to the CPU 12
The CPU 12 outputs a read signal via the read signal line 70 to read the signals input to the A input terminal and the B input terminal of the comparator 62. In the above case, before the logical level changes, the signal lines 24-1 and 26-2
The logical levels of -1 are both "0", and after the change, the logical level of the signal line 24-1 is "0" and the logical level of the signal line 26-1 is "1". That is, the state has changed from the state d to the state b. In this case, based on the chart shown in FIG. 3, the CPU 12 determines that the connected CPU 10 is being reset, that is, being initialized.

【0031】次にリセット回路52におけるリセットが
解除されると、まずリセット回路52の出力は“1”と
なる。ついで、CPU10が動作を開始し、レジスタ5
4に“1”を書き込む。レジスタ54に“1”を書き込
む時期は、通常ユニット内の初期設定が終了した時点で
行う。この場合、信号線24−1の論理レベルは“0”
であり、信号線26−1の論理レベルは“0”となり、
即ち状態dに変化する。
Next, when the reset in the reset circuit 52 is released, first, the output of the reset circuit 52 becomes "1". Next, the CPU 10 starts operating, and the register 5
4 is written with "1". Writing “1” to the register 54 is performed when the initial setting in the normal unit is completed. In this case, the logic level of the signal line 24-1 is "0".
And the logic level of the signal line 26-1 is "0",
That is, the state changes to the state d.

【0032】この時、検出回路22−1内において、レ
ジスタ60が保持している状態は、状態bの状態であ
り、比較器62のB入力端には状態bの信号が入力され
ている。リセットが解除されると、比較器62のA入力
端には状態dの信号が入力されるため、比較器62は割
り込み信号線32−1を介してCPU12へ割り込み信
号を出力する。
At this time, in the detection circuit 22-1, the state held by the register 60 is the state b, and the signal of the state b is input to the B input terminal of the comparator 62. When the reset is released, the signal of the state d is input to the A input terminal of the comparator 62, so that the comparator 62 outputs an interrupt signal to the CPU 12 via the interrupt signal line 32-1.

【0033】この割り込み信号を受信すると、CPU1
2はリード信号線を介してリード信号を出力し、比較器
62のA入力端及びB入力端に入力されている信号を読
み出す。読み出した信号は、変化前の信号が状態bであ
り、変化後の信号がd状態であるので、CPU12は接
続先のCPU10が初期化を終了し正常動作中であると
判別する。
When this interrupt signal is received, the CPU 1
Reference numeral 2 outputs a read signal via a read signal line, and reads a signal input to the A input terminal and the B input terminal of the comparator 62. In the read signal, the signal before the change is in the state b and the signal after the change is in the d state. Therefore, the CPU 12 determines that the connected CPU 10 has completed initialization and is operating normally.

【0034】CPU10が正常動作をしている間は、信
号線24−1,26−1の論理レベルは、共に“0”で
あり、状態dが保たれる。CPU10に障害が発生する
と、ウオッチドッグタイマ50が動作し、その出力を
“1”とすることにより、信号線24−1の論理レベル
は“1”となる。従って、状態cに変化することにな
る。
While the CPU 10 is operating normally, the logic levels of the signal lines 24-1 and 26-1 are both "0", and the state d is maintained. When a failure occurs in the CPU 10, the watchdog timer 50 operates, and its output is set to "1", so that the logical level of the signal line 24-1 becomes "1". Therefore, the state changes to state c.

【0035】レジスタ60は、状態cが格納され、比較
器62のB入力端には状態dの信号が入力されているた
め、比較器62のA入力端に状態cの信号が入力される
と、比較器62は、CPU12に対して割り込み信号線
32−1を介し割り込み信号を出力する。CPU12が
比較器62のA入力端及びB入力端に入力される信号を
読み出すと、変化前の信号はd状態であり、変化後の信
号はc状態であるので、CPU12は接続先のCPU1
0に障害が発生したと判別する。
Since the register 60 stores the state c and the signal of the state d is input to the B input terminal of the comparator 62, the signal of the state c is input to the A input terminal of the comparator 62. , The comparator 62 outputs an interrupt signal to the CPU 12 via the interrupt signal line 32-1. When the CPU 12 reads the signals input to the A input terminal and the B input terminal of the comparator 62, the signal before the change is in the d state and the signal after the change is in the c state.
0 is determined to have failed.

【0036】以上のように、CPU10に対し、障害が
発生したか否かを監視する監視回路20−1を設けると
ともに、監視回路20−1が出力する監視結果を検出す
る検出回路22−1をCPU12側に設けたため、CP
U12は接続先のCPU10の状態に変化があった場合
に直ちにCPU10の障害発生を検出できる。また、C
PU12は、監視回路20−1が出力する監視結果を読
み込むことで接続先のCPU10の状態を正確に判別す
ることができ、各状態における処理を的確に選択でき
る。
As described above, the CPU 10 is provided with the monitoring circuit 20-1 for monitoring whether or not a failure has occurred, and the detection circuit 22-1 for detecting the monitoring result output from the monitoring circuit 20-1. Since it is provided on the CPU 12 side, the CP
The U12 can immediately detect the occurrence of a failure in the CPU 10 when there is a change in the state of the connected CPU 10. Also, C
The PU 12 can accurately determine the state of the connected CPU 10 by reading the monitoring result output from the monitoring circuit 20-1, and can appropriately select a process in each state.

【0037】尚、上記の実施形態においては、CPU1
2がCPU10の状態を検出する場合について説明した
が、図1に示されたように、CPU12に対して監視回
路20−2が設けられ、CPU10に対して検出回路2
2−2が設けられているため、CPU10は接続先のC
PU12の状態に変化があった場合に直ちにCPU12
の障害発生を検出できる。また、CPU10は、監視回
路20−2が出力する監視結果を読み込むことで接続先
のCPU12の状態を正確に判別することができ、各状
態における処理を的確に選択できる。
In the above embodiment, the CPU 1
2 has been described, the monitoring circuit 20-2 is provided for the CPU 12 and the detection circuit 2 is provided for the CPU 10 as shown in FIG.
2-2 is provided, so that the CPU 10
When the state of the PU 12 changes, the CPU 12
Can be detected. Further, the CPU 10 can accurately determine the state of the connected CPU 12 by reading the monitoring result output from the monitoring circuit 20-2, and can appropriately select a process in each state.

【0038】また、上記実施形態においては、CPU1
0とCPU12とが1対1で互いに監視する場合につい
て説明したが、本発明はこれに制限されず、本発明の範
囲内で自由に変更が可能である。例えば、CPU10,
12以外に複数のCPUを設け、これらCPU間にメモ
リ14を配し、更に各々のCPUに対して検出回路と監
視回路と設けることにより、1対多数の監視を行うこと
も可能である。
In the above embodiment, the CPU 1
Although a case has been described where 0 and the CPU 12 monitor each other on a one-to-one basis, the present invention is not limited to this and can be freely changed within the scope of the present invention. For example, CPU 10,
By providing a plurality of CPUs other than 12 and arranging the memory 14 between these CPUs and further providing a detection circuit and a monitoring circuit for each CPU, it is also possible to perform one-to-many monitoring.

【0039】[0039]

【発明の効果】以上説明したように、本発明のCPUの
相互監視装置によれば、2以上のCPU各々に対して設
けられ、当該CPUの状態を監視する監視手段と、前記
CPU各々に対して設けられ、対応している当該CPU
以外のCPUに対して設けられている前記監視手段の監
視結果に基づいて前記CPUの状態変化を検出し、対応
している当該CPUに状態変化があった旨を通知する検
出手段とを備えたので、接続先のCPUに状態変化があ
った場合、障害発生時点から即座に当該CPUの障害を
検出することが可能であるという効果がある。具体的に
は、CPUの実行プログラム数ステップ内で検出可能で
ある。またCPUは、対応する検出手段から状態変化が
あった旨が通知された場合に状態変化の前後の状態を読
み出し、状態変化前後の値を比較しているので、接続先
のCPUの状態を的確に判定できるという効果がある。
従って、その後の処理を的確を実行でき、2次的な障害
の発生を押さえることができるという効果が生ずる。
As described above, according to the CPU mutual monitoring apparatus of the present invention, monitoring means provided for each of two or more CPUs for monitoring the state of the CPU, The CPU provided and supported
Detecting means for detecting a change in the state of the CPU based on the monitoring result of the monitoring means provided for the other CPUs, and notifying that the corresponding CPU has changed state. Therefore, when the state of the connected CPU changes, it is possible to detect the failure of the CPU immediately after the occurrence of the failure. Specifically, it can be detected within several steps of the number of programs executed by the CPU. Further, the CPU reads the state before and after the state change and compares the values before and after the state change when notified of the state change from the corresponding detecting means, so that the state of the connected CPU is accurately determined. There is an effect that the judgment can be made.
Therefore, there is an effect that the subsequent processing can be executed accurately and the occurrence of a secondary failure can be suppressed.

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

【図1】 本発明の一実施形態によるCPUの相互監視
装置の構成を示すブロック図である。
FIG. 1 is a block diagram showing a configuration of a mutual monitoring device for CPUs according to an embodiment of the present invention.

【図2】 監視回路20−1及び検出回路22−1の内
部構成を示すブロック図である。
FIG. 2 is a block diagram showing an internal configuration of a monitoring circuit 20-1 and a detection circuit 22-1.

【図3】 信号線24−1,26−1の論理レベルが変
化した場合における障害状況を説明するための図表であ
る。
FIG. 3 is a chart for explaining a failure situation when the logic levels of the signal lines 24-1 and 26-1 change.

【図4】 従来のCPUの相互監視装置の構成を示すブ
ロック図である。
FIG. 4 is a block diagram showing a configuration of a conventional mutual monitoring device for CPUs.

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

10,12 CPU 20−1,20−2 監視回路(監視手段) 22−1,22−2 検出回路(検出手段) 28−1,28−2,30−1,30−2 抵抗器 50 ウオッチドッグタイマ 52 リセット回路 54 レジスタ 56 NAND回路 60 レジスタ 62 比較器 10, 12 CPU 20-1, 20-2 Monitoring circuit (monitoring means) 22-1, 22-2 Detection circuit (detection means) 28-1, 28-2, 30-1, 30-2 Resistor 50 Watchdog Timer 52 Reset circuit 54 Register 56 NAND circuit 60 Register 62 Comparator

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 2以上のCPU各々に対して設けられ、
当該CPUの状態を監視する監視手段と、 前記CPU各々に対して設けられ、対応している当該C
PU以外のCPUに対して設けられている前記監視手段
の監視結果に基づいて前記CPUの状態変化を検出し、
対応している当該CPUに状態変化があった旨を通知す
る検出手段とを具備することを特徴とするCPUの相互
監視装置。
A plurality of CPUs provided for each of the plurality of CPUs;
Monitoring means for monitoring the state of the CPU; and C
Detecting a state change of the CPU based on a monitoring result of the monitoring unit provided for the CPU other than the PU,
A mutual monitoring device for CPUs, comprising: detection means for notifying that the corresponding CPU has changed state.
【請求項2】 前記検出手段は、 前記監視手段から出力された監視結果を記憶するレジス
タと、 前記レジスタの記憶内容と、前記監視手段から出力され
ている監視結果とを比較し、比較結果が異なる場合に対
応する前記CPUに対して状態変化があった旨を通知す
る比較器とからなることを特徴とする請求項1記載のC
PUの相互監視装置。
2. The detection means, comprising: a register for storing a monitoring result output from the monitoring means; a storage content of the register; and a monitoring result output from the monitoring means. 2. The C according to claim 1, further comprising a comparator for notifying the CPU corresponding to a different case that the state has changed.
PU mutual monitoring device.
【請求項3】 前記CPUは、対応する前記検出手段か
ら状態変化があった旨が通知された場合に前記レジスタ
の記憶内容と前記監視手段から出力されている監視結果
とを読み出し、前記CPUの状態を判断することを特徴
とする請求項2記載のCPUの相互監視装置。
3. The CPU reads the storage contents of the register and the monitoring result output from the monitoring means when notified of a state change from the corresponding detecting means, and reads the monitoring result of the CPU. 3. The mutual monitoring device for CPU according to claim 2, wherein the status is determined.
【請求項4】 前記監視回路は、前記CPUの状態を監
視するウオッチドッグタイマと、 前記CPUのリセットを行うリセット回路と、 前記CPUの動作状況を記憶するレジスタとを有し、 前記監視結果は、前記ウオッチドッグタイマの出力と、
前記リセット回路及びレジスタの出力のNAND出力と
からなることを特徴とする請求項1記載のCPUの相互
監視装置。
4. The monitoring circuit includes: a watchdog timer for monitoring a state of the CPU; a reset circuit for resetting the CPU; and a register for storing an operation state of the CPU. The output of the watchdog timer,
2. The mutual monitoring device for a CPU according to claim 1, comprising a NAND output of the reset circuit and a register output.
【請求項5】 前記CPUは、異なるユニットに搭載さ
れ、 前記ウオッチドッグタイマの出力及び前記NAND出力
は抵抗器によりプルアップされており、 前記CPUは、前記監視結果に基づいて、CPUが搭載
された前記ユニットが接続されているかを判断すること
を特徴とする請求項4記載のCPUの相互監視装置。
5. The CPU is mounted on a different unit, the output of the watchdog timer and the NAND output are pulled up by a resistor, and the CPU is mounted on the CPU based on the monitoring result. 5. The CPU mutual monitoring device according to claim 4, wherein it is determined whether said unit is connected.
JP9355773A 1997-12-24 1997-12-24 Mutual monitor device for cpu Withdrawn JPH11184734A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9355773A JPH11184734A (en) 1997-12-24 1997-12-24 Mutual monitor device for cpu

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9355773A JPH11184734A (en) 1997-12-24 1997-12-24 Mutual monitor device for cpu

Publications (1)

Publication Number Publication Date
JPH11184734A true JPH11184734A (en) 1999-07-09

Family

ID=18445686

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9355773A Withdrawn JPH11184734A (en) 1997-12-24 1997-12-24 Mutual monitor device for cpu

Country Status (1)

Country Link
JP (1) JPH11184734A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5163807B2 (en) * 2010-03-18 2013-03-13 トヨタ自動車株式会社 Microcomputer mutual monitoring system and microcomputer mutual monitoring method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5163807B2 (en) * 2010-03-18 2013-03-13 トヨタ自動車株式会社 Microcomputer mutual monitoring system and microcomputer mutual monitoring method

Similar Documents

Publication Publication Date Title
US20060161714A1 (en) Method and apparatus for monitoring number of lanes between controller and PCI Express device
US5644700A (en) Method for operating redundant master I/O controllers
JP2010092105A (en) Synchronization control apparatus, information processing apparatus, and synchronization management method
JP2011043957A (en) Fault monitoring circuit, semiconductor integrated circuit, and faulty part locating method
US20090222687A1 (en) Method and system for telecommunication apparatus fast fault notification
JPH11184734A (en) Mutual monitor device for cpu
JP2004013723A (en) Device and method for fault recovery of information processing system adopted cluster configuration using shared memory
JPH01217666A (en) Fault detecting system for multiprocessor system
JP2007026038A (en) Path monitoring system, path monitoring method and path monitoring program
JP2954040B2 (en) Interrupt monitoring device
KR100394736B1 (en) Method And Apparatus For Fail Recovery And Board Selecting In Dual System
JP2706027B2 (en) Programmable controller
JP2001175545A (en) Server system, fault diagnosing method, and recording medium
JPH1078896A (en) Industrial electronic computer
JPS60247750A (en) Control system for initial system constitution
JPH01230111A (en) Power source control system
JP3757407B2 (en) Control device
JP3107104B2 (en) Standby redundancy method
JPH025119A (en) Power supply control system
JPH08194628A (en) Bus fault processing system
JP3169488B2 (en) Communication control device
JPH06139088A (en) Duplex processor system
JPH03216748A (en) Remote channel device
JPH04355809A (en) Initial value setting circuit
JPH05233578A (en) Faulty device degeneration method

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: 20050301