JP2000330798A - Interrupt controller and method for verifying interrupt control - Google Patents

Interrupt controller and method for verifying interrupt control

Info

Publication number
JP2000330798A
JP2000330798A JP11140115A JP14011599A JP2000330798A JP 2000330798 A JP2000330798 A JP 2000330798A JP 11140115 A JP11140115 A JP 11140115A JP 14011599 A JP14011599 A JP 14011599A JP 2000330798 A JP2000330798 A JP 2000330798A
Authority
JP
Japan
Prior art keywords
interrupt
signal
request signal
interrupt control
interrupt request
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
JP11140115A
Other languages
Japanese (ja)
Inventor
Akira Hirata
明 平田
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP11140115A priority Critical patent/JP2000330798A/en
Publication of JP2000330798A publication Critical patent/JP2000330798A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To easily verify interrupt control to an interrupt request signal from the outside by separating the hardware of an input-output device from software in a processor. SOLUTION: This controller is provided with a mask register Rm which masks respective interrupt request signals IRQ1 to IRQn while corresponded to the priorities of the signals IRQ1 to IRQn and a pseudo-interrupt generation register Rq which generates a signal being the origin of a pseudo-interrupt control signal simulating an encode signal 5 generated by the respective signals IRQ1 to IRQn while the entire interrupt request signals IRQ1 to IRQn are masked by the register Rm, a processor 1 performs interrupt processing by the pseudo-interrupt control signal generated on the basis of the signal of the register Rq, and the operation verification only of software is performed on the basis of this interrupt processing results.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】この発明は、計算機システム
において、入出力装置からの割込要求信号をもとに優先
度を設定した割込制御信号を生成して該割込制御信号を
プロセッサに通知し、該プロセッサによる割込処理を行
わせる割込制御装置および割込制御検証方法に関するも
のである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a computer system which generates an interrupt control signal with a priority set based on an interrupt request signal from an input / output device and notifies the processor of the interrupt control signal. The present invention also relates to an interrupt control device and an interrupt control verification method for causing the processor to execute an interrupt process.

【0002】[0002]

【従来の技術】従来から、計算機システムにおける割込
処理は、オペレーティングシステム等に組み込まれ、プ
ログラム実行中に、何らかの要因によってプログラムの
実行を一時中断し、この要因に応じた処理プログラムの
実行を行う。
2. Description of the Related Art Conventionally, an interrupt process in a computer system is incorporated in an operating system or the like. During execution of the program, the execution of the program is temporarily interrupted for some reason, and the processing program is executed according to the factor. .

【0003】一般に、プロセッサにおける割込要因は、
外部要因と内部要因とに分けることができ、外部要因と
してはプロセッサの外部が特殊な状態になったことを認
識させるためのものや、外部周辺装置からプロセッサへ
の処理要求などがある。また、内部要因としては、内部
タイマによる設定時間の経過、シリアルデータ転送の終
了等の内蔵周辺機能からのマイクロコンピュータへの処
理要求がある。複数の割込がある場合、割込によってプ
ログラム処理上、割込を禁止することが必要な場合があ
り、この場合における割込禁止をマスクという。
Generally, interrupt factors in a processor include:
External factors and internal factors can be classified, and the external factors include those for recognizing that the outside of the processor has entered a special state, and processing requests from an external peripheral device to the processor. As the internal factors, there are processing requests from the built-in peripheral functions to the microcomputer, such as the elapse of a set time by an internal timer and the end of serial data transfer. When there are a plurality of interrupts, it may be necessary to prohibit the interrupt in program processing due to the interrupt. In this case, the prohibition of the interrupt is called a mask.

【0004】図8は、従来の割込制御装置を含む計算機
システムの構成を示すブロック図である。図8におい
て、プロセッサバス23には、メモリ21a、プロセッ
サ21、および複数の入出力装置(I/O)22−1〜
22−nが接続される。割込制御装置30は、複数のI
/O22−1〜22−nおよびプロセッサ21に接続さ
れる。
FIG. 8 is a block diagram showing the configuration of a computer system including a conventional interrupt control device. In FIG. 8, a processor bus 23 includes a memory 21a, a processor 21, and a plurality of input / output devices (I / Os) 22-1 to 22-1.
22-n are connected. The interrupt control device 30 includes a plurality of I
/ O22-1 to 22-n and the processor 21.

【0005】複数のI/O22−1〜22−nからはそ
れぞれ外部の割込要求信号IRQ11〜IRQ1nが割
込制御装置30に入力され、割込制御装置30は、この
割込要求信号IRQ11〜IRQ1nに対応する優先度
を付したエンコード信号25を生成し、このエンコード
信号25をプロセッサ21に通知することによって割込
を発生させる。プロセッサ21内には図示しない割込ハ
ンドラを有し、外部から発生した割込要求(エンコード
信号)に対する割込処理を起動させる。
[0005] External interrupt request signals IRQ11 to IRQ1n are input from a plurality of I / Os 22-1 to 22-n to an interrupt control device 30, and the interrupt control device 30 outputs the interrupt request signals IRQ11 to IRQ11 to IRQ1n. An encode signal 25 with a priority corresponding to IRQ1n is generated, and an interrupt is generated by notifying the encode signal 25 to the processor 21. The processor 21 has an interrupt handler (not shown), and activates an interrupt process for an externally generated interrupt request (encode signal).

【0006】なお、特開昭60−22248号公報およ
び特開平2−202634号公報には、複数の割込要求
信号の優先度決定処理、割込要求信号のマスク処理、割
込要求信号の状態の監視処理等を行うことができる割込
制御装置が開示されている。
Japanese Patent Application Laid-Open Nos. 60-22248 and 2-202634 disclose priority determination processing of a plurality of interrupt request signals, mask processing of interrupt request signals, and state of interrupt request signals. An interrupt control device capable of performing a monitoring process and the like is disclosed.

【0007】[0007]

【発明が解決しようとする課題】しかしながら、上述し
た従来の割込制御装置では、入出力装置および割込制御
装置のハードウェアが正常動作し、かつ割込制御装置に
対するソフトウェアが正常動作し、該割込制御装置に対
する初期設定も正しく設定されていることを前提とし
て、割込制御装置からのエンコード信号がプロセッサに
通知されるため、これらのハードウェアまたはソフトウ
ェアが正常動作しない場合には、割込処理が正常に行わ
れない。
However, in the above-described conventional interrupt control device, the hardware of the input / output device and the interrupt control device operates normally, and the software for the interrupt control device operates normally. Assuming that the initial settings for the interrupt control device are also set correctly, the encode signal from the interrupt control device is notified to the processor. If these hardware or software does not operate normally, the interrupt Processing is not performed normally.

【0008】この割込処理が正常に行われない場合、プ
ロセッサ内部の割込ハンドラの検証を行うが、上述した
ハードウェアあるいはソフトウェアが正常に動作してい
ることを前提としているため、割込制御の検証処理が複
雑となり、時間がかかるという問題点があった。
If this interrupt processing is not performed normally, the interrupt handler inside the processor is verified. However, since it is assumed that the above-described hardware or software is operating normally, the interrupt control is performed. However, there is a problem that the verification process becomes complicated and takes time.

【0009】特に、ハードウェアが正常動作していない
場合、ソフトウェアの検証はハードウェアの正常動作を
前提としているため、ソフトウェアとハードウェアとの
切り分けが容易ではなく、検証処理が複雑となり、時間
がかかるという問題点があった。
In particular, when the hardware does not operate normally, the software verification is based on the normal operation of the hardware. Therefore, it is not easy to separate the software from the hardware, and the verification process becomes complicated. There was such a problem.

【0010】さらに、新規に入出力装置あるいは割込制
御装置を計算機システムに採用する場合、計算機システ
ムとの適合性を加味したハードウェアあるいはソフトウ
ェアであることが必要であるが、新規の入出力装置ある
いは割込制御装置の開発時間が短い場合等には、計算機
システムの技術的な内容理解に十分な時間をかけること
ができないことから、上述したハードウェアあるいはソ
フトウェアの初期の不具合が発生する場合が多く、この
点を考慮しない従来の割込制御装置の検証処理には相当
な時間がかかっていた。
Furthermore, when a new input / output device or interrupt control device is employed in a computer system, it is necessary to use hardware or software in consideration of compatibility with the computer system. Alternatively, if the development time of the interrupt control device is short, etc., it is not possible to take sufficient time to understand the technical contents of the computer system. In many cases, the verification processing of the conventional interrupt control device that does not take this point into account takes a considerable amount of time.

【0011】この発明は上記に鑑みてなされたもので、
上述したハードウェアとソフトウェアとの切り分けて外
部から割込要求信号に対する割込制御の検証を容易に行
うことができる割込制御装置および割込制御検証方法を
得ることを目的とする。
[0011] The present invention has been made in view of the above,
An object of the present invention is to provide an interrupt control device and an interrupt control verifying method capable of easily verifying interrupt control for an interrupt request signal from the outside by separating the hardware and software described above.

【0012】[0012]

【課題を解決するための手段】上記目的を達成するた
め、この発明にかかる割込制御装置は、入出力装置から
の割込要求信号をもとに優先度を設定した割込制御信号
を生成して該割込制御信号をプロセッサに通知する割込
制御装置において、前記割込要求信号の優先度に対応さ
せて各割込要求信号をマスクするマスク設定手段と、前
記マスク設定手段によって全ての割込要求信号をマスク
した状態で各割込要求信号によって生成される割込制御
信号を擬似した擬似割込制御信号を生成する擬似信号生
成手段と、を備え、前記擬似信号生成手段によって生成
された擬似割込制御信号によって前記プロセッサが割込
処理を行うことを特徴とする。
In order to achieve the above object, an interrupt control device according to the present invention generates an interrupt control signal with a priority set based on an interrupt request signal from an input / output device. And a mask setting means for masking each interrupt request signal in accordance with the priority of the interrupt request signal, and a mask setting means for notifying all of the interrupt request signals to the processor. Pseudo signal generation means for generating a pseudo interrupt control signal that simulates an interrupt control signal generated by each interrupt request signal in a state in which the interrupt request signal is masked. The processor performs an interrupt process in response to the pseudo interrupt control signal.

【0013】この発明によれば、マスク設定手段が入出
力装置からの割込要求信号の優先度に対応させて各割込
要求信号をマスクするが、擬似信号生成手段は、前記マ
スク設定手段によって全ての割込要求信号をマスクした
状態で各割込要求信号によって生成される割込制御信号
を擬似した擬似割込制御信号を生成し、この擬似割込制
御信号を、割込処理を行うプロセッサに通知し、プロセ
ッサに対して割込処理を実行させ、この割込処理結果に
よってプロセッサによる割込処理のソフトウェアのみを
容易に検証する。
According to this invention, the mask setting means masks each interrupt request signal in accordance with the priority of the interrupt request signal from the input / output device. A processor that generates a pseudo interrupt control signal that simulates an interrupt control signal generated by each interrupt request signal while masking all the interrupt request signals, and uses the pseudo interrupt control signal to perform an interrupt process. And causes the processor to execute the interrupt processing, and easily verifies only the software of the interrupt processing by the processor based on the result of the interrupt processing.

【0014】つぎの発明にかかる割込制御装置は、上記
の発明において、各前記割込要求信号の有無を一時記憶
する割込要求信号記憶手段と、前記割込要求信号記憶手
段に記憶された割込要求信号の有無の履歴を保持する第
1の履歴保持手段と、をさらに備えたことを特徴とす
る。
[0014] In the interrupt control device according to the next invention, in the above invention, the interrupt request signal storage means for temporarily storing the presence or absence of each of the interrupt request signals and the interrupt request signal storage means are stored in the interrupt request signal storage means. A first history holding unit for holding a history of the presence / absence of the interrupt request signal.

【0015】この発明によれば、割込要求信号記憶手段
は、各前記割込要求信号の有無を一時記憶し、第1の履
歴保持手段は、この割込要求信号記憶手段に記憶された
割込要求信号の有無の履歴を保持するようにしている。
According to the present invention, the interrupt request signal storage means temporarily stores the presence or absence of each of the interrupt request signals, and the first history holding means stores the interrupt request signal stored in the interrupt request signal storage means. The history of the presence / absence of the write request signal is held.

【0016】つぎの発明にかかる割込制御装置は、上記
の発明において、前記割込制御信号の内容を一時記憶す
る割込制御信号記憶手段と、前記割込制御信号記憶手段
に記憶された割込制御信号の内容の履歴を保持する第2
の履歴保持手段と、をさらに備えたことを特徴とする。
The interrupt control apparatus according to the next invention is the above-mentioned invention, wherein the interrupt control signal storage means for temporarily storing the content of the interrupt control signal, and the interrupt control signal stored in the interrupt control signal storage means. Second that holds the history of the contents of the
And a history holding means.

【0017】この発明によれば、割込要求信号記憶手段
は、前記割込制御信号の内容を一時記憶し、第2の履歴
保持手段は、前記割込制御信号記憶手段に記憶された割
込制御信号の内容の履歴を保持するようにしている。
According to this invention, the interrupt request signal storage means temporarily stores the content of the interrupt control signal, and the second history holding means stores the interrupt control signal stored in the interrupt control signal storage means. The history of the contents of the control signal is retained.

【0018】つぎの発明にかかる割込制御装置は、上記
の発明において、前記割込要求信号の発生後、前記マス
ク設定手段による該割込要求信号のマスクから該割込要
求信号のマスク解除までの間に前記割込要求信号が変化
しない場合に、当該割込制御装置に異常が発生した旨を
前記プロセッサに通知する通知手段をさらに備えたこと
を特徴とする。
The interrupt control device according to the next invention is the above-mentioned invention, wherein, after the generation of the interrupt request signal, from the masking of the interrupt request signal by the mask setting means to the release of the mask of the interrupt request signal. If the interrupt request signal does not change during this period, the processor further includes a notifying unit that notifies the processor that an error has occurred in the interrupt control device.

【0019】この発明によれば、通知手段は、前記割込
要求信号の発生後、前記マスク設定手段による該割込要
求信号のマスクから該割込要求信号のマスク解除までの
間に前記割込要求信号が変化しない場合に、当該割込制
御装置に異常が発生した旨を前記プロセッサに通知する
ようにしている。
According to the present invention, the notifying unit is configured to execute the interrupt from the generation of the interrupt request signal to the release of the interrupt request signal from the masking of the interrupt request signal by the mask setting unit. When the request signal does not change, the processor is notified of the occurrence of an abnormality in the interrupt control device.

【0020】つぎの発明にかかる割込制御検証方法は、
入出力装置からの割込要求信号をもとに優先度を設定し
た割込制御信号を生成してプロセッサによる割込処理を
行わせる一連の割込制御を検証する割込制御検証方法に
おいて、全ての割込要求信号をマスクした状態で各割込
要求信号によって生成される割込制御信号を擬似した擬
似割込制御信号を生成する擬似信号生成工程と、前記擬
似信号生成工程によって生成された擬似割込制御信号を
用いて前記プロセッサに割込処理を行わせ、前記プロセ
ッサのソフトウェアを検証するソフトウェア検証工程
と、を含むことを特徴とする。
An interrupt control verification method according to the next invention is as follows.
In an interrupt control verification method for generating a series of interrupt control signals in which priority is set based on an interrupt request signal from an input / output device and verifying a series of interrupt controls for performing an interrupt process by a processor, A pseudo signal generating step of generating a pseudo interrupt control signal that simulates an interrupt control signal generated by each interrupt request signal while masking the interrupt request signal of A software verifying step of causing the processor to perform an interrupt process using an interrupt control signal and verifying software of the processor.

【0021】この発明によれば、まず、擬似信号生成工
程によって、全ての割込要求信号をマスクした状態で各
割込要求信号によって生成される割込制御信号を擬似し
た擬似割込制御信号を生成し、その後、ソフトウェア検
証工程によって、前記擬似信号生成工程によって生成さ
れた擬似割込制御信号を用いて前記プロセッサに割込処
理を行わせ、前記プロセッサのソフトウェアを検証する
ようにしている。
According to the present invention, first, in the pseudo signal generation step, a pseudo interrupt control signal simulating the interrupt control signal generated by each interrupt request signal in a state where all the interrupt request signals are masked is generated. Then, in a software verification step, the processor is caused to perform an interrupt process using the pseudo interrupt control signal generated in the pseudo signal generation step, and the software of the processor is verified.

【0022】つぎの発明にかかる割込制御検証方法は、
入出力装置からの割込要求信号をもとに優先度を設定し
た割込制御信号を生成してプロセッサによる割込処理を
行わせる一連の割込制御を検証する割込制御検証方法に
おいて、前記割込要求信号の優先度に対応させて各割込
要求信号をマスクするマスク設定工程と、各前記割込要
求信号の有無を一時記憶し、該割込要求信号の有無の履
歴を保持する保持工程と、前記プロセッサによる割込処
理結果と前記保持工程による履歴とをもとに前記入出力
装置に関するハードウェアを検証するハードウェア検証
工程と、を含むことを特徴とする。
An interrupt control verification method according to the next invention is as follows.
An interrupt control verification method for generating a series of interrupt control signals based on an interrupt request signal from an input / output device and verifying a series of interrupt controls for performing an interrupt process by a processor, A mask setting step of masking each interrupt request signal in accordance with the priority of the interrupt request signal; and temporarily storing the presence / absence of each interrupt request signal and holding a history of the presence / absence of the interrupt request signal. And a hardware verification step of verifying hardware related to the input / output device based on an interrupt processing result of the processor and a history of the holding step.

【0023】この発明によれば、まずマスク設定工程に
よって、割込要求信号の優先度に対応させて各割込要求
信号をマスクし、保持工程によって、各前記割込要求信
号の有無を一時記憶し、該割込要求信号の有無の履歴を
保持し、ハードウェア検証工程によって、プロセッサに
よる割込処理結果と前記保持工程による履歴とをもとに
前記入出力装置に関するハードウェアを検証するように
している。
According to the present invention, first, in the mask setting step, each interrupt request signal is masked in accordance with the priority of the interrupt request signal, and in the holding step, the presence / absence of each interrupt request signal is temporarily stored. Then, the history of the presence or absence of the interrupt request signal is held, and the hardware related to the input / output device is verified by the hardware verification step based on the result of the interrupt processing by the processor and the history of the holding step. ing.

【0024】つぎの発明にかかる割込制御検証方法は、
上記の発明において、前記擬似割込制御信号または前記
割込制御信号の内容を一時記憶し、該擬似割込制御信号
または該割込制御信号の内容の履歴を保持する履歴保持
工程と、前記履歴保持工程によって保持された履歴をも
とに前記擬似割込制御信号または前記割込制御信号の生
成を検証する信号生成検証工程と、をさらに含むことを
特徴とする。
The interrupt control verification method according to the next invention is as follows.
In the above invention, a history holding step of temporarily storing the content of the pseudo interrupt control signal or the interrupt control signal and holding a history of the content of the pseudo interrupt control signal or the interrupt control signal; A signal generation verifying step of verifying the generation of the pseudo interrupt control signal or the interrupt control signal based on the history held by the holding step.

【0025】この発明によれば、まず履歴保持工程によ
って、前記擬似割込制御信号または前記割込制御信号の
内容を一時記憶し、該擬似割込制御信号または該割込制
御信号の内容の履歴を保持し、その後、信号生成検証工
程によって、前記履歴保持工程によって保持された履歴
をもとに前記擬似割込制御信号または前記割込制御信号
の生成を検証するようにしている。
According to this invention, first, in the history holding step, the pseudo interrupt control signal or the content of the interrupt control signal is temporarily stored, and the history of the pseudo interrupt control signal or the content of the interrupt control signal is stored. After that, in a signal generation verifying step, the generation of the pseudo interrupt control signal or the interrupt control signal is verified based on the history held in the history holding step.

【0026】つぎの発明にかかる割込制御検証方法は、
入出力装置からの割込要求信号をもとに優先度を設定し
た割込制御信号を生成してプロセッサによる割込処理を
行わせる一連の割込制御を検証する割込制御検証方法に
おいて、前記割込要求信号の発生後、前記マスク設定手
段による該割込要求信号のマスクから該割込要求信号の
マスク解除までの間に前記割込制御信号の変化を監視す
る監視工程と、前記監視工程によって前記割込要求信号
が変化しない場合に異常が発生した旨を前記プロセッサ
に通知する通知工程と、を含むことを特徴とする。
The interrupt control verification method according to the next invention is as follows.
An interrupt control verification method for generating a series of interrupt control signals based on an interrupt request signal from an input / output device and verifying a series of interrupt controls for performing an interrupt process by a processor, A monitoring step of monitoring a change in the interrupt control signal during a period from generation of the interrupt request signal to mask release of the interrupt request signal by the mask setting unit after generation of the interrupt request signal; And notifying the processor that an abnormality has occurred when the interrupt request signal does not change.

【0027】この発明によれば、まず監視工程によっ
て、前記割込要求信号の発生後、前記マスク設定手段に
よる該割込要求信号のマスクから該割込要求信号のマス
ク解除までの間に前記割込制御信号の変化を監視し、通
知工程によって、前記監視工程によって前記割込要求信
号が変化しない場合に異常が発生した旨を前記プロセッ
サに通知するようにしている。
According to the present invention, first, in the monitoring step, after the interrupt request signal is generated, the interrupt request signal is masked by the mask setting means until the mask of the interrupt request signal is released. A change in the interrupt control signal is monitored, and the notifying step notifies the processor that an abnormality has occurred when the interrupt request signal does not change in the monitoring step.

【0028】[0028]

【発明の実施の形態】以下に添付図面を参照して、この
発明にかかる割込制御装置および割込制御検証方法の好
適な実施の形態を詳細に説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Preferred embodiments of an interrupt control device and an interrupt control verification method according to the present invention will be described below in detail with reference to the accompanying drawings.

【0029】実施の形態1.まず、この発明の実施の形
態1について説明する。図1は、この発明の実施の形態
1である割込制御装置を含む計算機システムの構成を示
すブロック図である。図1において、プロセッサ1、メ
モリ1a、および複数の入出力装置(I/O)2−1〜
2−nは、それぞれプロセッサバス3に接続される。割
込制御装置10は、プロセッサ1および複数のI/O2
−1〜2−nに接続される。
Embodiment 1 First, a first embodiment of the present invention will be described. FIG. 1 is a block diagram showing a configuration of a computer system including an interrupt control device according to Embodiment 1 of the present invention. 1, a processor 1, a memory 1a, and a plurality of input / output devices (I / O) 2-1 to 1
2-n are connected to the processor bus 3, respectively. The interrupt control device 10 includes a processor 1 and a plurality of I / O2s.
-1 to 2-n.

【0030】プロセッサ1は、割込制御装置10から入
力されたエンコード信号5をもとに割込処理を行い、ソ
フトウェアによって実現される割込ハンドラ6と、複数
のI/O2−1〜2−nに対する処理が記述されらI/
Oソフトウェア7と、デバッグ処理および割込制御装置
10に対する設定を行うことができるデバッガ8とを有
する。
The processor 1 performs an interrupt process based on the encode signal 5 input from the interrupt control device 10, and an interrupt handler 6 realized by software and a plurality of I / Os 2-1 to 2- n is described,
It has O software 7 and a debugger 8 that can perform a debug process and settings for the interrupt control device 10.

【0031】割込制御装置10は、複数のI/O2−1
〜2−nに対応した擬似的な割込要求信号を生成する擬
似割込生成レジスタRq、割込要求信号をマスクするマ
スクレジスタRm、割込要求信号IRQ1〜IRQnと
これに対応したマスクレジスタRmからの出力とを論理
積をとる複数のアンド回路11−1〜11−n、アンド
回路11−1〜11−nの出力と擬似割込生成レジスタ
Rqの出力とをそれぞれ対応させて論理和をとるオア回
路12−1〜12−n、およびオア回路12−1〜12
−nの出力をもとに優先度を付したエンコード信号5を
生成してプロセッサ1に出力するプライオリティエンコ
ーダ13を有する。
The interrupt control device 10 includes a plurality of I / Os 2-1.
, A pseudo interrupt generation register Rq for generating a pseudo interrupt request signal corresponding to .about.2-n, a mask register Rm for masking the interrupt request signal, interrupt request signals IRQ1 to IRQn, and a mask register Rm corresponding thereto. AND circuits 11-1 to 11-n which take the logical product of the outputs from the AND circuits 11-1 to 11-n, and the outputs of the AND circuits 11-1 to 11-n and the output of the pseudo interrupt generation register Rq are respectively associated with each other to form a logical sum. OR circuits 12-1 to 12-n and OR circuits 12-1 to 12-12
It has a priority encoder 13 that generates an encoded signal 5 assigned a priority based on the output of −n and outputs it to the processor 1.

【0032】I/O2−1〜2−nからの割込要求信号
IRQ1〜IRQnは、割込制御装置10内の各I/O
2−1〜2−nに対応するアンド回路11−1〜11−
nに入力される。一方、アンド回路11−1〜11−n
の一方の入力端には、割込要求信号IRQ1〜IRQn
にそれぞれ対応するマスクレジスタRmのビット内容R
m1〜Rmnが入力される。このマスクレジスタRmの
ビット内容Rm1〜Rmnは、予め設定される優先度に
基づいてマスクするか、マスクしないかが設定される。
すなわち、割込要求信号IRQ1〜IRQnのうちの最
も優先度の高い割込要求信号に対応するマスクレジスタ
Rmのビット内容Rm1〜Rmnを「1」に設定し、そ
の他のビット内容Rm1〜Rmnを「0」に設定する。
マスクレジスタRmのビット内容Rm1〜Rmnが
「0」である場合には、割込要求信号の有無にかかわら
ず、論理積によって割込要求は発生しない。すなわち、
割込がマスクされる。
The interrupt request signals IRQ1 to IRQn from the I / Os 2-1 to 2-n are transmitted to the respective I / Os in the interrupt control device 10.
AND circuits 11-1 to 11- corresponding to 2-1 to 2-n
n. On the other hand, AND circuits 11-1 to 11-n
Are connected to one of the input terminals of interrupt request signals IRQ1 to IRQn.
, The bit content R of the mask register Rm corresponding to
m1 to Rmn are input. The bit contents Rm1 to Rmn of the mask register Rm are set to mask or not to mask based on a preset priority.
That is, among the interrupt request signals IRQ1 to IRQn, the bit contents Rm1 to Rmn of the mask register Rm corresponding to the highest priority interrupt request signal are set to “1”, and the other bit contents Rm1 to Rmn are set to “1”. Set to "0".
When the bit contents Rm1 to Rmn of the mask register Rm are “0”, an interrupt request is not generated by logical AND regardless of the presence or absence of the interrupt request signal. That is,
The interrupt is masked.

【0033】アンド回路11−1〜11−nの出力は、
オア回路12−1〜12−nの一端に入力され、論理和
によってアンド回路11−1〜11−nの出力が「1」
の時は、必ずプライオリティエンコーダ13に「1」が
出力される。オア回路12−1〜12−nの他の入力端
には、割込要求信号IRQ1〜IRQnにそれぞれ対応
する擬似割込生成レジスタRqのビット内容Rq1〜R
qnの出力が入力される。擬似割込生成レジスタRqの
ビット内容Rq1〜Rqnは、デバッガ8によって設定
され、割込要求信号IRQ1〜IRQnを擬似する擬似
割込要求信号がオア回路12−1〜12−nの他の入力
端に入力される。この擬似割込要求信号を生成する場合
には、割込要求信号IRQ1〜IRQnに対応したエン
コード信号5を生成させないために、デバッガ8によっ
てマスクレジスタRmのビット内容Rm1〜Rmnは、
全てマスクされる。すなわち、ビット内容Rm1〜Rm
nは、全て「0」に設定される。
The outputs of the AND circuits 11-1 to 11-n are
The outputs are input to one ends of the OR circuits 12-1 to 12-n, and the outputs of the AND circuits 11-1 to 11-n are set to "1" by a logical sum.
In this case, "1" is always output to the priority encoder 13. The other input terminals of the OR circuits 12-1 to 12-n have bit contents Rq1 to Rq1 of the pseudo interrupt generation register Rq corresponding to the interrupt request signals IRQ1 to IRQn, respectively.
The output of qn is input. The bit contents Rq1 to Rqn of the pseudo interrupt generation register Rq are set by the debugger 8, and pseudo interrupt request signals for simulating the interrupt request signals IRQ1 to IRQn are input to the other input terminals of the OR circuits 12-1 to 12-n. Is input to When the pseudo interrupt request signal is generated, the bit contents Rm1 to Rmn of the mask register Rm are set by the debugger 8 so as not to generate the encode signal 5 corresponding to the interrupt request signals IRQ1 to IRQn.
All are masked. That is, the bit contents Rm1 to Rm
All n are set to “0”.

【0034】その後、プライオリティエンコーダ13
は、オア回路12−1〜12−nから入力される出力信
号をもとに優先度を付したエンコード信号5を生成し
て、プロセッサ1に出力し、割込ハンドラ6によって所
定の割込が発生することになる。ところで、上述した割
込制御において不具合を事前に検証し、あるいは事後に
発生した不具合を検証する必要があり、この場合におけ
る検証処理について図2に示すフローチャートを参照し
て説明する。
Thereafter, the priority encoder 13
Generates an encoded signal 5 with a priority based on the output signals input from the OR circuits 12-1 to 12-n, outputs the encoded signal 5 to the processor 1, and a predetermined interrupt is generated by the interrupt handler 6. Will happen. By the way, in the above-described interrupt control, it is necessary to verify a defect beforehand or to verify a defect that has occurred afterward. The verification process in this case will be described with reference to a flowchart shown in FIG.

【0035】図2は、ハードウェア/ソフトウェア検証
処理手順を示すフローチャートである。このハードウェ
アとは、複数のI/O2−1〜2−nおよび割込制御装
置10のハードウェアをいい、ソフトウェアとは、プロ
セッサ1内のソフトウェアをいう。
FIG. 2 is a flowchart showing a hardware / software verification processing procedure. The hardware refers to hardware of the plurality of I / Os 2-1 to 2-n and the interrupt control device 10, and the software refers to software in the processor 1.

【0036】図2において、まず通常の割込処理を行う
(ステップS11)。すなわち、複数のI/O2−1〜
2−nから割込要求信号を割込制御装置10に出力し、
この出力した割込要求信号をもとに割込制御装置10が
エンコード信号5をプロセッサ1に出力し、このエンコ
ード信号5をもとにプロセッサ1内の割込ハンドラ6が
割込ルーチンを実行する。
In FIG. 2, first, a normal interrupt process is performed (step S11). That is, a plurality of I / O2-1 to I / O2-1
2-n, outputs an interrupt request signal to the interrupt controller 10;
The interrupt controller 10 outputs an encode signal 5 to the processor 1 based on the output interrupt request signal, and the interrupt handler 6 in the processor 1 executes an interrupt routine based on the encode signal 5. .

【0037】その後、割込処理が正常に行われたか否か
を判断し(ステップS12)、正常に行われた場合(ス
テップS12,YES)には本処理を終了し、正常に行
われなかった場合(ステップS12,NO)には、擬似
割込要求信号を擬似割込生成レジスタRqを設定するこ
とによってソフトウェア検証処理を実行し(ステップS
13)、ソフトウェアが正常であったか否かを判断する
(ステップS14)。その後、ソフトウェアが正常であ
った場合(ステップS14,YES)には、ハードウェ
アが異常であると判定し(ステップS15)、ソフトウ
ェアが正常でない場合(ステップS14,NO)には、
ソフトウェアが異常であると判定し(ステップS1
6)、本処理を終了する。
Thereafter, it is determined whether or not the interrupt processing has been performed normally (step S12). If the interrupt processing has been normally performed (step S12, YES), the present processing is terminated, and the processing has not been performed normally. In this case (step S12, NO), the software verification process is executed by setting the pseudo interrupt generation register Rq to the pseudo interrupt request signal (step S12).
13), it is determined whether the software is normal (step S14). Thereafter, if the software is normal (step S14, YES), it is determined that the hardware is abnormal (step S15), and if the software is not normal (step S14, NO),
It is determined that the software is abnormal (step S1
6), end this processing.

【0038】つぎに、図3のフローチャートを参照し
て、図2に示したソフトウェア検証処理手順について詳
細に説明する。図3において、まずデバッガ8は、擬似
割込生成レジスタRqの全てのビット内容Rq1〜Rq
nを「0」に設定する(ステップS21)。その後、デ
バッガ8は、さらにマスクレジスタRmの全てのビット
内容Rm1〜Rmnを「0」に設定する(ステップS2
2)。これによって、割込要求信号IRQ1〜IRQn
に対応した信号あるいは擬似割込要求信号はプライオリ
ティエンコーダ13には入力されず、結果としてエンコ
ード信号5は発生しないことになる。
Next, the software verification processing procedure shown in FIG. 2 will be described in detail with reference to the flowchart in FIG. In FIG. 3, first, the debugger 8 checks all bit contents Rq1 to Rq of the pseudo interrupt generation register Rq.
n is set to “0” (step S21). Thereafter, the debugger 8 further sets all bit contents Rm1 to Rmn of the mask register Rm to “0” (step S2).
2). Thereby, the interrupt request signals IRQ1 to IRQn
Is not input to the priority encoder 13, and as a result, the encoded signal 5 is not generated.

【0039】その後、所望の割込要求信号IRQ1〜I
RQnのいずれかに対応する、擬似割込生成レジスタR
qのビット内容Rq1〜Rqnを「1」に設定し(ステ
ップS23)、ステップS13にリターンする。これに
より、オア回路12−1〜12−nを介して擬似割込要
求信号がプライオリティエンコーダ13に入力され、生
成されたエンコード信号5がプロセッサ1に入力されて
割込処理が実行される。
Thereafter, the desired interrupt request signals IRQ1 to IRQ1 to IRQ1
Pseudo interrupt generation register R corresponding to one of RQn
The bit contents Rq1 to Rqn of q are set to “1” (step S23), and the process returns to step S13. Thereby, the pseudo interrupt request signal is input to the priority encoder 13 via the OR circuits 12-1 to 12-n, the generated encode signal 5 is input to the processor 1, and the interrupt process is executed.

【0040】この実施の形態1によれば、ソフトウェア
であるデバッガ8によって擬似割込生成レジスタRqの
設定を行い、ハードウェアが発生する割込要求信号を意
図的に擬似割込要求信号として生成し、プロセッサ1の
割込ハンドラ6の割込処理を起動させることができるの
で、ハードウェアとの切り分けを確実に行って、プロセ
ッサ1内の割込ハンドラ6のソフトウェアのみの動作検
証を容易に行うことができる。
According to the first embodiment, the pseudo interrupt generation register Rq is set by the debugger 8 which is software, and an interrupt request signal generated by hardware is intentionally generated as a pseudo interrupt request signal. Since the interrupt processing of the interrupt handler 6 of the processor 1 can be activated, it is possible to reliably separate the hardware from the hardware and easily verify the operation of only the software of the interrupt handler 6 in the processor 1. Can be.

【0041】なお、上述した実施の形態1では、通常割
込処理(ステップS11)を行った後に、ソフトウェア
検証処理(ステップS13)等を行うようにようにして
いるが、ソフトウェア検証処理自体を独自に行うように
してもよい。この独自に行われるソフトウェア検証処理
によって、プロセッサ1内の割込ハンドラ6のみの動作
検証を容易に行うことができる。
In the first embodiment, the software verification processing (step S13) and the like are performed after the normal interruption processing (step S11). However, the software verification processing itself is performed independently. May be performed. By this independently performed software verification processing, the operation verification of only the interrupt handler 6 in the processor 1 can be easily performed.

【0042】実施の形態2.つぎに、この発明の実施の
形態2について説明する。実施の形態1では、擬似割込
生成レジスタRqを設定することによって擬似割込要求
信号を生成し、この擬似割込要求信号によるエンコード
信号によって割込ハンドラ6を起動させ、割込ハンドラ
6の動作検証を行うようにしているが、この実施の形態
2では、さらに、I/O2−1〜2−nおよび割込制御
装置10のハードウェアの動作検証のみを行うことがで
きるようにしている。
Embodiment 2 Next, a second embodiment of the present invention will be described. In the first embodiment, the pseudo interrupt request signal is generated by setting the pseudo interrupt generation register Rq, and the interrupt handler 6 is activated by the encode signal based on the pseudo interrupt request signal, and the operation of the interrupt handler 6 is performed. Although the verification is performed, in the second embodiment, only the operation verification of the hardware of the I / Os 2-1 to 2-n and the interrupt control device 10 can be performed.

【0043】図4は、この発明の実施の形態2である割
込制御装置を含む計算機システムの構成を示すブロック
図である。図4において、割込制御装置10は、図1に
示した割込制御装置10の構成に加えて、割込要求信号
IRQ1〜IRQnの状態を一時記憶するステータスレ
ジスタRsと、プライオリティエンコーダ13が生成す
るエンコード信号5の情報内容を一時記憶するエンコー
ドステータスレジスタ14と、ステータスレジスタRs
とエンコードステータスレジスタ14が一時記憶した内
容を逐次、履歴として取得し、保持する履歴取得/保持
部15とを有し、その他構成は、図1に示した構成と同
一であり、同一部分の構成には同一符号を付している。
FIG. 4 is a block diagram showing a configuration of a computer system including an interrupt control device according to the second embodiment of the present invention. In FIG. 4, in addition to the configuration of interrupt control device 10 shown in FIG. 1, interrupt control device 10 generates status register Rs for temporarily storing the state of interrupt request signals IRQ1 to IRQn, and priority encoder 13 generates An encoding status register 14 for temporarily storing the information content of the encoding signal 5 to be encoded, and a status register Rs
And a history acquiring / holding unit 15 for sequentially acquiring and holding the contents temporarily stored in the encoding status register 14 as a history. The other configuration is the same as the configuration shown in FIG. Are denoted by the same reference numerals.

【0044】ここで、上述したステータスレジスタR
s、エンコードステータスレジスタ14、および履歴取
得/保持部15を用いたハードウェア/ソフトウェア検
証処理について、図5に示すフローチャートを参照して
説明する。図5において、まず通常の割込処理を行う
(ステップS31)。すなわち、複数のI/O2−1〜
2−nから割込要求信号を割込制御装置10に出力し、
この出力した割込要求信号をもとに割込制御装置10が
エンコード信号5をプロセッサ1に出力し、このエンコ
ード信号5をもとにプロセッサ1内の割込ハンドラ6が
割込ルーチンを実行する。
Here, the status register R
The hardware / software verification process using the s, the encode status register 14, and the history acquisition / hold unit 15 will be described with reference to the flowchart shown in FIG. In FIG. 5, first, a normal interrupt process is performed (step S31). That is, a plurality of I / O2-1 to I / O2-1
2-n, outputs an interrupt request signal to the interrupt controller 10;
The interrupt controller 10 outputs an encode signal 5 to the processor 1 based on the output interrupt request signal, and the interrupt handler 6 in the processor 1 executes an interrupt routine based on the encode signal 5. .

【0045】その後、履歴取得/保持部15は、この通
常割込処理によって変化する割込要求信号IRQ1〜I
RQnとエンコード信号5との履歴を取得する(ステッ
プS32)。すなわち、ステータスレジスタRsに順次
記憶される割込要求信号IRQ1〜IRQnのビット内
容とエンコードステータスレジスタ14に順次記憶され
るエンコード信号5の情報内容とを対として取得し、履
歴情報として保持する。
Thereafter, the history obtaining / holding unit 15 outputs the interrupt request signals IRQ1 to IRQ1 which change by the normal interrupt processing.
The history of RQn and the encoding signal 5 is acquired (step S32). That is, the bit contents of the interrupt request signals IRQ1 to IRQn sequentially stored in the status register Rs and the information contents of the encode signal 5 sequentially stored in the encode status register 14 are acquired as a pair and held as history information.

【0046】その後、割込が正常に行われたか否かを判
断し(ステップS33)、割込が正常に行われた場合
(ステップS33,YES)には、本処理を終了し、割
込が正常に行われていない場合(ステップS33,N
O)には、さらにステータスレジスタRqの履歴内容は
正常であるか否かを判断する(ステップS34)。ステ
ータスレジスタRqの履歴内容が正常動作していない場
合(ステップS34,NO)には、I/O2−1〜2−
nが異常であると判定し(ステップS36)、本処理を
終了し、ステータスレジスタRqの履歴内容が正常であ
る場合(ステップS34,YES)には、I/O2−1
〜2−nは正常動作していると判定する(ステップS3
5)。
Thereafter, it is determined whether or not the interrupt has been normally performed (step S33). If the interrupt has been normally performed (step S33, YES), the present process is terminated, and the interrupt is terminated. If not performed normally (step S33, N
In O), it is further determined whether or not the history content of the status register Rq is normal (step S34). If the history content of the status register Rq is not operating normally (step S34, NO), the I / Os 2-1 to 2-
It is determined that n is abnormal (step S36), this processing ends, and if the history content of the status register Rq is normal (step S34, YES), the I / O 2-1
To 2-n are determined to be operating normally (step S3).
5).

【0047】I/O2−1〜2−nが正常動作している
と判定した場合(ステップS35)には、さらにエンコ
ードステータスレジスタ14の内容が正常であったか否
かを判断する(ステップS37)。エンコードステータ
スレジスタ14の内容が正常動作していないと判断した
場合(ステップS37,NO)には、割込制御装置10
のハードウェアが異常であると判定し(ステップS3
9)、エンコードステータスレジスタ14の内容が正常
動作していると判断した場合(ステップS37,YE
S)には、割込制御装置のハードウェアは正常でプロセ
ッサ1内のソフトウェアが異常であると判定し(ステッ
プS38)、本処理を終了する。
If it is determined that the I / Os 2-1 to 2-n are operating normally (step S35), it is further determined whether or not the contents of the encode status register 14 are normal (step S37). If it is determined that the contents of the encode status register 14 are not operating normally (step S37, NO), the interrupt control device 10
Is determined to be abnormal (step S3).
9) If it is determined that the contents of the encode status register 14 are operating normally (step S37, YE)
In S), it is determined that the hardware of the interrupt control device is normal and the software in the processor 1 is abnormal (step S38), and the process ends.

【0048】なお、上述した実施の形態2では、通常割
込処理(ステップS31)を行うようにしているが、こ
れに限らず、実施の形態1における擬似割込要求信号に
よって行う割込処理であってもよい。この場合、割込制
御装置10、特にプライオリティエンコーダ13等のハ
ードウェアの検証を行うことができる。また、この擬似
割込要求信号と割込要求信号とを用いることによって、
割込制御装置10内のハードウェア不具合箇所をさらに
特定することが可能となる。
In the above-described second embodiment, the normal interrupt processing (step S31) is performed. However, the present invention is not limited to this, and the interrupt processing performed by the pseudo interrupt request signal in the first embodiment is performed. There may be. In this case, the hardware of the interrupt control device 10, particularly the hardware of the priority encoder 13 and the like can be verified. Also, by using the pseudo interrupt request signal and the interrupt request signal,
It is possible to further specify a hardware failure location in the interrupt control device 10.

【0049】また、上述した実施の形態2では、ステー
タスレジスタRsとエンコードステータスレジスタ14
とを併用した処理を行っているが、これに限らず、いず
れか一方を用いてハードウェア検証を行うようにしても
よい。さらに、上述した実施の形態2では、履歴取得/
保持部15が履歴情報を取り出す場合には、直接ステー
タスレジスタRsおよびエンコードステータスレジスタ
14の出力を取り出すインタフェースを設けるようにし
てもよい。
In the second embodiment, the status register Rs and the encode status register 14
Although the processing is performed in combination with the above, the present invention is not limited to this, and hardware verification may be performed using either one. Further, in the second embodiment, the history acquisition /
When the holding unit 15 retrieves the history information, an interface that directly retrieves the outputs of the status register Rs and the encode status register 14 may be provided.

【0050】上述した実施の形態2によれば、ステータ
スレジスタRsおよびエンコードステータスレジスタ1
4の履歴内容をもとに、I/O2−1〜2−nおよび割
込制御装置10のハードウェアのみを容易に検証するこ
とができる。また、この履歴内容が正常であった場合に
は、同時にソフトウェアの検証をも行うことができる。
According to the second embodiment, the status register Rs and the encode status register 1
4, only the I / Os 2-1 to 2-n and the hardware of the interrupt control device 10 can be easily verified. If the history is normal, the software can be verified at the same time.

【0051】実施の形態3.つぎに、この発明の実施の
形態3について説明する。この実施の形態3では、実施
の形態2において設けられたステータスレジスタRsの
情報内容を監視し、この監視結果をもとに、割込制御の
状態を判定するようにしている。
Embodiment 3 FIG. Next, a third embodiment of the present invention will be described. In the third embodiment, the information content of the status register Rs provided in the second embodiment is monitored, and the state of the interrupt control is determined based on the monitoring result.

【0052】図6は、この発明の実施の形態3である割
込制御装置を含む計算機システムの構成を示すブロック
図である。図3において、割込制御装置10は、図4に
示した割込制御装置10にさらにステータスレジスタR
sのビット内容Rs1〜Rsnを監視し、一連の割込制
御期間内において割込要求を行った割込要求信号が一連
の割込制御期間経過後も変化しない場合にマスクレジス
タの処理の異常をプロセッサ1に通知する監視部16を
有し、その他の構成は、実施の形態2と同一の構成であ
り、同一の構成部分には同一符号を付している。
FIG. 6 is a block diagram showing a configuration of a computer system including an interrupt control device according to the third embodiment of the present invention. In FIG. 3, the interrupt control device 10 is different from the interrupt control device 10 shown in FIG.
The bit contents Rs1 to Rsn of s are monitored, and if an interrupt request signal that has issued an interrupt request within a series of interrupt control periods does not change even after a series of interrupt control periods, an abnormality in the processing of the mask register is determined. It has a monitoring unit 16 for notifying the processor 1, and the other configuration is the same as that of the second embodiment, and the same components are denoted by the same reference numerals.

【0053】通常、割込ハンドラ6は、割込が起動され
ると、マスクレジスタRmのビット内容Rm1〜Rmn
に対するマスク処理を行い、その後、I/O2−1〜2
−nの割込要因を解除する処理を行い、このマスクを解
除するという一連の処理を実行する。この一連の割込処
理期間の間、監視部16は、マスクレジスタRmのビッ
ト内容Rm1〜Rmnを監視し、マスクの解除までに割
込要求を行った割込要求信号が「0」に変化しない場
合、プロセッサ1に対してマスクができない割込、ある
いは履歴が異常である旨の通知を行う。
Normally, when the interrupt is activated, the interrupt handler 6 sets the bit contents Rm1 to Rmn of the mask register Rm.
Is performed, and then I / O2-1 to I / O2-1 to I-2
A series of processes for canceling the interrupt factor of -n and canceling the mask are executed. During this series of interrupt processing periods, the monitoring unit 16 monitors the bit contents Rm1 to Rmn of the mask register Rm, and the interrupt request signal that issued the interrupt request until the mask is released does not change to “0”. In this case, the processor 1 is notified of an interrupt that cannot be masked or that the history is abnormal.

【0054】この割込制御装置10内の監視部16にお
ける割込制御の動的な検証処理について図7のフローチ
ャートを参照して説明する。図7において、まず監視部
16は、ステータスレジスタRsのビット内容Rs1〜
Rsnを監視する(ステップS41)。その後、上述し
た一連の割込処理期間が経過したか否かを判断する(ス
テップS42)。この一連の割込処理期間が経過しない
場合(ステップS42,NO)にはステップS41に移
行し、一連の割込処理期間が経過した場合(ステップS
42,YES)には、さらに監視している割込要求信号
が「1」から「0」に変化したか否かを判断する(ステ
ップS43)。
The dynamic verification process of the interrupt control in the monitoring unit 16 in the interrupt control device 10 will be described with reference to the flowchart of FIG. In FIG. 7, first, the monitoring unit 16 determines the bit contents Rs1 to Rs1 of the status register Rs.
Rsn is monitored (step S41). Thereafter, it is determined whether or not the above-described series of interrupt processing periods has elapsed (step S42). If the series of interrupt processing periods has not elapsed (step S42, NO), the process proceeds to step S41, and if the series of interrupt processing periods has elapsed (step S42).
(42, YES), it is determined whether the monitored interrupt request signal has changed from "1" to "0" (step S43).

【0055】割込要求信号が変化した場合(ステップS
43,YES)には、割込処理が正常動作しているとし
てステップS41に移行し、上述した処理を繰り返し、
割込要求信号が変化しない場合(ステップS43,N
O)には、割込処理が異常であるとしてプロセッサ1に
通知し(ステップS44)、本処理を終了する。
When the interrupt request signal changes (step S
43, YES), it is determined that the interrupt processing is operating normally, and the flow shifts to the step S41 to repeat the above-described processing.
When the interrupt request signal does not change (step S43, N
In O), the processor 1 is notified that the interrupt processing is abnormal (step S44), and the processing ends.

【0056】この実施の形態3によれば、実施の形態2
で設けたステータスレジスタRsのビット内容Rs1〜
Rsnを監視し、割込制御の異常を動的に検出し、プロ
セッサ1に通知するようにしているので、割込制御の異
常による不具合を直ちに検出することができるととも
に、割込制御の異常に基づく予期し得ない動作の発生が
広がらないようにしている。
According to the third embodiment, the second embodiment
The bit contents Rs1 to Rs1 of the status register Rs provided by
Since Rsn is monitored and an abnormality in the interrupt control is dynamically detected and notified to the processor 1, a failure due to the abnormality in the interrupt control can be immediately detected, and an abnormality in the interrupt control can be detected. To prevent the occurrence of unpredictable actions based on the information from spreading.

【0057】[0057]

【発明の効果】以上説明したように、この発明によれ
ば、マスク設定手段が入出力装置からの割込要求信号の
優先度に対応させて各割込要求信号をマスクするが、擬
似信号生成手段は、前記マスク設定手段によって全ての
割込要求信号をマスクした状態で各割込要求信号によっ
て生成される割込制御信号を擬似した擬似割込制御信号
を生成し、この擬似割込制御信号を、割込処理を行うプ
ロセッサに通知し、プロセッサに対して割込処理を実行
させ、この割込処理結果によってプロセッサによる割込
処理のソフトウェアのみを容易に検証するようにしてい
るので、割込制御信号に対応する擬似割込制御信号を意
図的に生成することができ、入出力装置および当該割込
制御装置のハードウェアの検証とを切り分けた形態で、
ソフトウェアのみの検証処理を容易に行うことができる
という効果を奏する。
As described above, according to the present invention, the mask setting means masks each interrupt request signal in accordance with the priority of the interrupt request signal from the input / output device. Means for generating a pseudo interrupt control signal simulating an interrupt control signal generated by each interrupt request signal in a state where all the interrupt request signals are masked by the mask setting means; Is notified to the processor that performs the interrupt processing, and the processor executes the interrupt processing. Based on the result of the interrupt processing, only the software of the interrupt processing by the processor is easily verified. A pseudo interrupt control signal corresponding to the control signal can be intentionally generated, and the input / output device and the verification of the hardware of the interrupt control device are separated from each other.
There is an effect that the verification processing of only the software can be easily performed.

【0058】つぎの発明によれば、割込要求信号記憶手
段は、各前記割込要求信号の有無を一時記憶し、第1の
履歴保持手段は、この割込要求信号記憶手段に記憶され
た割込要求信号の有無の履歴を保持するようにしている
ので、この履歴結果をもとに入出力装置のハードウェア
のみの検証を容易に行うことができるとともに、プロセ
ッサ内のソフトウェアの開発以前に入出力装置のハード
ウェアの検証を行うことができるという効果を奏する。
According to the next invention, the interrupt request signal storage means temporarily stores the presence or absence of each of the interrupt request signals, and the first history holding means stores the interrupt request signal in the interrupt request signal storage means. Since the history of the presence / absence of the interrupt request signal is retained, it is possible to easily verify only the hardware of the input / output device based on the result of this history, and before the development of the software in the processor. This has the effect that the hardware of the input / output device can be verified.

【0059】つぎの発明によれば、割込要求信号記憶手
段は、前記割込制御信号の内容を一時記憶し、第2の履
歴保持手段は、前記割込制御信号記憶手段に記憶された
割込制御信号の内容の履歴を保持するようにしているの
で、この履歴結果をもとに入出力装置および当該割込制
御装置のハードウェアの検証を行うことができるという
効果を奏する。また、入出力装置からの割込要求信号を
一元的に管理することができるため、割込処理ソフトウ
ェアの構成を容易にすることができ、バグの生成要因を
減少させることができるという効果を奏する。
According to the next invention, the interrupt request signal storage means temporarily stores the content of the interrupt control signal, and the second history holding means stores the interrupt control signal stored in the interrupt control signal storage means. Since the history of the contents of the interrupt control signal is held, the effect is obtained that the hardware of the input / output device and the hardware of the interrupt control device can be verified based on the history result. Further, since the interrupt request signal from the input / output device can be centrally managed, it is possible to simplify the configuration of the interrupt processing software and to reduce the number of bug generation factors. .

【0060】つぎの発明によれば、通知手段は、前記割
込要求信号の発生後、前記マスク設定手段による該割込
要求信号のマスクから該割込要求信号のマスク解除まで
の間に前記割込要求信号が変化しない場合に、当該割込
制御装置に異常が発生した旨を前記プロセッサに通知す
るようにしているので、割込要求信号記憶手段を有効利
用して、割込処理の動的な検証処理を行うことができる
とともに、異常の発生に伴う予期しない動作の発生を防
止することができるという効果を奏する。
According to the next invention, after the interrupt request signal is generated, the notifying means performs the interrupt processing between the time when the mask setting means masks the interrupt request signal and the time when the interrupt request signal is unmasked. When the interrupt request signal does not change, the processor is notified of the occurrence of an abnormality in the interrupt control device. Therefore, the interrupt request signal storage means is effectively used to dynamically execute the interrupt processing. This makes it possible to perform an accurate verification process and prevent an unexpected operation from occurring due to the occurrence of an abnormality.

【0061】つぎの発明によれば、まず、擬似信号生成
工程によって、全ての割込要求信号をマスクした状態で
各割込要求信号によって生成される割込制御信号を擬似
した擬似割込制御信号を生成し、その後、ソフトウェア
検証工程によって、前記擬似信号生成工程によって生成
された擬似割込制御信号を用いて前記プロセッサに割込
処理を行わせ、前記プロセッサのソフトウェアを検証す
るようにしているので、割込制御信号に対応する擬似割
込制御信号を意図的に生成することができ、入出力装置
および当該割込制御装置のハードウェアの検証とを切り
分けた形態で、ソフトウェアのみの検証処理を容易に行
うことができるという効果を奏する。
According to the next invention, first, in the pseudo signal generation step, a pseudo interrupt control signal simulating the interrupt control signal generated by each interrupt request signal while all the interrupt request signals are masked. Then, the software verification step causes the processor to perform an interrupt process using the pseudo interrupt control signal generated by the pseudo signal generation step, thereby verifying the software of the processor. , A pseudo interrupt control signal corresponding to the interrupt control signal can be intentionally generated, and verification of only software can be performed by separating the verification of the input / output device and the hardware of the interrupt control device. There is an effect that it can be easily performed.

【0062】つぎの発明によれば、まずマスク設定工程
によって、割込要求信号の優先度に対応させて各割込要
求信号をマスクし、保持工程によって、各前記割込要求
信号の有無を一時記憶し、該割込要求信号の有無の履歴
を保持し、ハードウェア検証工程によって、プロセッサ
による割込処理結果と前記保持工程による履歴とをもと
に前記入出力装置に関するハードウェアを検証するよう
にしているので、この履歴結果をもとに入出力装置のハ
ードウェアのみの検証を容易に行うことができるととも
に、プロセッサ内のソフトウェアの開発以前に入出力装
置のハードウェアの検証を行うことができるという効果
を奏する。
According to the next invention, first, in the mask setting step, each interrupt request signal is masked in accordance with the priority of the interrupt request signal, and in the holding step, the presence / absence of each interrupt request signal is temporarily determined. Storing the history of the presence / absence of the interrupt request signal, and verifying the hardware related to the input / output device based on the result of the interrupt processing by the processor and the history of the holding step by a hardware verification step. Therefore, it is possible to easily verify only the hardware of the input / output device based on this history result, and to verify the hardware of the input / output device before developing the software in the processor. It has the effect of being able to.

【0063】つぎの発明によれば、まず履歴保持工程に
よって、前記擬似割込制御信号または前記割込制御信号
の内容を一時記憶し、該擬似割込制御信号または該割込
制御信号の内容の履歴を保持し、その後、信号生成検証
工程によって、前記履歴保持工程によって保持された履
歴をもとに前記擬似割込制御信号または前記割込制御信
号の生成を検証するようにしているので、この履歴結果
をもとに入出力装置および当該割込制御装置のハードウ
ェアの検証を行うことができるという効果を奏する。ま
た、入出力装置からの割込要求信号を一元的に管理する
ことができるため、割込処理ソフトウェアの構成を容易
にすることができ、バグの生成要因を減少させることが
できるという効果を奏する。
According to the next invention, first, in the history holding step, the pseudo interrupt control signal or the content of the interrupt control signal is temporarily stored, and the pseudo interrupt control signal or the content of the interrupt control signal is stored. The history is held, and then, by the signal generation verification step, the pseudo interrupt control signal or the generation of the interrupt control signal is verified based on the history held by the history holding step. There is an effect that the hardware of the input / output device and the hardware of the interrupt control device can be verified based on the history result. Further, since the interrupt request signal from the input / output device can be centrally managed, it is possible to simplify the configuration of the interrupt processing software and to reduce the number of bug generation factors. .

【0064】つぎの発明によれば、まず監視工程によっ
て、前記割込要求信号の発生後、前記マスク設定手段に
よる該割込要求信号のマスクから該割込要求信号のマス
ク解除までの間に前記割込制御信号の変化を監視し、通
知工程によって、前記監視工程によって前記割込要求信
号が変化しない場合に異常が発生した旨を前記プロセッ
サに通知するようにしているので、割込処理の動的な検
証処理を行うことができるとともに、異常の発生に伴う
予期しない動作の発生を防止することができるという効
果を奏する。
According to the next invention, first, in the monitoring step, after the generation of the interrupt request signal, the mask setting unit sets the mask between the mask of the interrupt request signal and the release of the mask of the interrupt request signal. A change in the interrupt control signal is monitored, and the notifying step notifies the processor that an abnormality has occurred when the interrupt request signal does not change in the monitoring step. This makes it possible to perform an efficient verification process and to prevent the occurrence of an unexpected operation due to the occurrence of an abnormality.

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

【図1】 この発明の実施の形態1である割込制御装置
を含む計算機システムの構成を示すブロック図である。
FIG. 1 is a block diagram showing a configuration of a computer system including an interrupt control device according to a first embodiment of the present invention.

【図2】 図1に示した割込制御装置を用いたハードウ
ェア/ソフトウェア検証処理手順を示すフローチャート
である。
FIG. 2 is a flowchart showing a hardware / software verification processing procedure using the interrupt control device shown in FIG. 1;

【図3】 図2に示したソフトウェア検証処理の詳細処
理手順を示すフローチャートである。
FIG. 3 is a flowchart showing a detailed processing procedure of the software verification processing shown in FIG. 2;

【図4】 この発明の実施の形態2である割込制御装置
を含む計算機システムの構成を示すブロック図である。
FIG. 4 is a block diagram showing a configuration of a computer system including an interrupt control device according to a second embodiment of the present invention.

【図5】 図4に示した割込制御装置を用いたハードウ
ェア/ソフトウェア検証処理手順を示すフローチャート
である。
FIG. 5 is a flowchart showing a hardware / software verification processing procedure using the interrupt control device shown in FIG. 4;

【図6】 この発明の実施の形態3である割込制御装置
を含む計算機システムの構成を示すブロック図である。
FIG. 6 is a block diagram showing a configuration of a computer system including an interrupt control device according to a third embodiment of the present invention.

【図7】 図6に示した割込制御装置を用いた割込制御
の検証処理手順を示すフローチャートである。
7 is a flowchart showing a procedure of a verification process of interrupt control using the interrupt control device shown in FIG. 6;

【図8】 従来における割込制御装置を含む計算機シス
テムの構成を示すブロック図である。
FIG. 8 is a block diagram showing a configuration of a conventional computer system including an interrupt control device.

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

1 プロセッサ、1a メモリ、2−1〜2−n 入出
力装置(I/O)、3プロセッサバス、5 エンコード
信号、6 割込ハンドラ、7 I/Oソフトウェア、8
デバッガ、10 割込制御装置、11−1〜11−n
アンド回路、12−1〜12−n オア回路、13
プライオリティエンコーダ、14 エンコードステータ
スレジスタ、15 履歴取得/保持部、16 監視部、
IRQ1〜IRQn 割込要求信号、Rq 擬似割込生
成レジスタ、Rm マスクレジスタ、Rs ステータス
レジスタ。
Reference Signs List 1 processor, 1a memory, 2-1 to 2-n input / output device (I / O), 3 processor bus, 5 encode signal, 6 interrupt handler, 7 I / O software, 8
Debugger, 10 interrupt controller, 11-1 to 11-n
AND circuit, 12-1 to 12-n OR circuit, 13
Priority encoder, 14 encoding status register, 15 history acquisition / holding unit, 16 monitoring unit,
IRQ1 to IRQn interrupt request signal, Rq pseudo interrupt generation register, Rm mask register, Rs status register.

Claims (8)

【特許請求の範囲】[Claims] 【請求項1】 入出力装置からの割込要求信号をもとに
優先度を設定した割込制御信号を生成して該割込制御信
号をプロセッサに通知する割込制御装置において、 前記割込要求信号の優先度に対応させて各割込要求信号
をマスクするマスク設定手段と、 前記マスク設定手段によって全ての割込要求信号をマス
クした状態で各割込要求信号によって生成される割込制
御信号を擬似した擬似割込制御信号を生成する擬似信号
生成手段と、 を備え、 前記擬似信号生成手段によって生成された擬似割込制御
信号によって前記プロセッサが割込処理を行うことを特
徴とする割込制御装置。
1. An interrupt control device for generating an interrupt control signal of which priority is set based on an interrupt request signal from an input / output device and notifying the processor of the interrupt control signal, Mask setting means for masking each interrupt request signal in accordance with the priority of the request signal; and interrupt control generated by each interrupt request signal in a state where all the interrupt request signals are masked by the mask setting means. A pseudo-signal generating means for generating a pseudo-interrupt control signal that simulates a signal, wherein the processor performs an interrupt process based on the pseudo-interrupt control signal generated by the pseudo-signal generating means. Control device.
【請求項2】 各前記割込要求信号の有無を一時記憶す
る割込要求信号記憶手段と、 前記割込要求信号記憶手段に記憶された割込要求信号の
有無の履歴を保持する第1の履歴保持手段と、 をさらに備えたことを特徴とする請求項1に記載の割込
制御装置。
2. An interrupt request signal storage means for temporarily storing the presence / absence of each of said interrupt request signals, and a first memory for holding a history of the presence / absence of the interrupt request signal stored in said interrupt request signal storage means. The interrupt control device according to claim 1, further comprising: a history holding unit.
【請求項3】 前記割込制御信号の内容を一時記憶する
割込制御信号記憶手段と、 前記割込制御信号記憶手段に記憶された割込制御信号の
内容の履歴を保持する第2の履歴保持手段と、 をさらに備えたことを特徴とする請求項1または2に記
載の割込制御装置。
3. An interrupt control signal storing means for temporarily storing the content of the interrupt control signal, and a second history for storing a history of the content of the interrupt control signal stored in the interrupt control signal storing means. The interrupt control device according to claim 1, further comprising: a holding unit.
【請求項4】 前記割込要求信号の発生後、前記マスク
設定手段による該割込要求信号のマスクから該割込要求
信号のマスク解除までの間に前記割込要求信号が変化し
ない場合に、当該割込制御装置に異常が発生した旨を前
記プロセッサに通知する通知手段をさらに備えたことを
特徴とする請求項2または3に記載の割込制御装置。
4. When the interrupt request signal does not change between generation of the interrupt request signal by the mask setting means and release of the interrupt request signal after generation of the interrupt request signal, The interrupt control device according to claim 2, further comprising a notification unit configured to notify the processor that an abnormality has occurred in the interrupt control device.
【請求項5】 入出力装置からの割込要求信号をもとに
優先度を設定した割込制御信号を生成してプロセッサに
よる割込処理を行わせる一連の割込制御を検証する割込
制御検証方法において、 全ての割込要求信号をマスクした状態で各割込要求信号
によって生成される割込制御信号を擬似した擬似割込制
御信号を生成する擬似信号生成工程と、 前記擬似信号生成工程によって生成された擬似割込制御
信号を用いて前記プロセッサに割込処理を行わせ、前記
プロセッサのソフトウェアを検証するソフトウェア検証
工程と、 を含むことを特徴とする割込制御方法。
5. An interrupt control for generating an interrupt control signal of which priority is set based on an interrupt request signal from an input / output device and verifying a series of interrupt controls for performing an interrupt process by a processor. In the verification method, a pseudo signal generating step of generating a pseudo interrupt control signal that simulates an interrupt control signal generated by each interrupt request signal while masking all the interrupt request signals; A software verifying step of causing the processor to perform an interrupt process using the pseudo interrupt control signal generated by the processor and verifying software of the processor.
【請求項6】 入出力装置からの割込要求信号をもとに
優先度を設定した割込制御信号を生成してプロセッサに
よる割込処理を行わせる一連の割込制御を検証する割込
制御検証方法において、 前記割込要求信号の優先度に対応させて各割込要求信号
をマスクするマスク設定工程と、 各前記割込要求信号の有無を一時記憶し、該割込要求信
号の有無の履歴を保持する保持工程と、 前記プロセッサによる割込処理結果と前記保持工程によ
る履歴とをもとに前記入出力装置に関するハードウェア
を検証するハードウェア検証工程と、 を含むことを特徴とする割込制御検証方法。
6. An interrupt control for generating an interrupt control signal of which priority is set based on an interrupt request signal from an input / output device and verifying a series of interrupt controls for causing a processor to execute an interrupt process. In the verification method, a mask setting step of masking each interrupt request signal in accordance with the priority of the interrupt request signal; and temporarily storing the presence / absence of each interrupt request signal; A holding step of holding a history, and a hardware verification step of verifying hardware related to the input / output device based on an interrupt processing result of the processor and a history of the holding step. Control verification method.
【請求項7】 前記擬似割込制御信号または前記割込制
御信号の内容を一時記憶し、該擬似割込制御信号または
該割込制御信号の内容の履歴を保持する履歴保持工程
と、 前記履歴保持工程によって保持された履歴をもとに前記
擬似割込制御信号または前記割込制御信号の生成を検証
する信号生成検証工程と、 をさらに含むことを特徴とする請求項6に記載の割込制
御検証方法。
7. A history holding step of temporarily storing the pseudo interrupt control signal or the content of the interrupt control signal, and holding a history of the content of the pseudo interrupt control signal or the interrupt control signal; 7. A signal generation verifying step for verifying generation of the pseudo interrupt control signal or the interrupt control signal based on the history held by the holding step, and further comprising: Control verification method.
【請求項8】 入出力装置からの割込要求信号をもとに
優先度を設定した割込制御信号を生成してプロセッサに
よる割込処理を行わせる一連の割込制御を検証する割込
制御検証方法において、 前記割込要求信号の発生後、前記マスク設定手段による
該割込要求信号のマスクから該割込要求信号のマスク解
除までの間に前記割込制御信号の変化を監視する監視工
程と、 前記監視工程によって前記割込要求信号が変化しない場
合に異常が発生した旨を前記プロセッサに通知する通知
工程と、 を含むことを特徴とする割込制御検証方法。
8. An interrupt control for generating an interrupt control signal with a priority set based on an interrupt request signal from an input / output device and verifying a series of interrupt controls for causing a processor to execute an interrupt process. In the verification method, after the interrupt request signal is generated, a monitoring step of monitoring a change in the interrupt control signal between a time when the interrupt request signal is masked by the mask setting means and a time when the interrupt request signal is unmasked. And a notifying step of notifying the processor that an abnormality has occurred when the interrupt request signal does not change in the monitoring step.
JP11140115A 1999-05-20 1999-05-20 Interrupt controller and method for verifying interrupt control Pending JP2000330798A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11140115A JP2000330798A (en) 1999-05-20 1999-05-20 Interrupt controller and method for verifying interrupt control

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11140115A JP2000330798A (en) 1999-05-20 1999-05-20 Interrupt controller and method for verifying interrupt control

Publications (1)

Publication Number Publication Date
JP2000330798A true JP2000330798A (en) 2000-11-30

Family

ID=15261273

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11140115A Pending JP2000330798A (en) 1999-05-20 1999-05-20 Interrupt controller and method for verifying interrupt control

Country Status (1)

Country Link
JP (1) JP2000330798A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109753415A (en) * 2017-11-02 2019-05-14 展讯通信(上海)有限公司 Processor verifies system and the processor verification method based on processor verifying system
EP3489829A1 (en) 2017-11-28 2019-05-29 Renesas Electronics Corporation Semiconductor device and failure detection method of the semiconductor device

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109753415A (en) * 2017-11-02 2019-05-14 展讯通信(上海)有限公司 Processor verifies system and the processor verification method based on processor verifying system
CN109753415B (en) * 2017-11-02 2022-06-24 展讯通信(上海)有限公司 Processor verification system and processor verification method based on same
EP3489829A1 (en) 2017-11-28 2019-05-29 Renesas Electronics Corporation Semiconductor device and failure detection method of the semiconductor device
US10614008B2 (en) 2017-11-28 2020-04-07 Renesas Electronics Corporation Interrupt monitoring systems and methods for failure detection for a semiconductor device
US11036662B2 (en) 2017-11-28 2021-06-15 Renesas Electronics Corporation Interrupt monitoring systems and methods for failure detection for a semiconductor device
US11422960B2 (en) 2017-11-28 2022-08-23 Renesas Electronics Corporation Interrupt monitoring systems and methods for failure detection for a semiconductor device

Similar Documents

Publication Publication Date Title
EP0497380B1 (en) Microcomputer having a watchdog timer
US7260749B2 (en) Hot plug interfaces and failure handling
US7363544B2 (en) Program debug method and apparatus
JPH048809B2 (en)
US20030100133A1 (en) System-on-chip breakpoint synchronization
JP2007034469A (en) Data error detection device and data error detection method
JP2000330798A (en) Interrupt controller and method for verifying interrupt control
JP2877138B2 (en) Microcomputer for software debugging
JP4976817B2 (en) Program processing apparatus and program processing method
JPH0588933A (en) Parallel processing system with debugging function
JP3209144B2 (en) Microprocessor
JP3231505B2 (en) MPU emulator device
JP2583169B2 (en) Operation program switching method for communication processing device
JP2002244885A (en) Computer system monitoring system
JP2003330751A (en) Debug system for micro-processor
JP2002251299A (en) Program tracing device
JPH0628218A (en) Program development assisting device for microcomputer
JPH01120634A (en) Interruption controller
JPH06131207A (en) Fault control method for input/output device
JP2004342001A (en) Semiconductor integrated circuit device
JPS584365B2 (en) Reset control system
JPS63307547A (en) Cpu monitor circuit
JPH0215353A (en) Abnormality setting system at specific address
JPH05189258A (en) Microcomputer
JPH05189331A (en) Input and output controller for data processing system