JPH07325792A - Cpu monitoring device - Google Patents
Cpu monitoring deviceInfo
- Publication number
- JPH07325792A JPH07325792A JP6120057A JP12005794A JPH07325792A JP H07325792 A JPH07325792 A JP H07325792A JP 6120057 A JP6120057 A JP 6120057A JP 12005794 A JP12005794 A JP 12005794A JP H07325792 A JPH07325792 A JP H07325792A
- Authority
- JP
- Japan
- Prior art keywords
- cpu
- counter
- slave
- value
- master
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- Debugging And Monitoring (AREA)
- Multi Processors (AREA)
Abstract
Description
【0001】[0001]
【産業上の利用分野】本発明は、複数のCPUを備えた
システムにおいて各CPUが互いに動作状況を監視する
CPU監視装置に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a CPU monitoring device for monitoring the operating status of each CPU in a system having a plurality of CPUs.
【0002】[0002]
【従来の技術】この種のCPU監視装置は、例えば図6
に示すようなシステムに用いられている。即ち、図6に
おいて、1はマスタCPU、2はマスタCPUの管理下
におかれるスレーブCPU、3はマスタCPU1とスレ
ーブCPU2とがアクセス可能であり各CPUが相互に
相手CPUへ渡すべきデータを格納する2ポートRAM
である。なお、この2ポートRAM3は、A系及びB系
の2つの系用のアクセスポートを有し各々のCPUが独
立かつ非同期にデータの書き込み及び読み出しが可能な
メモリである。2. Description of the Related Art This type of CPU monitoring device is shown in FIG.
It is used in the system shown in. That is, in FIG. 6, 1 is a master CPU, 2 is a slave CPU under the control of the master CPU, 3 is accessible by the master CPU 1 and the slave CPU 2, and each CPU stores data to be passed to the other CPU mutually. 2-port RAM
Is. The 2-port RAM 3 is a memory that has access ports for two systems, A system and B system, in which each CPU can write and read data independently and asynchronously.
【0003】また、6はマスタCPU1の動作を監視す
るウオッチドッグタイマ(Watch Dog Tim
er;以下、WDT)回路でありスレーブCPU2と接
続される。また、7はスレーブCPU2の動作を監視す
るWDT回路でありマスタCPU1と接続される。即
ち、各WDT回路6,7はそれぞれ対応の各CPU1,
2の動作状態または信号を監視した場合に、これらが所
定時間を超えて変化しないときに異常が生じたものとし
て検出する回路であり、異常を検出すると相手のCPU
に異常信号を出力する。Reference numeral 6 is a watch dog timer (Watch Dog Tim) for monitoring the operation of the master CPU 1.
er; WDT) circuit, which is connected to the slave CPU 2. A WDT circuit 7 monitors the operation of the slave CPU 2 and is connected to the master CPU 1. That is, each WDT circuit 6 and 7 corresponds to each corresponding CPU 1,
2 is a circuit that detects an abnormal state when the operating state or signal of No. 2 is monitored and does not change over a predetermined time, and when the abnormal state is detected, the other CPU
An abnormal signal is output to.
【0004】以上のように構成されたシステムにおい
て、マスタCPU1がスレーブCPU2に対しデータを
転送しようとする場合は、まずスレーブCPU2の動作
状態を監視するWDT回路7から異常信号が出力されて
いるか否か検出する。ここでWDT回路7から異常信号
が出力されていなければスレーブCPU2は正常に動作
しているものとみなし、マスタCPU1はデータを2ポ
ートRAM3へ書き込む。この場合スレーブCPU2
は、マスタCPU1の動作状態を監視するWDT回路6
から異常信号が出力されているか否かを検出し、異常信
号が検出されなければ、2ポートRAM3に書き込まれ
たデータを読み出し対応する処理を実行する。このよう
にしてマスタCPU1からスレーブCPU2に対するデ
ータの転送が終了する。In the system configured as described above, when the master CPU 1 attempts to transfer data to the slave CPU 2, first, it is determined whether or not an abnormal signal is output from the WDT circuit 7 which monitors the operating state of the slave CPU 2. Or detect. If no abnormal signal is output from the WDT circuit 7, the slave CPU 2 is considered to be operating normally, and the master CPU 1 writes the data to the 2-port RAM 3. In this case slave CPU2
Is a WDT circuit 6 that monitors the operating state of the master CPU 1.
It is detected whether or not an abnormal signal is output, and if the abnormal signal is not detected, the data written in the 2-port RAM 3 is read and a corresponding process is executed. In this way, the data transfer from the master CPU 1 to the slave CPU 2 is completed.
【0005】また、スレーブCPU2がマスタCPU1
に対しデータを転送する場合も同様に、WDT回路6か
ら異常信号が出力されているか否か検出し、異常信号が
出力されていなければマスタCPU1は正常に動作して
いるものとみなし、データを2ポートRAM3へ書き込
む。このスレーブCPU2のデータ書き込みに対し、マ
スタCPU1は、スレーブCPU2の動作を監視するW
DT回路7から異常信号が出力されているか否かを確認
のうえ、異常信号が検出されなければ、2ポートRAM
3に書き込まれたデータを読み出す。Further, the slave CPU 2 is the master CPU 1
Similarly, in the case of transferring data, it is similarly detected whether or not an abnormal signal is output from the WDT circuit 6, and if the abnormal signal is not output, it is considered that the master CPU 1 is operating normally, and the data is transferred. Write to 2-port RAM3. The master CPU 1 monitors the operation of the slave CPU 2 in response to the data writing of the slave CPU 2.
If the abnormal signal is not detected after checking whether the abnormal signal is output from the DT circuit 7, the 2-port RAM
Read the data written in 3.
【0006】このようなデータ転送時に何れかのCPU
の動作が異常となり対応のWDT回路から正常動作中の
相手CPUへ異常信号が出力されると、正常動作中のC
PUによりデータの転送が中止される。Any one of the CPUs during such data transfer
If an abnormal signal is output from the corresponding WDT circuit to the partner CPU that is operating normally, the C
The PU stops the data transfer.
【0007】[0007]
【発明が解決しようとする課題】このようなシステムに
おいては、CPUの監視を行うWDT回路はCPUの数
だけ必要となり、従ってシステムが多くのCPUにより
構成される場合は、回路の構成が複雑となり、システム
を安価に構成できないという問題を生じている。In such a system, WDT circuits for monitoring the CPUs are required for the number of CPUs. Therefore, when the system is composed of many CPUs, the circuit configuration becomes complicated. However, there is a problem that the system cannot be configured at low cost.
【0008】したがって本発明は、複数のCPUからな
るシステムにおいて、各CPUの動作を監視する監視装
置を簡素化し、かつ各CPUの動作を確実に監視するこ
とを目的とする。Therefore, it is an object of the present invention to simplify a monitoring device for monitoring the operation of each CPU in a system including a plurality of CPUs and to reliably monitor the operation of each CPU.
【0009】[0009]
【課題を解決するための手段】このような課題を解決す
るために本発明は、第1及び第2の2つの系から互いに
非同期でアクセスが可能な2ポートRAMと、第1の系
に配設される第1のCPUと、第2の系に配設される第
2のCPUとを有するシステムの第1及び第2のCPU
の動作を監視するCPU監視装置において、第1のCP
Uによりカウントされる第1のカウンタと、第2のCP
Uによりカウントされる第2のカウンタとを2ポートR
AMに設けると共に、第2のカウンタの値を監視する第
1の監視手段を第1のCPUに設け、かつ第1のカウン
タの値を監視する第2の監視手段を第2のCPUに設け
たものである。また、第1及び第2の監視手段は監視す
るカウンタの値が前回の監視時と同一の場合は自CPU
に設けたCPU異常カウンタをカウントアップすると共
に、カウント値が所定値以上の場合は対応の相手CPU
を異常と判定するようにしたものである。また、第1及
び第2の系に配設される第1及び第2のCPUを複数設
けたものである。In order to solve such a problem, the present invention provides a two-port RAM which can be asynchronously accessed from two systems, a first and a second system, and a second system RAM. First and second CPUs of a system having a first CPU provided and a second CPU provided in a second system
In the CPU monitoring device that monitors the operation of the
A first counter counted by U and a second CP
2 port R with a second counter counted by U
In addition to the AM, the first monitoring means for monitoring the value of the second counter is provided in the first CPU, and the second monitoring means for monitoring the value of the first counter is provided in the second CPU. It is a thing. Further, the first and second monitoring means, if the value of the counter to be monitored is the same as that at the time of the previous monitoring, the own CPU
If the count value is greater than or equal to a predetermined value, the corresponding CPU
Is determined to be abnormal. Further, a plurality of first and second CPUs arranged in the first and second systems are provided.
【0010】[0010]
【作用】第1のCPUは第2のCPUによりカウントさ
れる第2のカウンタの値を監視すると共に、第2のCP
Uは第1のCPUによりカウントされる第1のカウンタ
の値を監視する。この結果、第1及び第2のカウンタを
介して相互に相手CPUの動作の正否を監視することが
できる。また、監視されるカウンタの値が前回の監視時
と同一の場合は自CPUに設けたCPU異常カウンタの
値をカウントアップすると共にカウント値が所定値以上
に達すると対応の相手CPUを異常と判定する。この結
果、CPUの異常状態が所定時間継続することによりは
じめて当該CPUを異常と判定することから、CPUの
異常を的確に判定することができる。また、第1及び第
2のCPUをそれぞれ複数設け、各CPUは2ポートR
AMに対応に設けられた各カウンタをそれぞれカウント
する。この結果、各カウンタの値がそれぞれ相手CPU
により監視されその異常が検出できることから、本発明
を多くのCPUにより構成される大規模システムに対し
ても適用することができる。The first CPU monitors the value of the second counter counted by the second CPU, and the second CP
U monitors the value of the first counter counted by the first CPU. As a result, the correctness of the operation of the partner CPU can be mutually monitored via the first and second counters. If the value of the monitored counter is the same as the value at the previous time of monitoring, the value of the CPU abnormality counter provided in the own CPU is incremented, and when the count value reaches a predetermined value or more, the corresponding partner CPU is determined to be abnormal To do. As a result, since the CPU is determined to be abnormal only after the abnormal state of the CPU continues for a predetermined time, it is possible to accurately determine the abnormality of the CPU. Also, a plurality of first and second CPUs are provided, and each CPU has a 2-port R
Each counter provided corresponding to AM is counted respectively. As a result, the values of the counters are
The present invention can be applied to a large-scale system composed of many CPUs, since the abnormality can be detected by monitoring by.
【0011】[0011]
【実施例】以下、本発明について図面を参照して説明す
る。図1は、本発明に係るCPU監視装置を適用したシ
ステムの一実施例を示すブロック図であり、図6に示す
従来システムの構成から各CPUの動作を監視するWD
T回路6,7を削除し、回路構成を簡略化したものであ
る。また、各CPUの内部RAMに後述するCPU異常
カウンタ8,9を設けたものである。DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing an embodiment of a system to which the CPU monitoring device according to the present invention is applied, and a WD for monitoring the operation of each CPU from the configuration of the conventional system shown in FIG.
The T circuits 6 and 7 are deleted to simplify the circuit configuration. Also, CPU abnormality counters 8 and 9 described later are provided in the internal RAM of each CPU.
【0012】次に図2は、図1の実施例に示す2ポート
RAM3のメモリ構成を示す図である。図2において、
2ポートRAM3のアドレスaはマスタCPU1のカウ
ンタとして用いられると共に、アドレスa+1以降の領
域はマスタCPU1からスレーブCPU2へのデータ格
納領域として用いられている。また、アドレスbはスレ
ーブCPU2のカウンタとして用いられると共に、アド
レスb+1以降の領域はスレーブCPU2からマスタC
PU1へのデータ格納領域として用いられている。Next, FIG. 2 is a diagram showing a memory configuration of the 2-port RAM 3 shown in the embodiment of FIG. In FIG.
The address a of the 2-port RAM 3 is used as a counter of the master CPU 1, and the area after the address a + 1 is used as a data storage area from the master CPU 1 to the slave CPU 2. Further, the address b is used as a counter of the slave CPU 2, and the area after the address b + 1 is from the slave CPU 2 to the master C.
It is used as a data storage area in PU1.
【0013】ここで、2ポートRAM3のアドレスaに
設けられたマスタCPUカウンタ4は、マスタCPU1
の動作が正常時にはマスタCPU1によりカウントアッ
プされ、かつこの値はスレーブCPU2により検出され
てマスタCPU1の動作の正否が監視される。また、2
ポートRAM3のアドレスbに設けられたスレーブCP
Uカウンタ5は、スレーブCPU2の動作が正常時には
スレーブCPU2によりカウントアップされ、かつこの
値はマスタCPU1により検出されてスレーブCPU2
の動作の正否が監視される。Here, the master CPU counter 4 provided at the address a of the 2-port RAM 3 is the master CPU 1
When the operation is normal, the master CPU 1 counts up, and this value is detected by the slave CPU 2 to monitor whether the operation of the master CPU 1 is correct. Also, 2
Slave CP provided at address b of port RAM3
The U counter 5 is counted up by the slave CPU 2 when the operation of the slave CPU 2 is normal, and this value is detected by the master CPU 1 and detected.
The correctness of the operation of is monitored.
【0014】このようなマスタCPUカウンタ4及びス
レーブCPUカウンタ5を2ポートRAM3に設けるこ
とにより、各CPUは各カウンタを介して互いに相手C
PUの動作を監視することができ、したがって図6に示
す従来のシステム構成から各CPUの動作を監視するW
DT回路6,7を省略することができる。By providing the master CPU counter 4 and the slave CPU counter 5 in the 2-port RAM 3 as described above, the respective CPUs are able to communicate with each other through the respective counters.
It is possible to monitor the operation of the PU, and thus to monitor the operation of each CPU from the conventional system configuration shown in FIG.
The DT circuits 6 and 7 can be omitted.
【0015】図3は、2ポートRAM3に設けられた各
カウンタ4,5を利用して相互に相手CPUの動作を監
視するマスタCPU1またはスレーブCPU2の動作を
示すフローチャートである。このフローチャートに基づ
き例えば相手CPUであるスレーブCPU2の動作を監
視するマスタCPU1の動作の例について具体的に説明
する。システムを構成するマスタCPU1及びスレーブ
CPU2に電源が供給され起動されると、ステップST
1でマスタCPU1はまず自CPUの内部RAMに設け
られ相手CPUの異常を監視するための上述のCPU異
常カウンタ8をクリアする。FIG. 3 is a flow chart showing the operation of the master CPU 1 or the slave CPU 2 which mutually monitors the operation of the partner CPU using the respective counters 4 and 5 provided in the 2-port RAM 3. An example of the operation of the master CPU 1 that monitors the operation of the slave CPU 2, which is the other CPU, will be specifically described based on this flowchart. When power is supplied to the master CPU 1 and the slave CPU 2 constituting the system and the system is activated, step ST
At 1, the master CPU 1 first clears the above-mentioned CPU abnormality counter 8 provided in the internal RAM of its own CPU for monitoring the abnormality of the partner CPU.
【0016】ここでスレーブCPU2からの転送データ
を2ポートRAM3から読み込む前に、マスタCPU1
はスレーブCPU2が正常であるか否かを判断する。即
ち、ステップST2においてスレーブCPUカウンタ5
の値を読み込み、ステップST3でこのカウンタ値が前
回値と同一であるか否かを判断する。ここでスレーブC
PUカウンタの値が前回値と同一でなければ、スレーブ
CPU2は正常に動作しているものとみなし、ステップ
ST4でスレーブCPU2によりセットされた2ポート
RAM3の図2に示すアドレスb+1以降のデータを読
み出し図示しないメモリに書き込むと共に、ステップS
T5で自身のカウンタであるマスタCPUカウンタ4の
値を1つ増加させる。そして、スレーブCPU2に対す
る転送データをステップST6で2ポートRAM3の所
定エリアに書き込みデータ転送処理を終了する。Before reading the transfer data from the slave CPU 2 from the 2-port RAM 3, the master CPU 1
Determines whether the slave CPU 2 is normal. That is, in step ST2, the slave CPU counter 5
Is read, and it is determined in step ST3 whether or not this counter value is the same as the previous value. Slave C here
If the value of the PU counter is not the same as the previous value, it is considered that the slave CPU 2 is operating normally, and the data at address b + 1 and subsequent addresses shown in FIG. 2 of the 2-port RAM 3 set by the slave CPU 2 in step ST4 is read. At the same time as writing to a memory not shown, step S
At T5, the value of the master CPU counter 4, which is its own counter, is incremented by one. Then, the transfer data for the slave CPU 2 is written in a predetermined area of the 2-port RAM 3 in step ST6, and the data transfer process is completed.
【0017】また、スレーブCPUカウンタ5の値が前
回値と同一でありステップST3で「YES」と判定さ
れる場合は、スレーブCPU2は正常に動作していない
と判断する。そしてこの場合、スレーブCPU2を監視
する上述のCPU異常カウンタ8のカウンタ値が所定値
n以上か否かをステップST7で判断したうえ、これが
「NO」となる場合は、ステップST8でこのCPU異
常カウンタ8の値を1つ増加させてステップST2へ戻
る。If the value of the slave CPU counter 5 is the same as the previous value and it is determined "YES" in step ST3, it is determined that the slave CPU 2 is not operating normally. In this case, it is determined in step ST7 whether or not the counter value of the CPU abnormality counter 8 for monitoring the slave CPU 2 is equal to or larger than the predetermined value n, and if this is "NO", this CPU abnormality counter is determined in step ST8. The value of 8 is incremented by 1, and the process returns to step ST2.
【0018】即ち、スレーブCPUカウンタ5の値が前
回値と同一であり、かつスレーブCPU2を監視するた
めに自CPUに設けられたCPU異常カウンタ8の値が
所定値以下である場合は、マスタCPU1はスレーブC
PU2が正常に動作していないと判断し、スレーブCP
U2からの転送データを読み込まずにCPU異常カウン
タを1つ増加する。ここでスレーブCPU2の動作が正
常に戻れば、例えばマスタCPU1がステップST5で
自身のカウンタ4をカウントアップするように、スレー
ブCPU2も自身のカウンタ5をカウントアップし、こ
の結果、ステップST3の判定は「NO」となるはずで
ある。That is, when the value of the slave CPU counter 5 is the same as the previous value and the value of the CPU abnormality counter 8 provided in the own CPU for monitoring the slave CPU 2 is less than or equal to a predetermined value, the master CPU 1 Is slave C
It is judged that PU2 is not operating normally and the slave CP
The CPU error counter is incremented by 1 without reading the transfer data from U2. If the operation of the slave CPU 2 returns to normal, the slave CPU 2 also counts up its own counter 5 just like the master CPU 1 counts up its own counter 4 in step ST5, and as a result, the determination in step ST3 is made. It should be "NO".
【0019】しかしスレーブCPU2が異常状態のまま
であると、スレーブCPUカウンタ5がカウントアップ
されないため、この値は同一値を保持する。従ってステ
ップST3で「YES」と判定される結果、ステップS
T7の「CPU異常カウンタ>n)の判定が「YES」
となるまで、マスタCPU1内のCPU異常カウンタ8
はマスタCPU1により順次カウントアップされる。そ
してこの結果、CPU異常カウンタ8の値が所定値n以
上になりステップST7で「YES」と判定されると、
マスタCPU1はステップST9で相手CPU、即ちス
レーブCPU2の異常を確定しデータ転送処理を終了す
る。However, if the slave CPU 2 is still in an abnormal state, the slave CPU counter 5 is not counted up, so this value holds the same value. Therefore, as a result of the determination of "YES" in step ST3, step S3
The judgment of "CPU abnormality counter> n) of T7 is" YES ".
Until the CPU abnormality counter 8 in the master CPU 1
Are sequentially incremented by the master CPU 1. As a result, when the value of the CPU abnormality counter 8 becomes equal to or larger than the predetermined value n and it is determined to be "YES" in step ST7,
In step ST9, the master CPU 1 determines the abnormality of the partner CPU, that is, the slave CPU 2, and finishes the data transfer process.
【0020】このように、スレーブCPU2の異常状態
が所定時間(CPU異常カウンタ8のn計数分)継続す
ることにより、はじめて当該のスレーブCPU2が異常
と判定されることから、相手CPUの異常を的確に判定
することができる。なお、本実施例では相手CPUであ
るスレーブCPU2の動作の正否を確認してスレーブC
PU2からの転送データを取り込むマスタCPU1の動
作について説明したが、スレーブCPU2の動作につい
ても全く同様であり、この場合、相手CPUはマスタC
PU1となる。この結果、相互に相手のカウンタの値を
監視して相手CPUの動作の正否を判断することがで
き、従って従来設けられていた相手CPUの動作を相互
に監視するWDT回路が不要になり、各CPUの動作を
監視する監視装置が簡素化され、かつ各CPUの動作を
確実に監視することができる。As described above, since the slave CPU 2 is determined to be abnormal for the first time when the abnormal state of the slave CPU 2 continues for a predetermined time (corresponding to n counts of the CPU abnormality counter 8), the abnormality of the partner CPU is accurately identified. Can be determined. In addition, in the present embodiment, the slave C is confirmed by checking whether the operation of the slave CPU 2, which is the partner CPU, is correct.
Although the operation of the master CPU 1 that fetches the transfer data from the PU 2 has been described, the operation of the slave CPU 2 is exactly the same. In this case, the partner CPU is the master C 1.
It becomes PU1. As a result, it is possible to mutually monitor the counter value of the other party to judge whether the operation of the other CPU is correct or not. Therefore, the WDT circuit conventionally provided for mutually monitoring the operation of the other CPU becomes unnecessary, and The monitoring device that monitors the operation of the CPU is simplified, and the operation of each CPU can be reliably monitored.
【0021】次に図4は本発明の他の実施例を示すブロ
ック図であり、上述の2ポートRAM3にスレーブCP
U2を複数個接続したものである。即ち、2ポートRA
M3の一方の側にマスタCPU1を接続すると共に、2
ポートRAM3の他方の側に複数のスレーブCPU21
〜2n を接続するように構成する。そして2ポートRA
M3を、図5に示すように構成する。即ち、マスタCP
U1に対してはマスタCPUカウンタ4及びその転送デ
ータ領域、またスレーブCPU21 に対してはスレーブ
CPUカウンタ51 及びその転送データ領域、またスレ
ーブCPU22 に対してはスレーブCPUカウンタ52
及びその転送データ領域という具合に、各CPU毎にカ
ウンタ及び転送データ格納領域を持たせるように構成す
る。Next, FIG. 4 is a block diagram showing another embodiment of the present invention, in which the above-mentioned 2-port RAM 3 has a slave CP.
A plurality of U2 are connected. That is, 2-port RA
Connect the master CPU1 to one side of M3 and
A plurality of slave CPUs 21 on the other side of the port RAM 3
Configure to connect ~ 2n. And 2 port RA
M3 is configured as shown in FIG. That is, the master CP
U1 is the master CPU counter 4 and its transfer data area, slave CPU 21 is the slave CPU counter 51 and its transfer data area, and slave CPU 22 is the slave CPU counter 52.
And a transfer data area thereof, each CPU is provided with a counter and a transfer data storage area.
【0022】このように構成された2ポートRAM3を
介しマスタCPU1と複数のスレーブCPU21 〜2n
とを接続することにより、マスタCPU1は各スレーブ
CPUカウンタ51 〜5n をアクセスして各カウンタ5
1 〜5n の値がそれぞれ前回の値と同一であるか否かを
検出すると共に、同一値がCPU異常カウンタ8のnカ
ウント分継続すると、該当するスレーブCPUを異常と
判定する。そしてこの場合は、該当スレーブCPUの転
送データを取り込まないように制御する。また、各スレ
ーブCPU21 〜2n は2ポートRAM3中のマスタC
PUカウンタ4をアクセスしてこの値が前回の値と同一
であるか否かを検出し、同一値が各CPU異常カウンタ
9のnカウント分で継続すると、マスタCPU1を異常
と判定する。そしてこの場合は、マスタCPU1の転送
データを取り込まないようにする。The master CPU 1 and a plurality of slave CPUs 21 to 2n are connected via the 2-port RAM 3 constructed as described above.
By connecting with the master CPU 1, the master CPU 1 accesses the slave CPU counters 51 to 5n to access each counter 5
It is determined whether or not the values of 1 to 5n are the same as the previous values, and when the same value continues for n counts of the CPU abnormality counter 8, the corresponding slave CPU is determined to be abnormal. Then, in this case, control is performed so that the transfer data of the slave CPU is not captured. Also, each slave CPU 21 to 2n is a master C in the 2-port RAM 3.
The PU counter 4 is accessed to detect whether this value is the same as the previous value, and when the same value continues for n counts of each CPU abnormality counter 9, the master CPU 1 is determined to be abnormal. Then, in this case, the transfer data of the master CPU 1 is not taken in.
【0023】このようにスレーブCPUを複数設けた場
合も対応するカウンタを2ポートRAM3に設けること
により、このカウンタを介して同様に相手CPUを相互
に監視することができる。また、マスタCPUを複数設
けた場合も同様に2ポートRAM3を介して相互に相手
CPUの動作確認を行うことができ、さらにマスタCP
U及びスレーブCPUをそれぞれ複数設けた場合も同様
である。この結果、本発明を多くのCPUから構成され
る大規模システムに適用可能となる。Even when a plurality of slave CPUs are provided in this way, by providing a corresponding counter in the 2-port RAM 3, it is possible to similarly monitor the counterpart CPUs via this counter. Also, when a plurality of master CPUs are provided, it is possible to similarly confirm the operations of the other CPUs via the two-port RAM 3 and to further confirm the master CP.
The same applies when a plurality of U and slave CPUs are provided. As a result, the present invention can be applied to a large-scale system including many CPUs.
【0024】[0024]
【発明の効果】以上説明したように本発明によれば、第
1のCPUは第2のCPUによりカウントされる第2の
カウンタの値を監視すると共に、第2のCPUは第1の
CPUによりカウントされる第1のカウンタの値を監視
するようにしたので、第1及び第2のカウンタを介し相
互に相手CPUの動作の正否を監視でき、したがって従
来設けられていたWDT回路を省略することができ、回
路を簡素に構成できると共にCPUの異常を的確に検出
することが可能になる。また、監視されるカウンタの値
が前回の監視時と同一の場合は自CPUの内部に設けら
れたCPU異常カウンタの値をカウントアップすると共
にカウント値が所定値以上に達すると対応の相手CPU
を異常と判定するようにしたので、CPUの異常状態が
所定時間継続することによりはじめて当該CPUを異常
と判定することから、相手CPUの異常を的確に判定す
ることができる。また、第1及び第2のCPUをそれぞ
れ複数設け、各CPUは2ポートRAMに対応に設けら
れた各カウンタをそれぞれカウントするようにしたの
で、各カウンタの値がそれぞれ相手CPUにより監視さ
れて相手CPUの異常が検出できることから、多くのC
PUにより構成される大規模システムに対しても十分適
用することができる。As described above, according to the present invention, the first CPU monitors the value of the second counter counted by the second CPU, and the second CPU operates by the first CPU. Since the value of the counted first counter is monitored, the correctness of the operation of the partner CPU can be mutually monitored via the first and second counters, and therefore the WDT circuit conventionally provided can be omitted. Therefore, the circuit can be configured simply and the abnormality of the CPU can be accurately detected. If the value of the monitored counter is the same as the value at the previous time of monitoring, the value of the CPU abnormality counter provided inside the own CPU is incremented, and when the count value exceeds a predetermined value, the corresponding partner CPU
Since the CPU is determined to be abnormal, the CPU is determined to be abnormal only after the abnormal state of the CPU continues for a predetermined time, and therefore the abnormality of the partner CPU can be accurately determined. Further, since a plurality of first and second CPUs are provided, and each CPU counts each counter provided corresponding to the 2-port RAM, the value of each counter is monitored by the other CPU and the other CPU is monitored. Since a CPU abnormality can be detected, many C
It can be sufficiently applied to a large-scale system configured by PU.
【図1】 本発明に係るCPU監視装置を適用したシス
テムの一実施例を示すブロック図である。FIG. 1 is a block diagram showing an embodiment of a system to which a CPU monitoring device according to the present invention is applied.
【図2】 上記実施例システムに用いられる2ポートR
AMの構成を示す図である。FIG. 2 is a 2-port R used in the system of the above embodiment.
It is a figure which shows the structure of AM.
【図3】 上記実施例システム内の各CPUの動作を示
すフローチャートである。FIG. 3 is a flowchart showing the operation of each CPU in the system of the above-described embodiment.
【図4】 本発明の他の実施例を示すブロック図であ
る。FIG. 4 is a block diagram showing another embodiment of the present invention.
【図5】 上記他の実施例システムに用いられる2ポー
トRAMの構成を示す図である。FIG. 5 is a diagram showing a configuration of a 2-port RAM used in the system of the other embodiment.
【図6】 従来のシステムのブロック図である。FIG. 6 is a block diagram of a conventional system.
1 マスタCPU、2,21 〜2n スレーブCPU、
3 2ポートRAM、4 マスタCPUカウンタ、5,
51 〜5n スレーブCPUカウンタ、8,9 CPU
異常カウンタ。1 master CPU, 2,21 ~ 2n slave CPU,
3 2-port RAM, 4 master CPU counter, 5,
51-5n slave CPU counter, 8,9 CPU
Anomaly counter.
Claims (3)
期でアクセスが可能な2ポートRAMと、前記第1の系
に配設される第1のCPUと、前記第2の系に配設され
る第2のCPUとを有するシステムの前記第1及び第2
のCPUの動作を監視するCPU監視装置において、 前記第1のCPUによりカウントされる第1のカウンタ
と、前記第2のCPUによりカウントされる第2のカウ
ンタとを前記2ポートRAMに設けると共に、前記第2
のカウンタの値を監視する第1の監視手段を前記第1の
CPUに設け、かつ前記第1のカウンタの値を監視する
第2の監視手段を前記第2のCPUに設けたことを特徴
とするCPU監視装置。1. A two-port RAM that can be asynchronously accessed from two systems, a first CPU provided in the first system, and a second CPU provided in the second system. The first and second systems having a second CPU installed
In the CPU monitoring device for monitoring the operation of the CPU, a first counter counted by the first CPU and a second counter counted by the second CPU are provided in the 2-port RAM, and The second
The first CPU is provided in the first CPU, and the second CPU is provided in the second CPU to monitor the value of the first counter. CPU monitoring device.
て、 前記第1及び第2のCPUの内部に各々CPU異常カウ
ンタを設け、前記第1及び第2の監視手段は監視するカ
ウンタの値が前回の監視時と同一の場合は自CPUに設
けた前記CPU異常カウンタをカウントアップすると共
に、このカウント値が所定値以上の場合は対応の相手C
PUを異常と判定することを特徴とするCPU監視装
置。2. The CPU monitoring device according to claim 1, wherein a CPU abnormality counter is provided inside each of the first and second CPUs, and the values of the counters monitored by the first and second monitoring means are the previous values. If it is the same as when monitoring, the CPU abnormality counter provided in the own CPU is incremented, and if the count value is equal to or greater than a predetermined value, the corresponding partner C
A CPU monitoring device characterized by determining that a PU is abnormal.
て、 前記第1及び第2の系に配設される第1及び第2のCP
Uを複数設けると共に前記2ポートRAMに各CPUに
よりカウントされるカウンタを各CPUに対応して設け
たことを特徴とするCPU監視装置。3. The CPU monitoring device according to claim 1, wherein the first and second CPs are arranged in the first and second systems.
A CPU monitoring device, wherein a plurality of Us are provided and a counter that is counted by each CPU is provided in the 2-port RAM corresponding to each CPU.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP6120057A JPH07325792A (en) | 1994-06-01 | 1994-06-01 | Cpu monitoring device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP6120057A JPH07325792A (en) | 1994-06-01 | 1994-06-01 | Cpu monitoring device |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH07325792A true JPH07325792A (en) | 1995-12-12 |
Family
ID=14776829
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP6120057A Pending JPH07325792A (en) | 1994-06-01 | 1994-06-01 | Cpu monitoring device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH07325792A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2008117390A (en) * | 2006-10-25 | 2008-05-22 | Rockwell Automation Technologies Inc | Safety timer crosscheck diagnostic in dual-cpu safety system |
JP2009116699A (en) * | 2007-11-07 | 2009-05-28 | Toyota Motor Corp | Information processing system |
JP2011248390A (en) * | 2010-05-21 | 2011-12-08 | Toshiba Corp | Vehicle control device |
CN108228440A (en) * | 2016-12-13 | 2018-06-29 | 比亚迪股份有限公司 | The detection method and device of CPU program pointers |
-
1994
- 1994-06-01 JP JP6120057A patent/JPH07325792A/en active Pending
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2008117390A (en) * | 2006-10-25 | 2008-05-22 | Rockwell Automation Technologies Inc | Safety timer crosscheck diagnostic in dual-cpu safety system |
JP4711197B2 (en) * | 2006-10-25 | 2011-06-29 | ロックウェル オートメーション テクノロジーズ, インコーポレーテッド | Safety timer cross-check diagnosis in a dual CPU safety system |
JP2009116699A (en) * | 2007-11-07 | 2009-05-28 | Toyota Motor Corp | Information processing system |
JP2011248390A (en) * | 2010-05-21 | 2011-12-08 | Toshiba Corp | Vehicle control device |
CN108228440A (en) * | 2016-12-13 | 2018-06-29 | 比亚迪股份有限公司 | The detection method and device of CPU program pointers |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP0514075A2 (en) | Fault tolerant processing section with dynamically reconfigurable voting | |
KR102378466B1 (en) | Memory devices and modules | |
JPH0430619B2 (en) | ||
EP1261973B1 (en) | Fault-tolerant data transfer | |
JP2996440B2 (en) | Diagnosis method of data processing system | |
US6804794B1 (en) | Error condition handling | |
JP3748117B2 (en) | Error detection system for mirrored memory | |
JPH07325792A (en) | Cpu monitoring device | |
CN114579392A (en) | AXI bus monitor for write transactions | |
US6882620B1 (en) | Token exchange system with fault protection | |
JP3127941B2 (en) | Redundant device | |
US5687310A (en) | System for generating error signal to indicate mismatch in commands and preventing processing data associated with the received commands when mismatch command has been determined | |
CN107451028A (en) | Error condition storage method and server | |
CN114816896A (en) | AXI bus monitor and electronic system thereof | |
JP2002229811A (en) | Control method of logical partition system | |
JPH08263328A (en) | Bus trace device and method | |
JP3624051B2 (en) | Information processing device | |
JPH0695731A (en) | Fault factor diagnosis system | |
KR0176085B1 (en) | Error Detection Method of Processor Node and Node Connection Network in Parallel Processing Computer System | |
JP3012402B2 (en) | Information processing system | |
JPH079636B2 (en) | Bus diagnostic device | |
JPH03253945A (en) | Abnormality recovery processing function confirming system for data processing system | |
JPS61248141A (en) | Fifo self-diagnosing device | |
JPH01149549A (en) | System for diagnosing communication system | |
JPS61264445A (en) | Duplex data fetching system |