JPH03273437A - Interruption processor - Google Patents

Interruption processor

Info

Publication number
JPH03273437A
JPH03273437A JP7371790A JP7371790A JPH03273437A JP H03273437 A JPH03273437 A JP H03273437A JP 7371790 A JP7371790 A JP 7371790A JP 7371790 A JP7371790 A JP 7371790A JP H03273437 A JPH03273437 A JP H03273437A
Authority
JP
Japan
Prior art keywords
request
interrupt
level
priority
register
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
JP7371790A
Other languages
Japanese (ja)
Inventor
Hiroyuki Miyazaki
宮崎 浩幸
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP7371790A priority Critical patent/JPH03273437A/en
Publication of JPH03273437A publication Critical patent/JPH03273437A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To realize efficient interruption control by selecting the degree of priority corresponding to the interruption request of the highest degree of priority from among the degree of priority of the requests by the input of the interruption request, and outputting it to a level selecting device. CONSTITUTION:The level selecting device 11 outputs the request level '5' of 1RQ5 by the instruction of a request selecting device 10. When it is informed that the request of 1RQ5 was accepted through interruption permission input 3, the bits corresponding to 1RQ5 of a request register 2 and a queuing request register 7 are reset, and in a counter 9, the request level of 1RQ5 is returned from '1' to '5'. When all the interruption request registered in the request register 2 are accepted, all the bits of the request register 2 and the queuing request register 7 are turned into '0', and the level held in the counter 9 comes to a value equal to the value of the request level 8 of the degree of priority of the first interruption request. Thus, the efficient interruption control to keep the regularity of a whole system can be realized.

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、複数の割込要求が存在するデータ処理装置に
おいて、割込要求の待ち時間を付加した動的優先度決定
方式の割込処理装置に関する。
DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to an interrupt processing device using a dynamic priority determination method that adds a waiting time for interrupt requests in a data processing device in which a plurality of interrupt requests exist. .

従来の技術 一般のデータ処理装置に用いられている割込管理として
割込要求が発生し割込が許可されるまで、時間の経過と
ともに要求レベルを変更する方式がある。この場合は、
割込が許可された処理中の割込があると、この割込より
も新しい割込の要求レベルが高くなった時点で、その新
しい割込を許可するという割込要求レベルが可変な割込
処理装置である。
2. Description of the Related Art As an interrupt management method used in general data processing devices, there is a method of changing the request level as time passes from when an interrupt request is generated until the interrupt is permitted. in this case,
Interrupts with variable interrupt request levels: If there is an interrupt that is currently being processed and the interrupt is enabled, the new interrupt is enabled when the request level of the new interrupt becomes higher than this interrupt. It is a processing device.

この従来の装置では、待ち時間の経過とともに要求レベ
ルが高くなり、割込要求当初の要求レベルの低い割込が
、要求レベルの高い割込に対して割込むことによって、
当初の優先度の低い割込が先に処理を終了し、優先度の
高い割込が待ち状態になることにより、システムの整合
性に影響を与える可能性がある。
In this conventional device, the request level increases as the waiting time elapses, and an interrupt with a low request level at the beginning of the interrupt request interrupts an interrupt with a high request level.
Interrupts with a lower initial priority finish processing first, and interrupts with a higher priority are placed in a waiting state, which may affect the integrity of the system.

また、中央処理装置において、一定のレベル以下の割込
をマスクしている場合には、要求レベルが動的に変化す
ることにより、レベルによるマスク管理が実現できなく
なる。
Furthermore, if the central processing unit masks interrupts below a certain level, the request level changes dynamically, making it impossible to implement level-based mask management.

このように従来の割込処理装置では、要求レベルを時間
の経過によって変更するカウンタに上限がないため、長
い時間待ち状態を続けた割込要求は、最高レベルの要求
となる、中央処理装置の割込処理方式で、最高レベルの
要求を、マスク不能割込とする場合には、上記のように
長時間経過した割込が、マスク不能割込として処理され
てしまう。
In this way, in conventional interrupt processing devices, there is no upper limit to the counter that changes the request level over time, so an interrupt request that has been in a waiting state for a long time becomes the highest level request, and the counter changes the request level over time. In an interrupt processing method, if the highest level request is a non-maskable interrupt, an interrupt that has elapsed for a long time as described above will be processed as a non-maskable interrupt.

また従来の割込処理装置を複数接続して使用するシステ
ムでは、割込の許可を伝播する間に、許可された時点で
は割込の要求レベルが変化してしまうことによって、正
常な割込許可サイクルが実行できなくなる可能性がある
などの問題点を有していた。
In addition, in a conventional system that uses multiple interrupt processing devices connected, the interrupt request level changes at the time the interrupt permission is granted while the interrupt permission is being propagated. This has problems such as the possibility that the cycle cannot be executed.

発明が解決しようとする課題 以上のように従来の割込処理装置を用いたデータ処理装
置では、複数の割込要求が行われたとき、その当初の高
速処理の必要性に基づいた優先度から、待ち時間に応じ
た優先度の変更が加わり、当初低レベルの優先度の割込
が、場合によっては最高レベルの優先度にも遅し、高速
処理が必要な割込が後に発生したときに、それらによっ
て後まわしにされる不都合が発生する課題を有している
Problems to be Solved by the Invention As described above, in a data processing device using a conventional interrupt processing device, when multiple interrupt requests are made, priority is determined based on the initial need for high-speed processing. , with the addition of priority changes based on latency, when interrupts with initially low priority levels slow down to the highest priority level in some cases, and interrupts that require high-speed processing occur later. This poses the problem of causing inconveniences such as being postponed.

本発明は上記課題に留意し、データ処理装置において高
速処理の必要性と待ち時間にる優先のバランスが取れ、
システムの規則性を損うことなく、効率的な割込制御を
行う割込処理装置を提供しようとするものである。
The present invention takes the above-mentioned problems into consideration, and achieves a balance between the need for high-speed processing and the priority given to waiting time in a data processing device.
The present invention aims to provide an interrupt processing device that performs efficient interrupt control without impairing the regularity of the system.

課題を解決するための手段 本発明の上記目的を達成するために、複数の割込要求が
存在するデータ処理装置において、複数の割込要求入力
を検出して登録するとともに、すでに割込許可を得てそ
れにより割込許可信号が入力された割込要求を削除する
要求レジスタと、この要求レジスタに割込要求入力が登
録されるとカウントパルスが発生し、このカウントパル
スでカウントし一定の値に達すると信号を出力するタイ
マと、このタイマの出力のタイミングで要求レジスタの
内容を入力し、登録する待要求レジスタと、当初割込要
求入力による要求優先度および待要求レジスタの出力を
入力し、待要求レジスタに登録された割込要求の優先度
を一定のレベルに達するまでタイマの出力タイミングに
あわせて1レベルごと変更するとともにその変更した優
先度を保持し、すでに割込許可を得てそれにより割込許
可信号が入力された割込要求については変更した優先度
を当初の待ち時間による優先度のアップがない割込要求
の優先度に戻すカウンタと、このカウンタの内容を入力
し、最も優先度の高い割込要求を決定する要求選択装置
と、この要求選択装置の出力および当初割込要求入力に
よる要求優先度を入力し、最も優先度の高い割込要求に
対応した優先度を出力するレベル選択装置を具備してい
る。
Means for Solving the Problems In order to achieve the above object of the present invention, in a data processing device in which a plurality of interrupt requests exist, a plurality of interrupt request inputs are detected and registered, and an interrupt is already enabled. There is a request register that deletes the interrupt request for which an interrupt enable signal has been input, and a count pulse is generated when an interrupt request input is registered in this request register, and the count pulse is counted using this count pulse and a constant value is generated. A timer that outputs a signal when the interrupt request is reached, inputs the contents of the request register at the timing of this timer's output, inputs the waiting request register to register, the request priority by the initial interrupt request input, and the output of the waiting request register. , the priority of the interrupt request registered in the waiting request register is changed one level at a time according to the timer output timing until it reaches a certain level, and the changed priority is maintained, and the priority of the interrupt request registered in the waiting request register is changed one level at a time until it reaches a certain level. As a result, for interrupt requests for which an interrupt permission signal has been input, input a counter that returns the changed priority to the priority of an interrupt request whose priority does not increase due to the initial waiting time, and input the contents of this counter. A request selection device determines the interrupt request with the highest priority, and a request priority based on the output of this request selection device and the initial interrupt request input is input, and the priority corresponding to the interrupt request with the highest priority is selected. It is equipped with a level selection device for output.

またレベル選択装置は、出力する優先度が当初の割込要
求入力による要求優先度、すなわちカウンタによる待ち
時間による優先度アップがない優先度を選択して出力す
るものである。
Further, the level selection device selects and outputs the priority to be output as the request priority due to the initial input of the interrupt request, that is, the priority that is not increased due to the waiting time by the counter.

さらにカウンタによる待ち時間に応じた優先度のアップ
に上限を設け、その上限値まではタイマ出力のタイミン
グで1レベルごと上昇し、その上限値に達すると、待ち
時間が如何に増加しても優先度の上昇はないものである
Furthermore, an upper limit is set for increasing the priority according to the waiting time by the counter, and until the upper limit is reached, the priority increases by one level at the timing of the timer output, and when the upper limit is reached, priority is given no matter how much the waiting time increases. There is no increase in degree.

作用 上記構成の本発明の割込処理装置は、割込要求がなされ
たとき、未許可の場合、まず要求レジスタに前もって設
定された入力系統とその系統ごとの割込要求の優先度が
設定されているので、その割込要求に応じたある入力系
統に入力し、その系。
Operation In the interrupt processing device of the present invention having the above configuration, when an interrupt request is made and the interrupt request is not permitted, first the input system and the priority of the interrupt request for each system are set in the request register. Therefore, input to a certain input system corresponding to that interrupt request, and then input to that system.

統の割込要求として登録される。すでに割込許可などで
処理中のものがあると、タイマからの出力タイミングで
待要求レジスタに要求レジスタの内容が移される。
It is registered as a standard interrupt request. If there is something that is already being processed due to interrupt permission, etc., the contents of the request register are transferred to the waiting request register at the output timing from the timer.

タイマは要求レジスタに待ち状態の割込要求が存在する
かぎり出力されるカウントパルスを入力し、そのカウン
ト数がある値に達するごとに信号を出力する。
The timer inputs a count pulse that is output as long as there is a waiting interrupt request in the request register, and outputs a signal every time the count reaches a certain value.

待要求レジスタに登録された要求はタイマから出力で上
記待要求レジスタに入力された信号よりある遅延されて
入力される信号のタイミングでカウンタに移される。
The request registered in the waiting request register is output from the timer and is transferred to the counter at the timing of a signal inputted with a certain delay from the signal inputted to the waiting request register.

カウンタにおいては、引きつづいである間隔で出力され
るタイマからの信号のタイミングで、この登録された要
求の当初割込要求の優先度をたとえば1レベルずつ上昇
させ、要求の待ち時間に合わせた優先度アップを進めて
いく。
In the counter, the priority of the initial interrupt request of this registered request is increased by one level, for example, at the timing of the signal from the timer that is output at a certain interval, and the priority is set according to the waiting time of the request. We will continue to improve our level.

この優先度アップには上限値が設けられており、ある値
以上はいくら待ち時間が増加しても優先度のアップはな
い。
There is an upper limit to this priority increase; beyond a certain value, the priority will not increase no matter how much the waiting time increases.

この待ち時間による優先度アップにより、他の割込要求
の優先度より高くなると、要求選択装置で最優先割込要
求であることを認識する。
When the priority increases due to this waiting time and becomes higher than the priority of other interrupt requests, the request selection device recognizes that the interrupt request has the highest priority.

レベル選択装置は、その最優先割込要求を入力し、当初
割込要求した優先度、すなわち待ち時間による優先度の
アップが加わる前の優先度を入力しているので、優先度
をその中から、その割込要求の系統に相当するものを選
択し、出力する。
The level selection device inputs the highest priority interrupt request and inputs the priority of the initial interrupt request, that is, the priority before the priority increase due to waiting time is added, so it selects the priority from among them. , selects and outputs the one corresponding to the interrupt request system.

このレベル選択装置の出力により割込許可信号が出され
、この信号を要求レジスタと待要求レジスタとカウンタ
が入力する。
An interrupt permission signal is issued by the output of this level selection device, and this signal is inputted to the request register, waiting request register, and counter.

この割込許可入力により要求レジスタと待要求レジスタ
はその入力系統の割込要求が処理されたので、その入力
系統をリセットし、初期状態にもどす。またカウンタも
、その系統の優先度が待ち時間によりアップされている
ものを、初期の前もって設定されていた値に戻すことで
初期状態となる。
As a result of this interrupt permission input, the request register and the waiting request register reset the input system to the initial state since the interrupt request of that input system has been processed. The counter also returns to its initial state by returning the priority of that system, which has been increased due to the waiting time, to its initial, preset value.

実施例 以下本発明の一実施例について、図面を参照しながら説
明する。
EXAMPLE An example of the present invention will be described below with reference to the drawings.

第1図に示すように本実施例では7系統の入力がある複
数の割込要求入力信号1が、要求レジスタ2に入力され
割込入力を検出し、要求のある入力に対応したビットを
セットし保持する。また割込許可人力3によって要求レ
ジスタ2では許可された要求に対応するビットをリセッ
トする。
As shown in FIG. 1, in this embodiment, a plurality of interrupt request input signals 1 having seven input systems are input to the request register 2, which detects the interrupt input and sets the bit corresponding to the requested input. and hold. Further, the interrupt permission manual 3 resets the bit corresponding to the permitted request in the request register 2.

タイマ5への初期値の入力およびカウントパルスを制御
するタイマ人力4により、タイマ5はカウントパルス人
力4に従ってカウントダウンし、カウント値がオール0
になったときに、タイマ出力6Aを有効にする。
By inputting the initial value to the timer 5 and by the timer manual power 4 that controls the count pulse, the timer 5 counts down according to the count pulse manual power 4, and the count value is all 0.
When this happens, timer output 6A is enabled.

要求レジスタ2の値をタイマ出力6Aに同期して入力し
保持する待要求レジスタ7は、入力された割込要求が、
一定時間以上割込許可を待合せている状態にあることを
示す。
The waiting request register 7 inputs and holds the value of the request register 2 in synchronization with the timer output 6A, when the input interrupt request is
Indicates that the state has been waiting for interrupt permission for a certain period of time or more.

割込要求に対応した要求レベル8は、本実施例では7段
階の要求レベルを持ち、レベル0が最高優先度とする。
In this embodiment, request level 8 corresponding to the interrupt request has seven levels, with level 0 having the highest priority.

入力8の要求レベルを入力し、タイマ出力6Bに同期し
て待要求レジスタ7で割込の待合せ状態となっている要
求の要求レベルを1レベルずつ減算し、保持するカウン
タ9は減算レベルを設定することによって設定したレベ
ル以下にはならないことを保証する。
The request level of the input 8 is input, and in synchronization with the timer output 6B, the request level of the request waiting for an interrupt is subtracted one level at a time in the waiting request register 7, and the counter 9 that is held sets the subtraction level. This ensures that the level does not fall below the set level.

さらにカウンタ9で保持されるレベルのうち最も優先度
の高い要求を決定する要求選択部lOと要求選択部10
で決定された要求のビットに相当する要求レベル8を選
択し割込レベル12を出力するレベル選択装置11で構
成され割込要求が存在しないときはレベル選択装置11
は要求のないことを示す出力を行う。
Furthermore, a request selection unit 1O and a request selection unit 10 determine the request with the highest priority among the levels held in the counter 9.
The level selection device 11 selects the request level 8 corresponding to the bit of the request determined by and outputs the interrupt level 12. When there is no interrupt request, the level selection device 11
produces output indicating that there is no request.

以上のように構成された割込処理装置について、以下そ
の構成要素の関連動作を説明する。
Regarding the interrupt processing device configured as above, the related operations of its constituent elements will be explained below.

タイマ5は初期値としである値が設定され、カウントパ
ルス人力4は停止しているためタイマ5は動作していな
い割込要求入力信号1はIRQO−IRQ6の7ビツト
であり、IRQO−IRQ7の入力に対して、第2図に
示すような要求レベルがビット配置されあらかじめ設定
されている。レベル0が最高優先度とし、6を最低優先
度とする。
The timer 5 is set to a certain value as the initial value, and the count pulse manual 4 is stopped, so the timer 5 is not operating.The interrupt request input signal 1 is 7 bits of IRQO-IRQ6, For input, required levels as shown in FIG. 2 are arranged in bits and set in advance. Level 0 is the highest priority and level 6 is the lowest priority.

カウンタ9は減算レベルを1に設定されているため要求
レベル8のうち1以上のレベルのものがレベル0になる
ことはない。
Since the subtraction level of the counter 9 is set to 1, the level 1 or higher among the required levels 8 will never become level 0.

以上のように初期設定された割込処理装置に対して、割
込入力IRQ4およびIRQ5が入力されたとすると、
要求レジスタ2には、第3図のようにIRQ4およびI
RQ5に対応したビットがセットされる。
Assuming that interrupt inputs IRQ4 and IRQ5 are input to the interrupt processing device initialized as above,
Request register 2 has IRQ4 and I
The bit corresponding to RQ5 is set.

要求レジスタ2に値がセットされるとタイマ5のカウン
トパルス人力4が発生しくカウントパルス出力回路は関
係せず)タイマ5によるカウントダウンが開始される。
When a value is set in the request register 2, a count pulse 4 of the timer 5 is generated (the count pulse output circuit is not involved), and the timer 5 starts counting down.

タイマ5がオールOになるまで、タイマの出力6Aおよ
び6Bは有効とならないので、待要求レジスタ7は全ビ
ットOの状態である。
Since the outputs 6A and 6B of the timer do not become valid until the timer 5 becomes all O's, all bits of the wait request register 7 are in the state of O's.

カウンタ9には、要求レベル8と待要求レジスタ7の値
が入力され、タイマ出力6Bが有効となるまで、入力で
ある要求レベル8を保持する。
The counter 9 receives the request level 8 and the value of the waiting request register 7, and holds the input request level 8 until the timer output 6B becomes valid.

要求選択装置10は、カウンタ9の保持する値と、要求
レジスタ2の値を入力し、IRQ4とIRQ5の要求レ
ベルを比較し、IRQ4が最優先要求であることをレベ
ル選択装置11に通知する。
The request selection device 10 inputs the value held by the counter 9 and the value of the request register 2, compares the request levels of IRQ4 and IRQ5, and notifies the level selection device 11 that IRQ4 is the highest priority request.

レベル選択装置11はIRQ4に対応する要求レベルで
ある“4”を出力する。
The level selection device 11 outputs "4" which is the requested level corresponding to IRQ4.

IRQ4の割込要求が受付けられたことを、割込許可人
力3によって通知される(割込許可出力回路は図示せず
)と、要求レジスタ2は、IRQ4に対応するビットを
リセットする。
When notified by the interrupt enabler 3 that the interrupt request for IRQ4 has been accepted (the interrupt enable output circuit is not shown), the request register 2 resets the bit corresponding to IRQ4.

カウンタ9は、割込許可人力3によって、カウントダウ
ンした要求レベルをもとの要求レベルに戻すが、タイマ
出力6Bによるカウントが実行されていないため、保持
しているレベルは変化しない。
The counter 9 returns the counted down request level to the original request level by the interrupt permission manual 3, but the held level does not change because the timer output 6B does not count.

要求レジスタ2にIRQ5の要求が残っているためタイ
マ5はカウントダウンを続け、カウント値がオールOと
なったときにタイマ出力/くルス6Aを発生する。
Since the request for IRQ5 remains in the request register 2, the timer 5 continues counting down, and when the count value reaches all O's, a timer output/curse 6A is generated.

タイマ出力パルス6Aに同期して、待要求レジスタ7の
IRQ5に対応したビットがセットされる。
In synchronization with the timer output pulse 6A, the bit corresponding to IRQ5 of the wait request register 7 is set.

タイマ出力パルス6Bはタイマ出力パルス6Aに対して
遅延されているため、タイマ出カッ(ルス6Bがカウン
タ9に入力されたときすでにセットされた待要求レジス
タ7の値が入力されるため、IRQ5の要求レベルが“
5”→“4”へカウントダウンし、IRQ5の優先度を
上げる。
Since the timer output pulse 6B is delayed with respect to the timer output pulse 6A, when the timer output pulse 6B is input to the counter 9, the already set value of the wait request register 7 is input, so that the value of the IRQ5 is The request level is “
5" → "4" and increase the priority of IRQ5.

タイマ5は、カウント値がオール0になると、初期値を
入力し、再びカウントダウンを開始する。
When the count value reaches all 0, the timer 5 inputs an initial value and starts counting down again.

タイマ5.待要求レジスタ7、およびカウンタ9は、上
記の動作を要求レジスタ2に要求がなくなるまで、続行
する。
Timer 5. The waiting request register 7 and the counter 9 continue the above operations until there are no more requests in the request register 2.

タイマ出力パルス6Bによって、カウンタ9によりIR
Q5の要求レベルが第4図に示すカウンタ9内のビット
配置でIRQ5に相当するビットが減算され、カウンタ
9で保持しているIRQ5の要求レベルが1”になると
、これ以上の減算は行わない。
The timer output pulse 6B causes the counter 9 to output IR.
When the requested level of Q5 corresponds to IRQ5 in the bit arrangement in the counter 9 shown in Fig. 4 is subtracted, and the requested level of IRQ5 held in the counter 9 becomes 1'', no further subtraction is performed. .

IRQ5の要求が待合せ状態で、カウンタ9で保持され
る要求レベルが“1”のときに、IRQo。
When a request for IRQ5 is in a waiting state and the request level held in counter 9 is "1", IRQo.

IRQ1以外の割込要求が発生し、要求レジスタ2に登
録されると、要求選択装置10ではIRQ5の要求レベ
ルが“1”で最優先であると認識される。
When an interrupt request other than IRQ1 occurs and is registered in the request register 2, the request selection device 10 recognizes that the request level of IRQ5 is "1" and has the highest priority.

レベル選択装置11は、要求選択装置10の指示により
IRQ5の要求レベル“5”を出力する。
The level selection device 11 outputs the request level “5” of IRQ5 according to the instruction from the request selection device 10.

IRQ5の要求が受付けられたことを、割込許可人力3
によって通知されると、要求レジスタ2、待要求レジス
タ7のIRQ5に対応したビットがリセットされ、カウ
ンタ9ではIRQ5の要求レベルを“1”から“5”に
戻す。
Interrupt permission human power 3 indicates that the request for IRQ5 has been accepted.
When notified by , the bit corresponding to IRQ5 in the request register 2 and waiting request register 7 is reset, and the counter 9 returns the request level of IRQ5 from "1" to "5".

要求レジスタ2に登録された割込要求が全て受付けられ
ると、要求レジスタ2および待要求レジスタ7の全ビッ
トはOになり、カウンタ9内に保持されているレベルは
当初の割込要求の優先度である要求レベル8の値と同じ
になる。
When all the interrupt requests registered in the request register 2 are accepted, all bits in the request register 2 and waiting request register 7 become O, and the level held in the counter 9 is the priority of the original interrupt request. The value is the same as the value of request level 8, which is .

なおIRQO,IRQIの割込要求が発生すると、カウ
ンタ9の要求レベルが“1”以上にならないので、当然
このIRQO,IRQIの割込要求が優先される。
Note that when an IRQO or IRQI interrupt request occurs, the request level of the counter 9 does not exceed "1", so naturally the IRQO or IRQI interrupt request is given priority.

このように最優先の緊急処理要求の割込要求をすみやか
に処理するとともに、待ち時間の要素も加味した効率的
な割込処理が可能となる。
In this way, it is possible to promptly process the interrupt request that is the highest priority emergency processing request, and to perform efficient interrupt processing that also takes into account the waiting time factor.

発明の効果 以上の説明から明らかなように、本発明によれば割込要
求の優先度のレベルを待ち時間によるレベルアップの要
素と、そのアップに上限値を付加する要素を設け、優先
光の緊急処理要求の割込要求は速やかに処理し、さらに
待ち時間を加味した割込要求処理を行うことができると
ともに、割込要求した当初の優先度を保持した割込管理
が行えるので、システム全体の規則性を保持した効率的
な割込制御が実現できる。
Effects of the Invention As is clear from the above explanation, according to the present invention, an element for increasing the priority level of an interrupt request by waiting time and an element for adding an upper limit value to the increase are provided, and the priority level of the interrupt request is increased. Interrupt requests for emergency processing requests can be processed promptly, and the interrupt request can be processed with waiting time taken into account. Interrupt management can be performed while maintaining the original priority of the interrupt request, so the overall system Efficient interrupt control that maintains regularity can be realized.

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

第1図は本発明の一実施例の割込処理装置の構成を示す
ブロック図、第2図は同実施例において設定された要求
レベルを示すビット配置図、第3図は同実施例において
検出し登録された要求レジスタ内のビット配置図、第4
図は同実施例のカウンタ内で保持しているレベルの変更
を示すビット配置図である。 l・・・・・・割込要求入力、2・・・・・・要求レジ
スタ、3・・・・・・割込許可入力、4・・・・・・カ
ウントパルス入力、5・・・・・・タイマ、6A、6B
・・・・・・タイマ出力パルス、7・・・・・・待要求
レジスタ、8・・・・・・要求レベル、9・・・・・・
カウンタ、10・・・・・・要求選択装置、11・・・
・・・レベル選択装置、12・・・・・・割込レベル。
Fig. 1 is a block diagram showing the configuration of an interrupt processing device according to an embodiment of the present invention, Fig. 2 is a bit arrangement diagram showing the request level set in the embodiment, and Fig. 3 is a bit arrangement diagram showing the request level set in the embodiment. Bit arrangement diagram in the registered request register, 4th
The figure is a bit arrangement diagram showing changes in the level held in the counter of the same embodiment. l...Interrupt request input, 2...Request register, 3...Interrupt permission input, 4...Count pulse input, 5... ...Timer, 6A, 6B
...Timer output pulse, 7...Waiting request register, 8...Request level, 9...
Counter, 10...Request selection device, 11...
. . . Level selection device, 12 . . . Interrupt level.

Claims (2)

【特許請求の範囲】[Claims] (1)複数の割込要求入力を検出して登録し、割込許可
を示す入力により許可された割込要求を削除する要求レ
ジスタと、 前記要求レジスタに前記割込要求入力が登録されると発
生するカウントパルスを入力し、カウントを行い一定の
値に達すると信号を出力するタイマと、 前記要求レジスタの内容を前記タイマの出力のタイミン
グで入力し登録する待要求レジスタと、 前記割込要求入力による要求優先度および前記待要求レ
ジスタの内容を入力し、前記待要求レジスタに登録され
た割込要求の優先度を一定のレベルに達するまで前記タ
イマの出力のタイミングで1レベルごと変更し、その変
更した優先度を保持し、前記割込許可を示す入力により
前記変更した優先度を前記待要求レジスタに登録された
割込要求の優先度に戻すカウンタと、前記カウンタの内
容を入力し、最も優先度の高い割込要求を決定する要求
選択装置と、 前記割込要求入力による要求優先度および前記要求選択
装置の出力を入力し、前記最も優先度の高い割込要求に
対応した優先度を出力するレベル選択装置を具備し、 前記レベル選択装置には前記割込要求入力による要求優
先度の中から前記最も優先度の高い割込要求に対応した
優先度を選択し出力するレベル選択手段を有する割込処
理装置。
(1) A request register that detects and registers a plurality of interrupt request inputs and deletes an interrupt request that has been permitted by an input indicating interrupt permission, and when the interrupt request input is registered in the request register. a timer that inputs a generated count pulse and outputs a signal when it counts and reaches a certain value; a wait request register that inputs and registers the contents of the request register at the output timing of the timer; and the interrupt request. inputting the request priority and the contents of the waiting request register, changing the priority level of the interrupt request registered in the waiting request register one level at a time at the output timing of the timer until it reaches a certain level; a counter that holds the changed priority and returns the changed priority to the priority of the interrupt request registered in the waiting request register upon input indicating permission for the interrupt; and inputting the contents of the counter; a request selection device that determines an interrupt request with the highest priority; and a request selection device that inputs the request priority based on the interrupt request input and the output of the request selection device, and determines the priority corresponding to the interrupt request with the highest priority. The level selection device includes a level selection device that selects and outputs a priority corresponding to the highest priority interrupt request from among the request priorities obtained by inputting the interrupt request. An interrupt processing device having:
(2)カウンタによる優先度の変更が、タイマの出力タ
イミングで前記優先度レベルが1レベルごと上昇すると
ともに、その上昇に上限値を有する請求項1記載の割込
処理装置。
(2) The interrupt processing device according to claim 1, wherein the priority level is changed by a counter such that the priority level increases by one level at the output timing of a timer, and the increase has an upper limit value.
JP7371790A 1990-03-23 1990-03-23 Interruption processor Pending JPH03273437A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7371790A JPH03273437A (en) 1990-03-23 1990-03-23 Interruption processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7371790A JPH03273437A (en) 1990-03-23 1990-03-23 Interruption processor

Publications (1)

Publication Number Publication Date
JPH03273437A true JPH03273437A (en) 1991-12-04

Family

ID=13526254

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7371790A Pending JPH03273437A (en) 1990-03-23 1990-03-23 Interruption processor

Country Status (1)

Country Link
JP (1) JPH03273437A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08286956A (en) * 1995-04-12 1996-11-01 Nec Corp Fault logging system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08286956A (en) * 1995-04-12 1996-11-01 Nec Corp Fault logging system

Similar Documents

Publication Publication Date Title
US5572686A (en) Bus arbitration scheme with priority switching and timer
US7020879B1 (en) Interrupt and exception handling for multi-streaming digital processors
JPH0740250B2 (en) A device that controls access to the data bus
JPH04223511A (en) Microcomputer
JPH09138774A (en) Route arbitration method for shared resource
JPH0534699B2 (en)
JPH04211855A (en) Apparatus and method for controlling communication bus in data processing system
JPH06161952A (en) Arbitration device of access request
JPH04251362A (en) Adaptive direct memory access method and controller thereof
JPH03273437A (en) Interruption processor
US20050066093A1 (en) Real-time processor system and control method
JPH10320349A (en) Processor and data transfer system using the processor
JPH04302353A (en) Timer interrupting system for symmetrical multi processor computer
JPH0644234B2 (en) Task management device
JPS60181934A (en) Task priority degree controlling system
JPH02129751A (en) Bus use controller
JPH0328951A (en) Input/output controller
JPH0235552A (en) Interruption control circuit
JPH0353364A (en) Information processing system
JPH05158864A (en) Dma controller
JPH0365746A (en) Input/output controller
JPH0322142A (en) Interruption control device for microprocessor
JPH02222059A (en) Multiprocessor system
JPH05210515A (en) Instruction interruption priority processor
JPS629441A (en) Timer interruption control system