JPH10161887A - Method and device for interruption signal synchronization - Google Patents

Method and device for interruption signal synchronization

Info

Publication number
JPH10161887A
JPH10161887A JP32029296A JP32029296A JPH10161887A JP H10161887 A JPH10161887 A JP H10161887A JP 32029296 A JP32029296 A JP 32029296A JP 32029296 A JP32029296 A JP 32029296A JP H10161887 A JPH10161887 A JP H10161887A
Authority
JP
Japan
Prior art keywords
interrupt
program
instruction
counter
signal
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
JP32029296A
Other languages
Japanese (ja)
Inventor
Isao Watanabe
功 渡邉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Toshiba Corp
Original Assignee
Toshiba Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Toshiba Corp filed Critical Toshiba Corp
Priority to JP32029296A priority Critical patent/JPH10161887A/en
Publication of JPH10161887A publication Critical patent/JPH10161887A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To suppress the complexity of program operation by storing the values of respective counters when an interrupt signal is sent to an interrupt control part by referring to the value of a program counter and an instruction number counter. SOLUTION: By referring to the values held by the program counter and instruction number counter 122 by a comparator 13 of an interrupt synchronization part 12, the operation inputting an interrupt signal to an interrupt control apt 11 at time intervals corresponding to the priority of individual interrupts in timing to the execution of a program, and performing an interrupt process is added. Then the values of the program counter and instruction number counter 122 when the interrupt is reported to the interrupt control part 11 are saved in a history memory 121 and then used to reproduce the operation of the program. Consequently, the complexity of the program operation can be suppressed and the interrupt process can be prevented from being delayed.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、計算機システムの
CPUにおける割込み制御技術に係わる割込み信号同期
化方法、割込み信号同期化装置、データ処理装置、及び
デバッグ方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an interrupt signal synchronizing method, an interrupt signal synchronizing device, a data processing device, and a debugging method relating to an interrupt control technique in a CPU of a computer system.

【0002】[0002]

【従来の技術】従来、計算機システムでは、プログラム
の実行とは非同期に発生する外部の事象に対応した処理
を行なうために、割込み信号による制御を行なう。一般
的なCPUは、図5に示すように、汎用レジスタや演算
回路などを含む演算部51と、プログラムカウンタ(P
C)52aやスタックポインタレジスタ(SP)52
b、割込制御部52cなどを含む制御部52とからな
る。
2. Description of the Related Art Conventionally, a computer system performs control by an interrupt signal in order to perform a process corresponding to an external event which occurs asynchronously with execution of a program. As shown in FIG. 5, a general CPU includes an arithmetic unit 51 including general-purpose registers and arithmetic circuits, and a program counter (P).
C) 52a and stack pointer register (SP) 52
b, and a control unit 52 including an interrupt control unit 52c.

【0003】計算機システムの外部で発生する事象をC
PU50に伝えるために、個々の事象に対して割込み信
号が割り当てられる。割込み処理の対象となる外部事象
が発生すると、その事象発生が割込み信号によってCP
U50の割込制御部52cに伝えられ、割込制御部52
cは、それまで実行していたプログラムを中断し、それ
ぞれの外部事象に対応した割り込み処理を起動させる。
[0003] Events occurring outside the computer system are denoted by C
To communicate to the PU 50, an interrupt signal is assigned to each event. When an external event targeted for interrupt processing occurs, the occurrence of the event is notified by an interrupt signal to the CP.
The interrupt control unit 52c is transmitted to the interrupt control unit 52c of U50.
“c” interrupts the program that has been executed up to that time, and starts an interrupt process corresponding to each external event.

【0004】このような方式をとることによって、発生
するタイミングや、順序の予見できないさまざまな事象
に対して、対応した処理プログラムの起動・実行を簡潔
かつ効率よく行なうことができる。
By adopting such a method, it is possible to start and execute a processing program corresponding to various events whose timing and order cannot be predicted simply and efficiently.

【0005】[0005]

【発明が解決しようとする課題】従来の割込み処理方式
では、割込み要因に対応した割り込み処理を迅速に起動
できるが、プログラムにおいて割り込みを禁止している
部分を除いて、プログラム実行時に任意の時点で割り込
みが発生する可能性がある。このため、割り込みが発生
するタイミングが変わることでプログラムの実行が中断
される位置が異なり、プログラムの動作が複雑化する。
In the conventional interrupt processing method, the interrupt processing corresponding to the interrupt factor can be started quickly, but at an arbitrary point in time when the program is executed, except for the part where the interrupt is prohibited in the program. Interrupts can occur. For this reason, the position at which the execution of the program is interrupted changes due to the change in the timing at which the interrupt occurs, and the operation of the program is complicated.

【0006】特に、機器制御などでは、非同期に発生す
る多くの事象に対して、それぞれの処理プログラムを割
り込み処理として実装することが多いため、プログラム
の作成が難しく、デバッグ作業も容易ではない。
In particular, in equipment control and the like, since many processings that occur asynchronously are often implemented with respective processing programs as interrupt processing, it is difficult to create programs and debug work is not easy.

【0007】プログラム中で割込み禁止・許可を細かく
制御することによって、この問題はある程度、軽減でき
るが、割込み制御用の命令をプログラム中に挿入するこ
とによるオーバヘッドの増大と、割込み制御の誤りのた
めにプログラムが正しく動作しない可能性が高くなるこ
ととが新たな問題となる。
This problem can be reduced to some extent by finely controlling interrupt prohibition / permission in a program. However, the overhead caused by inserting an instruction for interrupt control into the program and an error in interrupt control are increased. Another problem is that it is more likely that the program will not operate correctly.

【0008】本発明は上記実情に鑑みなされたもので、
ユーザプログラムによらずに割り込みの禁止・許可の制
御を行なうことによって、割り込み処理の効率を損なう
ことなく、割り込みの受け入れられるポイントを大幅に
制限することを可能とすることによって、割り込みによ
るプログラム動作の複雑さを抑制し、プログラムの作成
・デバッグを容易にする割込み信号同期化方法、割込み
信号同期化装置、データ処理装置、及びデバッグ方式を
提供することを目的とする。
[0008] The present invention has been made in view of the above circumstances,
By controlling the prohibition / permission of interrupts without relying on the user program, it is possible to greatly limit the points at which interrupts can be accepted without impairing the efficiency of interrupt processing, thereby enabling the program operation by interrupts. An object of the present invention is to provide an interrupt signal synchronizing method, an interrupt signal synchronizing device, a data processing device, and a debugging method that suppress complexity and facilitate creation and debugging of a program.

【0009】[0009]

【課題を解決するための手段】本発明は、割込み制御装
置に於いて、割込み信号を受けつけて割り込み処理を起
動する割込み制御部の前段部に、プロセッサが実行した
命令数をカウントする命令数カウンタと、プログラムカ
ウンタと命令数カウンタの保持する値を参照してプログ
ラムの実行に合わせて個々の割込の優先度に応じた時間
間隔で割込み信号を割込み制御部に伝える比較器と、前
記割込み制御部に割込みが伝えられたときの前記プログ
ラムカウンタと命令数カウンタの値を記憶する履歴メモ
リとからなる割込同期化部を設けてなることを特徴とす
る。
According to the present invention, in an interrupt control device, an instruction number counter for counting the number of instructions executed by a processor is provided at a preceding stage of an interrupt control unit which receives an interrupt signal and starts an interrupt process. A comparator for transmitting an interrupt signal to an interrupt control unit at a time interval according to the priority of each interrupt in accordance with the execution of the program with reference to the values held by the program counter and the instruction number counter; and An interrupt synchronization unit comprising a history memory for storing the value of the program counter and the number of instructions when an interrupt is transmitted to the unit is provided.

【0010】又、本発明は、上記割込制御装置にあっ
て、単一の命令数カウンタの代わりに個々の割込信号ご
とに命令数カウンタを設け、この命令数カウンタには割
込み信号が発生した時点で、対応する割り込み処理が起
動されるまでに実行が許可される最大の命令数をセット
し、命令が1つ実行されるごとに1ずつカウントダウン
し、プログラムカウンタの値から割込み受け付けの判定
がなされる前に命令数カウンタの値がゼロになった場合
には、割込の受け付けを許可するようにしたことを特徴
とする。
Further, according to the present invention, in the above interrupt control apparatus, an instruction number counter is provided for each interrupt signal instead of a single instruction number counter, and an interrupt signal is generated in the instruction number counter. At that point, the maximum number of instructions that are allowed to be executed before the corresponding interrupt processing is activated is set. Each time one instruction is executed, the countdown is performed by one. If the value of the instruction number counter becomes zero before the execution, the acceptance of an interrupt is permitted.

【0011】又、本発明は、上記割込制御装置にあっ
て、プロセッサが割込を受け付けない状態にするための
割込禁止命令に対し、前記プロセッサを実際に割込み禁
止にする前に、当該割込み信号は発生したが同期化部に
より割込み制御部に伝達されていない割込み信号にすべ
てに対する割り込み処理を行なう機能を付加したことを
特徴とする。
Further, according to the present invention, there is provided the above-described interrupt control device, wherein the processor is configured to execute the interrupt prohibition instruction for disabling the processor from accepting the interrupt before actually disabling the processor for the interrupt. It is characterized in that a function of performing interrupt processing for all interrupt signals that have been generated but not transmitted to the interrupt control unit by the synchronization unit is added.

【0012】又、本発明は、上記割込み制御装置にあっ
て、割込同期化部の履歴メモリに割込み信号が発生した
ときのプログラムカウンタを格納しておき、デバッグ時
にプログラムの動作を再現する際に、プログラムのコー
ドと履歴メモリに格納してあったプログラムカウンタの
値から割込み信号を発生させるタイミングを決定するこ
とを特徴とする。
Further, according to the present invention, in the above interrupt control apparatus, a program counter when an interrupt signal is generated is stored in a history memory of an interrupt synchronizing unit, and the operation of the program is reproduced during debugging. The timing of generating an interrupt signal is determined from the program code and the value of the program counter stored in the history memory.

【0013】更に、本発明は、上記割込み制御装置にお
いて、プロセッサが割込を受け付けない状態にするため
の割込禁止命令に対し、前記プロセッサを実際に割込み
禁止にする前に当該割込み信号は発生したが同期化部に
より割込み制御部に伝達されていない割込み信号にすべ
てに対する割り込み処理を行なう機能を付加したことを
特徴とする。
Further, according to the present invention, in the above interrupt control apparatus, the interrupt signal is generated before the processor is actually disabled in response to an interrupt disable command for disabling the processor from accepting the interrupt. However, the present invention is characterized in that a function of performing interrupt processing for all interrupt signals not transmitted to the interrupt control unit by the synchronization unit is added.

【0014】更に、本発明は、上記割込み制御装置を備
えたデータ処理装置において、割込同期化部の履歴メモ
リに割込み信号が発生したときのプログラムカウンタを
格納しておき、デバッグ時にプログラムの動作を再現す
る際に、プログラムのコードと履歴メモリに格納してあ
ったプログラムカウンタの値から割込み信号を発生させ
るタイミングを決定することを特徴とする。
Further, according to the present invention, in a data processing device provided with the above interrupt control device, a program counter at the time of occurrence of an interrupt signal is stored in a history memory of the interrupt synchronization unit, and the operation of the program at the time of debugging is performed. Is reproduced, the timing for generating an interrupt signal is determined from the program code and the value of the program counter stored in the history memory.

【0015】[0015]

【発明の実施の形態】以下、図面を参照して本発明の実
施形態を説明する。図1は本発明の一実施形態を示すブ
ロック図である。図1に於いて、割込制御部11には、
通常の割込信号と、割込同期化部12によって同期化処
理の行なわれた割込信号とが入力される。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing one embodiment of the present invention. In FIG. 1, the interrupt control unit 11 includes:
A normal interrupt signal and an interrupt signal that has been synchronized by the interrupt synchronization unit 12 are input.

【0016】割込同期化部12では、プログラムの実行
に合わせて、一定間隔で割込信号を割込制御部11に伝
える。この際、割込制御部11に割込信号を伝える間隔
を、優先度の高い割込みは短く、優先度の低い割込は長
くする。
The interrupt synchronizer 12 transmits an interrupt signal to the interrupt controller 11 at regular intervals in accordance with the execution of the program. At this time, the interval at which the interrupt signal is transmitted to the interrupt control unit 11 is set short for interrupts with high priority and long for interrupts with low priority.

【0017】この制御を行なうことで、プログラム中で
割り込み処理が起動され得るポイントが大幅に減少す
る。このとき、割込が発生してから割込制御部11にそ
の割込が受け入れられるまでの時間的遅れが発生する
が、非常に短い時間であるので、通常は問題とならな
い。
By performing this control, the number of points at which interrupt processing can be started in the program is greatly reduced. At this time, there is a time delay from the occurrence of the interrupt to the acceptance of the interrupt by the interrupt control unit 11, but since this is a very short time, it does not usually cause a problem.

【0018】わずかな遅れが問題となるような割り込み
処理については、従来の方式どおり、割込み信号を割込
同期化部12を通さずに直接に割込制御部11に入力
し、遅れが発生しないようにできる。
As to the interrupt processing in which a slight delay causes a problem, an interrupt signal is directly input to the interrupt control unit 11 without passing through the interrupt synchronization unit 12 as in the conventional method, and no delay occurs. I can do it.

【0019】図2は、上記図1に示す割込同期化部12
の構成例を示す図である。図2に示す割込同期化部12
は、プログラムカウンタ(PC)の下位からの何ビット
かが“0”であるか否かで割込許可信号を発生させる。
“0”を検査するビット数の少ない許可信号を、優先度
の高い割込み信号の許可信号として割り当てることによ
って、高い優先度の割込の方が高い頻度で受け入れられ
るようにできる。
FIG. 2 shows the interrupt synchronizer 12 shown in FIG.
FIG. 3 is a diagram showing an example of the configuration of FIG. Interrupt synchronizer 12 shown in FIG.
Generates an interrupt permission signal based on whether or not some lower bits of the program counter (PC) are "0".
By allocating a permission signal having a small number of bits for checking “0” as a permission signal of a high-priority interrupt signal, a high-priority interrupt can be accepted more frequently.

【0020】例えば命令長が4バイトであるとした場
合、図2の例では、図3に示すように、割込み信号1
(割込1)は2命令実行される毎に、又、割込信号2
(割込2)は4命令実行される毎に、それぞれ割込の受
け付けがなされる(図中、←参照)。したがって、プロ
グラム中で割込の受け付けられるポイントは、それぞれ
2分の1、4分の1となり、通常の方式に比べて大幅に
減少する。
For example, assuming that the instruction length is 4 bytes, in the example of FIG. 2, as shown in FIG.
(Interrupt 1) is executed every time two instructions are executed, and interrupt signal 2
In (interrupt 2), each time four instructions are executed, an interrupt is accepted (see ← in the figure). Therefore, the points at which interrupts are accepted in the program are 2 and 分 の, respectively, which is significantly reduced as compared with the normal method.

【0021】このとき、割込の発生から受け付けが行な
われるまでの時間は、割込み信号5の場合であっても、
たかだか32命令の実行時間でしかなく、通常の処理で
は問題とはならない程度のものである。
At this time, the time from the generation of the interrupt to the reception of the interrupt is the same as that of the interrupt signal 5.
This is only an execution time of 32 instructions at most, and does not cause a problem in normal processing.

【0022】プログラムが小ループを実行するとき、ル
ープ部分が割込みを受け付けるポイントの間に入ってし
まうと、プログラムカウンタの値のみを使用していたの
では、プログラムがループから出ない限り、いつまでも
割込が受け付けられない事態が生じる。
When the program executes a small loop, if the loop portion enters between the points for accepting interrupts, if only the value of the program counter is used, unless the program exits the loop, the program is forever divided. May not be accepted.

【0023】これを防止するのが、割込同期化部12に
設けた図2に示す命令数カウンタ122である。この命
令数カウンタ122は、CPU10がプログラムの1命
令を実行する毎に1だけカウントアップする。比較器1
3においてこれを参照することによって、プログラムが
小ループを実行している場合にも、割込を受け付けるこ
とができる。
The instruction counter 122 shown in FIG. 2 provided in the interrupt synchronization section 12 prevents this. The instruction counter 122 counts up by one each time the CPU 10 executes one instruction of the program. Comparator 1
By referring to this in step 3, an interrupt can be accepted even when the program is executing a small loop.

【0024】プログラム中では、割込みを禁止する区間
を設定することがあるが、この場合に割込の発生から割
り込み処理が始まるまでに非常に長い時間がかかること
が起こり得る。
In a program, a section where interrupts are prohibited may be set. In this case, it may take a very long time from the occurrence of an interrupt to the start of interrupt processing.

【0025】このため、割込禁止命令の機能として、C
PU10を割込み禁止状態にする前に、すべての割込信
号を割込制御部11に直接取り込み、割り込み処理を行
なわせる動作を付加する。
Therefore, as a function of the interrupt prohibition instruction, C
Before the PU 10 is set to the interrupt disabled state, an operation for directly taking in all interrupt signals into the interrupt control unit 11 and performing an interrupt process is added.

【0026】図2に示す履歴メモリ121は、割込が受
け付けられた時点のプログラムカウンタと命令数カウン
タ122の値を保存することによって、デバッグ時にお
けるプログラムの動作の再現に利用する。
The history memory 121 shown in FIG. 2 stores the values of the program counter and the instruction counter 122 at the time when the interrupt is accepted, and is used for reproducing the operation of the program at the time of debugging.

【0027】以上のような制御を行なうことで、割り込
み処理の起動されるタイミング、順序の組み合わせが大
幅に減少し、プログラムの動作が外部の事象の影響を受
ける度合いが減少するため、プログラムの動作の複雑さ
が低減されることになり、プログラムの開発・デバッグ
作業が容易化される。
By performing the above-described control, the combination of the timing and the order in which the interrupt processing is started is greatly reduced, and the degree of the effect of the external operation on the operation of the program is reduced. Is reduced, and the work of developing and debugging the program is facilitated.

【0028】又、デバッグ時にプログラムの動作を再現
するために、プログラムの実行に合わせて割込み信号を
入力する際に、従来の方式では命令単位で割込み信号を
入力するタイミングを図らねばならないため、高速で動
作するCPUでは非常に困難な作業となる。
Also, in order to reproduce the operation of the program at the time of debugging, when an interrupt signal is input in accordance with the execution of the program, the timing of inputting the interrupt signal in instruction units in the conventional method must be planned. This is a very difficult task for a CPU that operates on a computer.

【0029】これに対して、上記した本発明の実施形態
による方式では、割込同期化部12での受入れ周期を単
位とすればよいため、割込み信号入力のタイミング制御
が大幅に緩やかになり、デバッグ作業が容易化される。
On the other hand, in the method according to the above-described embodiment of the present invention, since the acceptance period in the interrupt synchronization unit 12 may be set as a unit, the timing control of the interrupt signal input is greatly relaxed. Debugging is facilitated.

【0030】図4は上記割込同期化部12の他の構成例
を示す図である。この構成例では、各割込み信号に対し
て、独立した命令数カウンタ(IC1,IC2,…)を
設ける。各命令数カウンタの幅は、比較器41にて割込
み信号受け入れの判断で参照されるプログラムカウンタ
(PC)のビット数に等しい。
FIG. 4 is a diagram showing another example of the configuration of the interrupt synchronization section 12. As shown in FIG. In this configuration example, an independent instruction counter (IC1, IC2,...) Is provided for each interrupt signal. The width of each instruction number counter is equal to the number of bits of the program counter (PC) referred to by the comparator 41 in determining whether to accept an interrupt signal.

【0031】各々の命令カウンタは、割込み信号が発生
したときに初期値として最大値が設定され、命令が1つ
実行される毎にカウントダウンされる。また、比較器4
1における個々の判断条件で参照しているプログラムカ
ウンタのビット範囲が“0”になった場合には、対応す
る命令数カウンタをゼロクリアする。
Each instruction counter is set to a maximum value as an initial value when an interrupt signal is generated, and is decremented every time one instruction is executed. Also, the comparator 4
When the bit range of the program counter referred to in each judgment condition in 1 becomes "0", the corresponding instruction number counter is cleared to zero.

【0032】この場合、図2のような命令数カウンタが
1つであった場合に比べて、プログラムが小ループを実
行している場合などでの割込みの受け付けられるタイミ
ングが確定するという長所がある。尚、本発明は上記実
施形態に限らず、組込み型の制御用プロセッサ全般に適
用できる。
In this case, as compared with the case where the number of instruction counters is one as shown in FIG. 2, there is an advantage that the timing of accepting an interrupt when the program is executing a small loop is determined. . The present invention is not limited to the above embodiment, but can be applied to all embedded control processors.

【0033】[0033]

【発明の効果】以上詳記したように本発明によれば、割
込み制御部の前段に割込同期化部を設けたことにより、
プログラム上での割り込み処理が発生しうるポイント
を、ソフトウェアによらずに、割込処理の効率を大きく
低下させることなく減少させることができ、割込み処理
の多いプログラムにおけるプログラムの振舞いを大幅に
単純化することが可能となり、プログラムの開発とデバ
ッグが容易となる。
As described above in detail, according to the present invention, the provision of the interrupt synchronization section at the preceding stage of the interrupt control section allows
The point at which interrupt processing can occur in a program can be reduced without significantly reducing the efficiency of interrupt processing, regardless of software, greatly simplifying program behavior in programs with many interrupt processing. This makes program development and debugging easier.

【0034】又、本発明によれば、個々の割込み信号毎
に、許容される遅れを設定できるようにすることで、単
一の命令数カウンタを使用する場合に比べて、割込信号
の受け付けが必要以上に速まることが少なくなる。
Further, according to the present invention, by allowing an allowable delay to be set for each interrupt signal, reception of an interrupt signal is reduced as compared with the case where a single instruction number counter is used. Is faster than necessary.

【0035】又、本発明によれば、割込同期化部によっ
て割込み信号の受け付けが停止されている状態でプロセ
ッサが割込み禁止状態になると、割込の発生から割り込
み処理が行なわれるまでの遅れ時間が長くなる場合があ
るため、割込禁止命令に割込信号の検出と割込処理の起
動の機能を持たせることで、割り込み処理の遅れを防ぐ
ことができる。
Further, according to the present invention, if the processor enters the interrupt disabled state in a state where the interrupt synchronizer has stopped accepting the interrupt signal, the delay time from the occurrence of the interrupt until the interrupt processing is performed. Since the interrupt prohibition instruction may have a function of detecting an interrupt signal and activating an interrupt process, a delay in interrupt processing can be prevented.

【0036】更に、本発明によれば、デバッグ作業に於
いてプログラムの振舞いを再現させようとする場合、割
込み信号のような外部から与える信号を正確なタイミン
グでプロセッサに入力することは、特に高速なマイクロ
プロセッサなどでは困難になるが、上述したような本発
明の割込み制御方式によって数命令にわたるタイミング
誤差で割込み信号を入力しても正確なタイミングで割込
みを再現することが可能になっているので、履歴メモリ
に格納したプログラムカウンタの値とプログラムコード
とを参照することによって、割込み信号を与えることが
できるタイミングが、ある程度の許容範囲をもって決定
することができ、デバッグ作業においてプログラムの動
作を再現させるために割込み信号をプロセッサに入力す
る際にプロセッサの厳密なタイミングに制限されること
なく割込み信号を入力することができる。これによっ
て、割込み信号を再現させるための装置が簡便なものに
でき、デバッグ作業が容易になる。
Further, according to the present invention, when trying to reproduce the behavior of a program in a debugging operation, it is particularly fast to input an externally applied signal such as an interrupt signal to the processor at an accurate timing. Although it becomes difficult with a simple microprocessor or the like, the interrupt control method of the present invention as described above makes it possible to reproduce an interrupt at an accurate timing even if an interrupt signal is input with a timing error over several instructions. By referring to the program counter value and the program code stored in the history memory, the timing at which an interrupt signal can be given can be determined within a certain allowable range, and the operation of the program can be reproduced in a debugging operation. Input the interrupt signal to the processor It can be input interrupt signal without being limited to the exact timing. As a result, the device for reproducing the interrupt signal can be simplified, and the debugging work is facilitated.

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

【図1】本発明の実施形態による構成を示すブロック
図。
FIG. 1 is a block diagram showing a configuration according to an embodiment of the present invention.

【図2】上記実施形態に於ける割込同期化部の構成を示
すブロック図。
FIG. 2 is a block diagram showing a configuration of an interrupt synchronization unit in the embodiment.

【図3】上記実施形態に於ける割込み信号と命令実行と
の関係を示す概念図。
FIG. 3 is a conceptual diagram showing a relationship between an interrupt signal and instruction execution in the embodiment.

【図4】上記実施形態に於ける他の割込同期化部の構成
を示すブロック図。
FIG. 4 is a block diagram showing the configuration of another interrupt synchronization unit in the embodiment.

【図5】従来例を示すブロック図。FIG. 5 is a block diagram showing a conventional example.

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

10…CPU、 11…割込制御部、 12…割込同期化部、 13…比較器、 121…履歴メモリ、 122…命令数カウンタ。 10: CPU, 11: Interrupt control unit, 12: Interrupt synchronization unit, 13: Comparator, 121: History memory, 122: Instruction number counter.

Claims (7)

【特許請求の範囲】[Claims] 【請求項1】 割り込み処理を起動する割込み制御部の
前段に割込同期化手段を設けて、当該割込同期化部が、
プログラムの実行に合わせて個々の割込の優先度に応じ
た時間間隔で割込み信号を前記割込み制御部に伝え、プ
ログラム上での割込み処理が発生し得るポイントを減少
させることを特徴とする割込み信号同期化方法。
An interrupt synchronization unit is provided at a stage preceding an interrupt control unit for activating an interrupt process, and the interrupt synchronization unit includes:
Interrupt signals transmitted to the interrupt control unit at time intervals according to the priority of individual interrupts in accordance with the execution of the program, thereby reducing points at which interrupt processing on the program can occur; Synchronization method.
【請求項2】 割込み信号を受けつけて割り込み処理を
起動する割込み制御部の前段に、 プロセッサが実行した命令数をカウントする命令数カウ
ンタと、 前記命令数カウンタ及びプログラムカウンタの保持する
値を参照してプログラムの実行に合わせ個々の割込みの
優先度に応じた時間間隔で割込み信号を割込み制御部に
伝える比較器と、 前記割込み制御部に割込みが伝えられたときの前記プロ
グラムカウンタと命令数カウンタの値を記憶する履歴メ
モリとを備えた割込同期化部を設けてなることを特徴と
した割込制御装置。
2. An instruction control unit for receiving an interrupt signal and activating an interrupt process, comprising: an instruction number counter for counting the number of instructions executed by a processor; and a value held by the instruction number counter and a program counter. A comparator for transmitting an interrupt signal to an interrupt control unit at a time interval according to the priority of each interrupt in accordance with the execution of the program; and a program counter and an instruction number counter when the interrupt is transmitted to the interrupt control unit. An interrupt control device comprising an interrupt synchronization unit having a history memory for storing a value.
【請求項3】 単一の命令数カウンタに代えて個々の割
込信号毎に命令数カウンタを設け、この命令数カウンタ
に、割込み信号が発生した時点で対応する割り込み処理
が起動されるまでに実行が許可される最大の命令数をセ
ットし、前記命令数カウンタを命令が実行される毎に逐
次カウントダウンして、プログラムカウンタの値から割
込み受け付けの判定がなされる前に命令数カウンタの値
が所定値になったとき、割込の受け付けを許可するよう
にしたことを特徴とする請求項2記載の割込み制御装
置。
3. An instruction number counter is provided for each interrupt signal in place of a single instruction number counter, and the instruction number counter is provided in the instruction number counter when the corresponding interrupt processing is started when an interrupt signal is generated. The maximum number of instructions permitted to be set is set, and the instruction counter is sequentially counted down each time an instruction is executed, and the value of the instruction number counter is reduced before the interrupt acceptance is determined from the value of the program counter. 3. The interrupt control device according to claim 2, wherein when a predetermined value is reached, acceptance of an interrupt is permitted.
【請求項4】 プロセッサが割込を受け付けない状態に
するための割込禁止命令に対して、プロセッサを実際に
割込み禁止にする前に、割込み信号は発生したが同期化
部により割込み制御部に伝達されていない割込み信号す
べてに対する割り込み処理を行なう機能を付加したこと
を特徴とする請求項2又は3記載の割込み制御装置。
4. An interrupt signal is generated in response to an interrupt prohibition instruction for disabling the processor from accepting an interrupt before the processor is actually disabled, but the synchronization unit notifies the interrupt control unit of the interrupt signal. 4. The interrupt control device according to claim 2, wherein a function of performing an interrupt process for all interrupt signals not transmitted is added.
【請求項5】 割込同期化部の履歴メモリに割込み信号
が発生したときのプログラムカウンタを格納しておき、
デバッグ時にプログラムの動作を再現する際に、プログ
ラムのコードと履歴メモリに格納してあったプログラム
カウンタの値から割込み信号を発生させるタイミングを
決定することを特徴とする請求項2又は3記載の割込み
制御装置。
5. A program counter when an interrupt signal is generated is stored in a history memory of the interrupt synchronization unit,
4. The interrupt according to claim 2, wherein when reproducing the operation of the program at the time of debugging, the timing of generating an interrupt signal is determined from the code of the program and the value of the program counter stored in the history memory. Control device.
【請求項6】 割込み信号を受けつけて割り込み処理を
起動する割込み制御部の前段に、プロセッサが実行した
命令数をカウントする命令数カウンタと、前記命令数カ
ウンタ及びプログラムカウンタの保持する値を参照して
プログラムの実行に合わせ個々の割込みの優先度に応じ
た時間間隔で割込み信号を割込み制御部に伝える比較器
と、前記割込み制御部に割込みが伝えられたときの前記
プログラムカウンタと命令数カウンタの値を記憶する履
歴メモリとを備えた割込同期化部を設けてなる割込み制
御装置をもつデータ処理装置において、 プロセッサが割込を受け付けない状態にするための割込
禁止命令に対し、前記プロセッサを実際に割込み禁止に
する前に、当該割込み信号は発生したが同期化部により
割込み制御部に伝達されていない割込み信号のすべてに
対する割り込み処理を行なう手段をもつことを特徴とす
るデータ処理装置。
6. An instruction control unit for receiving an interrupt signal and activating an interrupt process, refers to an instruction number counter for counting the number of instructions executed by the processor and a value held by the instruction number counter and the program counter. A comparator for transmitting an interrupt signal to an interrupt control unit at a time interval according to the priority of each interrupt in accordance with the execution of the program; and a program counter and an instruction number counter when the interrupt is transmitted to the interrupt control unit. In a data processing device having an interrupt control device provided with an interrupt synchronizing unit having a history memory for storing a value, the processor is responsive to an interrupt prohibition instruction for disabling a processor from accepting an interrupt. Before the interrupt was actually disabled, the interrupt signal was generated but not transmitted to the interrupt control unit by the synchronization unit. The data processing apparatus characterized by having means for performing interrupt processing for all write signal.
【請求項7】 割込同期化部を備え、プロセッサが割込
を受け付けない状態にするための割込禁止命令に対し、
前記プロセッサを実際に割込み禁止にする前に、当該割
込み信号は発生したが同期化部により割込み制御部に伝
達されていない割込み信号のすべてに対する割り込み処
理を行なう手段をもつデータ処理装置において、割込同
期化部の履歴メモリに割込み信号が発生したときのプロ
グラムカウンタを格納しておき、デバッグ時にプログラ
ムの動作を再現する際に、プログラムのコードと履歴メ
モリに格納してあったプログラムカウンタの値から割込
み信号を発生させるタイミングを決定することを特徴と
したデバッグ方式。
7. An interrupt synchronizing unit, wherein an interrupt prohibition instruction for disabling a processor from accepting an interrupt is provided.
Before actually disabling the processor for interrupts, in a data processing apparatus having means for performing interrupt processing for all interrupt signals generated but not transmitted to the interrupt control unit by the synchronization unit, The program counter at the time of the occurrence of the interrupt signal is stored in the history memory of the synchronization unit, and when the operation of the program is reproduced during debugging, the program code and the value of the program counter stored in the history memory are stored. A debugging method characterized by determining a timing for generating an interrupt signal.
JP32029296A 1996-11-29 1996-11-29 Method and device for interruption signal synchronization Pending JPH10161887A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP32029296A JPH10161887A (en) 1996-11-29 1996-11-29 Method and device for interruption signal synchronization

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP32029296A JPH10161887A (en) 1996-11-29 1996-11-29 Method and device for interruption signal synchronization

Publications (1)

Publication Number Publication Date
JPH10161887A true JPH10161887A (en) 1998-06-19

Family

ID=18119884

Family Applications (1)

Application Number Title Priority Date Filing Date
JP32029296A Pending JPH10161887A (en) 1996-11-29 1996-11-29 Method and device for interruption signal synchronization

Country Status (1)

Country Link
JP (1) JPH10161887A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010198429A (en) * 2009-02-26 2010-09-09 Fuji Xerox Co Ltd Interruption control unit and image forming apparatus

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010198429A (en) * 2009-02-26 2010-09-09 Fuji Xerox Co Ltd Interruption control unit and image forming apparatus

Similar Documents

Publication Publication Date Title
US3566368A (en) Delta clock and interrupt logic
JPH02208740A (en) Virtual computer control system
US5530597A (en) Apparatus and method for disabling interrupt masks in processors or the like
JPH08320794A (en) Microprocessor
JPH10161887A (en) Method and device for interruption signal synchronization
JP3231505B2 (en) MPU emulator device
JP3308670B2 (en) Event-driven processing equipment failure detection device
JP2755205B2 (en) Low power consumption method for data processing equipment
JPH04270441A (en) Data processor
JPH03158936A (en) Testing method for program
JPS6051141B2 (en) Program runaway detection method
JPH1074148A (en) Interruption processor
JPS6118045A (en) Detecting system of program runaway
JPS63155330A (en) Microprogram controller
JPS61281342A (en) Runaway preventing device for program
JPS60128541A (en) Microprocessor
JPH0540666A (en) Interruption monitoring device for integrated circuit microprocessor
JPH03252886A (en) Single chip microcomputer
JPH01290041A (en) Interruption control circuit
JPS62623B2 (en)
JPH04135246A (en) Data processor
JPH1027107A (en) Information processor
JPH05108384A (en) Microprocessor
JPS59225452A (en) Microprogram controller
JPH02310629A (en) Interruption controller, common resource exclusive method and assembler program processing method