JPH0444132A - Circuit and system for detection of runaway - Google Patents

Circuit and system for detection of runaway

Info

Publication number
JPH0444132A
JPH0444132A JP2151516A JP15151690A JPH0444132A JP H0444132 A JPH0444132 A JP H0444132A JP 2151516 A JP2151516 A JP 2151516A JP 15151690 A JP15151690 A JP 15151690A JP H0444132 A JPH0444132 A JP H0444132A
Authority
JP
Japan
Prior art keywords
signal
cpu
signal output
output circuit
bus cycle
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
JP2151516A
Other languages
Japanese (ja)
Inventor
Masanori Nanamura
七村 雅典
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP2151516A priority Critical patent/JPH0444132A/en
Publication of JPH0444132A publication Critical patent/JPH0444132A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To properly detect the runaways and to take the proper countermeasures to the abnormalities of all types of programs by specifying the relationship between a fixed period of an interruption signal output circuit and a fixed period of an end signal output circuit. CONSTITUTION:An interruption signal output circuit 1 outputs an interruption signal to a CPU 5 if a trigger signal outputted by a software instruction is not received within a fixed period (Tw). An end signal output circuit 2 outputs an end signal to forcibly end the bus cycle of the CPU 5 when the bus cycle of the CPU is not finished within a fixed period (TS). Then a relationship TW<TB is secured between the fixed period TW of the circuit 1 and a fixed period TB of the circuit 2. Thus it is possible to properly detect the runaways and to take the proper countermeasures to the abnormalities of all types of programs.

Description

【発明の詳細な説明】[Detailed description of the invention] 【産業上の利用分野】[Industrial application field]

本発明はCPUの暴走検知回路及び暴走検知方式に関す
るものである。
The present invention relates to a CPU runaway detection circuit and a runaway detection method.

【従来の技術】[Conventional technology]

従来、タイマ監視による暴走検知方式としては、以下に
示す2方式が広く知られている。 ■ウォッチドッグタイマ(以下rWDTJと称す)によ
る暴走検知方式。 この方式は、以下の様に動作する。 ソフトウェアによりトリガ信号を生成し、周期(TW)
のハードウェアタイマに起動をかける。 その後、ソフトウェアによりハードウェアタイマの周期
(TW)を越えない時間内に必ずリトリガ信号をハード
ウェアタイマに与え続ける様プログラムを構成する。 なお、ハードウェアタイマには、リトリガブル・タイマ
が使用され、その周期Twを越えない時間内にリトリガ
信号が与えられる限り、タイマのタイムアツプが発生す
ることはない。 方、ソフトウェアには、リトリガ信号発生用のプログラ
ムコードが適当な箇所に埋め込まれており、システムが
正常に動作している限り、Tw以内にりトリガ信号が必
ず生成されるように設計されている。 以上の構成において、システムに何らかの異常が発生し
、プログラムの暴走、無限ループ実行となった場合や、
ホールド状態への移行等の現象に波及した場合には、リ
トリガ信号の生成が付加となり、ハードウェアタイマが
タイムアツプする。 このタイムアツプ信号を利用することにより、システム
の異常を検知することが可能となる。 ■バスタイマ(以下rBTJと称す)による暴走検知方
式。 この方式の場合には以下の様に動作する。 般にCPUは、動作速度の遅い周辺デバイスとの間のタ
イミングの整合性を得るためのにウェイトステートを挿
入し、バスサイクルを一時的に凍結させる事ができるよ
うになっている。 ウェイトステートの挿入あるいは解除を制御するだめに
使用されるCPUへの状態制御入力信号を例えばレディ
入力と称するものとすると、例えばこのレディ入力信号
は、アドレスのデコード結果と、該アドレスデコードの
結果選択されたデバイスが必要とするだけのウェイトス
テートをバスサイクルに挿入できる様にするためのタイ
ミング信号とから生成される。 換言すれば、このレディ入力信号は、CPUからのアク
セス要求を受けたデバイスからの応答信号と考えること
ができる。そしてCPUはこの応答信号を受は取った後
に実質上の書込み操作または読出し操作を行ない、該バ
スサイクルを終了する。 以上の構成において、システムに何からの異常が発生し
、システム上マツピングされていないアドレスエリアへ
のアクセスが開始された場合、CPUはウェイト状態と
なり、来るはずのないデバイスからの応答信号を待ち続
けることになる。 システムがこの無限のウェイト状態から脱出するために
は、一定期間以内にデバイスからの応答信号が返送され
ない場合に、代替の応答信号をCPUのレディ入力に与
えるという仕掛が必要となる。この目的に使用されるの
がバスタイマである。 バスタイマはリトリガブル・タイマで構成され、その周
期(T8)は、正常時に要する最長バスサイクル時間よ
りも十分大きな値に設定されている。このタイマのトリ
ガはハードウェアによってバスサイクル毎に行なわれる
。 従って、正常動作時には、TBよりも短い周期でバスタ
イマのリトリガが行なわれるため、バスタイマがタイム
アツプすることはない。 一方、デバイスからの応答信号が返送されない場合には
、タイマトリガ後、TB経過後にバスタイマがタイムア
ツプする。このタイムアツプ信号は代替の応答信号とし
て用いられ、CPUのウェイト状態を脱出するために用
いられるのは前述の通りであるが、この信号はまた、シ
ステムの異常検出信号として利用することも可能である
。 タイマを使用して暴走を検知する場合、上述のタイマの
うち何れか一方を利用し、そのタイムアツプ信号をCP
Uの割込ラインに接続するという方法が一般に行なわれ
ている。
Conventionally, as a runaway detection method using timer monitoring, the following two methods are widely known. ■Runaway detection method using a watchdog timer (hereinafter referred to as rWDTJ). This method works as follows. A trigger signal is generated by software and the period (TW) is
Starts the hardware timer. Thereafter, the software configures a program so that the retrigger signal continues to be applied to the hardware timer within a time period not exceeding the period (TW) of the hardware timer. Note that a retriggerable timer is used as the hardware timer, and as long as a retrigger signal is applied within a period not exceeding the period Tw, time-up of the timer will not occur. On the other hand, the software has a program code for generating a retrigger signal embedded in an appropriate location, and is designed to always generate a trigger signal within Tw as long as the system is operating normally. . In the above configuration, if some abnormality occurs in the system and the program runs out of control or runs in an infinite loop,
If a phenomenon such as transition to a hold state is affected, a retrigger signal is additionally generated and the hardware timer times up. By using this time-up signal, it is possible to detect system abnormalities. ■Runaway detection method using a bus timer (hereinafter referred to as rBTJ). This method operates as follows. In general, a CPU is capable of temporarily freezing a bus cycle by inserting a wait state in order to achieve timing consistency with peripheral devices that operate at slow speeds. If the state control input signal to the CPU used to control the insertion or release of a wait state is called a ready input, for example, this ready input signal can be used to input the result of decoding an address and selecting the result of the address decoding. It is generated from a timing signal that allows the device to insert as many wait states as necessary into the bus cycle. In other words, this ready input signal can be considered as a response signal from a device that has received an access request from the CPU. After receiving this response signal, the CPU performs the actual write or read operation and ends the bus cycle. In the above configuration, if some abnormality occurs in the system and access to an address area that is not mapped on the system is started, the CPU enters a wait state and continues to wait for a response signal from a device that is not supposed to come. It turns out. In order for the system to escape from this infinite wait state, a mechanism is needed to provide an alternative response signal to the ready input of the CPU if a response signal is not returned from the device within a certain period of time. A bus timer is used for this purpose. The bus timer is composed of a retriggerable timer, and its period (T8) is set to a value sufficiently larger than the longest bus cycle time required during normal operation. This timer is triggered by hardware every bus cycle. Therefore, during normal operation, the bus timer is not timed up because the bus timer is retriggered at a cycle shorter than TB. On the other hand, if no response signal is returned from the device, the bus timer times out after TB has elapsed after the timer trigger. As mentioned above, this time-up signal is used as an alternative response signal to escape the CPU's wait state, but this signal can also be used as a system abnormality detection signal. . When using a timer to detect runaway, use one of the above timers and send the time-up signal to the CP.
A commonly used method is to connect it to the U interrupt line.

【発明が解決しようとしている課題】[Problem to be solved by the invention]

しかしながら、上記従来例では、 ■WDTを用いる場合、暴走した結果のプログラム実行
経路中にWDTにトリガを与えるコードが含まれている
時には、この暴走を検知することはできない。 ■BTを用いる場合、暴走した結果のプログラム実行経
路が無限ループを形成する時には、この暴走を検知する
ことはできない。 という各方式に固有の欠点があった。
However, in the above conventional example, (1) When using the WDT, if the program execution path resulting from the runaway includes a code that triggers the WDT, the runaway cannot be detected. (2) When using BT, if the program execution path as a result of a runaway forms an infinite loop, this runaway cannot be detected. Each method had its own drawbacks.

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

本発明は上述の課題を解決することを目的として成され
たもので、前述したWDTとBTの双方を暴走検知に利
用することにより、それらを単独で用いた場合に比べて
、より暴走検知能力の高い暴走検知手段を提供すること
を目的とする。 上述の目的を達成する一手段として例えば以下の構成を
備える。 即ち、一定期間(TW)内にソフトウェア命令により出
力されるトリガ信号が与えられない場合にCPUに対す
る割込信号を出力する割込信号出力回路と、一定期間(
TB)内にCPUのバスサイクルが終了しない場合にC
PUに対するバスサイクルを強制的に終了させるための
終了信号を出力する終了信号出力回路とを備える。
The present invention has been made with the aim of solving the above-mentioned problems, and by using both the WDT and BT described above for runaway detection, the runaway detection ability is improved compared to when they are used alone. The purpose of the present invention is to provide a high level of runaway detection means. For example, the following configuration is provided as a means for achieving the above object. That is, an interrupt signal output circuit outputs an interrupt signal to the CPU when a trigger signal output by a software instruction is not given within a certain period (TW);
C if the CPU bus cycle does not end within TB).
and a termination signal output circuit that outputs a termination signal for forcibly terminating a bus cycle for the PU.

【作用】[Effect]

以上の構成において、割込信号出力回路の一定期間(T
W )と、終了信号出力回路の一定期間(TB)とが、
(TW)〈(TB)なる関係を持つ様に設定することに
より、あらゆるプログラム等の異常に対して適切な暴走
検知が可能となり、適切な対応を可能とする。
In the above configuration, the interrupt signal output circuit has a certain period (T
W ) and the fixed period (TB) of the termination signal output circuit,
By setting the relationship such as (TW)<(TB), it is possible to appropriately detect abnormalities in any program, etc., and to take appropriate measures.

【実施例】【Example】

以下、図面を参照して本発明に係る一実施例を詳細に説
明する。 第1図は本発明に係る一実施例の暴走検知回路の回路図
であり、同図において1はWDTトリガ信号信号S上り
起動された後は一定時間(TW )内に再度WDTトリ
ガ信号S1が与えられない場合にWDTタイムアウト信
号S2を発生させるWDT、2はBTトリガ信号S3に
より起動された後、一定時間(TB)以内に再度BTト
リガ信号S3が与えられない場合にBTタイムアウト信
号S4を発生させるBT、3は通常のバスアクセス時に
アクノーリッジ信号S5を生成するアクノーリッジ生成
回路、4はBTタイムアウト信号S4とアクノーリッジ
信号S5の論理和をとりレディ信号S6を生成するOR
ゲート、5はCPUであり、その割込入力にはWDTタ
イムアウト信号S2が、レディ人力にはレディ信号S6
がそれぞれ接続されている。また、10はCPU5の実
行サイクル毎のバス信号を元にデコード処理等を行ない
、BTトリガ信号S3を実行バスサイクル毎に生成して
出力するデコーダである。 WDTIはリトリガブルタイプのタイマで構成されてお
り、WDTトリガ信号S1がT1を越えない間隔で人力
されている限り、WDTタイムアウト信号S2が出力さ
れることはない。 WDTトリガ信号S1は、CPU5のソフトウェアによ
って生成可能なパルス状の信号である。 そして、CPU5のシステムが正常に動作し、ソフトウ
ェアが所定゛の処理動作をしている限り、T7以内に必
ずWDT)リガ信号S1を生成する処理を実行するよう
に設計される。このプログラム設定方法等を従来より周
知であるため詳細説明を省略する。 システムに何らかの異常が発生した結果、プログラムの
暴走、無限ループ実行、あるいはホールド状態への移行
等の現象に波及した場合には、WDTトリガ信号S1の
生成プログラムが実行さ・れなくなり、WDTIへのW
DTトリガ信号S1の供給が停止する。 このため、WDTIは先のWDTI−リガ信号S1受取
りよりTw暗時間経過後タイムアツプし、WDTタイム
アウト信号S2が出力される。 WDTタイムアウト信号S2はCPU5の割込信号とな
っており、該信号S2が発生するとCPU5に割込みが
かかり、以後、例えば暴走検知処理のプログラムが起動
される等して暴走に対する処置が成される。 一方、BT2もWDTIと同様、リトリガブルタイプの
タイマで構成されており、CPU5によるアクセスデバ
イス10アクセスに対する一種の応答信号でもあるBT
トリガ信号S3がTBを越えない間隔で入力されている
限り、BTタイムアウト信号S4が出力されることはな
い。BTI−リガ信号S3はデコーダ10により生成さ
れる信号であり、具体的にはCPU5実行サイクル毎の
バス信号を元に、当該バスサイクルにおけるアドレス値
をデコードし、その結果がシステム内の各接続周辺デバ
イスのアドレス値である場合に生成され、バスサイクル
毎に与えられる信号である。 BT2のタイムアウト時間であるT、はアクセスのサイ
クル時間よりも充分大きいため、正常動作においてはB
Tタイムアウト信号S4が出力されることはない。 方、アドレスデコード結果がシステム内でマツピングさ
れていないエリアを指していた場合(接続周辺デバイス
のアドレス値ではないアドレス値である場合、またはア
ドレス値等が出力されていない場合)には、CPU5は
ウェイト状態にあることが考えられ、デコーダ10より
の当該バスサイクルにおけるBT)−リガ信号S3が出
力されず、この場合には13T2のタイムアツプが起こ
り、BTタイムアウト信号S4が出力されることになる
。BTタイムアウト信号S4はORゲート4を通過して
レディ信号S6となり、CPU5のRDY入力に加えら
れ、CPU5はウェイト状態から脱出する。 一方、アドレスデコード結果がシステム内でマツピング
されていないエリアを指していた場合(接続周辺デバイ
スのアドレス値ではないアドレス値である場合)には、
アクノーリッジ信号S5は出力されない。従って、この
場合はアクセス開始後TB時間経過後にBT2のタイム
アツプが起こり、BTタイムアウト信号S4が出力され
る。 BTタイムアウト信号S4はORゲート4を通過してレ
ディ信号S6となり、CPU5のRDY入力に加えられ
、CPU5はウェイト状態から脱出する。 アクノーリッジ生成回路3は、バスサイクルに於いてア
クセス対象とする周辺デバイスが必要とするだけのウェ
イトステートを該バスサイクルに挿入するための回路で
あり、当該バスサイクルにおけるアドレス値をデコード
し、該アドレス値に対応した適当な時間の経過後アクノ
ーリッジ信号S5を出力し、CPU5が当該バスサイク
ルにおけるウェイト状態をリセットして元の動作状態に
復帰させる。 しかし、このアクノーリッジ生成回路3によるアクノー
リッジ信号S5の出力は、アドレスデコード結果がシス
テム内のデバイスを指している場合のみ行なわれるのみ
であり、アドレスデコード結果がシステム内でマツピン
グされていないエリアを指していた場合(接続周辺デバ
イスのアドレス値ではないアドレス値である場合)には
、アクノーリッジ信号S5は出力されない。従って、こ
の場合にはCPU5はウェイト状態のままとなり、アク
セス開始後T11時間経過後にBT2のタイムアツプが
起こり、アクノーリッジ信号S5の替りにBTタイムア
ウト信号S4が出力される。 BTタイムアウト信号S4はORゲート4を通過してレ
ディ信号S6となり、CPU5のRDY入力に加えられ
、CPU5はウェイト状態から脱出する。 ここで、WDT1起動時には必ずBT2も起動されると
いう事実に着目して、Tw <TIlなる条件とするこ
とにより、BT2のタイムアツプが発生すれば必ずWD
T 1のタイムアツプも発生する。 従って、システムに何らかの異常が発生した結果、シス
テム内でマツピングされていないエリアへのアクセスが
開始された場合にも、BT2のタイムアツプの発生に伴
い、WDTIのタイムアツプが発生することにより、C
PU5に割り込みがかかり、暴走検知処理プログラムが
起動されることになる。 このため、本実施例ではWDTIのタイムアウト時間T
wとBT2のタイムアウト時間TBとをTw (TBな
る条件とし、確実にプログラム暴走状態、ウェイト状態
よりの復帰を可能としている。
Hereinafter, one embodiment of the present invention will be described in detail with reference to the drawings. FIG. 1 is a circuit diagram of a runaway detection circuit according to an embodiment of the present invention. In the same figure, 1 indicates that after the WDT trigger signal S goes up and is activated, the WDT trigger signal S1 rises again within a certain time (TW). After being activated by the BT trigger signal S3, the WDT 2 generates a BT timeout signal S4 if the BT trigger signal S3 is not given again within a certain time (TB). 3 is an acknowledge generation circuit that generates an acknowledge signal S5 during normal bus access, and 4 is an OR that takes the logical sum of the BT timeout signal S4 and the acknowledge signal S5 and generates a ready signal S6.
The gate 5 is a CPU, and its interrupt input receives a WDT timeout signal S2, and its ready input receives a ready signal S6.
are connected to each other. Further, 10 is a decoder that performs decoding processing etc. based on the bus signal for each execution cycle of the CPU 5, and generates and outputs a BT trigger signal S3 for each execution bus cycle. The WDTI is composed of a retriggerable timer, and as long as the WDT trigger signal S1 is manually input at intervals not exceeding T1, the WDT timeout signal S2 will not be output. The WDT trigger signal S1 is a pulse-like signal that can be generated by software of the CPU 5. As long as the system of the CPU 5 operates normally and the software performs a predetermined processing operation, it is designed to always execute the process of generating the WDT trigger signal S1 within T7. Since this program setting method and the like are well known, detailed explanation will be omitted. If some abnormality occurs in the system, resulting in a program running out of control, running an infinite loop, or transitioning to a hold state, the program that generates the WDT trigger signal S1 will no longer be executed, and the WDTI W
The supply of the DT trigger signal S1 is stopped. Therefore, the WDTI times up after the Tw dark time has elapsed since the reception of the previous WDTI-trigger signal S1, and the WDT timeout signal S2 is output. The WDT timeout signal S2 is an interrupt signal for the CPU 5, and when the signal S2 is generated, the CPU 5 is interrupted, and thereafter, measures against the runaway are taken, for example, by starting a runaway detection processing program. On the other hand, like the WDTI, BT2 is also composed of a retriggerable timer, and is also a type of response signal to the access device 10 access by the CPU 5.
As long as the trigger signal S3 is input at intervals not exceeding TB, the BT timeout signal S4 is never output. The BTI-rigger signal S3 is a signal generated by the decoder 10. Specifically, based on the bus signal for each execution cycle of the CPU 5, the address value in that bus cycle is decoded, and the result is sent to each connected peripheral in the system. This is a signal that is generated when it is a device address value and is applied every bus cycle. Since the timeout time T of BT2 is sufficiently larger than the access cycle time, in normal operation, B
The T timeout signal S4 is never output. On the other hand, if the address decoding result points to an area that is not mapped in the system (if the address value is not the address value of the connected peripheral device, or if the address value etc. is not output), the CPU 5 It is possible that the bus is in a wait state, and the decoder 10 does not output the BT-trigger signal S3 in the relevant bus cycle. In this case, a time-up of 13T2 occurs, and the BT timeout signal S4 is output. The BT timeout signal S4 passes through the OR gate 4 and becomes a ready signal S6, which is applied to the RDY input of the CPU 5, and the CPU 5 exits from the wait state. On the other hand, if the address decode result points to an area that is not mapped within the system (if the address value is not the address value of the connected peripheral device),
Acknowledge signal S5 is not output. Therefore, in this case, the time-up of BT2 occurs after the TB time has elapsed after the start of access, and the BT timeout signal S4 is output. The BT timeout signal S4 passes through the OR gate 4 and becomes a ready signal S6, which is applied to the RDY input of the CPU 5, and the CPU 5 exits from the wait state. The acknowledge generation circuit 3 is a circuit for inserting as many wait states as required by the peripheral device to be accessed into the bus cycle in the bus cycle, and decodes the address value in the bus cycle and generates the corresponding wait state. After an appropriate time corresponding to the address value has elapsed, an acknowledge signal S5 is output, and the CPU 5 resets the wait state in the relevant bus cycle and returns to the original operating state. However, the output of the acknowledge signal S5 by the acknowledge generation circuit 3 is only performed when the address decode result indicates a device within the system, and the address decode result indicates an area that is not mapped within the system. If it is pointing (if the address value is not the address value of the connected peripheral device), the acknowledge signal S5 is not output. Therefore, in this case, the CPU 5 remains in a wait state, time-up of BT2 occurs after the time T11 has elapsed after the start of access, and the BT timeout signal S4 is output instead of the acknowledge signal S5. The BT timeout signal S4 passes through the OR gate 4 and becomes a ready signal S6, which is applied to the RDY input of the CPU 5, and the CPU 5 exits from the wait state. Here, by focusing on the fact that BT2 is always started when WDT1 is started, and by setting the condition Tw < TIl, when BT2 time-up occurs, WD is always started.
A time-up of T1 also occurs. Therefore, even if access to an area that is not mapped in the system is started as a result of some abnormality occurring in the system, the WDTI time-up will occur due to the BT2 time-up, and the C
An interrupt is generated in the PU5, and the runaway detection processing program is started. Therefore, in this embodiment, the WDTI timeout period T
By setting w and the timeout time TB of BT2 as Tw (TB), it is possible to reliably recover from a program runaway state or a wait state.

【他の実施例] 以上に説明した実施例においては、CPU5の割込人力
としては常時割込みが可能なマスク不可割込ラインを使
用する例を想定していた。しかし、この割込みラインは
、通常のマスク可能割込ラインであっても、あるいは割
込コントローラの割込入力ラインを使用したものであっ
ても構わない。 また、CPU5は、ワンチップのものに限定されるもの
ではなく、複数チップで構成されるものでも、またディ
スクリート構成め大型コンピュータの中央処理部であっ
ても、プログラムに従って各種処理を行なうものであれ
ば、いずれにも適用可能である。 以上説明したように本実施例によれば、WDTlのタイ
ムアウト時間TwとBT2のタイムアウト時間TBとを
Tw <TBなる条件とすることにより、何れのタイマ
のタイムアツプによっても暴走検知が可能となり、暴走
検知能力が高まるという効果がある。 その他、CPUへの割込ラインが単一化でき、割込制御
回路の簡略化が可能となる。また、同一の暴走原因に対
して、複数の異常ステータス割込を発生することがない
ため、異常処理部分のソフトウェアを簡略化することが
できる。 【発明の効果】 以上説明したように本発明によれば、割込信号出力回路
の一定期間(TW)と、終了信号出力回路の一定期間(
TB)とが、(TW)< (TB)なる関係を持つ様に
設定することにより、あらゆるプログラム等の異常に対
して適切な暴走検知が可能となり、適切な対応を可能と
する。
[Other Embodiments] In the embodiments described above, an example was assumed in which a non-maskable interrupt line that can be interrupted at any time is used as an interrupt source for the CPU 5. However, this interrupt line may be a normal maskable interrupt line or may use an interrupt input line of an interrupt controller. Further, the CPU 5 is not limited to a single chip, but may be composed of multiple chips, or may be a central processing unit of a large computer with a discrete configuration, or may perform various processing according to a program. It is applicable to both cases. As explained above, according to this embodiment, by setting the timeout time Tw of WDTl and the timeout time TB of BT2 to the condition that Tw < TB, runaway detection is possible even when the timeout of any timer is up, and runaway detection is possible. It has the effect of increasing ability. In addition, the interrupt line to the CPU can be unified, and the interrupt control circuit can be simplified. Furthermore, since multiple abnormality status interrupts are not generated for the same cause of runaway, the software for the abnormality processing portion can be simplified. Effects of the Invention As explained above, according to the present invention, the constant period (TW) of the interrupt signal output circuit and the constant period (TW) of the termination signal output circuit
By setting the relationship (TW) < (TB), it becomes possible to appropriately detect runaways and take appropriate measures against abnormalities in any program, etc.

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

図は本発明に係る一実施例の基本構成図である。 図中、1・・・WDT、2・・・BT、3・・・アクノ
ーリッジ生成回路、4・・・ORゲート、5・・・CP
U、10・・・デコーダ、Sl・・・WDTトリガ信号
、S2・・・WDTタイムアウト信号、S3・・・BT
トリガ信号、S4・・・BTタイムアウト信号、S5・
・・アクノーリッジ信号、S6・・・レディ信号である
。 特許出願人  キャノン 株式会社 ℃−:J
The figure is a basic configuration diagram of an embodiment according to the present invention. In the figure, 1...WDT, 2...BT, 3...acknowledge generation circuit, 4...OR gate, 5...CP
U, 10...Decoder, Sl...WDT trigger signal, S2...WDT timeout signal, S3...BT
Trigger signal, S4...BT timeout signal, S5...
. . . acknowledge signal, S6 . . . ready signal. Patent applicant Canon Corporation ℃-:J

Claims (2)

【特許請求の範囲】[Claims] (1)一定期間(T_W)内にソフトウェア命令により
出力されるトリガ信号が与えられない場合にCPUに対
する割込信号を出力する割込信号出力回路と、一定期間
(T_B)内にCPUのバスサイクルが終了しない場合
にCPUに対するバスサイクルを強制的に終了させるた
めの終了信号を出力する終了信号出力回路とを備え、 前記割込信号出力回路の一定期間(T_W)と前記終了
信号出力回路の一定期間(T_B)とが、(T_W)<
(T_B)なる関係を持つ様に設定されることを特徴と
する暴走検知回路。
(1) An interrupt signal output circuit that outputs an interrupt signal to the CPU when a trigger signal output by a software instruction is not given within a certain period (T_W), and a bus cycle of the CPU within a certain period (T_B). and a termination signal output circuit that outputs a termination signal for forcibly terminating the bus cycle to the CPU when the interrupt signal output circuit does not terminate, the interrupt signal output circuit having a certain period (T_W) and the termination signal output circuit having a certain period (T_W). Period (T_B) and (T_W)<
A runaway detection circuit characterized by being set to have the following relationship (T_B).
(2)一定期間(T_W)内にソフトウェア命令により
出力されるトリガ信号が与えられない場合にCPUに対
する割込信号を発生させるとともに、一定期間(T_B
)内にCPUのバスサイクルが終了しない場合にCPU
に対してバスサイクルを強制的に終了させるための終了
信号を発生させ、一定期間(T_W)と一定期間(T_
B)とが、(T_W)<(T_B)なる関係を持つ様に
制御することを特徴とする暴走検知方式。
(2) Generates an interrupt signal to the CPU when a trigger signal output by a software instruction is not given within a certain period (T_W), and
), if the CPU bus cycle does not end within
A termination signal is generated to forcibly terminate the bus cycle for a certain period (T_W) and a certain period (T_W).
B) is controlled so that (T_W)<(T_B) is established.
JP2151516A 1990-06-12 1990-06-12 Circuit and system for detection of runaway Pending JPH0444132A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2151516A JPH0444132A (en) 1990-06-12 1990-06-12 Circuit and system for detection of runaway

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2151516A JPH0444132A (en) 1990-06-12 1990-06-12 Circuit and system for detection of runaway

Publications (1)

Publication Number Publication Date
JPH0444132A true JPH0444132A (en) 1992-02-13

Family

ID=15520220

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2151516A Pending JPH0444132A (en) 1990-06-12 1990-06-12 Circuit and system for detection of runaway

Country Status (1)

Country Link
JP (1) JPH0444132A (en)

Similar Documents

Publication Publication Date Title
US4405982A (en) Arrangement for monitoring the function of a programmable electronic switching circuit
RU2002122402A (en) METHOD AND DEVICE FOR SUSPENDING PERFORMANCE MODE IN THE PROCESSOR
US6968410B2 (en) Multi-threaded processing of system management interrupts
US4903193A (en) Runaway detecting system for CPU
JP2965075B2 (en) Program execution status monitoring method
JPH0444132A (en) Circuit and system for detection of runaway
JPH11259340A (en) Reactivation control circuit for computer
JP2814800B2 (en) Microcomputer
US20220415405A1 (en) Memory-control circuit and method for controlling erasing operation of flash memory
KR100283947B1 (en) System automatic reset device
US20040015741A1 (en) Watchdog device operation
JPS63271545A (en) Watch dog timer
JPH01237852A (en) Abnormality monitoring timer controller
JPS6051141B2 (en) Program runaway detection method
KR920003909B1 (en) Debugging supporting circuit
JPS63268044A (en) Watchdog timer
JP3473002B2 (en) Data processing device and data processing method
JPH02121047A (en) Input/output control system
JPH0223435A (en) Microcomputer
CN118245256A (en) Method for feeding dogs based on application multithreading
JP2840539B2 (en) Debug device
JPS5935250A (en) Program controller
JPH05108384A (en) Microprocessor
JPH0644201A (en) Monitor device for computer system using shared memory
JPS61272843A (en) Program execution supervisory system