JPS6145340A - Runaway monitor system - Google Patents

Runaway monitor system

Info

Publication number
JPS6145340A
JPS6145340A JP59167214A JP16721484A JPS6145340A JP S6145340 A JPS6145340 A JP S6145340A JP 59167214 A JP59167214 A JP 59167214A JP 16721484 A JP16721484 A JP 16721484A JP S6145340 A JPS6145340 A JP S6145340A
Authority
JP
Japan
Prior art keywords
memory
runaway
circuit
information
address
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
JP59167214A
Other languages
Japanese (ja)
Inventor
Yasuo Kawabata
川端 康雄
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 Telecom Networks Ltd
Original Assignee
Fujitsu Telecom Networks 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 Fujitsu Telecom Networks Ltd filed Critical Fujitsu Telecom Networks Ltd
Priority to JP59167214A priority Critical patent/JPS6145340A/en
Publication of JPS6145340A publication Critical patent/JPS6145340A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To detect early and assuredly the runaway of a microprocessor by comparing the information delivered for a reading or writing action with the information on the using condition of a memory area. CONSTITUTION:A microprocessor 1 gives an access to the address of a memory 2 and performs a reading or writing action. Here a circuit consisting of a selection circuit 4, an EX-OR circuit 5 and an AND circuit 6 compares the information on a reading or writing action given from a memory 3 storing the using condition of the memory 2 with information read out of the memory 3. Then an alarm output is delivered through a terminal 7 when no coincidence is obtained from said comparison.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はデータ処理等に使用されるマイクロプロセッサ
の暴走監視方式の改良に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an improvement in a runaway monitoring system for a microprocessor used for data processing and the like.

一般に、マイクロプロセッサ(以下MPUと省略する)
はメ、モリに書込まれたプログラムを読出し、それに従
って例えばデータ処理や機器の制御を逐次実行していく
Generally, a microprocessor (hereinafter abbreviated as MPU)
reads the program written in the memory, and sequentially executes, for example, data processing or device control according to the program.

この時、MPLIが例えば第1の命令を実行した後、第
2の命令に依っである仕事を実行している場合、次に第
3の命令を読出してそれに依っである仕事を実行しなけ
ればならないのに、再び第1の命令を読出して仕事を行
い閉ループを形成する場合がある。
At this time, for example, if MPLI executes a first instruction and then executes a certain task depending on the second instruction, it must next read the third instruction and execute a certain task depending on it. The first instruction may be read out again to perform work even though the first instruction is not executed, forming a closed loop.

又、読出し/書込みを行う為にアクセスしたアドレスが
、誤動作の為に割当られたメモリ領域外になる場合があ
る。
Further, the address accessed for reading/writing may be outside the allocated memory area due to malfunction.

この様にMPUの誤動作により閉ループ状態になるなど
正常な処理が行われない状態を暴走と定義するが、この
暴走を監視する為の方法が既に実施されているが、下記
の様に暴走の状態によっては検出できない場合が生ずる
ので、より確実な暴走監視方式の開発が要望されていた
A runaway is defined as a state in which normal processing is not performed, such as a closed loop state due to MPU malfunction, and methods to monitor this runaway have already been implemented. In some cases, detection may not be possible, so there has been a demand for the development of a more reliable runaway monitoring system.

〔従来の技術〕[Conventional technology]

第2図(a)は暴走監視方式の従来例のブロック図を示
す。
FIG. 2(a) shows a block diagram of a conventional example of a runaway monitoring system.

同図において、メモリ2例えばリード・オンリ・メモリ
 (以下ROMと省略する)の0000〜FFFF番地
のメーモリ領域中、0000〜7FFF番地の間にプロ
グラムが書込まれていると仮定する。
In the figure, it is assumed that a program is written between addresses 0000 and 7FFF in a memory area of addresses 0000 to FFFF of a memory 2, for example, a read-only memory (hereinafter abbreviated as ROM).

一方、メモリマツプ回路3はR(7M 2が0000〜
FFFF番地のうち0000〜7FFF番地しか使用せ
ず残りの部分は使用しないと云う事を書込んで置く。
On the other hand, the memory map circuit 3 is R(7M2 is 0000~
It is written that only addresses 0000 to 7FFF of the FFFF addresses will be used and the rest will not be used.

今、MPU 1がROM 2をアクセスした時、そのア
ドレス信号はメモリマツプ回路3にも送出される。
Now, when MPU 1 accesses ROM 2, the address signal is also sent to memory map circuit 3.

そこで送出されたアドレスが0000〜7FFF番地内
のアドレスを指定したかどうかがチェックされ、指定ア
ドレス範囲外のアドレスが指定された時にはこれを検出
して警報が外部に送出される。
There, it is checked whether the sent address specifies an address within addresses 0000 to 7FFF, and if an address outside the specified address range is specified, this is detected and an alarm is sent to the outside.

第2図中)は別の従来例のブロック図を、第2図(C)
はプログラムの構成例を示す。
Figure 2(C) is a block diagram of another conventional example.
shows an example of the program configuration.

同図において、メモリ(図示せず)に書込まれたプログ
ラムには第2図10)に示す様に、定められた時間間隔
(例え、ば0.9秒)でクリア信号送出命令a及びbが
設けられている。
In the same figure, the program written in the memory (not shown) includes clear signal sending commands a and b at predetermined time intervals (for example, 0.9 seconds) as shown in FIG. 2 (10). is provided.

そこで、MPU  1がメモリに書込まれたプログラム
を読出して実行すると0.9秒間隔でクリア信号がカウ
ンタ4に加えられる。
Therefore, when the MPU 1 reads and executes the program written in the memory, a clear signal is applied to the counter 4 at intervals of 0.9 seconds.

一方、カウンタ4はクロックを例えば1秒間計測すると
桁上げ信号(これを警報に使用する)が送出されるが、
MPU  1から0.9秒間隔でクリア信゛号がカウン
タ4に加えられるので警報は外部に送出されない。
On the other hand, when the counter 4 measures the clock for, for example, one second, it sends out a carry signal (which is used for an alarm).
Since a clear signal is applied from MPU 1 to counter 4 at intervals of 0.9 seconds, no alarm is sent to the outside.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

前記の様に第2図(alに示す暴走監視方式は指定アド
レス範囲をアクセスしたが、プログラムを構成する命令
コードとデータを間違えて読出した場合は指定アドレス
範囲内の為にnpuの暴走を検出できない。
As mentioned above, the runaway monitoring method shown in Figure 2 (al) accesses the specified address range, but if the instruction code and data that make up the program are read by mistake, the runaway of the NPU is detected because it is within the specified address range. Can not.

又、第2図(C)の■に示す様にプログラムの実行過程
で閉ループが発生すると、例えば1秒経過してもクリア
信号送出命令aの煮込到達しないので、クリア信号が送
出されず MPU 1の暴走として警報が外部に送出さ
れる。
Furthermore, if a closed loop occurs in the program execution process as shown in (■) in Figure 2 (C), the clear signal sending command a does not reach the end even after one second has elapsed, so the clear signal is not sent and the MPU An alarm is sent to the outside as a runaway.

しかし、発生したループが前記のa点を含んでループ状
態になると、カウンタ4の計測値は周期的にクリアされ
るので警報は外部に送出されずMPUの暴走を検出する
事はできない。
However, when the generated loop includes the above-mentioned point a and enters a loop state, the measured value of the counter 4 is periodically cleared, so an alarm is not sent to the outside, and runaway of the MPU cannot be detected.

即ち、従来の暴走監視方式は暴走の状態によってはそれ
を検出できない場合が生ずると云う問題点があった。
That is, the conventional runaway monitoring system has a problem in that it may not be possible to detect the runaway depending on the state of the runaway.

〔問題点を解決するための手段〕[Means for solving problems]

上記の問題点は、MPtlから第1のメモリのアドレス
をアクセスして読出し又は書込みを行った時、該MP[
Iからの読出し又は書込みに関して送出された情報と、
該第1のメモリの領域の使用状態を記憶した第2のメモ
リより読出された該アドレスに対応する情報との一致又
は不一致を検出する事によりMPIJの暴走を監視する
本発明の暴走監視方式により解決される。
The above problem is that when the address of the first memory is accessed from MPtl and read or written, the MP[
information sent regarding reading or writing from I;
According to the runaway monitoring method of the present invention, the runaway of the MPIJ is monitored by detecting coincidence or mismatch with information corresponding to the address read from the second memory that stores the usage state of the area of the first memory. resolved.

〔作用〕[Effect]

本発明は読出し又は書込みを実行したMPUからの情報
(例えばアドレス信号、メモリから読出されたプログラ
ムの内容が命令コードか処理用データか等の情報)と、
このメモリの領域の使用状態の情報(例スば書込み領域
、読出し領域、書込まれたプログラムの構成等の情報)
から読出された同一アドレスの情報とを比較して一致又
は不一致を検出してMPUの暴走を検出する様にした。
The present invention provides information from the MPU that executed reading or writing (for example, address signals, information such as whether the contents of the program read from memory are instruction codes or processing data),
Information on the usage status of this memory area (for example, information on the write area, read area, configuration of the written program, etc.)
A runaway of the MPU is detected by comparing information at the same address read from the MPU and detecting a match or mismatch.

これにより、従来検出する事ができなかった様な状態の
暴走をも監視することができるので、より確実な暴走監
視を行う事ができる。
This makes it possible to monitor runaway conditions that could not be detected conventionally, making it possible to perform runaway monitoring more reliably.

〔実施例〕〔Example〕

第1図(a)は本発明の1実施例のブロック図を、第1
図(b)及び(C)は#lROM及び#2ROMのメモ
リ領域の使用伏態図を示す、尚、企図を通じて同一符号
は同一対象物を示す。
FIG. 1(a) shows a block diagram of one embodiment of the present invention.
Figures (b) and (C) show usage diagrams of the memory areas of #1 ROM and #2 ROM, where the same reference numerals indicate the same objects throughout the plan.

先ず、第1図(b)に示す様に#lROM2、特許請求
の範囲記載の第1のメモリ)の例えば1000番地には
命令コード、 1001番地にはデータ・・・がそれぞ
れ書込まれている。
First, as shown in FIG. 1(b), an instruction code is written at address 1000, data is written at address 1001, etc. in #lROM2 (first memory described in claims). .

一方、第1図(C1に示す様に#2RσM3(特許請求
の範囲記載の第2のメモリ)のメモリには#IROW 
2に書込まれたプログラムの構成がどの様になっている
かを命令コードは例えば“1″、データは“0″を用い
て8ピントでアドレス順に、書込まれている。尚、この
メモリの1行には8ビットの情報が書込まれている。
On the other hand, as shown in FIG. 1 (C1), the memory #2RσM3 (second memory described in the claims) has #IROW
The configuration of the program written in the memory card 2 is, for example, "1" for the instruction code and "0" for the data, and is written in the order of addresses using 8 pins. Note that 8-bit information is written in one row of this memory.

例えば、MPU 1が#lROM2のメモリの例えば1
000番地をアクセスしてそこに書込まれているプログ
ラムを読出した時、Mpt5iは−1000番地をアク
セスしたと云う情報を#2ROM3に送出する。
For example, MPU 1 is #lROM2, for example, 1
When address 000 is accessed and the program written there is read, Mpt5i sends information that address -1000 has been accessed to #2 ROM3.

そこで、#2ROM3は書込まれた情報の中から100
0番地を含む8ビツトのデータ(1行分)を選IP、何
路4に送出する。
Therefore, #2 ROM3 contains 100 out of the written information.
Sends 8-bit data (for one line) including address 0 to the selected IP and route 4.

一方、肝υ−1から送出された上記の情報のうち下位3
ビツトの組合せにより、8ビツトのうちの任意の1ビツ
トを選択回路4から取出すことができる様になっている
ので、この選択回路4で1000番地の情報に対応する
1番目のビットのみ取出し・ 排他的論理和回路(以下
EX−OR回路と省略する)5に加える。
On the other hand, among the above information sent from liver υ-1, the lower 3
Depending on the combination of bits, any one of the eight bits can be extracted from the selection circuit 4, so the selection circuit 4 extracts and excludes only the first bit corresponding to the information at address 1000. EX-OR circuit (hereinafter abbreviated as EX-OR circuit) 5.

このEX−OR回路5には#lROM2から読出したプ
ログラムをMPU 1が命令コードとして読んでいるか
、データとして読んでいるかを示すステータス信号が加
えられるが、この2つの信号が一致すればEX−OR回
路5の出力として“O′が、不一致なら1”が送出され
アンド回路6に加えられる。
A status signal indicating whether the MPU 1 is reading the program read from the #1 ROM 2 as an instruction code or as data is added to this EX-OR circuit 5. If these two signals match, an EX-OR circuit is applied. The output of the circuit 5 is "O', and if there is no match, 1" is sent and added to the AND circuit 6.

このアンド回路6の別の入力端子にMPU iからプロ
グラムを#lROM2から読出したと云う読出信号が加
えられ、一致すれば“0”が、不一致の時は“l”が端
子7に送出される。
A read signal indicating that the program has been read from #1ROM2 is applied from MPU i to another input terminal of this AND circuit 6, and if they match, "0" is sent to the terminal 7, and if they do not match, "1" is sent to the terminal 7.

そこで、不一致の時の出力“1″を警報に使用する。Therefore, the output "1" when there is a mismatch is used as an alarm.

第1図(d)は本発明の別の実施例のブロック図を示す
FIG. 1(d) shows a block diagram of another embodiment of the invention.

第1図(a)と第1図(d)の違いは、前者は第1のメ
モリがROFIだけの場合に対して、後者はランダムア
クセスメモリ (以下RAMと省略する)とROMを使
用する場合6例を示している。
The difference between Figure 1(a) and Figure 1(d) is that the former uses only ROFI as the first memory, while the latter uses random access memory (hereinafter abbreviated as RAM) and ROM. Six examples are shown.

第1図(d)の場合でも基本的な考え方は同じで、RA
M 8又はROM 9での書込み/読出しに対してMP
u 1からアクセスしたアドレスをROM 3に送出し
、このROMに書込まれているRAM 8及びROM 
9の使用状態に関する情報より、対応するアドレスの情
報を前記と同じく読出してアンド回路6に加える。
The basic idea is the same in the case of Figure 1(d), and the RA
MP for writing/reading in M8 or ROM9
The address accessed from u1 is sent to ROM 3, and RAM 8 and ROM written in this ROM are
From the information regarding the usage state of 9, the information of the corresponding address is read out in the same way as above and added to the AND circuit 6.

一方、オア回路10を通ったMPU  1より書込み/
読出し信号はアンド回路6でアンドが取られ不一致なら
1 ”が端子より出力され警報が外部に送出される。
On the other hand, write/write from MPU 1 through OR circuit 10
The read signal is ANDed by an AND circuit 6, and if it does not match, 1'' is output from the terminal and an alarm is sent to the outside.

この様な回路を使用して、定められたメモリ領域で書込
み/読出しが行われているかどうかを検出する事により
MPUの暴走を早い時点でより確実に検出する事ができ
る。
By using such a circuit to detect whether writing/reading is being performed in a predetermined memory area, runaway of the MPU can be detected more reliably at an earlier point in time.

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

以上説明した様に、本発明によれば早期にMPUの暴走
をより確実に検出する事ができるので、初期の段階でM
PUを正常動作に復旧させる事ができる。
As explained above, according to the present invention, MPU runaway can be detected more reliably at an early stage, so MPU runaway can be detected at an early stage.
It is possible to restore the PU to normal operation.

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

第1図(a)は本発明の1実施例のブロック図、第1図
(b)及び(0)はメモリ使用状態図、第1図(d)は
本発明の別の実施例のブロック図、第2図(a)は従来
例のブロック図、 第2図中)は別の従来例のブロック図を、第2図(C1
は、プログラム構成図を示す。 図において、 1はnpu、      2.1tRO1’l、4は選
択回路、    5はEX−OR回路、6はアンド回路
、   7は端子を示す。 〒 1 図
FIG. 1(a) is a block diagram of one embodiment of the present invention, FIG. 1(b) and (0) are memory usage state diagrams, and FIG. 1(d) is a block diagram of another embodiment of the present invention. , Fig. 2(a) is a block diagram of a conventional example, Fig. 2(a) is a block diagram of another conventional example, Fig. 2(C1
shows the program configuration diagram. In the figure, 1 is an npu, 2.1tRO1'l, 4 is a selection circuit, 5 is an EX-OR circuit, 6 is an AND circuit, and 7 is a terminal. 〒1 Figure

Claims (1)

【特許請求の範囲】[Claims] マイクロプロセッサから第1のメモリのアドレスをアク
セスして読出し又は書込みを行った時、該マイクロプロ
セッサからの読出し又は書込みに関して送出された情報
と、該第1のメモリの領域の使用状態を記憶した第2の
メモリより読出された該アドレスに対応する情報との一
致又は不一致を検出する事により該マイクロプロセッサ
の暴走を監視する事を特徴とする暴走監視方式。
When the microprocessor accesses the address of the first memory and performs reading or writing, the first memory stores the information sent out regarding the reading or writing from the microprocessor and the usage state of the area of the first memory. 1. A runaway monitoring system, characterized in that runaway of said microprocessor is monitored by detecting coincidence or mismatch with information corresponding to said address read from memory No. 2.
JP59167214A 1984-08-09 1984-08-09 Runaway monitor system Pending JPS6145340A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59167214A JPS6145340A (en) 1984-08-09 1984-08-09 Runaway monitor system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59167214A JPS6145340A (en) 1984-08-09 1984-08-09 Runaway monitor system

Publications (1)

Publication Number Publication Date
JPS6145340A true JPS6145340A (en) 1986-03-05

Family

ID=15845540

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59167214A Pending JPS6145340A (en) 1984-08-09 1984-08-09 Runaway monitor system

Country Status (1)

Country Link
JP (1) JPS6145340A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5049782A (en) * 1988-02-03 1991-09-17 Sanyo-Electric Co., Ltd. Magnetron with harmonic suppression means

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS4949549A (en) * 1972-09-14 1974-05-14

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS4949549A (en) * 1972-09-14 1974-05-14

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5049782A (en) * 1988-02-03 1991-09-17 Sanyo-Electric Co., Ltd. Magnetron with harmonic suppression means

Similar Documents

Publication Publication Date Title
US5218525A (en) Method and apparatus for partially running a sequence program for debugging thereof
US5016212A (en) IC card having system ROM selection inhibit
JPS6145340A (en) Runaway monitor system
US5222232A (en) Apparatus and method for monitoring prom access in a microcomputer
JPH09146789A (en) Emulator
JPS5840674A (en) Fault deciding method of microcomputer
JPS62166449A (en) History storage device for logical unit
JPS60120443A (en) Detecting circuit of undefined instruction
JPH06103220A (en) Data processing system
JPH0250226A (en) Microcomputer
JPH039487B2 (en)
JPH04255037A (en) Program control circuit
JPS6188359A (en) One-chip microcomputer
JPS61228544A (en) Write protection system
JPH08202634A (en) Dma controller
JPH04359326A (en) History information recording system
JPS63103339A (en) Recording system for action history information on program
JPH0480860A (en) Program loading system
JPS59191662A (en) Detecting system for program runaway
JPH08123734A (en) Methods for checking occurrence of data destruction in data storing area and program runaway and methods for searching causes of data destruction occurrence and program runaway
JPH0359740A (en) Memory fault detection system
JPS63150732A (en) Program running supervisory equipment
JPS6160146A (en) Check system of microprogram
JPS63149704A (en) Programming device
JPH0353370A (en) Parallel processor for information processor