JPH04343147A - Interrupt control method - Google Patents

Interrupt control method

Info

Publication number
JPH04343147A
JPH04343147A JP3114955A JP11495591A JPH04343147A JP H04343147 A JPH04343147 A JP H04343147A JP 3114955 A JP3114955 A JP 3114955A JP 11495591 A JP11495591 A JP 11495591A JP H04343147 A JPH04343147 A JP H04343147A
Authority
JP
Japan
Prior art keywords
interrupt
signal
processor
external device
abnormality
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.)
Withdrawn
Application number
JP3114955A
Other languages
Japanese (ja)
Inventor
Teruo Doinaga
輝夫 土井長
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 Ltd
Original Assignee
Fujitsu 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 Ltd filed Critical Fujitsu Ltd
Priority to JP3114955A priority Critical patent/JPH04343147A/en
Publication of JPH04343147A publication Critical patent/JPH04343147A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To detect the abnormality of an interrupt request and to facilitate finding of its cause, as to an interrupt control system in which a processor performs the interrupt processing by means of the interrupt signal from an external device. CONSTITUTION:A decoder 4 decoding a status signal indicating the execution state of a processor 2 at a prestage cycle and outputting an interrupt recognition signal when the status signal indicates the execution state of the interrupt processing, and discrimination parts 5 and 6 discriminating whether or not the interrupt signal disappeared when the interrupt recognition signal is outputted from a decoder 4, are provided, and the device is constructed so that the abnormality of the interruption from an external device 1 can be discriminated from the discrimination result.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明は割込制御方式に関する。 外部装置から割込信号が入力されるとプロセッサは実行
中のプログラムを中断して別のプログラムによって割り
込み処理を実行するが、割り込み処理の実行中に外部装
置からの割込信号が消滅する等の異常が生じると、プロ
セッサは割り込み処理の続行の可否を判断できずハング
アップあるいは暴走する場合が起こる。従って、上述の
ような異常が生じたことを自動的に判別し適切な処置を
取り得るようにすることが必要である。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an interrupt control system. When an interrupt signal is input from an external device, the processor interrupts the program being executed and processes the interrupt using another program. When an abnormality occurs, the processor may not be able to determine whether or not to continue interrupt processing, and the processor may hang up or run out of control. Therefore, it is necessary to be able to automatically determine when an abnormality as described above has occurred and take appropriate measures.

【0002】0002

【従来の技術】図3は外部装置1からの割り込み要求に
よってプロセッサ2が割り込み処理を開始する過程を説
明するブロック図であり、図4〜図6は従来例における
割り込み処理のタイムチャートである。
2. Description of the Related Art FIG. 3 is a block diagram illustrating a process in which a processor 2 starts interrupt processing in response to an interrupt request from an external device 1, and FIGS. 4 to 6 are time charts of interrupt processing in conventional examples.

【0003】まず、外部装置1から出力される割込要求
信号aと、この割込要求信号aをマスクするイネーブル
信号bがANDゲート3に入力される。そしてANDゲ
ート3の出力が割込信号cとしてプロセッサ2に入力さ
れる。図4に見られるように、割込要求信号aとイネー
ブル信号bがいずれも“1”のときにプロセッサ2に割
込信号cが送られることになる。
First, an interrupt request signal a output from an external device 1 and an enable signal b for masking the interrupt request signal a are input to an AND gate 3. The output of the AND gate 3 is then input to the processor 2 as an interrupt signal c. As shown in FIG. 4, when the interrupt request signal a and the enable signal b are both "1", the interrupt signal c is sent to the processor 2.

【0004】割込信号cを受信したプロセッサ2は、前
サイクルの実行を終了させた後割り込み処理プログラム
が格納されている番地の読出命令等を内部で発生させ割
り込み処理を開始する。上述のような読出命令が発生し
たことは、外部装置1からの割り込み処理の要求があっ
たことをプロセッサ2が認識したことを示すものであり
、このようにして発生した読出命令は割込認識信号dと
して用いられ、図4に見られるように、割込信号cから
遅れて発生することになる。
[0004] Upon receiving the interrupt signal c, the processor 2 finishes the execution of the previous cycle and then internally generates a read command for the address where the interrupt processing program is stored and starts interrupt processing. The occurrence of the above-mentioned read command indicates that the processor 2 has recognized that there has been a request for interrupt processing from the external device 1, and the read command generated in this way is recognized as an interrupt processing request. It is used as the signal d, and as shown in FIG. 4, it is generated with a delay from the interrupt signal c.

【0005】ところが、図5に見られるように、プロセ
ッサ2内部で割込認識信号dによって割り込み処理が開
始したにもかかわらずANDゲート3に送られてきたイ
ネーブル信号bがノイズ等によって途中で消滅し“1”
→“0”に変化する事態が生じると、ANDゲート3の
出力である割込信号cもこの時点で“1”→“0”に変
化することとなる。その結果、プロセッサ2は、外部装
置1からの割り込み要求が無くなったにもかかわらず割
り込み処理を実行しなければならないという矛盾した状
態に置かれることとなりハングアップあるいは暴走する
こととなる。図6に見られるように、割込要求信号aが
“1”→“0”に変化した場合にも同様な事態が生じる
However, as shown in FIG. 5, even though interrupt processing is started by the interrupt recognition signal d inside the processor 2, the enable signal b sent to the AND gate 3 disappears midway due to noise etc. Shi “1”
When a situation occurs where the signal changes from "1" to "0", the interrupt signal c, which is the output of the AND gate 3, also changes from "1" to "0" at this point. As a result, the processor 2 is placed in a contradictory state in which it has to execute interrupt processing even though there are no more interrupt requests from the external device 1, resulting in a hang-up or runaway. As shown in FIG. 6, a similar situation occurs when the interrupt request signal a changes from "1" to "0".

【0006】[0006]

【発明が解決しようとする課題】上述のように外部装置
1からの割込要求信号aあるいはイネーブル信号bに異
常が生じた場合、従来は異常が生じたことを認識する手
段がなかったため、これによってプロセッサのハングア
ップあるいは暴走が生じた場合にもその原因究明に時間
を要するという問題があった。
[Problems to be Solved by the Invention] As mentioned above, when an abnormality occurs in the interrupt request signal a or the enable signal b from the external device 1, conventionally there was no means to recognize that an abnormality had occurred. Even if the processor hangs up or runs out of control, it takes time to investigate the cause.

【0007】そこで本発明は、割り込み要求の異常を検
出してその原因究明を容易にすることを目的とする。
SUMMARY OF THE INVENTION Therefore, it is an object of the present invention to detect an abnormality in an interrupt request and facilitate investigation of its cause.

【0008】[0008]

【課題を解決するための手段】上記課題の解決は、外部
装置1からの割込信号によってプロセッサ2に割り込み
処理を行わせるようにした割込制御方式において、前サ
イクルでのプロセッサ2の実行状態を示すステータス信
号をデコードし該ステータス信号が割り込み処理の実行
状態を示したときに割込認識信号を出力させるデコーダ
4と、該割込認識信号がデコーダ4から出力された時点
で前記割込信号が消滅しているか否かを判別する判別部
5、6を備え、上記判別結果によって外部装置1からの
割り込みの異常を判別するようにしたことを特徴とする
割込制御方式によって達成される。
[Means for Solving the Problem] The above problem is solved by using an interrupt control system that causes the processor 2 to perform interrupt processing in response to an interrupt signal from an external device 1. a decoder 4 that decodes a status signal indicating the interrupt processing and outputs an interrupt recognition signal when the status signal indicates the execution state of interrupt processing; This is achieved by an interrupt control system characterized in that it is provided with determination units 5 and 6 that determine whether or not the external device 1 has disappeared, and that an abnormality in the interrupt from the external device 1 is determined based on the determination result.

【0009】[0009]

【作用】外部装置1からの割込信号があったとき、プロ
セッサ2は、実行中のプログラムを中断し、割り込み処
理プログラムの格納されている番地の読み出し等の処理
を開始する。一方、プロセッサ2は、デバッグに用いる
目的で前サイクルでの実行状態を示すステータス信号を
各サイクル終了ごとに発生させており、従って外部装置
1からの割込信号を受信した場合、割り込み処理開始の
実行状態を示すステータス信号が発生することになる。
[Operation] When an interrupt signal is received from the external device 1, the processor 2 interrupts the program being executed and starts processing such as reading the address where the interrupt processing program is stored. On the other hand, the processor 2 generates a status signal indicating the execution state of the previous cycle for debugging purposes at the end of each cycle. Therefore, when receiving an interrupt signal from the external device 1, the processor 2 generates a status signal indicating the execution state of the previous cycle. A status signal indicating the execution status will be generated.

【0010】本発明は、上記ステータス信号を利用して
割込信号の異常を判別するものである。即ち、プロセッ
サ2で発生したステータス信号をデコーダ4でデコード
することにより、割り込み処理開始に対応したステータ
ス信号が発生したことを検知し割込認識信号を発生させ
る。そして、割込認識信号が出力された時点で、プロセ
ッサ2に入力された割込信号が消滅しているという異常
が生じているか否かを判別するようにしているので、プ
ロセッサがハングアップあるいは暴走したときに上記判
別結果を参照することによってその原因が外部装置から
の割り込み要求に生じた異常によるものか否かを容易に
知ることができる。
The present invention utilizes the above status signal to determine whether an interrupt signal is abnormal. That is, by decoding the status signal generated by the processor 2 by the decoder 4, it is detected that a status signal corresponding to the start of interrupt processing has been generated, and an interrupt recognition signal is generated. Then, at the time when the interrupt recognition signal is output, it is determined whether an abnormality has occurred in which the interrupt signal input to the processor 2 has disappeared, so the processor hangs up or goes out of control. By referring to the above-mentioned determination result when a problem occurs, it can be easily determined whether or not the cause is an abnormality occurring in an interrupt request from an external device.

【0011】[0011]

【実施例】図1は本発明の実施例を説明するブロック図
であり、図2は図1に示した信号のタイムチャートであ
る。以下、図1および図2を参照して本発明の実施例に
ついて説明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS FIG. 1 is a block diagram illustrating an embodiment of the present invention, and FIG. 2 is a time chart of the signals shown in FIG. Embodiments of the present invention will be described below with reference to FIGS. 1 and 2.

【0012】まず、外部装置1からの割込要求信号aと
イネーブル信号bがANDゲート3に送られ、いずれの
信号も“1”となった場合に割込信号cがプロセッサ2
へ入力される。
First, the interrupt request signal a and the enable signal b from the external device 1 are sent to the AND gate 3, and when both signals become "1", the interrupt signal c is sent to the processor 2.
is input to.

【0013】一方、プロセッサ2は、各サイクルごとに
前のサイクルでの実行状態を示すステータス信号STA
T0〜2を発生させており、その実行状態は図1に示し
たSTAT0〜2の組合せによって示される。たとえば
、STAT0〜2の組合せが(100)である場合は「
パイプラインホールドモード」、(110)である場合
は「WAITモード」、(101)である場合は「割込
処理開始モード」を示している。従って、プロセッサ2
が割込信号cを受信し割り込み処理プログラムの格納し
てある番地の読出命令等を発生させたことにより割り込
み処理を開始するとSTAT0〜2の組合せは(101
)となる。
On the other hand, in each cycle, the processor 2 outputs a status signal STA indicating the execution state in the previous cycle.
T0-2 are generated, and the execution state thereof is shown by the combination of STAT0-2 shown in FIG. For example, if the combination of STAT0-2 is (100),
"pipeline hold mode", (110) indicates "WAIT mode", and (101) indicates "interrupt processing start mode". Therefore, processor 2
When receives the interrupt signal c and starts interrupt processing by issuing a read command for the address where the interrupt processing program is stored, the combination of STAT0 to STAT2 becomes (101
).

【0014】そこで、図2に示すように、STAT0〜
2が(101)となったときにのみデコーダ4から割込
認識信号dを発生させる。この割込認識信号dはAND
ゲート5に送られる。ANDゲート5には、上述の割込
認識信号dの他に、割込信号cをNOTゲート7によっ
て反転した信号−cが入力される。
Therefore, as shown in FIG.
2 becomes (101), the decoder 4 generates an interrupt recognition signal d. This interrupt recognition signal d is AND
Sent to Gate 5. In addition to the above-mentioned interrupt recognition signal d, a signal -c obtained by inverting the interrupt signal c by the NOT gate 7 is input to the AND gate 5 .

【0015】従って、ANDゲート5の出力信号eは、
割込信号cが割込要求信号aあるいはイネーブル信号b
に生じた異常によって消滅して“1”→“0”となり、
かつ割込認識信号dが発生したときにクロックCLKに
同期して発生する。信号eはJKフリップフロップ6へ
送られてその出力信号fを反転させる。
Therefore, the output signal e of the AND gate 5 is:
Interrupt signal c is interrupt request signal a or enable signal b
It disappears due to an abnormality that occurs and changes from "1" to "0",
Further, when the interrupt recognition signal d is generated, it is generated in synchronization with the clock CLK. Signal e is sent to JK flip-flop 6 to invert its output signal f.

【0016】以上のように、割込信号cが割込要求信号
aあるいはイネーブル信号bの異常によって途中で消滅
した場合にJKフリップフロップ6の出力信号fが反転
することとなり、これによって外部装置からの割り込み
要求に異常があったことを知ることができる。
As described above, when the interrupt signal c disappears midway due to an abnormality in the interrupt request signal a or the enable signal b, the output signal f of the JK flip-flop 6 is inverted, and as a result, the output signal f from the external device is inverted. It is possible to know that there is an abnormality in the interrupt request.

【0017】信号fをレジスタ(図示せず)に保持して
おけば、これを参照することによってプロセッサ2がハ
ングアップあるいは暴走したときにその原因究明が容易
になる。また、出力信号fによってプロセッサ2をリセ
ットしてプロセッサ2の割り込み処理を中断するように
することもできる。
If the signal f is held in a register (not shown), by referring to it, it becomes easy to investigate the cause when the processor 2 hangs up or goes out of control. Furthermore, the interrupt processing of the processor 2 can be interrupted by resetting the processor 2 using the output signal f.

【0018】なお、上記実施例では、プロセッサ2で発
生するステータス信号をデコードして割込認識信号dを
作成するようにしているが、プロセッサ2が割込信号c
を受信した後割り込み処理プログラムの格納されている
番地を読み出すときの命令信号を割込認識信号dとして
用いるようにすることも可能である。
In the above embodiment, the status signal generated by the processor 2 is decoded to create the interrupt recognition signal d, but the processor 2
It is also possible to use a command signal for reading out the address where the interrupt processing program is stored after receiving the interrupt processing program as the interrupt recognition signal d.

【0019】[0019]

【発明の効果】以上のように本発明によれば、外部装置
からの割り込み要求に異常があった場合にこれを検出す
ることができるので、プロセッサの異常動作の原因究明
およびデバッグを行う上で有益である。
[Effects of the Invention] As described above, according to the present invention, if there is an abnormality in an interrupt request from an external device, it can be detected. Beneficial.

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

【図1】  本発明の実施例を示すブロック図、[Fig. 1] Block diagram showing an embodiment of the present invention,

【図2
】  本発明の実施例を示すタイムチャート、
[Figure 2
] Time chart showing an embodiment of the present invention,

【図3】
  従来例の問題点を示すブロック図、
[Figure 3]
A block diagram showing the problems of the conventional example,

【図4】  従
来例に係る割り込み処理のタイムチャート(その1)、
[Fig. 4] Time chart of interrupt processing according to the conventional example (Part 1),

【図5】  従来例に係る割り込み処理のタイムチャー
ト(その2)、
[Figure 5] Time chart of interrupt processing according to the conventional example (part 2),

【図6】  従来例に係る割り込み処理のタイムチャー
ト(その3)、
[Fig. 6] Time chart of interrupt processing according to the conventional example (part 3),

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

1  外部装置                  
  4  デコーダ2  プロセッサ        
          6  フリップフロップ
1 External device
4 Decoder 2 Processor
6 flip flop

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】  外部装置(1) からの割込信号によ
ってプロセッサ(2) に割り込み処理を行わせるよう
にした割込制御方式において、前サイクルでのプロセッ
サ(2) の実行状態を示すステータス信号をデコード
し該ステータス信号が割り込み処理の実行状態を示した
ときに割込認識信号を出力させるデコーダ(4) と、
該割込認識信号がデコーダ(4) から出力された時点
で前記割込信号が消滅しているか否かを判別する判別部
(5、6)を備え、上記判別結果によって外部装置(1
)からの割り込みの異常を判別するようにしたことを特
徴とする割込制御方式。
[Claim 1] In an interrupt control method in which a processor (2) is caused to perform interrupt processing by an interrupt signal from an external device (1), a status signal indicating the execution state of the processor (2) in the previous cycle is provided. a decoder (4) which outputs an interrupt recognition signal when the status signal indicates the interrupt processing execution state;
The device is equipped with a determining unit (5, 6) that determines whether or not the interrupt signal has disappeared at the time when the interrupt recognition signal is output from the decoder (4), and based on the determination result, the external device (1)
) is characterized in that an interrupt control method is characterized in that an abnormality in an interrupt from an interrupt is determined.
JP3114955A 1991-05-20 1991-05-20 Interrupt control method Withdrawn JPH04343147A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3114955A JPH04343147A (en) 1991-05-20 1991-05-20 Interrupt control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3114955A JPH04343147A (en) 1991-05-20 1991-05-20 Interrupt control method

Publications (1)

Publication Number Publication Date
JPH04343147A true JPH04343147A (en) 1992-11-30

Family

ID=14650784

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3114955A Withdrawn JPH04343147A (en) 1991-05-20 1991-05-20 Interrupt control method

Country Status (1)

Country Link
JP (1) JPH04343147A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08147176A (en) * 1994-11-25 1996-06-07 Nec Corp Illegal interruption request signal detecting circuit
JP2010061198A (en) * 2008-09-01 2010-03-18 Fujitsu Microelectronics Ltd Verification support program, verification support device and verification support method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08147176A (en) * 1994-11-25 1996-06-07 Nec Corp Illegal interruption request signal detecting circuit
JP2010061198A (en) * 2008-09-01 2010-03-18 Fujitsu Microelectronics Ltd Verification support program, verification support device and verification support method

Similar Documents

Publication Publication Date Title
US5717851A (en) Breakpoint detection circuit in a data processor and method therefor
JPH04343147A (en) Interrupt control method
JPS6218939B2 (en)
JPH0333939A (en) Microprocessor
JP2979918B2 (en) Interrupt detection circuit
JPH0512005A (en) Information processor
JPH0314148A (en) Program breakdown detecting device
JPH04116769A (en) Vector processor
JPH09319592A (en) Microcomputer
JPS5875256A (en) Monitoring system for execution instruction processing state
JPH064412A (en) Local memory inspecting/correcting circuit
JPH01226031A (en) Control system for pipe line of information processor
JPH05204831A (en) Microprocessor and microcomputer system with direct memory access function using the same
JPH06195245A (en) Monitor timer device
JPH04310138A (en) Debugging method for data transmitter
JPH01237852A (en) Abnormality monitoring timer controller
JPH05265882A (en) Microprocessor with cycle time-out detector
JPS56119982A (en) Information processing device
JPS62280936A (en) Runaway detection method
JPH0568143B2 (en)
JPH0646411B2 (en) End token output circuit
JPH05216701A (en) Recovery time adjusting circuit for input/output instruction
JPH0581052A (en) Microprocessor runaway check circuit
JPH06242997A (en) Tracer stopping circuit
JPS63133205A (en) Data input system for programmable controller

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 19980806