JPS60126740A - Prevention device of cpu runaway - Google Patents

Prevention device of cpu runaway

Info

Publication number
JPS60126740A
JPS60126740A JP58235434A JP23543483A JPS60126740A JP S60126740 A JPS60126740 A JP S60126740A JP 58235434 A JP58235434 A JP 58235434A JP 23543483 A JP23543483 A JP 23543483A JP S60126740 A JPS60126740 A JP S60126740A
Authority
JP
Japan
Prior art keywords
cpu
output
runaway
data
cpu1
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
JP58235434A
Other languages
Japanese (ja)
Inventor
Hiroaki Takeyama
博昭 竹山
Yoshiharu Suzuki
義春 鈴木
Jiro Ogawa
二郎 小川
Yoshiyuki Komoda
美行 薦田
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.)
Panasonic Electric Works Co Ltd
Original Assignee
Matsushita Electric Works 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 Matsushita Electric Works Ltd filed Critical Matsushita Electric Works Ltd
Priority to JP58235434A priority Critical patent/JPS60126740A/en
Publication of JPS60126740A publication Critical patent/JPS60126740A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0751Error or fault detection not based on redundancy

Abstract

PURPOSE:To discriminate CPU runaway securely and to stop a CPU by checking whether or not the prescribed address is accessed and the prescribed data are outputted and discriminate the CPU runaway. CONSTITUTION:When a CPU1 runs away, writing of the prescribed data against the prescribed address will not be executed; therefore an output VN3 of an NOR gate N2, which inputs an output of an access detecting means 2 and that of a data detecting means 3, remains in H level. As a result, a monostable multivibrator M is not triggered, and a capacitor C2 does not discharge. Consequently, after the prescribed period has expired, an input of an invertor I8 exceeds a threshold level voltage, and an output of the invertor I8 becomes ''L'' level. Then a reset signal VR of the CPU1 is outputted, and the CPU1 is reset, thereby stopping runaway. By this device, even if the specific address is accessed, this is considered to be runaway of the CPU1 without a writing operation of the specific data, and therefore CPU1 runaway can be sucurely discriminate.

Description

【発明の詳細な説明】 〔技術分野〕 本発明はCPUの暴走防止装置に関するものである。[Detailed description of the invention] 〔Technical field〕 The present invention relates to a CPU runaway prevention device.

〔背景技術〕[Background technology]

従来、この種のCPUの暴走防止装置は、づOプラムに
て設定された所定アドレスが一定期間内にCPUからア
クセスされるかどうかを検出し、′アクセスされなかっ
たときCPUが暴走しているものと判断してCPUのリ
セットを行なうようにしていた。しかしながら、このよ
うな従来例にあってはCPUが暴走してプOJラム上に
ない命令を実行している場合にあっても所定アドレスが
アクセスされることがあシ、所定アドレスがアクセスさ
れればCPUが暴走していても暴走と判断できず、暴走
を停止させることができないという問題があった。また
、所定アドレスのアクセス命令を含むループによシ暴走
している場什にも暴走を判別できず、暴走を停止させる
ことができないという問題があった。
Conventionally, this type of CPU runaway prevention device detects whether a predetermined address set in the program is accessed by the CPU within a certain period of time, and detects that the CPU is running out of control if it is not accessed. I decided that it was a problem and reset the CPU. However, in such a conventional example, even if the CPU goes out of control and executes an instruction that is not on the OJ program, the predetermined address may be accessed; For example, even if the CPU runs out of control, it cannot be determined that the runaway is occurring, and the runaway cannot be stopped. Further, when a loop including an access instruction at a predetermined address is causing a runaway, there is a problem in that the runaway cannot be determined and the runaway cannot be stopped.

〔発明の目的〕[Purpose of the invention]

本発明は上記の点に鑑みて為されたものであシ、その目
的とするところは、CPUの暴走を確実に判別して停止
させることができるCPUの暴走防止装置を提供するこ
とにある。
The present invention has been made in view of the above points, and it is an object of the present invention to provide a CPU runaway prevention device that can reliably determine and stop CPU runaway.

〔発明の開示〕[Disclosure of the invention]

(実施例1) 第1図は本発明一実施例を示すもので、(1)はCPU
であり、そのづOjラム上に、一定時間T1毎に所定ア
ドレスをアクセスして所定データを書込む命令が設定さ
れている。(2)はインバータ(11)〜(I4)およ
びナントゲート(N、)よシなるアクセス検出手段であ
シ、プロプラム上に設定された所定アドレスがCP U
 illからアクセスされるかどうかを検出して所定ア
ドレス(実施例1では8ヒツトのデータAs =Ats
 )が出力されたときアクセス検知信号vDlを出力す
る。(3)はインバータ(T5)〜(I、)およびナン
ドゲ−1・(N2)よりなるデータ検出手段であり、プ
ロプラム上に設定された所定データ(実施例1では8ピ
ツトのデータDo〜Dy)がCP U +i+から出力
されるかどうかを検出し、所定データが得られたときデ
ータ検知信JpjvD2を出力する。(4)はノアゲー
ト(N3)と、トリ力およびリセット動作可能な単安定
マルチバイづレータ(財)と、抵抗(R1)およびコン
デンサ(C1)よυなる時定数回路と、コンデンサ(C
2)および抵抗(Rz) (Rs)よシなる充放電回路
と、しきい値電圧vthを有するインバータ(Is)と
で形成されるリセット手段であり、所定期間T、内に両
検出手段(zl T31から検知信号vD1、VD2が
同・時に得られないときCP U ftlのリセット信
”j VRを発生してCP U fl)をリセットし、
CP U ftlの暴走を停止させる。なお、実施例1
にあっては、検知信JjjvD1、V+gと同時にデー
タ書込み信号WRが得られるかどうかもチェックされて
いる。但し、所定期間T2は一定時間T1よりも若干大
きく設定されている。
(Embodiment 1) FIG. 1 shows an embodiment of the present invention, in which (1) is a CPU
Then, an instruction is set on the Oj RAM to access a predetermined address and write predetermined data at fixed time intervals T1. (2) is an access detection means such as inverters (11) to (I4) and a Nant gate (N,), and a predetermined address set on the program is detected by the CPU.
It is detected whether or not it is accessed from ill, and a predetermined address (in the first embodiment, 8 pieces of data As = Ats
) is output, an access detection signal vDl is output. (3) is a data detection means consisting of inverters (T5) to (I, ) and NAND game 1/(N2), and predetermined data set on the program (in Example 1, 8-pit data Do to Dy). is output from the CPU +i+, and outputs a data detection signal JpjvD2 when predetermined data is obtained. (4) is a NOR gate (N3), a monostable multivibrator capable of tripping and reset operation, a time constant circuit of υ including a resistor (R1) and a capacitor (C1), and a capacitor (C
2) and a resistor (Rz) (Rs), and an inverter (Is) having a threshold voltage vth. When the detection signals vD1 and VD2 cannot be obtained from T31 at the same time, a reset signal "jVR" is generated for the CPU fl, and the CPU fl is reset.
Stop the CPU U ftl from running out of control. In addition, Example 1
, it is also checked whether the data write signal WR is obtained simultaneously with the detection signals JjjvD1 and V+g. However, the predetermined period T2 is set to be slightly larger than the fixed time T1.

以下、実施例1の動作について説明する。いま、CPU
tl)が正常に動作している場合、プロプラム上に設定
されている所定のアドレスに対する所定データの書込み
が一定時間T1毎に行なわれ、検知信号VplsVo2
およびデータ書込み信号WRが一足時間T1毎に〃Ll
レベルとなり、ノアゲート(N3)出力VN3は第2図
(a)に示すように一定時間Tl毎にILIレベルとな
る。この出力vN3がtrl、tレベルになると、単安
定マルチバイづレータ(財)がトリガされ、コンデンサ
(C1)および抵抗(R1)にて決足されるパルス巾を
持つしパルスを出力端子Qから出力する。このとき、コ
ンデンサ(C2)の電荷は抵抗(R2)を介して一足時
間Tl毎に放電され、インバータ(I、)の人力v′X
sは第2図(b)の三部分に示すようにしきい値電圧v
thを越えることがなく、インバ〜 夕(Is)出力は
〃HIレベルのままとなり、リセット信号VRは出力さ
れず、CPU11)はリセットされ ”ること膠ない。
The operation of the first embodiment will be explained below. Now, the CPU
tl) is operating normally, writing of predetermined data to a predetermined address set on the program is performed every fixed time T1, and the detection signal VplsVo2
and the data write signal WR is 〃Ll every time T1.
The output VN3 of the NOR gate (N3) reaches the ILI level at regular intervals Tl as shown in FIG. 2(a). When this output vN3 reaches the trl, t level, the monostable multivibrator is triggered and outputs a pulse with a pulse width determined by the capacitor (C1) and resistor (R1) from the output terminal Q. do. At this time, the electric charge of the capacitor (C2) is discharged via the resistor (R2) every foot time Tl, and the human power v'X of the inverter (I,)
s is the threshold voltage v as shown in the three parts of FIG. 2(b)
th is not exceeded, the inverter output (Is) remains at HI level, the reset signal VR is not output, and the CPU 11) is not reset.

一万、CPUfllが暴走した場合には、所定アドレス
に対する所定データの書込みが行なわれなくなるので、
ノアゲート(N3)出力V N:SがIHIレベルのま
まとなり、単安定マルチバイブレータ(財)がトリ力さ
れず、コンデンサ(C2)の放電が行なわれない。した
がって、所定期間T、経過すると、インバータ(T8)
の人力V′x8がしきい値゛磁圧vthを越えてインバ
ータ(T8)出力が#LlレベルとなってCPU(11
のリセット信号VBが出力され、CPUfl)がリセッ
トされ暴走が停止される。ここに、本発明にあっては、
所定アドレスがたまたまアクセスされたとしても、所定
データの書込み操作がなければCPutllの暴走と見
なしてCP U il)をリセットしているので、CP
tJfl)の暴走が確実に@別でき、従来例のように暴
走を見落すことがないようになっている。
In the unlikely event that CPUflll goes out of control, writing of specified data to a specified address will no longer be possible.
The NOR gate (N3) output VN:S remains at the IHI level, the monostable multivibrator is not tripped, and the capacitor (C2) is not discharged. Therefore, after the predetermined period T has elapsed, the inverter (T8)
When the human power V'x8 exceeds the threshold value ``magnetic pressure vth'', the inverter (T8) output becomes #Ll level and the CPU (11
A reset signal VB is output, the CPU fl) is reset, and runaway is stopped. Here, in the present invention,
Even if a predetermined address is accessed by chance, if there is no write operation for the predetermined data, it will be assumed that the CPU has gone out of control and the CPU will be reset.
tJfl) runaway can be reliably separated, and runaways will not be overlooked as in the conventional example.

(実施例2) 第3図は他の実施例を示すもので、複数の所定アドレス
にそれぞれ所定データが書込まれたかどうかを検出する
アクセス検出手段(11)〜(2九)およびデータ検出
手段(31)〜(3n)を設け、所定期間T2内に上記
書込みが所定順序で行なわれるかどうかを検出してCP
 U 11+のリセット信号を発生するリセット手段(
4a)を設けたものであシ、リセット手段(4a)はノ
アゲート(N21 ) 〜(Ngn)と、シーケンス回
路と、実施例1と同様の単安定マルチバイブレータ(財
)およびインバータ(T8)とで形成されており、シー
ケンス回路(S)はノアゲート(N13)〜(N2n)
出力が所定の順序で〃L#レベルになったとき単安定マ
ルチバイブレータ(財)名トリガするパルスを出力する
ようになっている。
(Embodiment 2) FIG. 3 shows another embodiment, in which access detection means (11) to (29) and data detection means detect whether predetermined data has been written to each of a plurality of predetermined addresses. (31) to (3n) are provided to detect whether or not the above writing is performed in a predetermined order within a predetermined period T2, and
Reset means (
4a), and the reset means (4a) is composed of NOR gates (N21) to (Ngn), a sequence circuit, a monostable multivibrator (manufactured) and an inverter (T8) similar to the first embodiment. The sequence circuit (S) consists of NOR gates (N13) to (N2n).
When the output reaches L# level in a predetermined order, it outputs a pulse that triggers a monostable multivibrator.

いま、CP U fl)の″jOプロプラム上一定時間
T1内に複数の所蔵アドレスにそれぞれ所定データを書
込むづロタラムが設足されており、CPUfl+が正常
に動作している場合には、−短時間T1毎に所定アドレ
スに対する所定データの書込み操作が所定のシーケンス
で行なわれるので、単安定マルチバイづレータ(ロ)が
屋期的にトリガされ、コンデンt(C2)が放電され、
リセットパルスVnは発生されない。一方、CPUfl
)が暴走した場合には、上記所蔵のシーケンスで所蔵の
書込み操作が行なわれることがなく、シーケンス回路(
S)出力が〃L〃レベルにならず単安定マルチパイプレ
ーータ(財)がトリ力されないので、コンデンサ(Cり
の放電が行なわれず、インバータ(■8)の入力VI8
がしきい値電圧Vthを超えた時点でリセット信号vR
が出力され、CPUfl+がリセットされて暴走が停止
きれる。この場合、データ書込みが所定シーケンスで行
なわれるかどうかをチェックしているので、よシ確実に
暴走を判別できることになる。
Currently, a rotaram is installed in the "jO program of the CPU fl) that writes predetermined data to each of a plurality of stored addresses within a certain period of time T1, and if the CPU fl+ is operating normally, the - short Since a write operation of predetermined data to a predetermined address is performed in a predetermined sequence every time T1, the monostable multibyte generator (b) is automatically triggered, and the capacitor t (C2) is discharged.
No reset pulse Vn is generated. On the other hand, CPUfl
) goes out of control, the writing operation of the holdings will not be performed in the above sequence of holdings, and the sequence circuit (
S) Since the output does not reach the L level and the monostable multipipulator is not tripped, the capacitor (C) is not discharged and the input VI8 of the inverter (■8)
When the voltage exceeds the threshold voltage Vth, the reset signal vR
is output, CPUfl+ is reset, and the runaway can be stopped. In this case, since it is checked whether data writing is performed in a predetermined sequence, runaway can be determined more reliably.

第4図は他の暴走防止装置を示すもので、I10ポート
(5)の出力の−Hlレベル期間を検出するパルス巾検
定回路(6)を設け、CPUf1+のづロタラムのメイ
ンルーづの最初にI10ポート(5)の出力を〃Hlレ
ベルにするとともにメインループの最後でIILルベル
にするものとし、I10ポート(5)から所蔵のパルス
巾のパルスが得られるかどうかをパルス巾検足回路(6
)にて検出するようになっている。
Fig. 4 shows another runaway prevention device, in which a pulse width verification circuit (6) is provided to detect the -Hl level period of the output of the I10 port (5), and the I10 The output of port (5) is set to Hl level and IIL level at the end of the main loop, and the pulse width test circuit (6
).

いま、CPU(11が正常に動作している場合、I10
ポート(5)から所蔵のパルス巾(メインルーチンの始
まりから終シまでの時間巾)のパルスが出力され、パル
ス巾検足回路(6)から単安定マルチバイブレータ(財
)のトリガパルスが出力される。したがって、単安定マ
ルチバイづレータ(ロ)出力にてコンデンサ(C2)が
放電され、リセット信号vRは発生されず、CPIJf
l)はリセットされない。一方、CPU1l)が暴走し
ている場合、I10ポーt−fIslから出力されるパ
ルス巾は所定のパルス巾でなくなるので、パルス巾検定
回路(6)から単安定マルチバイブレータ(ロ)のトリ
力パルスが出力されない。したがって、コンデン+j(
ct)が放電されず、所定期間T2後にインバータ(I
8)の入力がしきい値電圧vthを超え、リセット信号
VRが出力されCP U il+がリセットされ暴走が
停止される。
Now, if the CPU (11) is working normally, the I10
A pulse with the specified pulse width (the time width from the start to the end of the main routine) is output from the port (5), and a trigger pulse for the monostable multivibrator (Incorporated) is output from the pulse width detection circuit (6). Ru. Therefore, the capacitor (C2) is discharged at the output of the monostable multivibrator (b), the reset signal vR is not generated, and CPIJf
l) is not reset. On the other hand, if the CPU1l) is running out of control, the pulse width output from the I10 port t-fIsl is no longer the predetermined pulse width, so the pulse width verification circuit (6) sends a tri-force pulse to the monostable multivibrator (b). is not output. Therefore, condensation + j (
ct) is not discharged and the inverter (I
8) exceeds the threshold voltage vth, the reset signal VR is output, the CPU il+ is reset, and the runaway is stopped.

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

不発明は上述のように、−足時間毎に所定アドレスをア
クセスして所定データを書込む命令をCPUのづOフラ
ム上に設だし、該所蔵アドレスがCPUからアクセスさ
れるかどうかを検出するアクセス検出手段と、該所蔵デ
ータがCPUから出力されるかどうかを検出するデータ
検出手段と、所蔵期間内に雨検出手段出力が同時に得ら
れないときCPUのリセット信号を発生するリセット手
段とで構成されておシ、所蔵アドレスがアクセスされる
かどうかをチェックすると同時に、所定データが出力さ
れるかをチェックしてCPUの暴走を判別しているので
、アクセスのみをチェックしていた従来例に比べてCP
Uの暴走をよシ確実に判別して停止場せることができる
という効果がある。
As mentioned above, the invention is to: - set an instruction on the CPU frame to access a predetermined address and write predetermined data every time, and detect whether or not the stored address is accessed by the CPU; Consisting of an access detection means, a data detection means for detecting whether the stored data is output from the CPU, and a reset means for generating a CPU reset signal when the rain detection means output cannot be obtained at the same time within the storage period. Compared to the conventional method, which only checked accesses, it checks whether the stored address is accessed and at the same time checks whether predetermined data is output to determine if the CPU is running out of control. Te CP
This has the effect of being able to more reliably determine if the U is running out of control and bring it to a stop.

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

第1図は本発明一実施例の回路図、第2図は同上の動作
説明図、第6図は他の実施例の回路図、¥J4図は他の
暴走防止装置の回路図である。 +11はCP U、 +21(2、)〜(2n)はアク
セス検出手段、+31(31)〜(3n)はデータ検出
手段、tel(4a)はリセット手段である。 代理人 弁理士 石 1)長 七
FIG. 1 is a circuit diagram of one embodiment of the present invention, FIG. 2 is an explanatory diagram of the same operation as above, FIG. 6 is a circuit diagram of another embodiment, and FIG. 4 is a circuit diagram of another runaway prevention device. +11 is a CPU, +21 (2,) to (2n) are access detection means, +31 (31) to (3n) are data detection means, and tel (4a) is a reset means. Agent Patent Attorney Ishi 1) Choshichi

Claims (1)

【特許請求の範囲】[Claims] fil一定時間毎に所定アドレスをアクセスして所定デ
ータを書込む命令をCPUのづロタラム上に設定し、該
所定アドレスがCPUからアクセスされるかどうかを検
出するアクセス検出手段と、該所定ゲータがCPUから
出力されるかどうかを検出するデータ検出手段と、所定
期間内に雨検出手段出力が同時に得られないときCPU
のリセット信号を発生するリセット手段とよυなるCP
Uの暴走防止装置。
access detection means for setting an instruction to access a predetermined address and writing predetermined data on a CPU controller at fixed time intervals, and detecting whether or not the predetermined address is accessed from the CPU; A data detection means for detecting whether the data is output from the CPU, and a data detection means for detecting whether the data is output from the CPU and the CPU when the output from the rain detection means cannot be obtained at the same time within a predetermined period.
A reset means for generating a reset signal and a different CP
U runaway prevention device.
JP58235434A 1983-12-14 1983-12-14 Prevention device of cpu runaway Pending JPS60126740A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58235434A JPS60126740A (en) 1983-12-14 1983-12-14 Prevention device of cpu runaway

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58235434A JPS60126740A (en) 1983-12-14 1983-12-14 Prevention device of cpu runaway

Publications (1)

Publication Number Publication Date
JPS60126740A true JPS60126740A (en) 1985-07-06

Family

ID=16986048

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58235434A Pending JPS60126740A (en) 1983-12-14 1983-12-14 Prevention device of cpu runaway

Country Status (1)

Country Link
JP (1) JPS60126740A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01230136A (en) * 1988-03-10 1989-09-13 Nec Corp Run-away preventing circuit
JP2009264552A (en) * 2008-04-28 2009-11-12 Toyo Tire & Rubber Co Ltd Suspension support for automobile

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01230136A (en) * 1988-03-10 1989-09-13 Nec Corp Run-away preventing circuit
JP2009264552A (en) * 2008-04-28 2009-11-12 Toyo Tire & Rubber Co Ltd Suspension support for automobile

Similar Documents

Publication Publication Date Title
FR2722017B1 (en) MULTIPROCESSOR SYSTEM
JP4693245B2 (en) Protection of computer core against unauthorized manipulation from outside
JPS60126740A (en) Prevention device of cpu runaway
JPS6146864B2 (en)
KR910010317A (en) A reset control system and method for performing a resume processing while checking the operation mode of the CPU
JPS62106552A (en) Loop detector
JP2659067B2 (en) Microcomputer reset circuit
JP2702972B2 (en) Memory initialization method
JPS61279940A (en) Fault detector for computer
KR20020054519A (en) Applied Program Bungle Detection Apparatus and Method by Interrupt
JP3178129B2 (en) Memory backup protection device
JPS62222318A (en) Information processor
JPS59112494A (en) Memory testing system
JPS58141500A (en) Memory management protecting system
JPS6148740B2 (en)
CN116095048A (en) MAC address detection method, system, device and computer readable storage medium
JPH02150942A (en) Bus abnormality detecting circuit
JPS63138437A (en) Program control system
JPH01237852A (en) Abnormality monitoring timer controller
JPS63101938A (en) Device for preventing microprocessor from runaway
JPS63150732A (en) Program running supervisory equipment
JPS5983201A (en) Processing system of momentary break
JPS5690498A (en) Packaged memory detection system for computer
JPS61267144A (en) Program abnormality detecting system
JPS63193249A (en) Microprogram controller