JPS63226745A - Processor system - Google Patents

Processor system

Info

Publication number
JPS63226745A
JPS63226745A JP62059985A JP5998587A JPS63226745A JP S63226745 A JPS63226745 A JP S63226745A JP 62059985 A JP62059985 A JP 62059985A JP 5998587 A JP5998587 A JP 5998587A JP S63226745 A JPS63226745 A JP S63226745A
Authority
JP
Japan
Prior art keywords
abnormality
program
abnormality analysis
analysis information
analyzing information
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
JP62059985A
Other languages
Japanese (ja)
Inventor
Takao Kawashima
川島 隆雄
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.)
Toshiba Corp
Original Assignee
Toshiba 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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP62059985A priority Critical patent/JPS63226745A/en
Publication of JPS63226745A publication Critical patent/JPS63226745A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To accurately detect the cause of a fault even during the execution of a complex program by storing prescribed programs corresponding to two steps or more in the past in a rewritable non-volatile memory. CONSTITUTION:The rewritable non-volatile memory (E<2>PROM) 4 has a capacity capable of storing abnormality analyzing information obtained when at least two steps of program are executed. A storing means 7 detects a program relating to the execution of each step, various status and other necessary signals at the time of the execution and stores these abnormality analyzing information in the E<2>PROM 4 in the order of addresses. At that time, a flag is set up in latest abnormality analyzing information. When a runway detecting part 5 detects the runaway of a microprocessor and a system is stopped, the cause of abnormality can be detected accurately retroactively to the past since the abnormality analyzing information is left in the E<2>PROM 4.

Description

【発明の詳細な説明】 「発明の目的] (産業上の利用分野〉 この発明は、マイクロコンピュータなどの如く、プログ
ラム制御により動作するプロセッサを具備したプロセッ
サシステムに関するものでおる。
DETAILED DESCRIPTION OF THE INVENTION OBJECTS OF THE INVENTION (Industrial Field of Application) The present invention relates to a processor system, such as a microcomputer, that includes a processor that operates under program control.

(従来の技術) 従来、マイクロプロセッサを含んだマイクロコンピュー
タでは、システムに異常が生じると、システムを停止し
、マイクロプロセッサ内のレジスタからその内容を取出
すようにして、異常原因を検出するために必要な異常解
析用情報を得ていた。しかしながら、このようなプロセ
ッサシステムによると、異常解析用情報としては、シス
テムが停止したときのみの、マイクロプロセッサ内のレ
ジスタの情報が得られるだけでおり、複雑なプログラム
を実行していた場合には、異常原因の検出が不可能なこ
とがあった。
(Prior Art) Conventionally, in a microcomputer including a microprocessor, when an abnormality occurs in the system, the system is stopped and the contents are retrieved from the register in the microprocessor, which is necessary to detect the cause of the abnormality. Information for abnormality analysis was obtained. However, according to such a processor system, the information for abnormality analysis can only be obtained from register information in the microprocessor only when the system is stopped, and when a complex program is running. , it was sometimes impossible to detect the cause of the abnormality.

(発明が解決しようとする問題点) このように、従来のプロセッサシステムによると、シス
テムが貨常停止したときのプロセッサ内レジスタの内容
が、異常解析用情報として得られる程度でおり、複′a
なプログラムを実行していた場合などには、的確な異常
解析を行うことができないという欠点があった。本発明
は、このような従来のプロセッサシステムの欠点に鑑み
なされたもので、その目的は、複雑なプログラムを実行
している場合にも、的確な異常原因の検出を行い得る情
報を収集できるプロセッサシステムを提供することでお
る。
(Problems to be Solved by the Invention) As described above, according to the conventional processor system, the contents of the registers in the processor when the system stops normally can only be obtained as information for abnormality analysis, and
This method has the disadvantage that accurate abnormality analysis cannot be performed when a program is being executed. The present invention was made in view of the shortcomings of conventional processor systems, and the purpose is to provide a processor that can collect information that can accurately detect the cause of an abnormality even when a complex program is being executed. By providing a system.

[発明の構成] (問題点を解決するための手段) 本発明では、プログラム制御により動作するプロセッサ
と、システムの異常原因を検出するために必要な異常解
析用情報を、少なくとも2ステップのプログラムを実行
したとき得られるだけ格納可能な容量を有し、書換え可
能な不揮発性メモリと、システムが動作している場合に
、前記異常解析用情報を上記不揮発性メモリへ格納する
格納手段とを具備させて、プロセッサシステムを構成し
た。
[Structure of the Invention] (Means for Solving the Problems) In the present invention, a processor that operates under program control and abnormality analysis information necessary for detecting the cause of abnormality in the system are provided by a program of at least two steps. A rewritable non-volatile memory having a storage capacity as much as can be obtained when executed, and a storage means for storing the abnormality analysis information in the non-volatile memory when the system is operating. and configured the processor system.

(作用) 上記構成のプロセッサシステムによると、少なくとも2
ステップのプログラムを実行したとき得られるだけ、異
常解析用情報が不揮発性メモリに格納されており、異常
停止した場合、この情報を取出し可能である。
(Operation) According to the processor system having the above configuration, at least two
Abnormality analysis information obtained when the step program is executed is stored in the nonvolatile memory, and this information can be retrieved in the event of an abnormal stop.

(実施例) 以下、図面を参照して本発明の一実施例を説明する。第
1図は、本発明の一実施例のブロック図である。同図に
おいて、1はマイクロプロセッサを示す。マイクロプロ
セッサ1には、主メモリ2が接続されており、マイクロ
プロセッサ1は、主メモリ2内のプログラムに基づいて
処理を行う。
(Example) Hereinafter, an example of the present invention will be described with reference to the drawings. FIG. 1 is a block diagram of one embodiment of the present invention. In the figure, 1 indicates a microprocessor. A main memory 2 is connected to the microprocessor 1, and the microprocessor 1 performs processing based on programs in the main memory 2.

マイクロプロセッサ1には、バス3を介して、書換可能
な不揮発性メモリであるE2FROM4、暴走検出部5
、入出力機器6が接続されている。
The microprocessor 1 is connected via a bus 3 to an E2FROM 4, which is a rewritable nonvolatile memory, and a runaway detection unit 5.
, input/output equipment 6 are connected.

E2FROM4には、マイクロプロセッサ1と主メモリ
2とで、構成される格納手段7により、システムの異常
原因を検出するために必要な異常解析用情報が格納され
る。暴走検出部5は、例えば、ウォッチドッグタイマ等
であり、マイクロプロセッサ1の暴走を検出し、システ
ムを停止させる。
In the E2FROM 4, abnormality analysis information necessary for detecting the cause of abnormality in the system is stored by a storage means 7 composed of the microprocessor 1 and the main memory 2. The runaway detection unit 5 is, for example, a watchdog timer or the like, and detects runaway of the microprocessor 1 and stops the system.

入出力機器6は、データの入力または出力を行うもので
める。E2PROM4は、少なくとも2ステップのプロ
グラムを実行したときに得られる異常解析用情報を格納
可能な容量を有している。格納手段7は、各ステップの
プログラムの実行に際して、実行に係るプログラム、各
種ステータス、その他必要な信号の状態(Hかしか)を
検出し、E2PROM4に書込む。このとき、格納手段
7は、異常解析用情報を、次のようにして格納する。
The input/output device 6 is used to input or output data. The E2PROM 4 has a capacity capable of storing abnormality analysis information obtained when a program of at least two steps is executed. When the program of each step is executed, the storage means 7 detects the program related to execution, various statuses, and other necessary signal states (H) and writes them into the E2PROM 4. At this time, the storage means 7 stores the abnormality analysis information as follows.

E−FROM4のアドレスが第2図の如く、Oからnま
でであるとすると、システムが立上げられてから最初の
プログラムの実行に際しては、第0番地から異常解析情
報の格納を開始する。以下、第1、第2、第3、・・・
、第n番地と異常解析情報の格納を続け、第n番地への
格納がなされると、次には、再び第0番地から格納を行
う。尚、最新の異常解析用情報には、フラグをセットし
ておく。
Assuming that the addresses of the E-FROM 4 are from O to n as shown in FIG. 2, when the first program is executed after the system is started up, storage of abnormality analysis information is started from address 0. Below, the first, second, third,...
, the abnormality analysis information continues to be stored at the nth address, and when the storage at the nth address is completed, the storage is performed again from the 0th address. Note that a flag is set for the latest abnormality analysis information.

このようなプロセッサシステムにおいて、システムが立
上げられた以降には、マイクロプロセッサ1によるシス
テムが本来必要とする処理を行うとともに、格納手段7
として動作する。このため、システムが立上げられてか
ら一定時間が経過した後には、E2FROM4内に異常
解析用情報が満杯に格納された状態となっている。ある
とき、暴走検出部5が、マイクロプロセッサ1の暴走を
検出してシステムを停止させたとする。すると、この暴
走検出時より、過去の所定数のステップについて、異常
解析情報がE2FROM4に残されている。そこで、オ
ペレータは、図示せぬ出力装置を用いてE2FROM4
内の異常解析用情報をアドレス順に出力させ、これによ
り異常原因の検出を行う。つまり、出力された結果にお
いては、最新の異常解析情報にはフラグがセットされ、
かつ、アドレス順に格納された異常解析情報が得られる
から、マイクロプロセッサ1が、どのようなプログラム
をどのように実行し、暴走に敗ったのか、過去所定ステ
ップにまで遡って解析でき異常原因の検出に極めて効果
的でおる。またE” FROM4は、システム停止時に
電源断とされても、内容が消滅せず、便利でおる。
In such a processor system, after the system is started up, the microprocessor 1 performs processing originally required by the system, and the storage means 7
operates as Therefore, after a certain period of time has passed since the system was started up, the E2FROM 4 is fully stored with information for abnormality analysis. Suppose that at some point, the runaway detection section 5 detects a runaway in the microprocessor 1 and stops the system. Then, abnormality analysis information is left in the E2FROM 4 for a predetermined number of past steps from the time when this runaway was detected. Therefore, the operator uses an output device (not shown) to output data from E2FROM4.
The abnormality analysis information within is output in address order, and the cause of the abnormality is detected. In other words, in the output results, a flag is set for the latest abnormality analysis information,
In addition, since the abnormality analysis information stored in address order can be obtained, it is possible to trace back to a predetermined step in the past and analyze what program the microprocessor 1 executed and how it ran out of control. It is extremely effective for detection. Furthermore, E"FROM4 is convenient because its contents will not be lost even if the power is cut off when the system is stopped.

[発明の効果] 以上説明したように、本発明によれば、書換え可能な不
揮発性メモリに、過去2ステップ以上の所定ステップの
プログラム実行に係る異常解析用情報が残されるので、
プロセッサがどのようにしてプログラムを実行していた
ことにより異常となったのか、過去に遡って検出でき、
的確な異常原因の検出が可能となる。
[Effects of the Invention] As explained above, according to the present invention, abnormality analysis information related to the program execution of two or more predetermined steps in the past is left in the rewritable nonvolatile memory.
It is possible to go back in time and detect how the processor was running the program that led to the abnormality.
It becomes possible to accurately detect the cause of the abnormality.

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

第1図は本発明の一実施例のブロック図、第2図は第1
図の要部のメモリマツプでおる。 1・・・マイクロプロセッサ  2・・・主メモリ3・
・・バス         4・・・E2PROM5・
・・暴走検出部      6・・・入出力機器7・・
・格納手段 代理人 弁理士  則 近 憲 借 問  山王 − 第1図 第2図
FIG. 1 is a block diagram of one embodiment of the present invention, and FIG. 2 is a block diagram of an embodiment of the present invention.
The main part of the figure is a memory map. 1...Microprocessor 2...Main memory 3.
・・Bus 4・E2PROM5・
... Runaway detection section 6 ... Input/output device 7 ...
・Storage Means Agent Patent Attorney Nori Chika Norihiro Sanno - Figure 1 Figure 2

Claims (2)

【特許請求の範囲】[Claims] (1)プログラム制御により動作するプロセッサと、シ
ステムの異常原因を検出するために必要な異常解析用情
報を、少なくとも2ステップのプログラムを実行したと
き得られるだけ格納可能な容量を有し、書換え可能な不
揮発性メモリと、システムが動作している場合に、前記
異常解析用情報を前記不揮発性メモリへ格納する格納手
段とを具備したことを特徴とするプロセッサシステム。
(1) A processor that operates under program control and a rewritable capacity that can store at least as much information as can be obtained by executing a two-step program for abnormality analysis information necessary to detect the cause of system abnormality. 1. A processor system comprising: a nonvolatile memory; and storage means for storing the abnormality analysis information in the nonvolatile memory when the system is operating.
(2)格納手段は、異常解析用情報を、不揮発性メモリ
の所定アドレスから順次にアドレスを更新して格納し、
アドレスが一周して再び前記所定アドレスへ戻るように
して格納を行うことを特徴とする特許請求の範囲第(1
)項記載のプロセッサシステム。
(2) the storage means stores the abnormality analysis information by sequentially updating the address starting from a predetermined address in the nonvolatile memory;
Claim 1 (1) characterized in that storage is performed so that the address goes around and returns to the predetermined address again.
Processor system described in section ).
JP62059985A 1987-03-17 1987-03-17 Processor system Pending JPS63226745A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62059985A JPS63226745A (en) 1987-03-17 1987-03-17 Processor system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62059985A JPS63226745A (en) 1987-03-17 1987-03-17 Processor system

Publications (1)

Publication Number Publication Date
JPS63226745A true JPS63226745A (en) 1988-09-21

Family

ID=13128973

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62059985A Pending JPS63226745A (en) 1987-03-17 1987-03-17 Processor system

Country Status (1)

Country Link
JP (1) JPS63226745A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005062182A1 (en) * 2003-12-19 2005-07-07 Renesas Technology Corp. Semiconductor integrated circuit device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005062182A1 (en) * 2003-12-19 2005-07-07 Renesas Technology Corp. Semiconductor integrated circuit device

Similar Documents

Publication Publication Date Title
JPS63226745A (en) Processor system
JPS60159951A (en) Tracing system in information processing device
JPS6115239A (en) Processor diagnosis system
JPH0665941U (en) Program operating device
JPS6211745B2 (en)
JPS63193260A (en) Host processor monitoring system for loosely coupled multiprocessor system
JPS6015749A (en) In-line tmp system
JPH1011317A (en) Digital controller
JPH01243132A (en) System for processing trouble
JPH01161544A (en) Program tracing system
JPH01156839A (en) Data processor
JPH0772874B2 (en) Interrupt receiving device
JPS62241034A (en) Microprogram controller
JPS62249242A (en) Memory dump system for computer
JPH02122352A (en) Diagnostic method for input/output operation
JPS6278666A (en) System for detecting abnormality of processor
JPH01271855A (en) Peripheral controller
JPS63193235A (en) Inspecting method for condition code
JPS6227421B2 (en)
JPH08106406A (en) Runaway detecting device for multitrask program
JPS5924355A (en) Branch trace history processing system
JPH0340039A (en) Firmware diagnostic device
JPS61177548A (en) Retrying control system
JPH0413728B2 (en)
JPS62175838A (en) Collecting system for shift-out data