JPH02281343A - Cpu operation monitor system - Google Patents
Cpu operation monitor systemInfo
- Publication number
- JPH02281343A JPH02281343A JP1102866A JP10286689A JPH02281343A JP H02281343 A JPH02281343 A JP H02281343A JP 1102866 A JP1102866 A JP 1102866A JP 10286689 A JP10286689 A JP 10286689A JP H02281343 A JPH02281343 A JP H02281343A
- Authority
- JP
- Japan
- Prior art keywords
- address
- data
- cpu
- wdt
- monitoring
- 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
- 238000012544 monitoring process Methods 0.000 claims description 23
- 238000000034 method Methods 0.000 claims description 8
- 230000005540 biological transmission Effects 0.000 claims 1
- 230000002159 abnormal effect Effects 0.000 abstract description 3
- 230000000694 effects Effects 0.000 description 3
- 230000005856 abnormality Effects 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- RRLHMJHRFMHVNM-BQVXCWBNSA-N [(2s,3r,6r)-6-[5-[5-hydroxy-3-(4-hydroxyphenyl)-4-oxochromen-7-yl]oxypentoxy]-2-methyl-3,6-dihydro-2h-pyran-3-yl] acetate Chemical compound C1=C[C@@H](OC(C)=O)[C@H](C)O[C@H]1OCCCCCOC1=CC(O)=C2C(=O)C(C=3C=CC(O)=CC=3)=COC2=C1 RRLHMJHRFMHVNM-BQVXCWBNSA-N 0.000 description 1
Landscapes
- Debugging And Monitoring (AREA)
Abstract
Description
【発明の詳細な説明】
(産業上の利用分野)
本発明はCPUICおけるプログラム走行状態の監視に
関し、特にそのウォッチドッグタイマ(以後、WDTと
称する。)方式に関する。DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to monitoring of program running status in a CPUIC, and particularly to its watchdog timer (hereinafter referred to as WDT) system.
(従来の技術)
従来、プログラムの走行状態を監視するWDT監視方式
は、プログラム上で一定時間内に必ず実行されるアドレ
スにタイマのリスタート信号を出力する丸めの手段と、
リスタート信号の送出かう一定時間が経過すると外部に
アラームを出力するWDTとを備えて構成されている。(Prior Art) Conventionally, the WDT monitoring method for monitoring the running state of a program includes rounding means for outputting a timer restart signal to an address that is always executed within a certain period of time on the program;
The device is configured to include a WDT that outputs an alarm to the outside when a certain period of time has elapsed for transmitting a restart signal.
従りて、プログラムが正常に走行しているとき、WDT
には一定時間以内に必ずリスタートがかかり、アラーム
信号は出力されない。また、異常時にはリスタートがか
からないため、WDTから外部へアラーム信号が出力さ
れる。WDT監視方式では、これによってプログラムの
走行を監視している。Therefore, when the program is running normally, WDT
is always restarted within a certain period of time, and no alarm signal is output. Furthermore, since restart is not performed in the event of an abnormality, an alarm signal is output from the WDT to the outside. In the WDT monitoring method, the running of the program is monitored using this.
(発明が解決しようとする課題)
上述した従来のWDT監視方式は、システムとしては異
常な場合であつてもWDTのリスタート信号が誤って出
力されるような場合には、その異常を監視することがで
きないという欠点がある。(Problems to be Solved by the Invention) The conventional WDT monitoring method described above monitors the abnormality when the WDT restart signal is erroneously output even if the system is abnormal. The disadvantage is that it cannot be done.
本発明の目的は、(、’PUのアドレスバス上のアドレ
ス情報およびデータバス上のデータ情報を常に監視する
とともに、予め基準となる監視アドレス情報および監視
データ情報を記憶しておき、アドレスバス上のアドレス
情報およびデータバス上のデータ情報を基準と比較し、
比較結果が一致したときにリスタート信号を出力し、一
定時間を経過するとアラーム信号を出力することにより
て上記欠点を除去し、WDTのリスタート信号が誤って
出力されることがないように構成したCPU動作の監視
方式を提供するととにある。The purpose of the present invention is to constantly monitor address information on the address bus and data information on the data bus of the PU, store reference monitoring address information and monitoring data information in advance, and store the reference monitoring address information and data information on the address bus. The address information on the data bus and the data information on the data bus are compared with the reference,
By outputting a restart signal when the comparison results match and outputting an alarm signal after a certain period of time, the above drawbacks are eliminated and the WDT restart signal is configured to avoid being output erroneously. The present invention provides a method for monitoring CPU operation.
(課題を解決するための手段)
本発明によるCPU動作の監視方式は監視手段と、記憶
手段と、比較手段と、判定手段と、リスタート付きタイ
マ手段とを具備して構成したものである。(Means for Solving the Problems) A CPU operation monitoring method according to the present invention is configured to include monitoring means, storage means, comparison means, determination means, and timer means with restart.
監視手段は、CPUのアドレスバス上の第1のアドレス
情報とデータバス上の第1のデータ情報とを監視するた
めのものである。The monitoring means is for monitoring first address information on the address bus of the CPU and first data information on the data bus.
記憶手段は、予め定められた監視用の第2のアドレス情
報および監視用の第2のデータ情報を記憶するためのも
のである。The storage means is for storing predetermined second address information for monitoring and second data information for monitoring.
比較手段は、第1および第2のアドレス情報を比較する
とともに、第1および第2のデータ情報を比較するため
のものである。The comparison means is for comparing the first and second address information as well as the first and second data information.
判定手段は、比較の結果、第1および第2のアドレス情
報、ならびに第1および第2のデータ情報がともに一致
した場合にはリスタート信号を出力する丸めのものであ
る。The determination means is a round type that outputs a restart signal when the first and second address information and the first and second data information both match as a result of the comparison.
リスタート付きタイマ手段は、リスタート信号O送出か
ら一定時間を経過するとアラームを出力するためのもの
である。The restart timer means is for outputting an alarm when a certain period of time has elapsed since the sending of the restart signal O.
(実施例) 次に、本発明について図面を参照して説明する。(Example) Next, the present invention will be explained with reference to the drawings.
第1図は、本発明によるCPU動作の監視方式の一実施
例を示すブロック図である。FIG. 1 is a block diagram showing an embodiment of a CPU operation monitoring method according to the present invention.
第1図において、lはアドレス/データ設定手段、2は
比較回路、3はCPU、4はRAM。In FIG. 1, 1 is an address/data setting means, 2 is a comparison circuit, 3 is a CPU, and 4 is a RAM.
5はROM、6は判定回路、7はWDTである。5 is a ROM, 6 is a determination circuit, and 7 is a WDT.
また101はアドレスバス、102は7’−タパス、1
03.104はそれぞれ信号線である。Also, 101 is an address bus, 102 is a 7'-tapas, 1
03 and 104 are signal lines, respectively.
まず、スイッチにより比較一致させたいアドレスおよび
データをアドレス/データ設定手段1に設定しておく。First, an address and data to be compared and matched are set in the address/data setting means 1 using a switch.
CPU3からアドレスおよびデータが出力されるたびに
、比較回路2でこれらアドレスおよびデータを設定アド
レスおよび設定データとそれぞれ比較する。比較中に実
際実行中のアドレスおよび実行中のデータと、設定アド
レスおよび設定データとが一致したならば、CPU3は
正常動作をしていると判断して、WDT7をリセットす
る・
WDT7の設定時間以内にリセットがかからなかったな
らば、CPU3の動作は異常であると判断して、信号線
104ヘアラー4信号を出力すると同時に、CPU3を
リセットし、プログラムの最初に戻ってこれを実行させ
る。Each time an address and data are output from the CPU 3, the comparison circuit 2 compares these addresses and data with a set address and set data, respectively. If the actual address and data being executed match the set address and set data during comparison, the CPU 3 determines that it is operating normally and resets the WDT 7. Within the set time of the WDT 7. If the reset is not applied, it is determined that the operation of the CPU 3 is abnormal, and the Hairer 4 signal is output on the signal line 104, and at the same time, the CPU 3 is reset, and the program is returned to the beginning and executed.
本実施例では、アドレスバス101.!−データバス1
02とがそれぞれ独立な場合を示したが、これらが共通
パスでありたとしても、本発明を適用できることは明白
である。In this embodiment, address bus 101. ! -Data bus 1
02 are independent, but it is clear that the present invention can be applied even if these paths are common.
(発明の効果)
以上説明したように本発明は、アドレスバス上のアドレ
ス情報およびデータバス上のデータ情報を監視すること
により、CPUにおけるプ冒グラムの走行を監視できる
ため、WDTへのリスタート信号を送出させる命令がプ
ログラムに不要となるという効果がある。また、設定ア
ドレスならびに実行アドレスと、設定データならびに実
行データとをそれぞれ比較し、比較結果によりWDTに
リスタートをかけるか、あるいはアラーム信号を発生さ
せるかの制御をしているため、WDTが誤りてリスター
ト信号になることはな(、CPUの動作を確実に確認す
ることができるという効果がある。(Effects of the Invention) As explained above, the present invention can monitor the running of the program in the CPU by monitoring the address information on the address bus and the data information on the data bus. This has the effect that the program does not need an instruction to send a signal. Also, since the setting address and execution address are compared with the setting data and execution data, and the comparison results are used to control whether to restart the WDT or generate an alarm signal, it is possible that the WDT may be erroneous. It does not become a restart signal (it has the effect of being able to reliably check the operation of the CPU).
第1図は、本発明によるCPU動作の監視方式の一実施
例を示すブロック図である。
1・・・アドレス/データ設定手段
2・・・比較手段
3・・・比較手段
4・・・RAM
5・・・ROM
6・・・判定回路
7・・・WDT
101.102・・・バス
103.104・・・信号線
特許出願人 日本電気株式会社FIG. 1 is a block diagram showing an embodiment of a CPU operation monitoring method according to the present invention. 1... Address/data setting means 2... Comparing means 3... Comparing means 4... RAM 5... ROM 6... Judgment circuit 7... WDT 101.102... Bus 103 .104...Signal line patent applicant NEC Corporation
Claims (1)
上の第1のデータ情報とを監視するための監視手段と、
予め定められた監視用の第2のアドレス情報および監視
用の第2のデータ情報を記憶するための記憶手段と、前
記第1および第2のアドレス情報を比較するとともに前
記第1および第2のデータ情報を比較するための比較手
段と、前記比較の結果、前記第1および第2のアドレス
情報、ならびに前記第1および第2のデータ情報がとも
に一致した場合にはリスタート信号を出力するための判
定手段と、前記リスタート信号の送出から一定時間を経
過するとアラームを出力するためのリスタート付きタイ
マ手段とを具備して構成したことを特徴とするCPU動
作の監視方式。monitoring means for monitoring first address information on the address of the CPU and first data information on the data bus;
a storage means for storing predetermined second address information for monitoring and second data information for monitoring; a comparison means for comparing data information; and outputting a restart signal when the first and second address information and the first and second data information match as a result of the comparison; 1. A method for monitoring CPU operation, comprising: determination means; and timer means with restart for outputting an alarm when a predetermined period of time has elapsed since the transmission of the restart signal.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1102866A JPH02281343A (en) | 1989-04-21 | 1989-04-21 | Cpu operation monitor system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1102866A JPH02281343A (en) | 1989-04-21 | 1989-04-21 | Cpu operation monitor system |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH02281343A true JPH02281343A (en) | 1990-11-19 |
Family
ID=14338831
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP1102866A Pending JPH02281343A (en) | 1989-04-21 | 1989-04-21 | Cpu operation monitor system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH02281343A (en) |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP1041479A1 (en) * | 1999-03-29 | 2000-10-04 | Nec Corporation | Data processing apparatus and data processing method thereof |
| DE102007004794A1 (en) | 2007-01-31 | 2008-08-07 | Leopold Kostal Gmbh & Co. Kg | Controller block with monitoring by a watchdog |
| DE10347196B4 (en) * | 2003-10-10 | 2016-05-19 | Dr. Johannes Heidenhain Gmbh | Device for checking an interface |
| DE102012011872B4 (en) * | 2011-08-08 | 2017-02-02 | Okuma Corporation | Control device with a bus diagnostic function |
-
1989
- 1989-04-21 JP JP1102866A patent/JPH02281343A/en active Pending
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP1041479A1 (en) * | 1999-03-29 | 2000-10-04 | Nec Corporation | Data processing apparatus and data processing method thereof |
| DE10347196B4 (en) * | 2003-10-10 | 2016-05-19 | Dr. Johannes Heidenhain Gmbh | Device for checking an interface |
| DE102007004794A1 (en) | 2007-01-31 | 2008-08-07 | Leopold Kostal Gmbh & Co. Kg | Controller block with monitoring by a watchdog |
| DE102012011872B4 (en) * | 2011-08-08 | 2017-02-02 | Okuma Corporation | Control device with a bus diagnostic function |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US10006455B2 (en) | Drive control apparatus | |
| US5638510A (en) | Multiplexed system with watch dog timers | |
| JP2003115847A (en) | Control system and redundant signal processor | |
| JP2000155703A (en) | Single-processor system | |
| JPH02281343A (en) | Cpu operation monitor system | |
| JPH06324721A (en) | Method for detecting falling-off of connection unit | |
| JP2508305B2 (en) | Initial value determination device | |
| JP3157759B2 (en) | Hot-swap detection | |
| JP2998804B2 (en) | Multi-microprocessor system | |
| JP2931028B2 (en) | Multiplex transmission method | |
| JPS5839307A (en) | Programmable controller | |
| JPS60134941A (en) | Recovery method for systems with external storage devices | |
| JPH02281344A (en) | Program running monitor system | |
| JP2954040B2 (en) | Interrupt monitoring device | |
| JPH0679279B2 (en) | Supervisory control device for microprocessor-applied equipment | |
| JPH0293970A (en) | Multiprocessor system | |
| JPH10307601A (en) | CPU output control circuit | |
| JP3757407B2 (en) | Control device | |
| JPH03136147A (en) | Software monitor system | |
| JPH04287446A (en) | Fault information transmission method | |
| JPH02254833A (en) | Address fault detection method in multiplex signal transmission, and multiplex signal transmission repeater and multiplex signal transmission system using the method | |
| JPH0540510A (en) | Control device | |
| JPH06334668A (en) | Multiplexed transmission system | |
| JPH01154257A (en) | Mutual monitor processing system | |
| JP2001075935A (en) | Inter-processor communication method |