JPH07230392A - Self-diagnostic system for processor - Google Patents

Self-diagnostic system for processor

Info

Publication number
JPH07230392A
JPH07230392A JP6020738A JP2073894A JPH07230392A JP H07230392 A JPH07230392 A JP H07230392A JP 6020738 A JP6020738 A JP 6020738A JP 2073894 A JP2073894 A JP 2073894A JP H07230392 A JPH07230392 A JP H07230392A
Authority
JP
Japan
Prior art keywords
instruction
processor
code
rule
execution
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.)
Granted
Application number
JP6020738A
Other languages
Japanese (ja)
Other versions
JP2990008B2 (en
Inventor
Hiroshi Yoshida
寛 吉田
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 Communication Systems Ltd
Original Assignee
NEC Communication Systems 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 NEC Communication Systems Ltd filed Critical NEC Communication Systems Ltd
Priority to JP6020738A priority Critical patent/JP2990008B2/en
Publication of JPH07230392A publication Critical patent/JPH07230392A/en
Application granted granted Critical
Publication of JP2990008B2 publication Critical patent/JP2990008B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)
  • Multi Processors (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

PURPOSE:To detect the fault of a processor at all times by the processor by itself by comparing an instruction peculiar code generated according to a peculiar rule before the execution of the instruction of the processor with one after the execution of the instruction and reporting an alarm at the time of the occurrence of a difference between them. CONSTITUTION:When the processor fetches an instruction from an instruction storage memory, an instruction code generating part 1 generates the instruction peculiar code in accordance with the determined rule and inputs it to a code comparison part 4; and when the fetched instruction is executed in the processor by an instruction execution part 2, an executed instruction code generating part 3 generates the instruction peculiar code in accordance with the opposite rule of the instruction code generating part 1 and inputs it to the code comparison part 4. The code comparison part 4 compares the instruction peculiar code generated by the instruction code generating part 1 and that generated by the execution instruction code generating part 3 with each other to observe the difference; and when the code comparison part 4 reports the occurrence of the difference between them to an alarm generating part 5 in the case of the occurrence of the difference, the alarm generating part 5 generates an alarm to report it to the outside.

Description

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

【0001】[0001]

【産業上の利用分野】本発明はプロセッサの自己診断方
式に関し、特にプロセッサと、このプロセッサが実行す
る命令を格納する命令格納メモリとを備えるシステムに
おけるプロセッサの自己診断方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a self-diagnosis method for a processor, and more particularly to a self-diagnosis method for a processor in a system including a processor and an instruction storage memory for storing instructions executed by the processor.

【0002】[0002]

【従来の技術】従来、オンライン状態にあるプロセッサ
の診断方式においては、2台以上の同一機能を有するプ
ロセッサを接続して並列同時動作を行い、その並列同時
動作の結果を観測してプロセッサを診断する手法と、メ
モリに格納してある診断プログラムを実行させ、その結
果を判定して診断する手法とが採られている。
2. Description of the Related Art Conventionally, in a method of diagnosing a processor that is in an online state, two or more processors having the same function are connected to perform a parallel simultaneous operation, and the result of the parallel simultaneous operation is observed to diagnose the processor. And a method of executing a diagnostic program stored in the memory and determining the result to make a diagnosis.

【0003】例えば、特開平2−306362号公報に
所載の「マルチプロセッサシステム」では、各プロセッ
サ毎に故障の自己診断を実行するとともに、この自己診
断結果をステータスレジスタを介してシステム制御プロ
セッサに通知し、コントロールレジスタを介して各プロ
セッサとシステムバスとの接続をシステム制御プロセッ
サからの制御によって実行し、かつ自己診断中のプロセ
ッサをシステムバスから切り放して自己診断の結果が正
常と判断された時点においてシステムバスに接続するよ
うに構成している。
For example, in the "multiprocessor system" disclosed in Japanese Patent Laid-Open No. 2-306362, a self-diagnosis of a failure is executed for each processor, and the self-diagnosis result is sent to a system control processor via a status register. When a notification is sent, each processor is connected to the system bus via the control register under the control of the system control processor, and the processor under self-diagnosis is disconnected from the system bus and the result of the self-diagnosis is determined to be normal. In, it is configured to connect to the system bus.

【0004】また、特開平4−112236号公報に所
載の「プロセッサの故障診断装置」では、プロセッサの
通常動作中にテストの開始を指令する命令を実行するこ
とによって、全セルフテストを複数に分割したそれぞれ
の単位セルフテストをプロセッサの空き時間を利用して
通常処理の合い間に行い、全セルフテストを離散的に行
うようにしており、その実施例によれば、通常処理の主
要構成要素の他に、セルフテスト動作の主要構成要素と
を備えている。
Further, in the "processor failure diagnosis device" disclosed in Japanese Patent Laid-Open No. 4-112236, a plurality of all self-tests are executed by executing an instruction for instructing the start of the test during normal operation of the processor. Each of the divided unit self-tests is performed between normal processes by utilizing the idle time of the processor, and all the self-tests are performed discretely. According to the embodiment, the main constituent elements of the normal process are In addition, the main components of the self-test operation are provided.

【0005】さらに、図2は従来のプロセッサの診断方
式の一例を示すマルチプロセッサシステムのブロック図
である。図2を参照すると、この従来例のマルチプロセ
ッサシステムは、プロセッサ21,22と、これらプロ
セッサ21,22の状態を監視してオンライン・オフラ
インとする制御を行う状態管理部23とを備えている。
Further, FIG. 2 is a block diagram of a multiprocessor system showing an example of a conventional processor diagnosis method. With reference to FIG. 2, this conventional multiprocessor system includes processors 21 and 22 and a state management unit 23 that monitors the states of these processors 21 and 22 to perform online / offline control.

【0006】通常、状態管理部23はプロセッサ21お
よび22を共にオンラインとして動作状態を監視してい
る。そして、一方のプロセッサ、例えばプロセッサ22
の診断を行うときには、状態管理部23はオンライン中
のプロセッサ22をオフラインとし、プロセッサ21に
プロセッサ22を診断するように指示を出す。プロセッ
サ21は診断プログラムを起動してプロセッサ22の診
断を実行していた。
[0006] Normally, the state management unit 23 monitors the operating state by bringing both the processors 21 and 22 online. Then, one processor, for example, the processor 22
When the diagnosis is performed, the state management unit 23 sets the processor 22 that is online to be offline and instructs the processor 21 to diagnose the processor 22. The processor 21 started the diagnostic program and executed the diagnosis of the processor 22.

【0007】[0007]

【発明が解決しようとする課題】しかしながら、これら
従来の手法は、いずれもハードウェア回路が複雑化する
ため、コストアップが避けられないという問題点があっ
た。
However, each of these conventional methods has a problem that the hardware circuit is complicated, and thus the cost increase cannot be avoided.

【0008】本発明の目的は、プロセッサの命令実行前
と命令実行後に固有ルールで生成された命令固有コード
を比較してその間の差異が発生した時点でアラームを報
告することにより、プロセッサの障害検出を1台で常時
行うことができるプロセッサの自己診断方式を提供する
ことにある。
An object of the present invention is to detect a fault in a processor by comparing the instruction peculiar code generated by the peculiar rule before and after the instruction execution of the processor and reporting an alarm when a difference between them occurs. It is to provide a self-diagnosis method of a processor that can always perform the above.

【0009】[0009]

【課題を解決するための手段】本発明によれば、プロセ
ッサと、このプロセッサが実行する命令を格納する命令
格納メモリとを備えるマルチプロセッサシステムにおい
て、前記プロセッサが前記命令格納メモリから前記命令
をフェッチしたときにこの命令と前記プロセッサによる
命令実行結果とを比較して前記プロセッサの障害を検出
した時点でアラームを生成して外部に通知する手段を備
えることを特徴とするプロセッサの自己診断方式が得ら
れる。
According to the present invention, in a multiprocessor system including a processor and an instruction storage memory for storing an instruction to be executed by the processor, the processor fetches the instruction from the instruction storage memory. In this case, a self-diagnosis method for a processor is provided, which comprises means for comparing this instruction with an instruction execution result by the processor and generating an alarm when the failure of the processor is detected and notifying the alarm to the outside. To be

【0010】また、前記プロセッサが前記命令格納メモ
リから命令をフェッチしたときに定められたルールに従
って命令固有コードを生成する命令コード生成部と、前
記フェッチした命令を実行する命令実行部と、この命令
実行時に前記命令コード生成部が生成時に使った前記ル
ールと逆のルールで命令固有コードを生成する実行命令
コード生成部と、前記命令コード生成部および前記実行
命令コード生成部からの前記命令固有コードを比較して
この間の差異を観測するコード比較部と、前記差異が検
出された時点でアラームを生成して外部に通知するアラ
ーム生成部とを備えることを特徴とするプロセッサの自
己診断方式が得られる。
Further, an instruction code generation unit for generating an instruction unique code according to a rule determined when the processor fetches an instruction from the instruction storage memory, an instruction execution unit for executing the fetched instruction, and this instruction. An execution instruction code generation unit that generates an instruction unique code according to a rule opposite to the rule used by the instruction code generation unit at the time of execution, and the instruction unique code from the instruction code generation unit and the execution instruction code generation unit A self-diagnosis method for a processor is provided, which comprises a code comparison unit for observing the difference between the two and an alarm generation unit for generating an alarm and notifying the outside when the difference is detected. To be

【0011】さらに、前記第1のルールはフェッチした
ときの前記命令の番号の昇順に前記命令固有コードを生
成するルールであり、前記第2のルールは前記命令実行
時の前記命令の番号の降順に前記命令固有コードを生成
するルールである構成としても良く、または前記第1の
ルールはフェッチしたときCRCを用いて命令コードか
ら前記命令固有コードを生成するルールであり、前記第
2のルールは前記命令実行時の結果から前記命令固有コ
ードを生成するルールである構成としても良い。
Further, the first rule is a rule for generating the instruction unique code in ascending order of the instruction number when fetched, and the second rule is a descending order of the instruction number when executing the instruction. May be a rule for generating the instruction specific code, or the first rule is a rule for generating the instruction specific code from the instruction code by using a CRC when fetched, and the second rule is The rule may be a rule for generating the instruction unique code from the result at the time of executing the instruction.

【0012】[0012]

【実施例】次に、本発明について図面を参照して説明す
る。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, the present invention will be described with reference to the drawings.

【0013】図1は本発明のプロセッサの自己診断方式
の一実施例を示すブロック図である。
FIG. 1 is a block diagram showing an embodiment of a self-diagnosis system for a processor of the present invention.

【0014】図1を参照すると、本実施例はプロセッサ
(図示省略)が命令格納メモリ(図示省略)から命令を
フェッチしたときに定められた第1のルールに従って命
令固有コードを生成する命令コード生成部1と、フェッ
チした命令を実行する命令実行部2と、命令実行時に命
令コード生成部1が生成時に使った第1のルールと逆の
第2のルールで命令固有コードを生成する実行命令コー
ド生成部3と、命令コード生成部1からの命令固有コー
ドと実行命令コード生成部3からの命令固有コードとを
比較してこの間の差異を観測するコード比較部4と、差
異が検出された時点でアラームを生成して外部に通知す
るアラーム生成部5とを備えている。
Referring to FIG. 1, in the present embodiment, an instruction code generation for generating an instruction specific code according to a first rule defined when a processor (not shown) fetches an instruction from an instruction storage memory (not shown). Unit 1, an instruction execution unit 2 that executes the fetched instruction, and an execution instruction code that generates an instruction unique code by a second rule that is the reverse of the first rule used by the instruction code generation unit 1 when executing the instruction The generation unit 3, a code comparison unit 4 that compares the instruction specific code from the instruction code generation unit 1 and the instruction specific code from the execution instruction code generation unit 3 and observes the difference between them, and the time when the difference is detected And an alarm generation unit 5 for generating an alarm and notifying it to the outside.

【0015】続いて本実施例の動作について説明する。Next, the operation of this embodiment will be described.

【0016】プロセッサが命令格納メモリから命令をフ
ェッチしたときに、命令コード生成部1は命令固有コー
ドを定められた第1のルールに従って生成してコード比
較部4へ入力する。
When the processor fetches an instruction from the instruction storage memory, the instruction code generation unit 1 generates an instruction unique code according to a predetermined first rule and inputs it to the code comparison unit 4.

【0017】また、プロセッサ内でフェッチした命令を
命令実行部2で実行したときに実行命令コード生成部3
は命令コード生成部1が生成時に使った第1のルールと
は逆の第2のルールで命令固有コードを生成してコード
比較部4へ入力する。
When the instruction execution unit 2 executes the instruction fetched in the processor, the execution instruction code generation unit 3
Generates an instruction unique code according to a second rule which is the reverse of the first rule used by the instruction code generation unit 1 and inputs it to the code comparison unit 4.

【0018】コード比較部4では、命令コード生成部1
で生成された命令固有コードと実行命令コード生成部で
生成された命令固有コードとを比較して差異を観測す
る。
In the code comparison unit 4, the instruction code generation unit 1
The instruction peculiar code generated in (1) and the instruction peculiar code generated in the execution instruction code generation unit are compared to observe the difference.

【0019】そして、差異があった時点でコード比較部
4はアラーム生成部5へこれを報告すると、アラーム生
成部5はアラームを生成して外部へ通知する。
Then, when there is a difference, the code comparison unit 4 reports this to the alarm generation unit 5, and the alarm generation unit 5 generates an alarm and notifies it to the outside.

【0020】したがって、本実施例では、1台のプロセ
ッサで常時自己の障害を診断することができ、障害時に
は直ちに外部へアラームを通知することができる。
Therefore, in this embodiment, one processor can always diagnose its own failure, and immediately notify an external alarm when a failure occurs.

【0021】なお、上記第1のルールはプロセッサが命
令格納メモリからフェッチしたときの命令の番号の昇順
に命令固有コードを生成するルールであり、上記第2の
ルールはこの命令実行時の命令の番号の降順に命令固有
コードを生成するルールであってもよい。または、上記
第1のルールはプロセッサが命令格納メモリからフェッ
チしたときCRCコードを用いて命令コードから命令固
有コードを生成するルールであり、上記第2のルールは
この命令実行時の結果から命令固有コードを生成するル
ールであってもよい。
The first rule is a rule for generating instruction-specific codes in ascending order of the instruction numbers when the processor fetches them from the instruction storage memory, and the second rule is for the instructions when the instruction is executed. It may be a rule that the instruction specific code is generated in descending order of numbers. Alternatively, the first rule is a rule for generating an instruction unique code from the instruction code by using the CRC code when the processor fetches it from the instruction storing memory, and the second rule is the instruction unique from the result at the time of executing this instruction. It may be a rule that generates code.

【0022】[0022]

【発明の効果】以上説明したように本発明は、プロセッ
サと、このプロセッサが実行する命令を格納する命令格
納メモリとを備えるマルチプロセッサシステムにおい
て、プロセッサが命令格納メモリから命令をフェッチし
たときにこの命令とプロセッサによる命令実行結果とを
比較してプロセッサの障害を検出した時点でアラームを
生成して外部に通知する手段を備えることにより、オン
ライン状態のプロセッサを停止させずに各プロセッサは
常時自己の障害を診断することができるので、安全性お
よび信頼性の高いマルチプロセッサシステムを簡単なハ
ードウェア構成で構築することが可能となり、これに伴
いコストが大幅に低減されるという効果を有する。
As described above, according to the present invention, in a multiprocessor system including a processor and an instruction storing memory for storing an instruction executed by the processor, when the processor fetches an instruction from the instruction storing memory, By providing a means for comparing an instruction with the instruction execution result by the processor and generating an alarm when a failure of the processor is detected and notifying the outside, each processor always keeps its own status without stopping the processor in the online state. Since it is possible to diagnose a failure, it is possible to construct a multiprocessor system having high safety and reliability with a simple hardware configuration, which brings about an effect of significantly reducing the cost.

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

【図1】本発明のプロセッサの自己診断方式の一実施例
を示すブロック図である。
FIG. 1 is a block diagram showing an embodiment of a self-diagnosis system of a processor of the present invention.

【図2】従来のプロセッサの診断方式の一例を示すマル
チプロセッサシステムのブロック図である。
FIG. 2 is a block diagram of a multiprocessor system showing an example of a conventional processor diagnosis method.

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

1 命令コード生成部 2 命令実行部 3 実行命令コード生成部 4 コード比較部 5 アラーム生成部 21,22 プロセッサ 23 状態管理部 1 Instruction Code Generation Unit 2 Instruction Execution Unit 3 Execution Instruction Code Generation Unit 4 Code Comparison Unit 5 Alarm Generation Unit 21, 22 Processor 23 State Management Unit

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 プロセッサと、このプロセッサが実行す
る命令を格納する命令格納メモリとを備えるマルチプロ
セッサシステムにおいて、前記プロセッサが前記命令格
納メモリから前記命令をフェッチしたときにこの命令と
前記プロセッサによる命令実行結果とを比較して前記プ
ロセッサの障害を検出した時点でアラームを生成して外
部に通知する手段を備えることを特徴とするプロセッサ
の自己診断方式。
1. A multiprocessor system comprising a processor and an instruction storage memory for storing an instruction to be executed by the processor, wherein the instruction and the instruction by the processor when the processor fetches the instruction from the instruction storage memory. A self-diagnosis method for a processor, comprising means for comparing an execution result and generating an alarm when the failure of the processor is detected and notifying the alarm to the outside.
【請求項2】 前記プロセッサが前記命令格納メモリか
ら命令をフェッチしたときに定められた第1のルールに
従って命令固有コードを生成する命令コード生成部と、
前記フェッチした命令を実行する命令実行部と、この命
令実行部が前記命令実行時に前記命令コード生成部が生
成時に使った前記第1のルールと逆の第2のルールで命
令固有コードを生成する実行命令コード生成部と、前記
命令コード生成部および前記実行命令コード生成部から
の前記命令固有コードを比較してこの間の差異を観測す
るコード比較部と、このコード比較部が前記差異を検出
した時点でアラームを生成して外部に通知するアラーム
生成部とを備えることを特徴とする請求項1記載のプロ
セッサの自己診断方式。
2. An instruction code generation unit that generates an instruction unique code according to a first rule defined when the processor fetches an instruction from the instruction storage memory,
An instruction execution unit that executes the fetched instruction and an instruction unique code that is generated by the instruction execution unit when the instruction is executed, using a second rule that is the reverse of the first rule that the instruction code generation unit uses when generating the instruction. An execution instruction code generation unit, a code comparison unit that compares the instruction specific codes from the instruction code generation unit and the execution instruction code generation unit, and observes a difference therebetween, and the code comparison unit detects the difference. The self-diagnosis method for a processor according to claim 1, further comprising: an alarm generation unit that generates an alarm at a time point and notifies the outside.
【請求項3】 前記第1のルールはフェッチしたときの
前記命令の番号の昇順に前記命令固有コードを生成する
ルールであり、前記第2のルールは前記命令実行時の前
記命令の番号の降順に前記命令固有コードを生成するル
ールであることを特徴とする請求項2記載のプロセッサ
の自己診断方式。
3. The first rule is a rule for generating the instruction unique code in ascending order of the instruction number when fetched, and the second rule is a descending order of the instruction number when executing the instruction. 3. The self-diagnosis method for a processor according to claim 2, wherein the rule is to generate the instruction specific code.
【請求項4】 前記第1のルールはフェッチしたときC
RCを用いて命令コードから前記命令固有コードを生成
するルールであり、前記第2のルールは前記命令実行時
の結果から前記命令固有コードを生成するルールである
ことを特徴とする請求項2記載のプロセッサの自己診断
方式。
4. The first rule is C when fetched.
3. A rule for generating the instruction specific code from an instruction code using RC, and the second rule is a rule for generating the instruction specific code from a result at the time of executing the instruction. Processor self-diagnosis method.
JP6020738A 1994-02-18 1994-02-18 Processor self-diagnosis method Expired - Fee Related JP2990008B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6020738A JP2990008B2 (en) 1994-02-18 1994-02-18 Processor self-diagnosis method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6020738A JP2990008B2 (en) 1994-02-18 1994-02-18 Processor self-diagnosis method

Publications (2)

Publication Number Publication Date
JPH07230392A true JPH07230392A (en) 1995-08-29
JP2990008B2 JP2990008B2 (en) 1999-12-13

Family

ID=12035546

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6020738A Expired - Fee Related JP2990008B2 (en) 1994-02-18 1994-02-18 Processor self-diagnosis method

Country Status (1)

Country Link
JP (1) JP2990008B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010106403A1 (en) 2009-03-17 2010-09-23 Toyota Jidosha Kabushiki Kaisha Failure diagnostic system, electronic control unit for vehicle, failure diagnostic method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010106403A1 (en) 2009-03-17 2010-09-23 Toyota Jidosha Kabushiki Kaisha Failure diagnostic system, electronic control unit for vehicle, failure diagnostic method
JP2010218277A (en) * 2009-03-17 2010-09-30 Toyota Motor Corp Failure diagnostic system, electronic control unit, failure diagnostic method
US8656216B2 (en) 2009-03-17 2014-02-18 Toyota Jidosha Kabushiki Kaisha Failure diagnostic system, electronic control unit for vehicle, failure diagnostic method

Also Published As

Publication number Publication date
JP2990008B2 (en) 1999-12-13

Similar Documents

Publication Publication Date Title
KR100296984B1 (en) Monitoring System For Electronic Control System
KR100279204B1 (en) Dual Controlling Method of Local Controller for An Automatic Control System and an Equipment thereof
JP2990008B2 (en) Processor self-diagnosis method
JPH08171507A (en) Abnormality monitoring method
JPH08202589A (en) Information processor and fault diagnostic method
JPS6290068A (en) Auxiliary monitor system
JPS61160071A (en) Self-diagnostic circuit of ic
JPH11250026A (en) Fault recovery method and its system for parallel multiprocessor system
JPH03282943A (en) Information processor
JPS61292457A (en) Diagnosing method for electronic exchange
JPS62139050A (en) Instruction test system by control of maintenance and diagnosis processor
JPH0276039A (en) Sampling system for trouble information
JPH02115946A (en) Logical unit
JP2005250524A (en) Computer system
JPH0844584A (en) Testing system for computer
JPH08161203A (en) Fault diagnostic system for ic for watchdog
JPS5916302B2 (en) Check device
JPH01189735A (en) Microprogram diagnosing system
JPH01216438A (en) Fault informing system
JPS63310047A (en) Error detection system for input/output device
JPH10124329A (en) Interruption monitor device
JPS6121550A (en) Test method of channel sub-system
JPH06284186A (en) Electronic device integrated with package
JP2000330830A (en) Method for detecting fault of cpu and monitoring circuit used for the method
JPH04293133A (en) Fault monitoring system in loosely coupled multi-processor system

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19990921

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees