JPH01199238A - Data processor - Google Patents

Data processor

Info

Publication number
JPH01199238A
JPH01199238A JP62240073A JP24007387A JPH01199238A JP H01199238 A JPH01199238 A JP H01199238A JP 62240073 A JP62240073 A JP 62240073A JP 24007387 A JP24007387 A JP 24007387A JP H01199238 A JPH01199238 A JP H01199238A
Authority
JP
Japan
Prior art keywords
interrupt
circuit
error
request
interruption
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
JP62240073A
Other languages
Japanese (ja)
Inventor
Katsuaki Owada
大和田 克明
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 JP62240073A priority Critical patent/JPH01199238A/en
Publication of JPH01199238A publication Critical patent/JPH01199238A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To facilitate the collection of the state information at occurrence of an interruption by stopping the clocks of the related parts within a data processor when an interruption is detected. CONSTITUTION:When a mode signal 501 is set to '0', the signal lines 212 and 213 are set to '0'. Thus some factor of an interruption is registered into an interruption factor register 201. When an interruption request line 215 is set to '1' after an interruption request FF 209 is set to '1', an interruption request is given to an interruption control circuit 300. Then a signal line 412 is set at '1' in case some error is detected by a hardware error detecting circuit 400A. Thus a hardware error is reported to an error processing circuit 500 and the circuit 500 gives an instruction to a clock generating circuit 600 to stop the generation of clocks. In case an interruption request is produced with the signal 501 set to '1', no interruption request is given to the software and the action clocks are stopped for a data processor as a whole at that time point.

Description

【発明の詳細な説明】 (産業上の利用分野〕 本発明はデータ処理装置に関し、特に、ある事象の発生
を検出する割込検出回路と、該割込検出回路からの要求
によりソフトウェアへの割込報告を行う割込制御回路を
有するデータ処理装置に関する。
DETAILED DESCRIPTION OF THE INVENTION (Industrial Field of Application) The present invention relates to a data processing device, and in particular to an interrupt detection circuit that detects the occurrence of a certain event, and an interrupt detection circuit that detects the occurrence of a certain event, and that interrupts software according to a request from the interrupt detection circuit. The present invention relates to a data processing device having an interrupt control circuit that performs interrupt reporting.

〔従来の技術〕[Conventional technology]

通常、データ処理装置においである事象が発生した時、
その事象をソフトウェアに報告して特別の処理を要求す
るための割込処理機能があるが、割込要因を追求する上
で割込発生時点または割込検出時点のデータ処理装置内
の状態が重要な情報となるケースが多い。特に装置間イ
ンタフェース等において、何らかの故障により他系から
の異常状態を検出して通常割込報告する場合、その故障
原因を追求する上で、割込検出時点のインタフェース間
の状態を解析情報として採集する必要が生じる。そのた
めに多くの情報をソフトウェアから読出し可能とするた
めには、ハードウェア量を増加させて、割込発生時点の
データを保持しておくことが行なわれているが、ハード
ウェア量とのバランスから制約を受けることが多い。
Normally, when a certain event occurs in a data processing device,
There is an interrupt processing function that reports the event to the software and requests special processing, but the state inside the data processing device at the time of interrupt occurrence or interrupt detection is important in investigating the cause of the interrupt. In many cases, this information is useful. In particular, when an abnormal state is detected from another system due to some kind of failure in an interface between devices, etc. and a normal interrupt is reported, the state between the interfaces at the time of the interrupt detection is collected as analysis information in order to investigate the cause of the failure. The need arises. Therefore, in order to make it possible to read a large amount of information from software, the amount of hardware is increased and the data at the time of the interrupt is retained. However, due to the balance with the amount of hardware, Often subject to restrictions.

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

上述した従来のデータ処理装置は、割込が発生してもデ
ータ処理装置は停止せず、処理が続行されるため割込検
出時点の状態が消えてしまうのが普通で、それを防ぐた
めには、ハードウェア量をふやし、できるだけ多くの情
報を保持しておく手段が必要となり、ハードウェア量の
増加を招くという欠点がある。
In the conventional data processing device described above, even if an interrupt occurs, the data processing device does not stop and continues processing, so the state at the time the interrupt is detected usually disappears.To prevent this, However, this method requires a means to increase the amount of hardware and hold as much information as possible, which has the drawback of increasing the amount of hardware.

(問題点を解決するための手段〕 本発明の情報処理装置は、 前記割込検出回路において検出された割込原因を保持す
る割込原因レジスタと、 該割込原因レジスタの内容から前記割込制御回路に対す
る割込要求を発生して保持する割込要求フリップフロッ
プと、 該データ処理装置内で検出されたハードウェアエラー原
因を保持するエラーレジスタと、該ハードウェアエラー
の内容からエラー処理回路に対しハードウェアエラーを
報告するエラー報告発生回路と、 報告モード線が第1の論理レベルのとき、割込要求フリ
ップフロップの割込要求を割込として報告し、報告モー
ド線が第2の論理レベルのとき前記割込要求をハードウ
ェアエラーとしてエラー報告発生回路に出力する割込報
告変換回路と、ハードウェアエラー報告時、エラー処理
回路からクロック発生回路に対しクロック停止を指示す
るクロック停止線とを有している。
(Means for Solving the Problems) The information processing device of the present invention includes: an interrupt cause register that holds an interrupt cause detected in the interrupt detection circuit; An interrupt request flip-flop that generates and holds an interrupt request to the control circuit; an error register that holds the cause of a hardware error detected within the data processing device; and an error register that holds the cause of a hardware error detected in the data processing device; On the other hand, there is an error report generation circuit that reports a hardware error, and when the report mode line is at the first logic level, the interrupt request of the interrupt request flip-flop is reported as an interrupt, and the report mode line is at the second logic level. an interrupt report conversion circuit that outputs the interrupt request as a hardware error to the error report generation circuit when the hardware error is reported; and a clock stop line that instructs the clock generation circuit from the error processing circuit to stop the clock when a hardware error is reported. have.

〔作  用〕[For production]

報告モード線のモードを切換えて割込検出時ハードウェ
アエラーとして報告して、データ処理装置内の関連する
部分のクロックを停止させることにより、割込発生時点
の状態情報を採集し易くなり、エラー解析等に有効な情
報が得られる。
By switching the mode of the report mode line and reporting it as a hardware error when an interrupt is detected, and stopping the clocks of the relevant parts in the data processing device, it becomes easier to collect status information at the time the interrupt occurs, and errors can be detected. Information useful for analysis etc. can be obtained.

【実施例〕【Example〕

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

第2図は本発明のデータ処理装置の一実施例の要部のブ
ロック図、第1図は第2図の割込要求発生回路200、
ハードウェアエラー検出・報告回路400の部分を詳細
に示すブロック図である。
FIG. 2 is a block diagram of a main part of an embodiment of the data processing device of the present invention, and FIG. 1 shows the interrupt request generation circuit 200 of FIG.
4 is a block diagram showing in detail a portion of a hardware error detection/reporting circuit 400. FIG.

割込要求発生回路200はインタフェース700A。The interrupt request generation circuit 200 is an interface 700A.

700Bで割込検出回路100と接続され、インタフェ
ース700A、 700B等からある条件の検出して割
込要求を発生する回路で、割込検出回路100で検出さ
れた割込みが信号線101,102,103.104で
登録される割込原因レジスタ201と、割込要求フリッ
プフロップ209と、割込原因レジスタ201の内容を
チエツクし、レジスタ201内が全てOの時、即ち割込
要因が発生していない時、信号線207を論理1(信号
線101〜104のセット信号となる)とし、レジスタ
201内に割込要因が登録されると信号線107を論理
0とし、レジスタ201をロックするとともに、信号線
208を論理1とし、割込要求フリップフロップ209
を論理1にセットするゲート回路206と、モード信号
線501上のモード信号を入力とするゲート回路211
と、割込要求フリップフロップ209の出力信号線21
0とゲート回路211の出力信号線212の論理積をと
り、共に論理1のとき割込要求線215を論理1として
割込制御回路300に対して割込要求を行なうゲート回
路214と、割込要求フリップフロップ209の出力信
号1lA210とゲート回路211の出力信号線213
の否定論理積をとるゲート回路216で構成されている
。割込制御回路300は割込要求発生回路200からの
割込要求線215による割込要求によりインターフェー
ス800A、 800Bを介して要求処理を行ないソフ
トウェアに対して割込報告を行なう。ハードウェアエラ
ー検出・報告回路400は、データ処理装置内のハード
ウェアエラーを検出するハードウェアエラー検出回路4
00Aと、検出されたハードウェアエラーをエラー処理
回路500へ報告するハードウェアエラー報告回路40
0Bとからなる。
700B is connected to the interrupt detection circuit 100, and this circuit detects a certain condition from the interfaces 700A, 700B, etc. and generates an interrupt request.The interrupt detected by the interrupt detection circuit 100 is transmitted to the signal lines 101, 102, 103. Check the contents of the interrupt cause register 201, interrupt request flip-flop 209, and interrupt cause register 201 registered in .104, and if all registers 201 are O, that is, no interrupt cause has occurred. At this time, the signal line 207 is set to logic 1 (becomes a set signal for signal lines 101 to 104), and when an interrupt factor is registered in the register 201, the signal line 107 is set to logic 0, the register 201 is locked, and the signal Line 208 is logic 1 and interrupt request flip-flop 209
a gate circuit 206 that sets the logic 1 to logic 1, and a gate circuit 211 that receives the mode signal on the mode signal line 501 as an input.
and the output signal line 21 of the interrupt request flip-flop 209.
0 and the output signal line 212 of the gate circuit 211, and when both are logic 1, the interrupt request line 215 is set to logic 1 and an interrupt request is made to the interrupt control circuit 300. Output signal 1lA 210 of request flip-flop 209 and output signal line 213 of gate circuit 211
It is composed of a gate circuit 216 that performs the NAND operation. The interrupt control circuit 300 performs request processing via the interfaces 800A and 800B in response to an interrupt request from the interrupt request generating circuit 200 via the interrupt request line 215, and reports the interrupt to software. The hardware error detection/reporting circuit 400 is a hardware error detection circuit 4 that detects hardware errors within the data processing device.
00A and a hardware error reporting circuit 40 that reports the detected hardware error to the error processing circuit 500.
Consists of 0B.

ハードウェア報告回路400Bは、ハードウェアエラー
検出回路400Aで検出されたハードウェアエラーが報
告線401,402,403,404を介して登録され
るエラーレジスタ405と、エラーレジスタ405およ
びゲート回路216の出力信号線217の状態をチエツ
クし、信号線217が論理1で、信号線406〜409
がすべてOの時、即ちハードウェアエラーが検出されて
いない時、信号線411を論理1(信号線401〜40
4のセット信号となる)、エラー報告線412を論理0
とし、ハードウェアエラー検出回路400Aで何らかの
ハードウェアエラーが検出され、レジスタ405へ内容
が登録され、その結果信号線406〜409のいずれか
が論理0となった場合および信号線217が論理Oとな
った場合、信号線412を論理lとし、エラー処理回路
500ヘハードウエアエラーを報告するゲート回路41
0で構成されている。エラー処理回路500は信号線4
12によリバードウエアエラー報告を受けると、信号線
502を介してクロック発生回路600にクロックの停
止を指示し、また割込要求フリップフロップ209の割
込要求を割込として報告する場合にはモード信号線50
1のモード信号を論理Oとし、ハードウェアエラーとし
てエラー処理回路500に報告する場合には前記モード
信号を論理1とする。
The hardware report circuit 400B includes an error register 405 in which hardware errors detected by the hardware error detection circuit 400A are registered via report lines 401, 402, 403, and 404, and the outputs of the error register 405 and the gate circuit 216. Check the status of the signal line 217, the signal line 217 is logic 1, and the signal lines 406 to 409
are all O, that is, when no hardware error is detected, the signal line 411 is set to logic 1 (signal lines 401 to 40
4 set signal), the error report line 412 is set to logic 0.
If some hardware error is detected by the hardware error detection circuit 400A and the contents are registered in the register 405, and as a result, any of the signal lines 406 to 409 becomes a logic 0, and the signal line 217 becomes a logic O. If the error occurs, the gate circuit 41 sets the signal line 412 to logic l and reports the hardware error to the error processing circuit 500.
Consists of 0. The error processing circuit 500 is connected to the signal line 4
12, the clock generation circuit 600 is instructed to stop the clock via the signal line 502, and when the interrupt request from the interrupt request flip-flop 209 is to be reported as an interrupt, the mode signal line 50
A mode signal of 1 is set to logic O, and when the error is reported to the error processing circuit 500 as a hardware error, the mode signal is set to logic 1.

次に、本実施例の動作を説明する。Next, the operation of this embodiment will be explained.

(1)モード信号を論理0にした場合。(1) When the mode signal is set to logic 0.

この場合、信号線212は論理1、信号線213は論理
0となるので、割込原因レジスタ201に何らかの割込
原因が登録され、割込要求フリップフロップ209が論
理1になると、割込要求線215が論理1となり、割込
制御回路300へ割込要求が出力される。一方、このと
きゲート回路216の出力信号線217は論理1どなっ
ているので、ハードウェアエラー検出回路400Aで何
らかのハードウェアエラーが検出された場合、信号線4
12は論理1となり、エラー処理回路500ヘハードウ
エアエラーが報告される。エラー処理回路500はハー
ドウェアエラー報告を受けると信号線502によりクロ
ック発生回路600に対しクロック停止を指示する。
In this case, the signal line 212 becomes logic 1 and the signal line 213 becomes logic 0, so when some interrupt cause is registered in the interrupt cause register 201 and the interrupt request flip-flop 209 becomes logic 1, the interrupt request line becomes logic 1. 215 becomes logic 1, and an interrupt request is output to the interrupt control circuit 300. On the other hand, since the output signal line 217 of the gate circuit 216 is at logic 1 at this time, if any hardware error is detected by the hardware error detection circuit 400A, the signal line 217
12 becomes logic 1, and a hardware error is reported to the error processing circuit 500. When error processing circuit 500 receives a hardware error report, it instructs clock generation circuit 600 to stop the clock through signal line 502.

(2)モード信号線501を論理1に指示した場合。(2) When the mode signal line 501 is designated as logic 1.

この場合、信号線212は論理Oとなり、割込制御回路
300に対する割込要求は常に抑止され、また、信号線
213は論理1であるため割込要求フリップフロップ2
09の出力である割込要求線210が論理1の場合はゲ
ート回路216により信号線217は論理Oとなり、そ
の結果、ハードウェアエラー報告線412が論理1とな
りエラー処理回路500にハードウェアエラーが報告さ
れる。即ち、モード信号を論理1の状態に予め指定して
おくことにより、この状態で動作中に何らかの原因で割
込要因が検出され、割込要求が発生した場合、ソフトウ
ェアに対して割込処理の要求は行なわず、ハードウェア
エラーとして処理することによりその時点で装置全体の
動作クロックを停止させ、割込検出時点の装置内の状態
を解析情報として保持させて、シフトパス等の診断動作
を使いデータ採集を行なわせることができる。
In this case, the signal line 212 is at logic O, and the interrupt request to the interrupt control circuit 300 is always suppressed, and the signal line 213 is at logic 1, so the interrupt request flip-flop 2
When the interrupt request line 210, which is the output of 09, is logic 1, the signal line 217 becomes logic 0 by the gate circuit 216, and as a result, the hardware error report line 412 becomes logic 1, indicating that a hardware error has occurred in the error processing circuit 500. Reported. In other words, by setting the mode signal to logic 1 in advance, if an interrupt factor is detected for some reason during operation in this state and an interrupt request is generated, the software is instructed to handle the interrupt. Instead of making a request, the operation clock of the entire device is stopped at that point by processing it as a hardware error, the state inside the device at the time of interrupt detection is retained as analysis information, and the data is processed using diagnostic operations such as shift path. You can make them collect.

(発明の効果〕 以上説明したように本発明は、割込検出時、割込報告す
るかあるいはハードウェアエラーとして報告するかの選
択を指示するモード信号を設定し、任意の時点で割込検
出時はハードウェアエラーとして報告してデータ処理装
置内の関連する部分のクロックを停止させることにより
、割込発生時点の状態情報を採集し易くなり、エラー解
析等に有効な情報を提供できる効果があり、特にクロッ
ク停止状態でシフトパスを介してデータ収集を行なえば
ハードウェア量を増加させずに、かなりの部分のデータ
採集が可能となり、エラー原因探求の上で極めて有効と
なる効果がある。
(Effects of the Invention) As explained above, the present invention sets a mode signal that instructs the selection of whether to report the interrupt or report it as a hardware error when an interrupt is detected, and detects the interrupt at any time. By reporting this as a hardware error and stopping the clocks of the relevant parts of the data processing device, it becomes easier to collect status information at the time the interrupt occurs, which has the effect of providing information useful for error analysis, etc. In particular, if data is collected via the shift path while the clock is stopped, a considerable portion of the data can be collected without increasing the amount of hardware, which is extremely effective in investigating the cause of errors.

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

第1図は本発明のデータ処理装置の一実施例の要部のブ
ロック図、第2図は第1図中の各回路の接続関係を示す
ブロック図である。 100−・・割込検出回路、 2QO−・・割込要求発生回路、 300・・・割込制御回路、 400・・・ハードウェアエラー検出・報告回路、40
0A−・・ハードウェアエラー検出回路、400 B−
・・ハードウェアエラー報告回路、500−・・エラー
処理回路、 60(1−・・クロック発生回路、 700A、700B、800A、800B・・・インタ
フェース、201・・・割込原因レジスタ、 206.211,214,216,410・・・ゲート
回路、209・・・割込要求フリップフロップ、5(l
I=・モード信号線。
FIG. 1 is a block diagram of a main part of an embodiment of a data processing apparatus of the present invention, and FIG. 2 is a block diagram showing the connection relationship of each circuit in FIG. 1. 100--Interrupt detection circuit, 2QO--Interrupt request generation circuit, 300--Interrupt control circuit, 400--Hardware error detection/report circuit, 40
0A-...Hardware error detection circuit, 400 B-
...Hardware error reporting circuit, 500-...Error processing circuit, 60 (1-...Clock generation circuit, 700A, 700B, 800A, 800B...Interface, 201...Interrupt cause register, 206.211 , 214, 216, 410... Gate circuit, 209... Interrupt request flip-flop, 5(l
I = Mode signal line.

Claims (1)

【特許請求の範囲】  ある事象の発生を検出する割込検出回路と、該割込検
出回路からの要求によりソフトウエアへの割込報告を行
う割込制御回路を有するデータ処理装置において、 前記割込検出回路において検出された割込原因を保持す
る割込原因レジスタと、 該割込原因レジスタの内容から前記割込制御回路に対す
る割込要求を発生して保持する割込要求フリップフロッ
プと、 該データ処理装置内で検出されたハードウェアエラー原
因を保持するエラーレジスタと、 該ハードウェアエラーの内容からエラー処理回路に対し
ハードウェアエラーを報告するエラー報告発生回路と、 報告モード線が第1の論理レベルのとき、割込要求フリ
ップフロップの割込要求を割込として報告し、報告モー
ド線が第2の論理レベルのとき前記割込要求をハードウ
ェアエラーとしてエラー報告発生回路に出力する割込報
告変換回路と、ハードウェアエラー報告時、エラー処理
回路からクロック発生回路に対しクロック停止を指示す
るクロック停止線を含むことを特徴とするデータ処理装
置。
[Claims] A data processing device comprising an interrupt detection circuit that detects the occurrence of a certain event, and an interrupt control circuit that reports the interrupt to software in response to a request from the interrupt detection circuit, an interrupt cause register that holds an interrupt cause detected by the interrupt detection circuit; an interrupt request flip-flop that generates and holds an interrupt request to the interrupt control circuit from the contents of the interrupt cause register; an error register that holds the cause of a hardware error detected within the data processing device; an error report generation circuit that reports a hardware error to an error processing circuit based on the contents of the hardware error; An interrupt that reports an interrupt request of an interrupt request flip-flop as an interrupt when it is at a logic level, and outputs the interrupt request as a hardware error to an error report generation circuit when the report mode line is at a second logic level. A data processing device comprising: a report conversion circuit; and a clock stop line that instructs a clock generation circuit from an error processing circuit to stop a clock when a hardware error is reported.
JP62240073A 1987-09-24 1987-09-24 Data processor Pending JPH01199238A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62240073A JPH01199238A (en) 1987-09-24 1987-09-24 Data processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62240073A JPH01199238A (en) 1987-09-24 1987-09-24 Data processor

Publications (1)

Publication Number Publication Date
JPH01199238A true JPH01199238A (en) 1989-08-10

Family

ID=17054089

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62240073A Pending JPH01199238A (en) 1987-09-24 1987-09-24 Data processor

Country Status (1)

Country Link
JP (1) JPH01199238A (en)

Similar Documents

Publication Publication Date Title
JPH0746322B2 (en) Faulty device identification system
JPH01199238A (en) Data processor
JPS6115239A (en) Processor diagnosis system
JP2870250B2 (en) Microprocessor runaway monitor
JPS6227831A (en) Checking circuit for computing element
JPH03123945A (en) Information processor
JPS6111855A (en) Function diagnosing method of data processor
JP2743562B2 (en) Failure handling method
JPS5983438A (en) Program failure detecting system
WO2002077810A1 (en) An integrated circuit
JPS6051141B2 (en) Program runaway detection method
JPH01243132A (en) System for processing trouble
JPS5942340B2 (en) Failure detection device
JPH0331953A (en) Information processor
JPS6252639A (en) Self-checking system for microprocessor system
JPH03184133A (en) Pseudo fault generating mechanism for data processor
JPH07230432A (en) Calculating device
JPS62216048A (en) Runaway detecting system for processor
JPS60164844A (en) Detection for trouble of control circuit
JPH0314148A (en) Program breakdown detecting device
JPS62113241A (en) Fault recovery device
JPS60222936A (en) Diagnostic system for check circuit
JPS6222156A (en) Program execution state supervisory system
JPS5896353A (en) Malfunction detector of information processor
JPH02212948A (en) Fault information collector for central processing unit