JPH06324886A - Interrupt management method and interrupt management circuit - Google Patents
Interrupt management method and interrupt management circuitInfo
- Publication number
- JPH06324886A JPH06324886A JP11197393A JP11197393A JPH06324886A JP H06324886 A JPH06324886 A JP H06324886A JP 11197393 A JP11197393 A JP 11197393A JP 11197393 A JP11197393 A JP 11197393A JP H06324886 A JPH06324886 A JP H06324886A
- Authority
- JP
- Japan
- Prior art keywords
- interrupt
- stack
- register
- level
- stacked
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Withdrawn
Links
Abstract
(57)【要約】
【目的】 本発明は、複数個の割り込みレベルと、各
割り込みレベル毎に割り込みを許可するか否かを制御
する割り込みマスクと、上記各割り込みレベル毎に
複数個の割り込み要求を備えたデータ処理装置での割
り込み管理方法に関し、ある割り込みレベルで割り込
み処理中に、同じ,又は、上位の割り込みレベルの他
の割り込み要求を効率よく処理する。
【構成】 ある割り込みレベルで処理中に、他の割り
込み要求が発生したとき、所定の数迄、現在処理中の
割り込み情報をスタックレジスタにスタックし、所定
のスタック数(max) になったとき、割り込みレベルを
上げて、他の割り込みが入るのを抑止し、現在スタック
されている割り込み処理の処理が完了して、上記スタッ
クレジスタ内にスタックされている処理の数が、所定の
数(min) になったとき、上記設定した上位の割り込みレ
ベルを下げて、新たな次の割り込み要求を処理する
ように管理する。
(57) [Summary] [Object] The present invention provides a plurality of interrupt levels, an interrupt mask for controlling whether or not to permit an interrupt for each interrupt level, and a plurality of interrupt requests for each interrupt level. The present invention relates to an interrupt management method in a data processing device having the above, and efficiently processes other interrupt requests of the same or higher interrupt level during interrupt processing at a certain interrupt level. [Configuration] When another interrupt request occurs during processing at a certain interrupt level, the interrupt information currently being processed is stacked up to a predetermined number in a stack register, and when a predetermined stack number (max) is reached, Raise the interrupt level to prevent other interrupts from entering, the number of interrupt processes currently stacked is completed, and the number of processes stacked in the stack register is the specified number (min). When this occurs, the higher interrupt level set above is lowered to manage the new next interrupt request.
Description
【0001】[0001]
【産業上の利用分野】本発明は、複数個の割り込みレベ
ルと、各割り込みレベル毎に割り込みを許可するか
否かを制御する割り込みマスクと、上記割り込みレベ
ル毎に複数個の割り込み要求を備えたデータ処理装
置での割り込み管理方法に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention comprises a plurality of interrupt levels, an interrupt mask for controlling whether or not an interrupt is permitted for each interrupt level, and a plurality of interrupt requests for each interrupt level. The present invention relates to an interrupt management method in a data processing device.
【0002】最近、総合サービスディジタル網(ISDN)、
FDDI等の高速, 高品質のネットワークが普及しており、
このような高速なネットワークに対する網制御装置等に
おいては、端末装置等からのエラー割り込み, 次の処理
を指示する割り込みといった最上位レベルの割り込みが
入っている状態においても、網制御装置内で発生する下
位レベルの、例えば、端末装置とネットワークとの間で
のデータ通信に必要な、データ格納領域の開放, 監視タ
イマの再起動等に関する割り込み要求を効率よく処理す
ることが要求される。Recently, Integrated Services Digital Network (ISDN),
High-speed, high-quality networks such as FDDI are widespread,
In a network controller for such a high-speed network, even if the highest level interrupt such as an error interrupt from a terminal device or an interrupt for instructing the next processing is included, it occurs in the network controller. It is required to efficiently process lower level interrupt requests for data communication between a terminal device and a network, such as opening of a data storage area and restart of a monitoring timer.
【0003】[0003]
【従来の技術】図5は、従来の割り込み管理方法を説明
する図であり、図5(a) は、従来の割り込み管理回路の
構成例を示し、図5(b) は、従来の割り込み処理を示し
ている。2. Description of the Related Art FIG. 5 is a diagram for explaining a conventional interrupt management method, FIG. 5 (a) shows a configuration example of a conventional interrupt management circuit, and FIG. Is shown.
【0004】図5(a) に示されている、前述のディジタ
ル総合サービス網(ISDN)、ファイバ分散データインタフ
ェース網(FDDI)等の網制御装置の制御ボード 1等におい
ては、例えば、マイクロプロセッサ 2を使用し、図示さ
れていない端末装置からの入出力処理に伴う割り込み要
求に基づいて、上記端末装置と、これも図示されていな
ネットワークとの間でデータ転送が行われる。In the control board 1 of the network control device such as the digital integrated service network (ISDN) and the fiber distributed data interface network (FDDI) shown in FIG. 5A, for example, the microprocessor 2 Is used to transfer data between the terminal device and a network (not shown) based on an interrupt request accompanying input / output processing from the terminal device (not shown).
【0005】この場合、処理のし易さなどの理由によ
り、各割り込み要求に対して、何段階かにレベル分け
を行い、ある割り込みレベル Li の割り込み要求 Lij
が入った時点で、前記割り込みレベル Li 以下の割
り込み要求に対して、割り込みマスクの設定を行って
いたので、上記割り込み要求 Lijが走行している間
は、上記割り込みレベル Li 以下の、全ての割り込み
要求を受け付けないという処理が行われる。In this case, for reasons such as ease of processing, each interrupt request is divided into several levels, and an interrupt request Lij of a certain interrupt level Li
Since the interrupt mask was set for the interrupt requests with the interrupt level Li or lower at the time of entering, all the interrupts with the interrupt level Li or lower while the interrupt request Lij is running. The process of not accepting the request is performed.
【0006】[0006]
【発明が解決しようとする課題】従って、上記従来の技
術では、図5(b) に示されているように、割り込み要求
Lij (例えば、図示の例では、L11)がマイクロプロセ
ッサ 2に受け付けられた後、上記割り込み要求 Lij以
下の割り込みレベルの割り込み要求 (例えば、図示
の割り込み要求 L12,L13等) に対する割り込みをマスク
をしているため、上記割り込み要求 Lij以下の割り込
みを取り逃がしてしまうという問題があった。Therefore, in the above-mentioned conventional technique, as shown in FIG.
After Lij (for example, L11 in the illustrated example) is accepted by the microprocessor 2, interrupts for interrupt requests with interrupt levels below the interrupt request Lij (for example, illustrated interrupt requests L12, L13, etc.) are masked. Therefore, there was a problem that interrupts below the interrupt request Lij were missed.
【0007】例えば、前述のように、制御ボード 1にお
いて、他の割り込み要求が入ったら制御ボードとして
は困る割り込み、例えば、図示されていない端末装置等
からのエラー割り込み, 次の処理を指示する割り込みと
いった最上位レベルの割り込みが入っている状態におい
ては、上記制御ボード 1内で発生する下位レベルの、例
えば、端末装置とネットワークとの間でのデータ通信に
必要な、データ格納領域の開放, 監視タイマの再起動等
に関する割り込み要求が拒否されるため、それらの動
きを、効率よく見ることができないという問題があっ
た。For example, as described above, in the control board 1, if another interrupt request is input, an interrupt which is troublesome for the control board, such as an error interrupt from a terminal device (not shown), an interrupt for instructing the next process, etc. In the state where the highest level interrupt such as the above is present, the lower level generated in the control board 1, for example, opening and monitoring the data storage area required for data communication between the terminal device and the network. Since the interrupt request regarding the restart of the timer is rejected, there is a problem that the movements of them cannot be efficiently observed.
【0008】又、割り込みが一つ入る毎に、その都度、
割り込みマスクの設定, 更に、その割り込み処理が終
了する毎に、上記設定されている割り込みマスクを解
除する手順を踏む必要があり、それらの処理に時間がか
かり、例えば、前述の高速のネットワークに対する網制
御装置での処理速度が遅くなってしまうという問題があ
った。Further, each time an interrupt is input,
It is necessary to take a procedure to release the interrupt mask set above each time the interrupt mask is set and the interrupt processing is completed. There is a problem that the processing speed of the control device becomes slow.
【0009】本発明は上記従来の欠点に鑑み、複数個の
割り込みレベルと、各割り込みレベル毎の割り込み
マスクと、各割り込みレベル毎に複数個の割り込み
要求を備えたデータ処理装置において、ある割り込み
レベルで割り込み処理中に、例えば、同じ割り込みレ
ベルの他の割り込み要求を効率よく処理することが
できる割り込み管理方法を提供することを目的とするも
のである。In view of the above-mentioned conventional drawbacks, the present invention provides a data processing apparatus having a plurality of interrupt levels, an interrupt mask for each interrupt level, and a plurality of interrupt requests for each interrupt level. It is an object of the present invention to provide an interrupt management method capable of efficiently processing other interrupt requests of the same interrupt level during interrupt processing.
【0010】[0010]
【課題を解決するための手段】図1は、本発明の割り込
み管理回路の構成例を示した図である。上記の問題点は
下記の如くに構成された割り込み管理方法によって解決
される。FIG. 1 is a diagram showing a configuration example of an interrupt management circuit of the present invention. The above problems are solved by the interrupt management method configured as follows.
【0011】(1) 複数個の割り込みレベルと、各割り
込みレベル毎に割り込みを許可するか否かを制御する割
り込みマスクと、上記各割り込みレベル毎に複数個
の割り込み要求を備えたデータ処理装置において、あ
る割り込みレベルで処理中に、同じ, 又は、上位の割
り込みレベルでの他の割り込み要求が発生したと
き、所定の数迄、現在処理中の割り込み情報をスタック
レジスタ 10 にスタックし、所定のスタック数(max) に
なったとき、上記割り込みマスクのレベルを上位に設
定し、上記他の割り込みが入るのを抑止し、現在スタッ
クされている割り込み処理の処理が完了して、上記スタ
ックレジスタ 10 内にスタックされている処理の数が、
所定の数(min) になったとき、上記設定した上位の割り
込みレベルを下げて、上記他の割り込み要求を処理
するように管理する。(1) In a data processor having a plurality of interrupt levels, an interrupt mask for controlling whether or not to permit an interrupt for each interrupt level, and a plurality of interrupt requests for each of the interrupt levels , When another interrupt request with the same or higher interrupt level occurs during processing at a certain interrupt level, the interrupt information currently being processed is stacked in stack register 10 up to a specified number, and the specified stack When the number reaches the maximum (max), the level of the above interrupt mask is set to a higher level, the above other interrupts are suppressed, the processing of the interrupt processing that is currently stacked is completed, and the stack register 10 The number of processes stacked in
When the number reaches a predetermined number (min), the set higher interrupt level is lowered to manage the other interrupt request.
【0012】(2) 複数個の割り込みレベルと、各割り
込みレベル毎に割り込みを許可するか否かを制御する割
り込みマスクと、上記各割り込みレベル毎に複数個
の割り込み要求を備えたデータ処理装置において、複
数個の割り込み情報をスタックするスタックレジスタ
10 と、上記スタックレジスタ 10 に、上限の所定の数
の割り込み情報をスタックインすることを指示するス
タック上限レジスタ 11 と、上記スタックレジスタ 10
にスタックされている割り込み処理の処理が完了して、
上記スタックレジスタ 10 からスタックアウトされ、下
限の所定の数になったことを検出する為のスタック下限
レジスタ 12 と、上記スタックレジスタ 10 に現在スタ
ックされている割り込み情報の数を計数しているスタ
ックカウンタ 13 と、上記スタック上限レジスタ 11 の
値と、上記スタック下限レジスタ 12 の値と、上記スタ
ックカウンタ 13 のカウント値とを比較して、上記スタ
ックカウンタ 13 のカウント値が、上記スタック上限レ
ジスタ 11 が指示している値を越えたことを検出したと
き、割り込みマスクのレベルを、上位割り込みマスク
レジスタ 16 が指示する上位のレベルに上げて、以降で
の割り込み要求が、上記スタックレジスタ 10 にスタ
ックされるのを抑止し、現在スタックレジスタ 10 にス
タックされている割り込み処理の処理が順次処理を完了
して、スタックレジスタ 10 からスタックアウトされ、
上記スタック下限レジスタ 12 が指示している値以下と
なったことを検出したとき、上記上位の割り込みマスク
を、下位割り込みマスクレジスタ 17 が指示する下位
の所定のレベルに設定し、上記設定された下位レベル以
上の割り込み要求を再び、上記スタックレジスタ 10
にスタックするように制御する割り込み制御回路 15 と
を備えるように構成する。(2) In a data processing device having a plurality of interrupt levels, an interrupt mask for controlling whether or not an interrupt is permitted for each interrupt level, and a plurality of interrupt requests for each of the interrupt levels , Stack register for stacking multiple interrupt information
10 and the stack upper limit register 11 for instructing to stack in a predetermined number of upper limit interrupt information to the stack register 10 and the stack register 10 described above.
When the interrupt processing that has been stacked in
A stack lower limit register 12 for detecting that the stack has been stacked out of the stack register 10 and has reached a predetermined lower limit, and a stack counter for counting the number of interrupt information currently stacked in the stack register 10. 13 is compared with the value of the stack upper limit register 11, the value of the stack lower register 12 and the count value of the stack counter 13, and the count value of the stack counter 13 is indicated by the stack upper register 11. When it is detected that the value exceeds the specified value, the interrupt mask level is raised to the higher level specified by the upper interrupt mask register 16, and subsequent interrupt requests are stacked in the stack register 10 above. Are interrupted, and the interrupt process currently stacked in stack register 10 Processing to complete the, it is stacked out from the stack register 10,
When it is detected that the stack lower limit register 12 has become less than or equal to the value instructed, the upper interrupt mask is set to the lower predetermined level instructed by the lower interrupt mask register 17, and the set lower register is set. An interrupt request of level or higher is returned to the stack register 10 above.
And an interrupt control circuit 15 for controlling the stacking of the two.
【0013】(3) 上記スタックレジスタ 10 として、上
記複数個の割り込みレベルに対応して、複数個のスタ
ックレジスタ 10 を備えるように構成する。 (4) 上記スタックレジスタ 10 として、複数段のレジス
タ段からなる只1つのスタックレジスタを設けて、下位
の割り込みレベルから順にスタックインするように制
御する。(3) The stack register 10 is configured to include a plurality of stack registers 10 corresponding to the plurality of interrupt levels. (4) As the stack register 10, only one stack register including a plurality of register stages is provided, and control is performed so that stacking in is performed in order from the lower interrupt level.
【0014】(5) 上記スタックレジスタ 10 として、複
数段のレジスタ段からなる只1つのスタックレジスタを
設けて、上記スタックレジスタ 10 にスタックインする
割り込み要求は、上記割り込み要求の割り込みレベ
ルとは無関係に、発生した順にスタックインするよう
に制御する。(5) As the stack register 10, only one stack register including a plurality of register stages is provided, and an interrupt request to be stuck in the stack register 10 is independent of the interrupt level of the interrupt request. , Controls to stack in the order in which they occur.
【0015】[0015]
【作用】即ち、本発明においては、ある割り込みレベル
での処理を実行中に、例えば、同じ割り込みレベル
の割り込み要求が発生すると、現在実行中の割り込み
処理に関連する情報をスタックするスタックレジスタ
を設けて、新たな割り込み要求が発生する毎に、現在
実行中の割り込み処理に関連する情報をスタックレジ
スタにスタックインするようにし、上記スタックレジス
タにスタックされている割り込み処理の数が所定の数
(この数は、スタック上限レジスタに設定する) を越え
たとき、以降での上位の割り込み要求の割り込みを抑
止するように、例えば、最上位のレベルの割り込みマス
クを設定し、上記スタックレジスタにスタックされて
いる割り込み処理が順次処理されて、スタックアウトさ
れ、スタックレジスタにスタックされている割り込み処
理の数が所定の数 (この数は、スタック下限レジスタに
設定する) 以下になったとき、上記設定しておいた最上
位の割り込みマスクのレベルを、例えば、最下位のレ
ベルに設定して、以降に発生する割り込み要求の処理
の実行が可能なようにする。That is, in the present invention, a stack register for stacking information related to the interrupt process currently being executed is provided when, for example, an interrupt request of the same interrupt level is generated while executing a process at a certain interrupt level. Each time a new interrupt request is generated, the information related to the interrupt process currently being executed is stacked in the stack register, and the number of interrupt processes stacked in the stack register is the specified number.
When (the number is set in the stack upper limit register) is exceeded, for example, the interrupt mask of the highest level is set so that the interrupt of the higher interrupt request after that is set, and the stack register is set in the above stack register. If the number of interrupts being processed is sequentially processed, stacked out, and the number of interrupts stacked in the stack register falls below a specified number (this number is set in the stack lower limit register), the above setting is made. The level of the highest interrupt mask that has been set is set to, for example, the lowest level so that the processing of interrupt requests that occur thereafter can be executed.
【0016】このような制御を行うことにより、連続し
て、例えば、同じ割り込みレベルの割り込みが発生した
とき、後発の割り込み要求から、順次、優先的に処理さ
れるので、従来のように、現在実行中の割り込み処理が
完了するまで、次次に発生する割り込み処理の何れもが
抑止されて、効率的な割り込み処理ができなくなる問題
を解消することができる効果がある。By performing such control, when, for example, interrupts of the same interrupt level occur consecutively, priority is sequentially given to subsequent interrupt requests. Until the interrupt process being executed is completed, all the interrupt processes that occur next are suppressed, and there is an effect that the problem that efficient interrupt process cannot be performed can be solved.
【0017】上記スタックレジスタとして、複数個の割
り込みレベル毎に設ける構成とすることにより、割り
込みレベル毎に、スタックされている割り込み処理の
状態を容易に認識することができる。By providing the stack register for each of a plurality of interrupt levels, it is possible to easily recognize the state of the interrupt processing being stacked for each interrupt level.
【0018】又、割り込みマスクの概念を無くして、全
ての割り込み要求を受け付け、スタックレジスタにス
タックされる割り込み処理の数が所定の数になったら、
以降で発生する割り込み要求の受け付けを中止し、ス
タックされている割り込み処理が、順次完了して、スタ
ックアウトされ、スタックレジスタにスタックされてい
る割り込み処理の数が所定の数以下になったら、再度、
新たな割り込み要求を受け付けるようにしてもよい。Further, without the concept of the interrupt mask, if all interrupt requests are accepted and the number of interrupt processes stacked in the stack register reaches a predetermined number,
The acceptance of interrupt requests that occur later is stopped, the interrupt processing that is stacked is completed in sequence, and when the number of interrupt processing that is stacked out in the stack register is less than the specified number, it is restarted. ,
A new interrupt request may be accepted.
【0019】このように制御することにより、従来の割
り込みレベルに囚われることなく、最新の割り込み要求
の処理から優先して処理することができ、次次に連続
して発生する割り込み処理を、効率良く処理することが
できる。By controlling in this manner, it is possible to process the latest interrupt request with priority, without being trapped by the conventional interrupt level, and to efficiently process the interrupt processing that occurs next and next. Can be processed.
【0020】[0020]
【実施例】以下本発明の実施例を図面によって詳述す
る。前述の図1が、本発明の割り込み管理回路の構成例
を示した図であり、図2〜図4は、本発明の一実施例を
示した図であり、図2(a) は、割り込みの発生状況を模
式的に示し、図2(b) は、スタックレジスタに割り込み
処理がスタックされる状況を模式的に示し、図3は、ス
タックレジスタの他の構成例を示し、図4は、1つのス
タックレジスタに、割り込みレベルに関係なく、発生し
た順に、割り込み処理情報をスタックする例を示して
いる。Embodiments of the present invention will be described in detail below with reference to the drawings. FIG. 1 is a diagram showing a configuration example of the interrupt management circuit of the present invention, FIGS. 2 to 4 are diagrams showing an embodiment of the present invention, and FIG. 2 (b) schematically shows a situation in which interrupt processing is stacked in the stack register, FIG. 3 shows another configuration example of the stack register, and FIG. An example is shown in which interrupt processing information is stacked in one stack register in the order of occurrence regardless of the interrupt level.
【0021】本発明においては、複数個の割り込みレベ
ルと、各割り込みレベル毎に割り込みを許可するか
否かを制御する割り込みマスクと、上記各割り込みレ
ベル毎に複数個の割り込み要求を備えたデータ処理
装置において、新たに、割り込み要求が発生したと
き、現在実行中の割り込み処理情報 (退避情報) をス
タックするスタックレジスタ 10 と、現在何個の割り込
み情報をスタックしているかを示すスタックカウンタ 1
3 と、ある割り込みレベルで割り込み処理を実行中
に、他の割り込み要求が発生したとき、所定の数迄、
現在処理中の割り込み情報をスタックレジスタ 10 に
スタックし、スタック上限レジスタ 11 が指示する所定
のスタック数(max) になったとき、割り込みマスクの
レベルを上げて、他の割り込みが入るのを抑止し、現在
スタックされている割り込み処理の処理が完了して、上
記スタックレジスタ 10 内にスタックされている処理の
数が、スタック下限レジスタ 12 が指示する所定の数(m
in) になったとき、上記設定した上位の割り込みマスク
のレベルを下げて、次の割り込み要求を処理するよ
うに管理する手段が、本発明を実行するのに必要な手段
である。尚、全図を通して同じ符号は同じ対象物を示し
ている。According to the present invention, a plurality of interrupt levels, an interrupt mask for controlling whether or not an interrupt is permitted for each interrupt level, and a data process having a plurality of interrupt requests for each interrupt level. When a new interrupt request occurs in the device, the stack register 10 that stacks the interrupt processing information (saving information) that is currently being executed, and the stack counter 1 that indicates how many interrupt information items are currently stacked
3 and when another interrupt request occurs while executing interrupt processing at a certain interrupt level, up to a predetermined number
The interrupt information currently being processed is stacked in the stack register 10, and when the number of stacks (max) specified by the stack upper limit register 11 is reached, the interrupt mask level is raised to prevent other interrupts from entering. , The number of processes that have been stacked in the stack register 10 after completion of the interrupt process that is currently stacked is the predetermined number (m
When it becomes "in", means for lowering the level of the upper interrupt mask set above and managing so as to process the next interrupt request is a means necessary for carrying out the present invention. The same reference numerals indicate the same objects throughout the drawings.
【0022】以下、図1〜図4によって、本発明の割り
込み管理方法を説明する。先ず、図1に示したように、
スタックレジスタ 10 は、ある割り込み処理を実行中
に、例えば, 同じ割り込みレベルの割り込み要求が
発生すると、現在実行中の割り込み処理の情報、例え
ば、マイクロプロセッサ 2内の複数個のレジスタの内容
を、スタックポインタ(SP) 10aが指示する位置に退避す
ることを、次次に新たな割り込み要求が発生するごと
に繰り返す。The interrupt management method of the present invention will be described below with reference to FIGS. First, as shown in FIG.
The stack register 10 stores information about the interrupt process currently being executed, for example, the contents of a plurality of registers in the microprocessor 2, when an interrupt request of the same interrupt level occurs during execution of an interrupt process. The evacuation to the position designated by the pointer (SP) 10a is repeated each time a new interrupt request is generated next time.
【0023】そして、上記スタックレジスタ 10 にスタ
ックされている割り込み処理の情報の数が、スタック
上限レジスタ 11 に設定 (例えば、操作卓等から任意に
設定することができる) されている数になったことを、
割り込み制御回路 15 で検出したとき、上位割り込みマ
スクレジスタ 16 に、操作卓から指示されている割り込
みマスクのレベルに割り込みレベルを上げて、以降
で、新たに、発生した割り込み要求をマイクロプロセ
ッサ 2が受け付けることができないようにする。Then, the number of pieces of interrupt processing information stacked in the stack register 10 becomes the number set in the stack upper limit register 11 (for example, it can be arbitrarily set from a console or the like). That
When detected by the interrupt control circuit 15, the interrupt level is raised to the level of the interrupt mask specified by the operator console in the upper interrupt mask register 16 and the newly generated interrupt request is accepted by the microprocessor 2 thereafter. Do not allow
【0024】この状態では、スタックレジスタ 10 にス
タックされている割り込み処理を、マイクロプロセッサ
2が実行を完了する毎に、スタックレジスタ 10 からス
タックアウトされ、スタックレジスタ 10 にスタックさ
れている割り込み処理の数が、操作卓から設定されてい
るスタック下限レジスタ 12 が指示する数以下になった
ことが、上記割り込み制御回路 15 で検出されたとき、
下位割り込みマスクレジスタ 17 に、操作卓から設定さ
れている割り込みマスクのレベルに割り込みレベル
を下げる。In this state, the interrupt processing stacked in the stack register 10 is processed by the microprocessor.
Each time 2 completes execution, stack register 10 stacks out, and the number of interrupt processes stacked in stack register 10 becomes less than or equal to the number specified by stack lower limit register 12 set from the operator console. Is detected by the above interrupt control circuit 15,
Lower the interrupt level to the level of the interrupt mask set in the lower interrupt mask register 17 from the console.
【0025】この結果、以降において、新たに発生した
割り込み要求は、マイクロプロセッサ 2が受け付ける
ことができる。図2は、割り込み要求の発生を模式的
に示したもので、例えば、割り込みレベル1(LI) の割り
込み処理(L11) を実行しているときに、同じ割り込みレ
ベルの割り込み要求(LI2) が発生すると、前に実行し
ていた割り込み処理(L11) に関する情報 (退避情報)
をスタックレジスタ 10 に、図2(b) に示した如くに、
順次、スタックされる。As a result, after that, the microprocessor 2 can accept a newly generated interrupt request. Fig. 2 schematically shows the generation of interrupt requests. For example, when an interrupt process (L11) of interrupt level 1 (LI) is being executed, an interrupt request (LI2) of the same interrupt level is generated. Then, information about the interrupt process (L11) that was executed before (saved information)
To the stack register 10, and as shown in Fig. 2 (b),
Stacked one after another.
【0026】以下、新しい割り込み要求(L1i) が発生す
る毎に、スタック上限レジスタ 11が指示する数まで、
順次スタックされ、上記スタック上限レジスタ 11 が指
示する数になったことを、上記割り込み制御回路 15 が
検出すると、割り込みマスクのレベルを、上位割り込み
マスクレジスタ 16 が指示する割り込みマスクのレベ
ルを、例えば、最上位レベルに上げて、以降に発生する
割り込み要求を、マイクロプロセッサ 2が実行するの
を抑止する。Hereinafter, each time a new interrupt request (L1i) is generated, up to the number indicated by the stack upper limit register 11,
When the interrupt control circuit 15 detects that the stack upper limit register 11 has reached the number indicated by the stack upper limit register 11, the interrupt mask level is set to the interrupt mask level indicated by the upper interrupt mask register 16, for example, Raise it to the highest level to prevent microprocessor 2 from executing subsequent interrupt requests.
【0027】この状態では、上記スタックレジスタ 10
にスタックされている割り込み処理(L1i) が順次上から
取り出され実行され、実行が完了すると、スタックレジ
スタ10 からスタックアウトされる。In this state, the stack register 10
The interrupt processing (L1i) that is stacked at is fetched from the top and executed, and when the execution is completed, it is stacked out from stack register 10.
【0028】そして、上記スタックレジスタ 10 に残っ
ている割り込み処理の数が、スタック下限レジスタ 12
が指示する数まで減少したことを、割り込み制御回路 1
5 が検出すると、上記最上位レベルに上げられていた割
り込みマスクのレベルを、下位割り込みマスクレジス
タ 17 が指示するマスクレベル、例えば、最下位("0"レ
ベル) に下げる。Then, the number of interrupt processes remaining in the stack register 10 is equal to the stack lower limit register 12
The interrupt control circuit that the number has decreased to 1
When detected by 5, the level of the interrupt mask raised to the highest level is lowered to the mask level instructed by the lower interrupt mask register 17, for example, the lowest level ("0" level).
【0029】この結果、再び、新たに発生する割り込み
要求が、マイクロプロセッサ 2に取り込まれ、割り込
み処理が実行できるようになる。以降、同じ手順の処理
が繰り返される。As a result, again, a newly generated interrupt request is fetched by the microprocessor 2 and the interrupt processing can be executed. After that, the process of the same procedure is repeated.
【0030】従って、本発明の割り込み管理方法によれ
ば、スタックレジスタ 10 が用意され、スタック上限レ
ジスタ 11 と、スタック下限レジスタ 12 とが指示する
範囲の数の割り込み要求を、満杯になる迄、スタックし
続け、満杯になると、以降のスタックを抑止して、スタ
ックされている割り込み処理を順次実行してゆき、所定
の数以下になると、再び、スタックを続ける動作を繰り
返すことになる。Therefore, according to the interrupt management method of the present invention, the stack register 10 is prepared, and the number of interrupt requests in the range indicated by the stack upper limit register 11 and the stack lower limit register 12 is kept until the stack is full. Then, when the stack becomes full, the subsequent stacks are suppressed and the interrupt processings that are stacked are sequentially executed. When the number becomes equal to or less than a predetermined number, the operation of continuing the stack is repeated again.
【0031】このため、いつも、最近に発生した割り込
み要求を優先的に実行できることになり、効率的な割り
込み処理を行うことができる。又、1つの割り込みに対
して、その都度、割り込みマスクの設定,解除を必要と
しなくなり、処理速度が向上する。Therefore, the interrupt request that has recently occurred can always be preferentially executed, and efficient interrupt processing can be performed. Further, it is not necessary to set and release the interrupt mask for each interrupt, so that the processing speed is improved.
【0032】又、一回ずつマスクしなくなった分、スタ
ックレジスタ 10 にスタックされている割り込み情報が
有効である限り、後で必ず処理されるので、装置内で起
こっている情報が正確に処理されるようになる。Further, as long as the interrupt information stacked in the stack register 10 is valid because the masking is not performed one by one, it is always processed later, so that the information occurring in the device is processed accurately. Become so.
【0033】上記の実施例では、スタックレジスタ 10
を1つとしているので、新たに発生する割り込み要求
は、割り込みレベルの順にスタックされることになる
が、スタックレジスタ 10 の構成は、この形式に限定さ
れるものではなく、例えば、図3に示したように、割り
込みレベルに対応して複数個設けて、割り込みレベル
に対応した縦割り構造にしておき、上位の割り込みレ
ベルに対応する割り込み処理は、対応する割り込みレ
ベルのスタックレジスタ 10 にスタックするようにし
てもよい。In the above embodiment, the stack register 10
Therefore, the interrupt request that is newly generated is stacked in the order of the interrupt levels. However, the configuration of the stack register 10 is not limited to this format. For example, as shown in FIG. As described above, multiple units are provided corresponding to the interrupt level, and the vertically divided structure corresponding to the interrupt level is provided.Interrupt processing corresponding to the higher interrupt level is stacked in the stack register 10 of the corresponding interrupt level. You may
【0034】この場合も、スタックされている割り込み
処理の実行は、上位の割り込みレベルに対応するスタ
ックレジスタ 10 にスタックされているものから処理さ
れ、前述の実施例と同じ動作とすることができる。又、
スタックレジスタ 10 をこのような構成とすることによ
り、各割り込みレベルのスタックの状況を、正確に認
識することができる。Also in this case, the execution of the stacked interrupt process is executed from the stack in the stack register 10 corresponding to the higher interrupt level, and the same operation as that of the above-described embodiment can be performed. or,
By configuring the stack register 10 in this way, the status of the stack at each interrupt level can be accurately recognized.
【0035】図4に示した実施例は、例えば、割り込み
マスクの概念を取り除き、1つのスタックレジスタ 1
0 に、発生した割り込み要求の順にスタックする方法
を模式的に示している。The embodiment shown in FIG. 4 removes, for example, the concept of an interrupt mask by one stack register 1
Fig. 0 schematically shows a method of stacking in the order of interrupt requests that have occurred.
【0036】図2,図3に示した例では、割り込みレベ
ルの上位のものが後にスタックされ、上位のものから処
理されることになるが、図4に示した構成のスタックレ
ジスタでは、割り込みマスクの概念を無くした構造と
なり、後に発生した割り込み要求を、スタックレジス
タ 10 の最上位にスタックし、満杯になると、最上位に
スタックされている割り込み要求の処理から実行される
ことになるので、制御が簡単になり、より柔軟な割り込
み処理の形態を構築することができる。In the examples shown in FIGS. 2 and 3, the higher interrupt level is later stacked and processed from the higher level, but in the stack register having the configuration shown in FIG. The structure that eliminates the concept of is that the interrupt request that occurs later is stacked at the top of stack register 10, and when it becomes full, it will be executed from the processing of the interrupt request that is stacked at the top. It becomes easier and a more flexible form of interrupt handling can be constructed.
【0037】このように、本発明による割り込み管理方
法は、例えば、複数個の割り込みレベルと、各割り込
みレベル毎に割り込みを許可するか否かを制御する割
り込みマスクと、上記各割り込みレベル毎に複数個
の割り込み要求を備えたデータ処理装置において、あ
る割り込みレベルで処理中に、他の割り込み要求が
発生したとき、所定の数迄、現在処理中の割り込み情報
をスタックレジスタにスタックし、所定のスタック数
(max) になったとき、割り込みレベルを上げて、他の
割り込み要求が入るのを抑止し、現在スタックされて
いる割り込み処理の処理が完了して、上記スタックレジ
スタ内にスタックされている割り込み処理の数が、所定
の数(min) になったとき、上記設定した上位の割り込み
レベルを下げて、新たな他の割り込み要求を処理する
ように管理するようにしたところに特徴がある。As described above, the interrupt management method according to the present invention includes, for example, a plurality of interrupt levels, an interrupt mask for controlling whether or not an interrupt is permitted for each interrupt level, and a plurality of interrupt masks for each interrupt level. In a data processing device equipped with a single interrupt request, when another interrupt request occurs during processing at a certain interrupt level, a predetermined number of interrupt information currently being processed are stacked in a stack register, and a predetermined stack is created. number
When it reaches (max), the interrupt level is raised to prevent other interrupt requests from entering, and the interrupt processing currently stacked is completed and the interrupt processing stacked in the above stack register is completed. It is characterized in that, when the number of (1) reaches a predetermined number (min), the higher interrupt level set as described above is lowered so that another new interrupt request is managed.
【0038】[0038]
【発明の効果】以上、詳細に説明したように、本発明に
よれば、連続して、例えば、同じ割り込みレベルの割
り込みが発生したとき、後発の割り込み要求から優先
的に処理されるので、従来のように、現在実行中の割り
込み処理が完了するまで、次次に発生する割り込み処理
の何れもが抑止されて、効率的な割り込み処理ができな
くなる問題を解消することができる効果がある。As described above in detail, according to the present invention, when, for example, interrupts of the same interrupt level occur consecutively, the subsequent interrupt request is preferentially processed. As described above, until the interrupt process that is currently being executed is completed, all the interrupt processes that occur next will be suppressed, and there is an effect that the problem that efficient interrupt process cannot be performed can be solved.
【0039】上記スタックレジスタとして、複数個の割
り込みレベル毎に設ける構成とすることにより、割り込
みレベル毎に、スタックされている割り込み処理の状
態を容易に認識することができる。By providing the stack register for each of a plurality of interrupt levels, it is possible to easily recognize the state of the interrupt processing being stacked for each interrupt level.
【0040】又、割り込みマスクの概念を無くして、
全ての割り込み要求を受け付け、スタックレジスタに
スタックされる割り込み処理の数が所定の数になった
ら、以降で発生する割り込み要求の受け付けを中止
し、スタックされている割り込み処理が、順次完了し
て、スタックアウトされ、スタックレジスタにスタック
されている割り込み処理の数が所定の数以下になった
ら、再度、新たな割り込み要求を受け付けるようにし
てもよく、このように制御することにより、従来の割り
込みレベルに囚われることなく、後発の割り込み要求
の処理を優先して処理することができ、次次に連続し
て発生する割り込み要求の処理を、効率良く処理する
ことができる。Further, by eliminating the concept of interrupt mask,
When all interrupt requests are accepted and the number of interrupt processes that are stacked in the stack register reaches the specified number, acceptance of interrupt requests that occur later is stopped and the interrupt processes that are stacked are completed in sequence. A new interrupt request may be accepted again when the number of interrupts that are stuck out and stuck in the stack register is less than the specified number. By controlling in this way, the conventional interrupt level Thus, the processing of subsequent interrupt requests can be processed with priority, and the processing of interrupt requests that occur successively next and next can be efficiently processed.
【0041】従って、ISDN,FDDI 等の高速, 高品質なネ
ットワークを処理する網制御装置等において、上記ネッ
トワークに対する高品質, 高性能な割り込み処理を提供
することができる。Therefore, it is possible to provide high-quality and high-performance interrupt processing for the above network in a network control device for processing a high-speed, high-quality network such as ISDN and FDDI.
【図1】本発明の割り込み管理回路の構成例を示した図FIG. 1 is a diagram showing a configuration example of an interrupt management circuit of the present invention.
【図2】本発明の一実施例を示した図(その1)FIG. 2 is a diagram showing an embodiment of the present invention (No. 1).
【図3】本発明の一実施例を示した図(その2)FIG. 3 is a diagram showing an embodiment of the present invention (part 2).
【図4】本発明の一実施例を示した図(その3)FIG. 4 is a diagram showing an embodiment of the present invention (part 3).
【図5】従来の割り込み管理方法を説明する図FIG. 5 is a diagram illustrating a conventional interrupt management method.
1 データ処理装置, データ処理システム, システム 10 スタックレジスタ 11 スタック上限レジスタ 12 スタック下限
レジスタ 13 スタックカウンタ 15 割り込み制御
回路 16 上位割り込みマスクレジスタ 17 下位割り込みマスクレジスタ 2 マイクロプロセッサ 割り込みレベル 割り込みマス
ク 割り込み要求 割り込み処理
情報1 Data processing device, Data processing system, System 10 Stack register 11 Stack upper limit register 12 Stack lower limit register 13 Stack counter 15 Interrupt control circuit 16 Upper interrupt mask register 17 Lower interrupt mask register 2 Microprocessor interrupt level Interrupt mask Interrupt request Interrupt processing information
Claims (5)
込みレベル毎に割り込みを許可するか否かを制御する割
り込みマスク () と、上記各割り込みレベル () 毎
に複数個の割り込み要求 () を備えたデータ処理装置
において、 ある割り込みレベル () で処理中に、同じか,又は、
上位の割り込みレベル()での他の割り込み要求
() が発生したとき、所定の数迄、現在処理中の割り
込み情報()をスタックレジスタ(10)にスタックし、
所定のスタック数(max) になったとき、上記割り込みマ
スク () のレベルを上位に設定し、上記他の割り込み
が入るのを抑止し、現在スタックされている割り込み処
理の処理が完了して、上記スタックレジスタ(10)内にス
タックされている処理の数が、所定の数(min) になった
とき、上記設定した上位の割り込みレベル () を下げ
て、上記他の割り込み要求()を処理するように管理
することを特徴とする割り込み管理方法。1. A plurality of interrupt levels (), an interrupt mask () for controlling whether or not an interrupt is permitted for each interrupt level, and a plurality of interrupt requests () for each interrupt level (). In a data processing device equipped with, while processing at an interrupt level (), the same or
Other interrupt requests at higher interrupt level ()
When () occurs, the interrupt information () currently being processed is stacked in the stack register (10) up to the specified number,
When the specified number of stacks (max) is reached, the level of the above interrupt mask () is set to a higher level to prevent the above other interrupts from entering and the processing of the interrupt processing currently stacked is completed. When the number of processes stacked in the stack register (10) reaches a predetermined number (min), the higher interrupt level () set above is lowered to process the other interrupt request (). An interrupt management method characterized by managing as follows.
込みレベル毎に割り込みを許可するか否かを制御する割
り込みマスク () と、上記各割り込みレベル () 毎
に複数個の割り込み要求 () を備えたデータ処理装置
において、 複数個の割り込み情報 () をスタックするスタックレ
ジスタ(10)と、上記スタックレジスタ(10)に、上限の所
定の数の割り込み情報 () をスタックインすることを
指示するスタック上限レジスタ(11)と、上記スタックレ
ジスタ(10)にスタックされている割り込み処理の処理が
完了して、上記スタックレジスタ(10)からスタックアウ
トされ、下限の所定の数になったことを検出する為のス
タック下限レジスタ(12)と、上記スタックレジスタ(10)
に現在スタックされている割り込み情報() の数を計
数しているスタックカウンタ(13)と、上記スタック上限
レジスタ(11)の値と、上記スタック下限レジスタ(12)の
値と、上記スタックカウンタ(13)のカウント値とを比較
して、上記スタックカウンタ(13)のカウント値が、上記
スタック上限レジスタ(11)が指示している値を越えたこ
とを検出したとき、割り込みマスク () のレベルを、
上位割り込みマスクレジスタ(16)が指示する上位のレベ
ルに上げて、以降での割り込み要求 () が、上記スタ
ックレジスタ(10)にスタックされるのを抑止し、現在ス
タックレジスタ(10)にスタックされている割り込み処理
の処理が順次処理を完了して、スタックレジスタ(10)か
らスタックアウトされ、上記スタック下限レジスタ(12)
が指示している値以下となったことを検出したとき、上
記上位の割り込みマスク () を、下位割り込みレジス
タ(17)が指示する下位の所定のレベルに設定し、上記設
定された下位レベル以上の割り込み要求 () を再び、
上記スタックレジスタ(10)にスタックするように制御す
る割り込み制御回路(15)とを備えたことを特徴とする割
り込み管理回路。2. A plurality of interrupt levels (), an interrupt mask () for controlling whether or not an interrupt is permitted for each interrupt level, and a plurality of interrupt requests () for each interrupt level (). In a data processing device equipped with, a stack register (10) that stacks a plurality of interrupt information () and an instruction to stack a predetermined number of interrupt information () at the upper limit into the stack register (10). The stack upper limit register (11) and the interrupt processing stacked in the stack register (10) are completed, and the stack register (10) is stacked out and the lower limit is reached. Stack lower limit register (12) to detect and the stack register (10) above
Stack counter (13) that is counting the number of interrupt information () currently stacked in the stack, the value of the stack upper limit register (11), the value of the stack lower limit register (12), and the stack counter ( When it is detected that the count value of the stack counter (13) exceeds the value indicated by the stack upper limit register (11) by comparing with the count value of 13), the interrupt mask () level To
Raise it to a higher level specified by the upper interrupt mask register (16) to prevent subsequent interrupt requests () from being stacked in the stack register (10) above, and are currently stacked in the stack register (10). Interrupt processing has completed the sequential processing and is stuck out from the stack register (10), and the stack lower limit register (12)
When it is detected that the value is less than or equal to the value instructed by, the upper interrupt mask () is set to the lower predetermined level instructed by the lower interrupt register (17), and the lower level set above is set. Interrupt request () of
An interrupt management circuit comprising: an interrupt control circuit (15) for controlling the stack register (10) to be stacked.
数個の割り込みレベル () に対応して、複数個のスタ
ックレジスタ(10)を備えたことを特徴とする請求項2に
記載の割り込み管理回路。3. The interrupt management according to claim 2, wherein the stack register (10) is provided with a plurality of stack registers (10) corresponding to the plurality of interrupt levels (). circuit.
のレジスタ段からなる只1つのスタックレジスタを設け
て、下位の割り込みレベル () から順にスタックイン
するように制御することを特徴とする請求項2に記載の
割り込み管理回路。4. The stack register (10) is provided with only one stack register consisting of a plurality of register stages, and is controlled so as to be sequentially stacked in from a lower interrupt level (). The interrupt management circuit according to Item 2.
のレジスタ段からなる只1つのスタックレジスタを設け
て、 上記スタックレジスタ(10)にスタックインする割り込み
要求 () は、上記割り込み要求 () の 割り込みレ
ベル () とは無関係に、発生した順にスタックインす
るように制御することを特徴とする請求項2に記載の割
り込み管理回路。5. The stack register (10) is provided with only one stack register including a plurality of register stages, and the interrupt request () for stacking into the stack register (10) is the interrupt request (). 3. The interrupt management circuit according to claim 2, wherein the interrupt management circuit is controlled so as to be stacked in the order of occurrence regardless of the interrupt level ().
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP11197393A JPH06324886A (en) | 1993-05-14 | 1993-05-14 | Interrupt management method and interrupt management circuit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP11197393A JPH06324886A (en) | 1993-05-14 | 1993-05-14 | Interrupt management method and interrupt management circuit |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH06324886A true JPH06324886A (en) | 1994-11-25 |
Family
ID=14574776
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP11197393A Withdrawn JPH06324886A (en) | 1993-05-14 | 1993-05-14 | Interrupt management method and interrupt management circuit |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH06324886A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
DE19513277B4 (en) * | 1994-04-08 | 2007-03-29 | Denso Corp., Kariya | accelerometer |
-
1993
- 1993-05-14 JP JP11197393A patent/JPH06324886A/en not_active Withdrawn
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
DE19513277B4 (en) * | 1994-04-08 | 2007-03-29 | Denso Corp., Kariya | accelerometer |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP0528220A2 (en) | Dynamically established event monitors in event management services of a computer system | |
US5428796A (en) | System and method for regulating access to direct access storage devices in data processing systems | |
JPH06324886A (en) | Interrupt management method and interrupt management circuit | |
JPH02311932A (en) | Preference control system | |
JPH06132696A (en) | Substrate transfer device | |
JP2937852B2 (en) | Base station monitoring and control device | |
JPH0845805A (en) | Production control equipment | |
JPH0981438A (en) | Automatic exclusive control system in client server system | |
JPH0540635A (en) | Method and apparatus for dynamically deactivating program exit | |
JPS598038A (en) | Data input/output processing device | |
JPH0218656A (en) | Priority control system | |
JPH0381856A (en) | Data transfer control method | |
US7664893B2 (en) | Media drive control system and method | |
JPS583249B2 (en) | buffer device | |
JPS59180758A (en) | Loop detecting system of ncp | |
JP2636451B2 (en) | External storage device control system | |
JPS6269752A (en) | Data communication equipment | |
JPH0454544A (en) | Memory access controller | |
JPS6266357A (en) | File controller | |
JPH02178850A (en) | Store and forward processing device | |
JPS63238741A (en) | Hierarchy processing system for transmitting control procedure | |
JPS6093568A (en) | Control system for input and output interruption | |
JPS62274357A (en) | Input/output scheduling system | |
JPS61289796A (en) | Interruption control system for electronic exchange system | |
JPS61272855A (en) | Interruption request stack control system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A300 | Withdrawal of application because of no request for examination |
Free format text: JAPANESE INTERMEDIATE CODE: A300 Effective date: 20000801 |