JPH03180938A - Cpu runaway detecting system - Google Patents

Cpu runaway detecting system

Info

Publication number
JPH03180938A
JPH03180938A JP1318811A JP31881189A JPH03180938A JP H03180938 A JPH03180938 A JP H03180938A JP 1318811 A JP1318811 A JP 1318811A JP 31881189 A JP31881189 A JP 31881189A JP H03180938 A JPH03180938 A JP H03180938A
Authority
JP
Japan
Prior art keywords
cpu
memory
address
data
runaway
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
JP1318811A
Other languages
Japanese (ja)
Inventor
Yasuyo Nishimura
安代 西村
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 JP1318811A priority Critical patent/JPH03180938A/en
Publication of JPH03180938A publication Critical patent/JPH03180938A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To detect the runaway of a CPU with high probability by latching data indicating an abnormal access by a latch circuit at the time of outputting the data from a memory. CONSTITUTION:The system is constituted of the CPU 1, a memory 2 connected to the CPU 1 through a bus 4 and outputting data stored in an address outputted from the CPU 1 to the bus 4 and the latch circuit 3 for latching data indicating an abnormal access at the time of outputting the data from the memory 2, and applying the data to the HALT or RESET terminal of the CPU 1. When the CPU 1 runs away and address [0001] whose access is inhibited is accessed, data '1' indicating the abnormal access is outputted from the memory 2 and latched by the latch circuit 3. Thereby, the CPU 1 is held or reset. Consequently, the runaway of the CPU 1 can be detected at a high probability.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はCPUの暴走を検出するCPU暴走検出方式に
関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a CPU runaway detection method for detecting CPU runaway.

〔従来の技術〕[Conventional technology]

多重化伝送装置等のCPUを利用した装置に於いては、
CPUが暴走すると自ハードウェアや他の部分に対する
異常制御が行なわれ、システム全体がダウンしてしまう
場合がある。このため、CPUが暴走した場合、それを
検出し、CPUをリセット或いはホールドすることが必
要になり、従来は次のようにしてCPUの暴走を検出す
るようにしていた。即ち、従来は、一定周期でCPUに
予め定められているアドレスをアクセスさせるようにし
、上記一定周期の間にCPUが上記アドレスをアクセス
しなかった場合、CPUが暴走したと判断するようにし
ている。
In devices using a CPU such as multiplex transmission equipment,
If the CPU goes out of control, it may control its own hardware or other parts abnormally, causing the entire system to go down. Therefore, when the CPU runs out of control, it is necessary to detect it and reset or hold the CPU. Conventionally, runaway of the CPU has been detected as follows. That is, conventionally, the CPU is made to access a predetermined address at a certain period, and if the CPU does not access the address during the certain period, it is determined that the CPU has gone out of control. .

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

上述したように、従来は一定周期の間にCPUが予め定
められたアドレスをアクセスしたか否かをチエツクする
ことにより、CPUの暴走を検出するようにしているた
め、CPUが暴走していても一定周期で上記アドレスが
アクセスされている場合はCPUの暴走を検出すること
ができないという問題があった。
As mentioned above, conventionally, CPU runaway is detected by checking whether the CPU has accessed a predetermined address within a certain period of time, so even if the CPU is running out of control, it will not be detected. There is a problem in that if the above address is accessed at regular intervals, CPU runaway cannot be detected.

本発明の目的は従来検出できなかった種類のCPUの暴
走を高い確率で検出することができるCPU暴走検出方
式を提供することにある。
An object of the present invention is to provide a CPU runaway detection method that can detect with high probability a type of CPU runaway that could not be detected conventionally.

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

本発明は上記目的を達成するため、 CPUの暴走を検出するCPU暴走検出方式に於いて、 特定アドレスに異常アクセスであることを示すデータが
格納され、前記CPUが出力したアドレスに格納されて
いるデータを出力するメモリと、該メモリから出力され
た異常アクセスであることを示すデータをラッチするラ
ッチ回路を設けたものである。
In order to achieve the above object, the present invention includes a CPU runaway detection method for detecting a CPU runaway, in which data indicating an abnormal access is stored at a specific address, and is stored at the address output by the CPU. It is provided with a memory that outputs data and a latch circuit that latches data indicating an abnormal access that is output from the memory.

〔作 用〕[For production]

特定アドレスに異常アクセスであることを示すデータが
格納されているメモリはCPUが出力したアドレスに格
納されているデータを出力し、ラッチ回路はメモリから
出力された異常アクセスであることを示すデータをラッ
チする。CPUが暴走した場合、アクセスの禁止されて
いるアドレスがアクセスされるという現象が高い確率で
生じる。
The memory in which data indicating an abnormal access is stored at a specific address outputs the data stored at the address output by the CPU, and the latch circuit outputs the data indicating an abnormal access output from the memory. Latch. When the CPU goes out of control, there is a high probability that a prohibited address will be accessed.

従って、上記メモリの特定アドレスをアクセスが禁止さ
れているアドレスとしておくことにより、CPUが暴走
した場合、高い確率で上記特定アドレスに格納されてい
る異常アクセスを示すデータがメモリから出力され、ラ
ッチ回路にラッチされるので、所定周期で予め定められ
たアドレスがアクセスされている場合でも、CPUに暴
走が発生していれば、CPUの暴走を高い確率で検出す
ることが可能となる。
Therefore, by setting the specific address of the memory as an address to which access is prohibited, if the CPU goes out of control, there is a high probability that the data indicating the abnormal access stored in the specific address will be output from the memory and the latch circuit Therefore, even if a predetermined address is accessed at a predetermined period, if a runaway occurs in the CPU, it is possible to detect the runaway of the CPU with a high probability.

〔実施例〕〔Example〕

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

第1図は本発明の実施例のブロック図であり、CPUI
と、バス4を介してCPUIと接続され、CPUIがバ
ス4に出力したアドレスに格納されているデータを出力
するメモリ2と、メモリ2から異常アクセスを示すデー
タが出力されることによりそのデータをラッチし、CP
UIのHALT端子或いはRESET端子に加えるラッ
チ回路3とから構成されている。
FIG. 1 is a block diagram of an embodiment of the present invention, in which the CPU
The memory 2 is connected to the CPU via the bus 4 and outputs the data stored at the address output by the CPU to the bus 4, and the data indicating an abnormal access is output from the memory 2. Latch and CP
It consists of a latch circuit 3 that is added to the HALT terminal or RESET terminal of the UI.

第2図はメモリ2の内容例を示す図であり、アドレス(
ADH)ro 000J 、  ro O01Jには異
常アクセスであることを示すデータ(DATA)”1”
が格納サレ、アドレス「0002」ro 003J 、
  ro 004J 、・・・にはデータ“0″が格納
されている。尚、アドレスro000J。
FIG. 2 is a diagram showing an example of the contents of memory 2, and shows the address (
ADH) ro 000J, ro O01J has data (DATA) “1” indicating abnormal access.
is stored, address "0002" ro 003J,
Data “0” is stored in ro 004J, . In addition, the address is ro000J.

rooolJはCPUIによるアクセスが禁止されてい
るアドレスであるとし、他のアドレスがCPUIによる
アクセスが許可されているアドレスであるとする。また
、メモリ2の内容はCPUIがバス4を介して設定する
ものである。
It is assumed that rooolJ is an address to which access by the CPUI is prohibited, and other addresses are addresses to which access by the CPUI is permitted. Further, the contents of the memory 2 are set by the CPU via the bus 4.

第3図は第1図のタイムチャートであり、以下各図を参
照して本実施例の動作を説明する。
FIG. 3 is a time chart of FIG. 1, and the operation of this embodiment will be explained below with reference to each figure.

CPUIが暴走した場合、アクセスを禁止されているア
ドレスをアクセスするという現象が高い確率で発生する
。本実施例ではアクセスが禁止されているアドレスはr
ooooJ、rooolJとなっている。
When the CPU goes out of control, there is a high probability that an address that is prohibited from being accessed will be accessed. In this example, the address to which access is prohibited is r
ooooJ, rooolJ.

第3図に示すように、CPUIがアクセスを許可されて
いるアドレスをアクセスしている間は、メモリ2.ラッ
チ回路3の出力は共に“0”となり、CPUIがホール
ド或いはリセットされることはない。しかし、CPUI
が暴走し、アクセスを禁止されているアドレスr000
1Jがアクセスされると、メモリ2から異常アクセスで
あることを示すデータ“1”が出力され、ラッチ回路3
にラッチされるので、CPUIはホールド或いはリセッ
トされる。
As shown in FIG. 3, while the CPUI is accessing an address that it is permitted to access, memory 2. Both outputs of the latch circuit 3 become "0", and the CPUI is not held or reset. However, the CPUI
Address r000 is out of control and access is prohibited
When 1J is accessed, data "1" indicating an abnormal access is output from the memory 2, and the latch circuit 3
Since the CPUI is latched, the CPUI is held or reset.

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

以上説明したように、本発明は、CPUが暴走した場合
、アクセスの禁止されているアドレスがアクセスされる
という現象が高い確率で生しることに着目し、CPUが
アクセスを禁止されているアドレスに異常アクセスを示
すデータが格納され、CPUが出力したアドレスに格納
されているデータを出力するメモリを設け、メモリから
異常アクセスを示すデータが出力された場合、それをラ
ッチ回路でラッチするようにしたものであるので、所定
周期で予め定められたアドレスがアクセスされている場
合でも、CPUに暴走が発生していれば、ラッチ回路の
内容に基づいて高い確率でCPUの暴走を検出すること
ができる効果がある。また、本発明によれば、CPUに
よるアクセスが禁止されているアドレスが変更された場
合に於いても、異常アクセスを示すデータを格納するア
ドレスを変更するだけで対処できる効果もある。
As explained above, the present invention focuses on the fact that when a CPU goes out of control, there is a high probability that an address that is prohibited from accessing will be accessed. A memory is provided in which data indicating an abnormal access is stored, and a memory is provided to output the data stored in the address output by the CPU, and when data indicating an abnormal access is output from the memory, it is latched by a latch circuit. Therefore, even if a predetermined address is accessed at a predetermined period, if a CPU runaway occurs, it is possible to detect the CPU runaway with a high probability based on the contents of the latch circuit. There is an effect that can be done. Further, according to the present invention, even if an address that is prohibited from being accessed by the CPU is changed, the problem can be dealt with simply by changing the address that stores the data indicating the abnormal access.

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

第1図は本発明の実施例のブロック図、第2図はメモリ
の内容例を示す図及び、第3図は第1図のタイムチャー
トである。 図に於いて、1・・・CPU、2・・・メモリ、3・・
・ラッチ回路、4・・・ハス。
FIG. 1 is a block diagram of an embodiment of the present invention, FIG. 2 is a diagram showing an example of memory contents, and FIG. 3 is a time chart of FIG. 1. In the diagram, 1...CPU, 2...Memory, 3...
・Latch circuit, 4... Lotus.

Claims (1)

【特許請求の範囲】 CPUの暴走を検出するCPU暴走検出方式に於いて、 特定アドレスに異常アクセスであることを示すデータが
格納され、前記CPUが出力したアドレスに格納されて
いるデータを出力するメモリと、該メモリから出力され
た異常アクセスであることを示すデータをラッチするラ
ッチ回路とを含むことを特徴とするCPU暴走検出方式
[Claims] In a CPU runaway detection method for detecting runaway of a CPU, data indicating an abnormal access is stored at a specific address, and the data stored at the address output by the CPU is output. A CPU runaway detection method comprising a memory and a latch circuit that latches data indicating an abnormal access output from the memory.
JP1318811A 1989-12-11 1989-12-11 Cpu runaway detecting system Pending JPH03180938A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1318811A JPH03180938A (en) 1989-12-11 1989-12-11 Cpu runaway detecting system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1318811A JPH03180938A (en) 1989-12-11 1989-12-11 Cpu runaway detecting system

Publications (1)

Publication Number Publication Date
JPH03180938A true JPH03180938A (en) 1991-08-06

Family

ID=18103210

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1318811A Pending JPH03180938A (en) 1989-12-11 1989-12-11 Cpu runaway detecting system

Country Status (1)

Country Link
JP (1) JPH03180938A (en)

Similar Documents

Publication Publication Date Title
EP0266836B1 (en) Data processing system including a watch-dog circuit
EP3488346B1 (en) Anomaly detection using sequences of system calls
JPH03180938A (en) Cpu runaway detecting system
US10565076B2 (en) Device for supervising and initializing ports
JP3214079B2 (en) CPU abnormality detection device
JP2508305B2 (en) Initial value determination device
JPS62106552A (en) Loop detector
JPH05274141A (en) Program loading system
JP2870202B2 (en) Method and apparatus for mutual monitoring between processors
JPH0410727A (en) Data order protecting circuit
JPS63198437A (en) Polling system
JPS62175834A (en) Detecting circuit for runaway of central processing unit
JPS60239840A (en) False fault generator
JPH04123160A (en) Receiving data processing system
JPH03156545A (en) Cpu system
CN115118464A (en) Method and device for detecting defect host, electronic equipment and storage medium
CN117688551A (en) Startup path white list updating method and device, electronic equipment and storage medium
JPH01251254A (en) Interruption request generating system
JPH01169642A (en) Runaway detecting circuit
JPH103786A (en) Dram control circuit
JPH07160591A (en) Memory monitoring system
JPH0428100A (en) Rom test circuit
JPH01161547A (en) Operating state storing method
JPH0223459A (en) Memory access error detecting circuit for multiprocessor system
JPS59194247A (en) Abnormality detecting method of computer structure