JPH02114339A - Cpu monitoring device - Google Patents

Cpu monitoring device

Info

Publication number
JPH02114339A
JPH02114339A JP63268630A JP26863088A JPH02114339A JP H02114339 A JPH02114339 A JP H02114339A JP 63268630 A JP63268630 A JP 63268630A JP 26863088 A JP26863088 A JP 26863088A JP H02114339 A JPH02114339 A JP H02114339A
Authority
JP
Japan
Prior art keywords
address
cpu
time
program
signal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP63268630A
Other languages
Japanese (ja)
Inventor
Hajime Nagai
肇 永井
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP63268630A priority Critical patent/JPH02114339A/en
Publication of JPH02114339A publication Critical patent/JPH02114339A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To reduce the size of a program by comparing the address of an address signal outputted from a CPU with a previously stored corresponding address in the order of execution, and at the time of coincidence of both values, returning a clock part to an initial value, measuring time and then outputting a CPU reset signal after the passage of a prescribed time. CONSTITUTION:The title device is constituted so as to monitor the runaway of the CPU 1 by monitoring whether the order of the address of an address signal outputted from the CPU 1 is normal or not. Time previously set up in the clock part 4 is set up to a value larger than the maximum execution time from one address stored in a code string coincidence detecting means 3 up to the next address at the time of executing a program normally. Therefore, when the execution order is deviated from the array of program size instructions, an address signal AD corresponding to the succeeding address is not inputted, so that the signal is inputted with a large delay from the previously determined time. Consequently, a CPU reset signal is outputted from the clock part 4, the runaway of the CPU 16 can be detected and the program size can be reduced.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はCPU監視装置に関し、特にマイクロコンピュ
ータシステムでCPUの暴走を監視するCPU監視装置
に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a CPU monitoring device, and more particularly to a CPU monitoring device for monitoring CPU runaway in a microcomputer system.

〔従来の技術〕[Conventional technology]

マイクロコンピュータシステムにおいて、雑音等の原因
により、本来実行すべき命令コードの並び(プログラム
)から逸脱しCPUが暴走することがある。
In a microcomputer system, noise or other causes may cause the CPU to deviate from the sequence of instruction codes (program) that is originally supposed to be executed, causing the CPU to run out of control.

マイクロコンピュータシステムにおけるこのような現象
を監視するために、従来は、一定時間を過ぎるとCPU
をリセットする時計部と、この時計部をリセットするリ
セット命令をプログラムの複雑の部分に入れておき、こ
のリセット命令が一定時間以上出力されないとCPUが
暴走したものとしてCPUをリセットする構成となって
いた。
Conventionally, in order to monitor such phenomena in microcomputer systems, the CPU
A clock section that resets the clock section and a reset instruction that resets this clock section are included in a complex part of the program, and if this reset instruction is not output for a certain period of time, it is assumed that the CPU has gone out of control and the CPU is reset. Ta.

しかも、これらのリセット命令は各々独立ではなく、順
番どうりに実行されていることが確認されている必要が
ある。このために、各リセット命令のすぐ近くにその部
分が実行されたことをメモリに書込む命令と、直前のリ
セット命令部分が実行されたことを検出する命令とを配
置していた。
Moreover, it must be confirmed that these reset instructions are not executed independently, but in order. For this reason, an instruction to write into memory that the part of the reset instruction has been executed is placed immediately adjacent to each reset instruction, and an instruction to detect that the immediately previous reset instruction part has been executed.

(電子情報通信学会フォールトトレラントシステム研究
会資料、FTS87−28.1988年1月) これらリセット命令の前後の実行順序を確認するための
命令は通常、4個程度配置する必要があった。
(IEICE Fault Tolerant System Study Group Material, FTS87-28, January 1988) It is usually necessary to arrange about four instructions to check the execution order before and after these reset instructions.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上述した従来のCPU監視装置は、プログラムの複数個
所にリセット命令を入れておき、このリセット命令が一
定時間以上出力されないとCPUをリセットする構成と
なっており、かつこれらのリセット命令の実行順序を確
認するためにこれらリセット命令の前後に4個程度の命
令を配置する構成となっているので、プログラムサイズ
が増大すると共に実行時間のオーバーヘッドが無視でき
なくなるという欠点があった。
The conventional CPU monitoring device described above has a configuration in which reset commands are inserted in multiple places in a program, and the CPU is reset if the reset commands are not output for a certain period of time, and the execution order of these reset commands is determined. Since about four instructions are placed before and after these reset instructions for confirmation, there are disadvantages in that the program size increases and the overhead in execution time cannot be ignored.

本発明の目的は、プログラムサイズを縮減することがで
き、かつ実行時間のオーバーヘッドを低減することがで
きるCPU監視装置を提供することにある。
An object of the present invention is to provide a CPU monitoring device that can reduce program size and reduce execution time overhead.

〔課題を解決するための手段〕[Means to solve the problem]

本発明のCPU監視装置は、所定のプログラムを格納し
ておき、CPUからのアドレス信号に従って前記プログ
ラムの各命令を順次読出す記憶部と、前記プログラムが
正常に実行されたときのこのプログラムの所定の命令が
格納されているアドレスを複数個実行順に予め記憶して
おき、前記アドレス信号のアドレスと前記予め記憶され
ている対応するアドレスとを実行順に比較し一致したと
き一致検出信号を出力する記号列一致検出手段と、前記
一致検出信号が入力されるごとに初期値に戻り、前記一
致検出信号が入力されてからの時間を計測して所定の時
間が経過するとCPUリセット信号を出力する時計部と
を有している。
The CPU monitoring device of the present invention includes a storage unit that stores a predetermined program and sequentially reads each instruction of the program according to an address signal from the CPU, and a predetermined number of the program when the program is normally executed. A symbol that stores in advance a plurality of addresses in which instructions are stored in the order of execution, compares the address of the address signal with the corresponding address stored in advance in the order of execution, and outputs a match detection signal when they match. a column coincidence detection means; and a clock section that returns to the initial value each time the coincidence detection signal is input, measures the time since the coincidence detection signal is input, and outputs a CPU reset signal when a predetermined time elapses. It has

〔作用〕[Effect]

本発明においては、CPUから出力されるアドレス信号
のアドレスの順序が正常であるかどうかによりCPUの
暴走を監視する構成となっているので、プログラムの中
にリセット命令やこのリセット命令の実行順序を確認す
る命令が不要となり、従ってオーバーヘッドを無くすこ
とができ、しかもプログラムサイズを縮減することがで
きる。
In the present invention, runaway of the CPU is monitored based on whether or not the address order of address signals output from the CPU is normal, so the reset instruction and the execution order of this reset instruction are included in the program. There is no need for a confirmation instruction, so overhead can be eliminated and the program size can be reduced.

〔実施例〕〔Example〕

次に、本発明の実施例について図面を参照して説明する
Next, embodiments of the present invention will be described with reference to the drawings.

第1図は本発明の一実施例を示すブロック図である。FIG. 1 is a block diagram showing one embodiment of the present invention.

この実施例は、所定のプログラムを格納しておき、CP
UIからのアドレス信号ADに従って前記プログラムの
各命令INを順次読出してCPU1へ伝達する記憶部2
と、前記プログラムが正常に実行されたときのこのプロ
グラムの所定の命令が格納されているアドレスを複数個
実行順に予め記憶しておき、アドレス信号ADのアドレ
スとこの予め記憶されている対応するアドレスとを実行
順に比較し、これらが一致したとき一致検出信号DSを
出力する記号列一致検出手段3と、一致検出信号DSが
入力されるごとに初期値に戻り、この一致検出信号DS
が入力されてからの時間を計測して予め定められた時間
が経過するとCPUIを特定の状態に戻すCPUリセッ
ト信号R3を出力する時計部4とを備えた構成となって
いる。
In this embodiment, a predetermined program is stored and the CP
a storage unit 2 that sequentially reads each instruction IN of the program according to an address signal AD from the UI and transmits it to the CPU 1;
A plurality of addresses where predetermined instructions of this program are stored when the program is normally executed are stored in advance in the order of execution, and the address of the address signal AD and this pre-stored corresponding address are stored in advance. symbol string coincidence detection means 3 which compares the symbols in execution order and outputs a coincidence detection signal DS when they match;
The clock section 4 measures the time since input of the CPU 1 and outputs a CPU reset signal R3 that returns the CPU to a specific state when a predetermined time has elapsed.

時計部4の予め定められた時間は、プログラムが正常に
実行されているときの記号列一致検出手段3に記憶され
ている1つのアドレスから次のアドレスまでの実行時間
の最大のものより大きく設定されている。
The predetermined time of the clock unit 4 is set to be larger than the maximum execution time from one address to the next address stored in the symbol string match detection means 3 when the program is normally executed. has been done.

従って、実行順序がプログラムの命令の並びから逸脱す
ると次のアドレスと対応するアドレス信号ADが入力さ
れなくなるか予め定められた時間より大幅に遅れて入力
されることになるので、時計部4からCPUリセット信
号R3が出力され、CPU16の暴走を検出することが
できる。また、CPUリセット信号R3が出力されない
状態ではプログラムが順序どおり正常に実行されている
ことを示す。
Therefore, if the execution order deviates from the sequence of instructions in the program, the address signal AD corresponding to the next address will not be input or will be input much later than a predetermined time. A reset signal R3 is output, and runaway of the CPU 16 can be detected. Further, a state in which the CPU reset signal R3 is not output indicates that the programs are being executed normally in order.

なお、記号列一致検出手段3の詳細については、本出願
人によりすでに出願された特願60−18110号明細
書、特願60−235755号明細書に記載されている
The details of the symbol string coincidence detection means 3 are described in Japanese Patent Application No. 60-18110 and Japanese Patent Application No. 60-235755, which have already been filed by the present applicant.

また、時計部4については、モノステーブルマルチバイ
ブレータやマイクロプロセッサ周辺用のカウンタ/タイ
マLSI等を使用し容易に構成することができる。
Further, the clock section 4 can be easily configured using a monostable multivibrator, a counter/timer LSI for peripheral use in a microprocessor, or the like.

〔発明の効果〕〔Effect of the invention〕

以上説明したように本発明は、記憶部に格納されている
プログラムの所定の複数の命令のアドレを正常な実行順
序で予め記憶しておき、CPUからのアドレス信号のア
ドレスと予め記憶されている対応するアドレスとを実行
順に比較し、これらが一致したとき一致検出信号を出力
して時計部を初期値に戻し時間を計測し、この計測時間
が所定の時間を経過したときCPUリセット信号を出力
する構成とすることにより、従来のようにプログラムの
中に暴走検出用の命令を組込む必要がないので、プログ
ラムサイズを縮減することができ、かつ実行時間のオー
バーヘッドを無くすことができる効果がある。
As explained above, the present invention stores in advance the addresses of a plurality of predetermined instructions of a program stored in a storage unit in the normal execution order, and stores the addresses of an address signal from the CPU in advance. Compare the corresponding addresses in the order of execution, and when they match, output a match detection signal to return the clock to the initial value and measure time, and when this measurement time has passed a predetermined time, output a CPU reset signal. With this configuration, there is no need to incorporate a runaway detection instruction into the program as in the conventional case, so the program size can be reduced and execution time overhead can be eliminated.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明の一実施例を示すブロック図である。 1・・・CPU、2・・・記憶部、3・・・記号列一致
検出手段、4・・・時計部。
FIG. 1 is a block diagram showing one embodiment of the present invention. DESCRIPTION OF SYMBOLS 1...CPU, 2...Storage part, 3...Symbol string coincidence detection means, 4...Clock part.

Claims (1)

【特許請求の範囲】[Claims] 所定のプログラムを格納しておき、CPUからのアドレ
ス信号に従って前記プログラムの各命令を順次読出す記
憶部と、前記プログラムが正常に実行されたときのこの
プログラムの所定の命令が格納されているアドレスを複
数個実行順に予め記憶しておき、前記アドレス信号のア
ドレスと前記予め記憶されている対応するアドレスとを
実行順に比較し一致したとき一致検出信号を出力する記
号列一致検出手段と、前記一致検出信号が入力されるご
とに初期値に戻り、前記一致検出信号が入力されてから
の時間を計測して所定の時間が経過するとCPUリセッ
ト信号を出力する時計部とを有することを特徴とするC
PU監視装置。
A storage unit that stores a predetermined program and sequentially reads each instruction of the program according to an address signal from the CPU, and an address where the predetermined instructions of this program are stored when the program is normally executed. symbol string coincidence detection means for storing a plurality of symbols in advance in the order of execution, comparing the address of the address signal with the corresponding address stored in advance in the order of execution and outputting a coincidence detection signal when they match; The device is characterized by having a clock unit that returns to the initial value each time a detection signal is input, measures the time since the coincidence detection signal is input, and outputs a CPU reset signal when a predetermined time has elapsed. C
PU monitoring device.
JP63268630A 1988-10-24 1988-10-24 Cpu monitoring device Pending JPH02114339A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63268630A JPH02114339A (en) 1988-10-24 1988-10-24 Cpu monitoring device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63268630A JPH02114339A (en) 1988-10-24 1988-10-24 Cpu monitoring device

Publications (1)

Publication Number Publication Date
JPH02114339A true JPH02114339A (en) 1990-04-26

Family

ID=17461217

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63268630A Pending JPH02114339A (en) 1988-10-24 1988-10-24 Cpu monitoring device

Country Status (1)

Country Link
JP (1) JPH02114339A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010097844A1 (en) * 2009-02-25 2010-09-02 パナソニック株式会社 Runaway detection device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010097844A1 (en) * 2009-02-25 2010-09-02 パナソニック株式会社 Runaway detection device

Similar Documents

Publication Publication Date Title
JPH04241642A (en) Runaway detecting system for microcomputer
JPH02114339A (en) Cpu monitoring device
JPH11330931A (en) Device and method for monitoring clock operation of control system
JP2870250B2 (en) Microprocessor runaway monitor
JPH1115661A (en) Self-diagnosis method for cpu
JP2870202B2 (en) Method and apparatus for mutual monitoring between processors
JP3367379B2 (en) CPU output control circuit
JPS62175834A (en) Detecting circuit for runaway of central processing unit
JPS6118045A (en) Detecting system of program runaway
JPH05257748A (en) Microprocessor device
JP3009238B2 (en) Register failure detection device for microcomputer addition
JPH02297638A (en) Cpu runaway detector
JPS63163943A (en) Control method for writing into memory
JPH01156839A (en) Data processor
JPS62217335A (en) Monitor circuit for cpu runaway
JPS60198649A (en) Loop detection control system
JPH03266110A (en) Resetting device for computer
JPH0328938A (en) Microcomputer device
JPH0346853B2 (en)
JPS61177548A (en) Retrying control system
JPS6029128B2 (en) microprogram controller
JPH04235638A (en) Microprocessor provided with prefetching function
JPS63150732A (en) Program running supervisory equipment
JPH0769846B2 (en) Error processing circuit verification device
JPH02294767A (en) Cpu fault detecting method for multiprocessor system