JPH0581052A - Microprocessor runaway check circuit - Google Patents

Microprocessor runaway check circuit

Info

Publication number
JPH0581052A
JPH0581052A JP3240036A JP24003691A JPH0581052A JP H0581052 A JPH0581052 A JP H0581052A JP 3240036 A JP3240036 A JP 3240036A JP 24003691 A JP24003691 A JP 24003691A JP H0581052 A JPH0581052 A JP H0581052A
Authority
JP
Japan
Prior art keywords
program
runaway
command
microprocessor
mpu
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.)
Withdrawn
Application number
JP3240036A
Other languages
Japanese (ja)
Inventor
Tokuji Kai
篤司 甲斐
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.)
Fujitsu Ltd
Fujitsu Electronics Inc
Original Assignee
Fujitsu Ltd
Fujitsu Electronics 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 Fujitsu Ltd, Fujitsu Electronics Inc filed Critical Fujitsu Ltd
Priority to JP3240036A priority Critical patent/JPH0581052A/en
Publication of JPH0581052A publication Critical patent/JPH0581052A/en
Withdrawn legal-status Critical Current

Links

Abstract

PURPOSE:To supervise the runaway of MPU without connecting a measurement unit such as an emulator to MPU on a microprocessor runaway check circuit checking the runaway of a microprocessor unit (MPU). CONSTITUTION:Respective reference data on start/end, which show the start and end of a command in a program stored in a storage means 11 that is to be executed, are previously set and they are stored in first and second data storage parts 1 and 2. First and second comparison circuits 3 and 4 respectively compare respective stored reference data or start/end with the command of the program which the microprocessor unit 10 reads from the storage means 11. An up/down counter 5 is added and subtracted based on a comparison result. Thus, the runaway cause of the micro processor unit 10 can be detected based on a calculated result concerned. Then, runaway can be checked without connecting the measurement unit such as the emulator to the microprocessor unit 10.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、マイクロプロセッサユ
ニット(MPU)の暴走を監視するマイクロプロセッサ
暴走監視回路に関し、MPUの暴走原因を実行解析する
ことができるマイクロプロセッサ暴走監視回路に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a microprocessor runaway monitoring circuit for monitoring runaway of a microprocessor unit (MPU), and more particularly to a microprocessor runaway monitoring circuit capable of executing and analyzing the cause of MPU runaway.

【0002】近年、MPU等を動作させるプログラム
は、多重の入れ子(nest)構造が使用されているこ
とが多い。この多重の入れ子構造のプログラムを評価す
る場合、又は実行する場合等において、MPUの暴走が
発生し易い。そこで、このMPUが暴走する原因を解析
するための情報を検出するための暴走監視回路が要求さ
れる。
In recent years, a program for operating an MPU or the like often uses a multiple nest structure. MPU runaway is likely to occur when this multiple nested program is evaluated or executed. Therefore, a runaway monitoring circuit for detecting information for analyzing the cause of this MPU runaway is required.

【0003】[0003]

【従来の技術】従来、この種のマイクロプロセッサ暴走
監視装置としては、エミュレータ等の測定機器を被監視
側であるMPUの出力端子に接続し、この出力端子から
出力されるMPUの出力データに基づいてMPUが暴走
しているか否かを検出し、エミュレータ等のトレース機
能を使用してMPUの暴走解析を行なっていた。
2. Description of the Related Art Conventionally, as a microprocessor runaway monitoring device of this type, a measuring device such as an emulator is connected to an output terminal of an MPU on the monitored side, and based on output data of the MPU output from this output terminal. The MPU detects runaway of the MPU and analyzes the runaway of the MPU by using a trace function of an emulator or the like.

【0004】[0004]

【発明が解決しようとする課題】従来のマイクロプロセ
ッサ暴走監視装置は以上のように構成されていたことか
ら、エミュレータ等の測定機器にMPUに別途接続しな
ければならずMPUの暴走監視が繁雑となる課題を有し
ていた。
Since the conventional microprocessor runaway monitoring device is configured as described above, it is necessary to separately connect the measuring device such as an emulator to the MPU, and the runaway monitoring of the MPU becomes complicated. Had the following problems.

【0005】本発明は前記課題を解消するためになされ
たもので、エミュレータ等の測定機器を別途MPUに接
続することなくMPUの暴走を監視することができるマ
イクロプロセッサ暴走監視回路を提案することを目的と
する。
The present invention has been made to solve the above problems, and proposes a microprocessor runaway monitoring circuit capable of monitoring runaway of an MPU without separately connecting a measuring device such as an emulator to the MPU. To aim.

【0006】[0006]

【課題を解決するための手段】図1は本発明の原理説明
図を示す。同図において本発明に係るマイクロプロセッ
サ暴走監視回路は、プログラムが格納される記憶手段1
1からプログラムを読出して当該プログラムの複数のコ
マンドを実行するマイクロプロセッサユニット10の暴
走を監視するマイクロプロセッサ暴走監視回路におい
て、前記プログラムの任意のコマンドにおけるコマンド
開始を示し、当該プログラムの実行前に予め設定される
開始基準データを格納する第1のデータ記憶部1と前記
プログラムの任意のコマンドにおけるコマンド終了を示
し、当該プログラムの実行前に予め設定される終了基準
データを格納する第2のデータ記憶部2と、前記マイク
ロプロセッサユニット10が記憶手段11から読出すプ
ログラムのコマンドと前記第1のデータ記憶部1に格納
される開始基準データとを比較して一致した場合には第
1の一致信号を出力する第1の比較回路3と、前記マイ
クロプロセッサユニット10が記憶手段11から読出す
プログラムのコマンドと前記第2のデータ記憶部2に格
納される終了基準データとを比較して一致した場合には
第2の一致信号を出力する第2の比較回路4と、前記第
1の比較回路3の第1の一致信号が入力された場合に加
算動作し、第2の比較回路4の第2の一致信号が入力さ
れた場合に減算動作するアップダウンカウンタ5とを備
え、前記アップダウンカウンタ5の算出結果に基づいて
マイクロプロセッサユニット10の暴走原因を監視する
ものである。
FIG. 1 shows the principle of the present invention. In the figure, the microprocessor runaway monitoring circuit according to the present invention is provided with a storage means 1 for storing a program.
In a microprocessor runaway monitoring circuit that monitors a runaway of a microprocessor unit 10 that reads a program from 1 and executes a plurality of commands of the program, indicates a command start in an arbitrary command of the program, and executes the program in advance before the execution of the program. A first data storage unit 1 for storing start reference data to be set, and a second data storage for indicating command end in an arbitrary command of the program and storing end reference data preset before execution of the program If the command of the program read by the microprocessor unit 10 from the storage unit 11 and the start reference data stored in the first data storage unit 1 are compared with each other, the first match signal is output. And a first comparator circuit 3 for outputting The second comparison circuit outputs a second coincidence signal when the command of the program read from the storage unit 11 and the end reference data stored in the second data storage unit 2 are compared with each other and coincide with each other. Up-down operation that performs addition operation when the first match signal of the circuit 4 and the first comparison circuit 3 is input, and subtracts operation when the second match signal of the second comparison circuit 4 is input A counter 5 is provided, and the cause of runaway of the microprocessor unit 10 is monitored based on the calculation result of the up / down counter 5.

【0007】[0007]

【作用】本発明においては、実行しようとする記憶手段
に格納されたプログラムにおけるコマンドの開始、終了
を示す開始、終了の各基準データを予め設定して第1及
び第2の各データ記憶部に格納し、当該格納された開
始、終了の各基準データをマイクロプロセッサユニット
が記憶手段から読出すプログラムのコマンドとを第1及
び第2の比較回路で各々比較し、当該比較結果に基づい
てアップダウンカウンタの加算・減算を行なうようにし
たので、当該算出結果に基づいてマイクロプロセッサユ
ニットの暴走原因を検出できることとなり、エミュレー
タ等の測定機器を別途マイクロプロセッサユニットに接
続することなく暴走監視を行なう。
According to the present invention, reference data of start and end indicating the start and end of a command in the program stored in the storage means to be executed are preset and stored in the first and second data storage sections. The first and second comparison circuits respectively store and store the respective reference data for start and end with the command of the program read from the storage means by the microprocessor unit, and up and down based on the comparison result. Since the addition / subtraction of the counter is performed, the cause of the runaway of the microprocessor unit can be detected based on the calculation result, and the runaway is monitored without separately connecting a measuring device such as an emulator to the microprocessor unit.

【0008】[0008]

【実施例】【Example】

a)本発明の一実施例 本発明の一実施例を図2ないし図5に基づいて説明す
る。
a) One Embodiment of the Present Invention One embodiment of the present invention will be described with reference to FIGS.

【0009】前記図2に記載の本実施例に係るマイクロ
プロセッサ暴走監視回路は、接続されてデータバス10
0を伝送するプログラムの各処理コマンドがMPU10
に入力され、メモリ11に格納された開始及び終了の各
基準データが第1、第2の各ラッチ回路1、2に入力さ
れてラッチされ、このラッチされた各基準データと前記
コマンドを第1、第2の各比較回路3、4で比較し、こ
の比較結果の各一致信号Y1 、Y2 (反転)に基づいて
アップダウン(U/D)カウンタがカウントアップ又は
カウントダウンし、この算出結果でMPU10の暴走を
監視する構成である。また、前記U/Dカウンタ5は各
々のクリア端子に制御回路6が接続され、この制御回路
6から出力されるクリア制御信号CLR(反転)に基づ
いてカウント値をクリアするように構成される。前記制
御回路6はU/Dカウンタ5へシステムクロック信号C
LKを出力し、このシステムクロック信号CLKの立上
りのタイミングで加算又は減算を行なう構成である。
The microprocessor runaway monitoring circuit according to this embodiment shown in FIG. 2 is connected to the data bus 10.
Each processing command of the program transmitting 0 is MPU10.
To the first and second latch circuits 1 and 2 which are input to the first and second latch circuits 1 and 2 and are latched. , The second comparison circuits 3 and 4 perform comparison, and the up / down (U / D) counter counts up or down based on the match signals Y 1 and Y 2 (inversion) of the comparison result. In this configuration, the MPU 10 is monitored for runaway. The U / D counter 5 has a control circuit 6 connected to each clear terminal, and is configured to clear the count value based on a clear control signal CLR (inversion) output from the control circuit 6. The control circuit 6 sends the system clock signal C to the U / D counter 5.
LK is output and addition or subtraction is performed at the rising timing of the system clock signal CLK.

【0010】次に、前記構成に基づく本実施例の動作
を、コール(CALL)・リターン(RET)により処
理動作を領域分けした場合(図3)及びライト(WR)
・リード(RE)の処理により処理動作を領域分けした
場合(図4)を例にとって各々説明する。
Next, in the operation of this embodiment based on the above-mentioned structure, the processing operation is divided into areas by call (CALL) and return (RET) (FIG. 3) and write (WR).
The case where the processing operation is divided into areas by the read (RE) processing (FIG. 4) will be described as an example.

【0011】前記コール(CALL)・リターン(RE
T)により処理動作を領域分けした場合には、図3に示
すようにメインプログラムのアドレス50の「CALL
命令」によりサブルーチンAのアドレス100へ移行し
てサブルーチンAの処理を実行し、アドレス120の
「RET命令」によりメインプログラムのアドレス53
に戻り、メインプログラムの次の命令を実行し、この多
重の入れ子状のプログラムの実行中におけるMPU10
の暴走を監視するものである。
The call (CALL) and return (RE)
When the processing operation is divided into regions by T), as shown in FIG.
Command to move to address 100 of subroutine A and execute the process of subroutine A.
, The next instruction of the main program is executed, and the MPU 10 during execution of this multiple nested program is executed.
It monitors the runaway of.

【0012】まず、キーボード12からメインプログラ
ムのアドレス「50」、内容「CALL命令」、サブル
ーチンAのアドレス「100」、内容「RET命令」を
開始及び終了の各基準比較データDs1、Ds2として設定
し、この開始及び終了の各基準比較データDs1、Ds2
メモリ11に格納する。この開始基準比較データDs1
は第1のラッチ回路1を特定するアドレスadr1 が付
与され、また終了基準比較データDs2には第1のラッチ
回路2を特定するアドレスadr2 が付与されて、各々
がメモリ11に格納される。
First, from the keyboard 12, the address "50" of the main program, the content "CALL instruction", the address "100" of the subroutine A, and the content "RET instruction" are used as the reference comparison data Ds1 and Ds2 for the start and end. The reference comparison data D s1 and D s2 of the start and end are set and stored in the memory 11. This is the start reference comparison data D s1 is applied a first address adr 1 to identify the latch circuit 1, also the termination criterion comparative data D s2 is the address adr 2 is applied to identify the first latch circuit 2 , Are stored in the memory 11.

【0013】前記MPU10からアドレスストローブ信
号ALEが制御回路6に出力されると図5中の時間t1
〜t2 において開始基準比較データDs1に付与されたア
ドレスadr1 が読出される。また、時間t2 〜t3
おいて書込制御信号WR(反転)が制御回路6に入力さ
れるとこの制御回路6から第1ラッチ回路3にラッチ制
御信号C(反転)が出力され、この第1ラッチ回路3が
開始基準比較データD s1をラッチする。これと同様に時
間t3 〜t6において第2ラッチ回路3は終了基準比較
データDs2をラッチする。ここで、制御回路6からU/
Dカウンタ5に対してクリア信号CLR(反転)が出力
され、U/Dカウンタ5の出力を不定状態から出力
「0」とする。
The address strobe signal is transmitted from the MPU 10.
When the signal ALE is output to the control circuit 6, the time t in FIG.1
~ T2Start reference comparison data Ds1A given to
Dress adr1Is read. Also, time t2~ T3To
Then, the write control signal WR (inversion) is input to the control circuit 6.
Then, the control circuit 6 latches the first latch circuit 3
The control signal C (inversion) is output, and the first latch circuit 3
Start criteria comparison data D s1Latch. As well as this
Interval t3~ T6The second latch circuit 3 compares the end criteria
Data Ds2Latch. Here, from the control circuit 6 to U /
Clear signal CLR (inversion) output to D counter 5
Output from U / D counter 5 from undefined state
Set to "0".

【0014】この状態でMPU10から制御回路6にア
ドレスストローブ信号ALEが出力されると、MPU1
0がメモリ11からデータバス100を介して伝送され
るプログラムのコマンドのうちメインプログラムの「C
ALL命令」に伴うアドレスadr1 が入力され(図5
の時間t7 〜t8 )、またこの「CALL命令」が比較
データDR1として第1比較回路3に入力される(図5の
時間t8 〜t9 )を参照)。この第1比較回路3は時間
7 〜t8 でアドレスadr1 が入力されると一致信号
1 (反転)を出力する。この一致信号Y1 (反転)が
カウントアップ信号としてU/Dカウンタ5に入力さ
れ、このU/Dカウンタ5が「0」から「1」へカウン
トアップしてカウント信号Qを出力する(図5の時間t
8 を参照)。さらに、MPU10がメモリ10からプロ
グラムを読出し続けてこのプログラムのサブルーチンA
をアドレス100から120まで処理し、アドレス12
0の「RET命令」に伴うアドレスadr2 が第2比較
回路4に入力され(図5の時間t10〜t11)、このアド
レスadr2 の入力により第2比較回路4から一致信号
2 (反転)を出力する。この一致信号Y2 (反転)が
カウントダウン信号としてU/Dカウンタ5に入力さ
れ、このU/Dカウンタ5が「1」から「0」にカウン
トダウンしてカウント信号Qを出力する(図5の時間t
11を参照)。
When the address strobe signal ALE is output from the MPU 10 to the control circuit 6 in this state, the MPU 1
0 is a command of the program transmitted from the memory 11 via the data bus 100, and is “C” of the main program.
The address adr 1 associated with the "ALL instruction" is input (Fig. 5
Of time t 7 to t 8 ) and this "CALL instruction" is input to the first comparison circuit 3 as the comparison data D R1 (see times t 8 to t 9 of FIG. 5). The first comparison circuit 3 outputs the coincidence signal Y 1 (inversion) when the address adr 1 is input during the time t 7 to t 8 . The coincidence signal Y 1 (inversion) is input to the U / D counter 5 as a count-up signal, the U / D counter 5 counts up from “0” to “1” and outputs the count signal Q (FIG. 5). Time t
See 8 ). Further, the MPU 10 continues to read the program from the memory 10 and the subroutine A of this program
Address from 100 to 120 and address 12
The address adr 2 associated with the “RET instruction” of 0 is input to the second comparison circuit 4 (time t 10 to t 11 in FIG. 5), and the input of this address adr 2 causes the second comparison circuit 4 to output the match signal Y 2 ( Inversion) is output. This coincidence signal Y 2 (inversion) is input to the U / D counter 5 as a countdown signal, and this U / D counter 5 counts down from “1” to “0” and outputs the count signal Q (time in FIG. 5). t
See 11 ).

【0015】このようにして、U/Dカウンタ5のカウ
ント信号Qの値がメインプログラムに復帰した場合に
「0」として出力されているのでMPU10が暴走する
ことなく正常の動作しているものと判断できる。
In this way, since the value of the count signal Q of the U / D counter 5 is output as "0" when the main program is restored, it is assumed that the MPU 10 is operating normally without running away. I can judge.

【0016】また、図6にMPU10が暴走した場合の
タイミングチャートを示し、同図において、前記正常に
MPU10が動作した図5の場合と相違して図5中の時
間t 9 においてMPU10からアドレスストローブ信号
ALEが制御回路に出力されているにもかかわらず、M
PU10にサブルーチンAのアドレス120の「RET
命令」に伴うアドレスadr2 が比較データとして入力
されず、第2比較回路4から一致信号Y2 (反転)が出
力されない。この一致信号Y2 (反転)がU/Dカウン
タ5に出力されないことから、U/Dカウンタ5はカウ
ントダウンを行なわずカウント値「1」のカウント信号
Qを出力し続けることとなる。このことにより、MPU
10がメインプログラムに復帰すべきところをカウント
値「1」のカウント信号Qであることから、サブルーチ
ンA中においてMPU10が暴走したことが判断される
こととなる。また、この暴走が多重の入れ子構造のプロ
グラム中におけるいずれのサブルーチンでエラーが発生
したかを解析することができる。
Further, in FIG. 6, when the MPU 10 runs out of control,
A timing chart is shown, in which the normal
In the case of FIG. 5 unlike the case of FIG. 5 in which the MPU 10 operates
Interval t 9Address strobe signal from MPU 10
Even though ALE is output to the control circuit, M
The PU10 has the "RET" at the address 120 of the subroutine A.
Address adr associated with instruction2Input as comparison data
Then, the second comparison circuit 4 outputs the coincidence signal Y2(Reverse) appears
I can't help. This match signal Y2(Reverse) is U / D count
The U / D counter 5 does not output to
Count signal with count value "1" without performing down
Q will continue to be output. This makes the MPU
Count where 10 should return to the main program
Since it is the count signal Q with the value "1", the subroutine
It is determined that MPU10 has runaway during A
It will be. In addition, this runaway is a multiple nesting professional
An error occurred in any subroutine in the gram
You can analyze what you did.

【0017】また、図4に示すようなプログラムを例え
ばライト命令(WR1〜n)及びリード命令(RE1〜
n)等により領域分けした場合にも、前記図3のサブル
ーチンの場合と同様に暴走原因を解析することができ
る。この場合には、同図に示すようにライト命令・リー
ド命令で領域分けされる処理1〜n中のいずれかにおい
てエラーが発生したかを解析できることとなる。
A program such as that shown in FIG. 4 may be written in, for example, write commands (WR1 to n) and read commands (RE1 to RE1).
Even when the area is divided by n) or the like, the cause of the runaway can be analyzed as in the case of the subroutine of FIG. In this case, it is possible to analyze whether an error has occurred in any of the processes 1 to n divided into areas by the write command and the read command as shown in FIG.

【0018】b)本発明の他の実施例 本発明の他の実施例を図7に基づいて説明する。同図に
おいて他の実施例に係るマイクロプロセッサ暴走監視回
路は、前記図2記載実施例回路と同様に第1及び第2の
各ラッチ回路1、2、第1及び第2の各比較回路3、
4、U/Dカウンタ5及び制御回路6を備え、この構成
に加え、命令レジスタ7、フラグレジスタ8及びnビッ
トカウンタ9を備える構成である。
B) Another Embodiment of the Present Invention Another embodiment of the present invention will be described with reference to FIG. In the figure, a microprocessor runaway monitoring circuit according to another embodiment is similar to the embodiment circuit shown in FIG. 2, and has first and second latch circuits 1 and 2, first and second comparison circuits 3,
4, a U / D counter 5 and a control circuit 6 are provided, and in addition to this configuration, an instruction register 7, a flag register 8 and an n-bit counter 9 are provided.

【0019】前記命令レジスタ7は、データバス100
と第1及び第2のラッチ回路1、2との間に接続され、
データバス100を伝送するプログラムのうちコマンド
内容のみを格納して前記第1及び第2のラッチ回路1、
2に出力する。またnビットカウンタ9はU/Dカウン
タ5のカウンタ信号Qが数秒間カウント値「1」である
場合にはフラグレジスタ8にフラグを立てる。このフラ
グによりMPU10の暴走を解析できることとなる。
The instruction register 7 is a data bus 100.
Is connected between the first and second latch circuits 1 and 2,
Only the command contents of the program transmitted on the data bus 100 are stored to store the first and second latch circuits 1,
Output to 2. The n-bit counter 9 sets a flag in the flag register 8 when the counter signal Q of the U / D counter 5 has a count value "1" for several seconds. With this flag, runaway of the MPU 10 can be analyzed.

【0020】[0020]

【発明の効果】以上説明したように本発明においては、
実行しようとする記憶手段に格納されたプログラムにお
けるコマンドの開始、終了を示す開始、終了の各基準デ
ータを予め設定して第1及び第2の各データ記憶部に格
納し、当該格納された開始、終了の各基準データをマイ
クロプロセッサユニットが記憶手段から読出すプログラ
ムのコマンドとを第1及び第2の比較回路で各々比較
し、当該比較結果に基づいてアップダウンカウンタの加
算・減算を行なうようにしたので、当該算出結果に基づ
いてマイクロプロセッサユニットの暴走原因を検出でき
ることとなり、エミュレータ等の測定機器を別途マイク
ロプロセッサユニットに接続することなく暴走監視を行
なえるという効果を有する。
As described above, according to the present invention,
The reference data of the start and end indicating the start and end of the command in the program stored in the storage means to be executed is preset and stored in the first and second data storage units, and the stored start is stored. , The end reference data is compared with the command of the program read from the storage means by the microprocessor unit in the first and second comparison circuits, respectively, and addition / subtraction of the up / down counter is performed based on the comparison result. Therefore, the cause of the runaway of the microprocessor unit can be detected based on the calculation result, and there is an effect that the runaway can be monitored without separately connecting a measuring device such as an emulator to the microprocessor unit.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明の原理説明図である。FIG. 1 is a diagram illustrating the principle of the present invention.

【図2】本発明の一実施例に係るマイクロプロセッサ暴
走監視回路のブロック構成図である。
FIG. 2 is a block configuration diagram of a microprocessor runaway monitoring circuit according to an embodiment of the present invention.

【図3】図2記載実施例が対象とするサブルーチンを有
するプログラム図である。
FIG. 3 is a program diagram having a subroutine targeted by the embodiment described in FIG.

【図4】図2記載実施例が対象とする他のプログラム図
である。
FIG. 4 is another program diagram targeted by the embodiment described in FIG.

【図5】図2記載実施例のMPU正常実行時におけるタ
イミングチャートである。
5 is a timing chart at the time of normal execution of the MPU of the embodiment described in FIG.

【図6】図2記載実施例のMPU暴走時におけるタイミ
ングチャートである。
FIG. 6 is a timing chart at the time of MPU runaway of the embodiment described in FIG.

【図7】本発明の他の実施例に係るマイクロプロセッサ
暴走監視回路のブロック構成図である。
FIG. 7 is a block configuration diagram of a microprocessor runaway monitoring circuit according to another embodiment of the present invention.

【符号の説明】[Explanation of symbols]

1…第1ラッチ回路 2…第2ラッチ回路 3…第1比較回路 4…第2比較回路 5…アップ/ダウン(U/D)カウンタ DESCRIPTION OF SYMBOLS 1 ... 1st latch circuit 2 ... 2nd latch circuit 3 ... 1st comparison circuit 4 ... 2nd comparison circuit 5 ... Up / down (U / D) counter

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 プログラムが格納される記憶手段(1
1)からプログラムを読出して当該プログラムの複数の
コマンドを実行するマイクロプロセッサユニット(1
0)の暴走を監視するマイクロプロセッサ暴走監視回路
において、 前記プログラムの任意のコマンドにおけるコマンド開始
を示し、当該プログラムの実行前に予め設定される開始
基準データを格納する第1のデータ記憶部(1)と、 前記プログラムの任意のコマンドにおけるコマンド終了
を示し、当該プログラムの実行前に予め設定される終了
基準データを格納する第2のデータ記憶部(2)と、 前記マイクロプロセッサユニット(10)が前記記憶手
段(11)から読出すプログラムのコマンドと前記第1
のデータ記憶部(1)に格納される開始基準データとを
比較して一致した場合には第1の一致信号を出力する第
1の比較回路(3)と、 前記マイクロプロセッサユニット(10)が前記記憶手
段(11)から読出すプログラムのコマンドと前記第2
のデータ記憶部(2)に格納される終了基準データとを
比較して一致した場合には第2の一致信号を出力する第
2の比較回路(4)と、 前記第1の比較回路(3)の第1の一致信号が入力され
た場合に加算動作し、第2の比較回路(4)の第2の一
致信号が入力された場合に減算動作するアップダウンカ
ウンタ(5)とを備え、 前記アップダウンカウンタ(5)の算出結果に基づいて
マイクロプロセッサユニット(10)の暴走原因を監視
することを特徴とするマイクロプロセッサ暴走監視回
路。
1. A storage means (1) for storing a program
1) A microprocessor unit (1) for reading a program from the program and executing a plurality of commands of the program.
In a microprocessor runaway monitoring circuit for monitoring runaway of (0), a first data storage section (1) for indicating a command start in an arbitrary command of the program and storing start reference data set in advance before execution of the program ), A second data storage unit (2) for indicating the end of a command in an arbitrary command of the program, and storing end reference data set in advance before the execution of the program, and the microprocessor unit (10). The command of the program read from the storage means (11) and the first command
A first comparison circuit (3) for outputting a first coincidence signal when the start reference data stored in the data storage section (1) is compared with each other, and the microprocessor unit (10). The program command read from the storage means (11) and the second command
A second comparison circuit (4) that outputs a second match signal when the end reference data stored in the data storage section (2) is compared with each other and a match is found; ), The addition operation is performed when the first match signal is input, and the up-down counter (5) that performs the subtraction operation when the second match signal of the second comparison circuit (4) is input, A microprocessor runaway monitoring circuit for monitoring the cause of runaway of a microprocessor unit (10) based on the calculation result of the up / down counter (5).
JP3240036A 1991-09-19 1991-09-19 Microprocessor runaway check circuit Withdrawn JPH0581052A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3240036A JPH0581052A (en) 1991-09-19 1991-09-19 Microprocessor runaway check circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3240036A JPH0581052A (en) 1991-09-19 1991-09-19 Microprocessor runaway check circuit

Publications (1)

Publication Number Publication Date
JPH0581052A true JPH0581052A (en) 1993-04-02

Family

ID=17053518

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3240036A Withdrawn JPH0581052A (en) 1991-09-19 1991-09-19 Microprocessor runaway check circuit

Country Status (1)

Country Link
JP (1) JPH0581052A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014035740A (en) * 2012-08-10 2014-02-24 Denso Corp Electronic control device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014035740A (en) * 2012-08-10 2014-02-24 Denso Corp Electronic control device

Similar Documents

Publication Publication Date Title
KR940011670B1 (en) Interrupt controller
US4747045A (en) Information processing apparatus having an instruction prefetch circuit
EP0530816A2 (en) Microprocessor with cache memory and trace analyzer therefor
JPH0581052A (en) Microprocessor runaway check circuit
JPH0863374A (en) Tracing function incorporated type lsi
JPH11282709A (en) In-circuit emulator
US5404499A (en) Semi-automatic program execution error detection
JP2525492B2 (en) Programmable controller
JPS6142186Y2 (en)
JP2967741B2 (en) CPU compatibility test equipment
JP2979918B2 (en) Interrupt detection circuit
JP2727947B2 (en) Address trace method
JPH01169642A (en) Runaway detecting circuit
JPH0612292A (en) Microcomputer
JPH04367902A (en) Programmable controller
JPH05210534A (en) Instruction fetch trigger circuit
JP2000305803A (en) Emulator
JPS59226955A (en) Program debug device
JPS63197245A (en) Microprogram controller
JPH05334122A (en) Event detection circuit
JPS62166449A (en) History storage device for logical unit
JPS6232509B2 (en)
JPH0573347A (en) Emulation device
JPH10333920A (en) Interruption processing circuit
JPS62127944A (en) Information processor

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 19981203