JPH03100734A - Controller interruption control system - Google Patents

Controller interruption control system

Info

Publication number
JPH03100734A
JPH03100734A JP23683889A JP23683889A JPH03100734A JP H03100734 A JPH03100734 A JP H03100734A JP 23683889 A JP23683889 A JP 23683889A JP 23683889 A JP23683889 A JP 23683889A JP H03100734 A JPH03100734 A JP H03100734A
Authority
JP
Japan
Prior art keywords
interrupt
interruption
level
input
central processing
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
JP23683889A
Other languages
Japanese (ja)
Inventor
Mitsuru Murata
充 村田
Shuji Yasuda
安田 周二
Atsushi Tajima
淳 田島
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.)
Nippon Telegraph and Telephone Corp
Original Assignee
Nippon Telegraph and Telephone 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 Nippon Telegraph and Telephone Corp filed Critical Nippon Telegraph and Telephone Corp
Priority to JP23683889A priority Critical patent/JPH03100734A/en
Publication of JPH03100734A publication Critical patent/JPH03100734A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To eliminate the hungry state of a control system which uses plural interruption levels by varying an interruption level according to the frequency of an interruption of the same classification. CONSTITUTION:The frequencies of respective interruption classifications are counted by interruption frequency counters 9-11 by the respective interruption classifications. The counting results are transferred to a bus arbitor and interruption level varying circuit 4, which varies the level of an interruption to a central processing unit (CPU) according to a predetermined rule. Here, outputs A-C of a 3X3 switch 8 correspond to the interruption levels and input/output devices 5-7 normally correspond to the outputs A-C, but when the frequency of the interruption from, for example, an input/output device 5 increases, the switch 8 makes a reconnection to the output C to vary the interruption level. Consequently, the hungry state wherein an interruption of low interruption level is not accepted by the processing unit at all is eliminated.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、中央処理装置(CP U )を用いて複数の
入出力装置を制御する制御装置の割り込み制御方式に関
するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an interrupt control method for a control device that controls a plurality of input/output devices using a central processing unit (CPU).

〔従来の技術〕[Conventional technology]

第5図は、従来の割り込み制御方法を用いた制御装置の
構成例を示しており、三つの中央処理装置(CP U 
)を用いたマルチプロセッサ構成の例である。
FIG. 5 shows an example of the configuration of a control device using a conventional interrupt control method, and includes three central processing units (CPU
) is an example of a multiprocessor configuration using

同図において、51〜53は中央処理装置(CPU)、
54はバス調停回路、55は入出力装置(1)、56は
入出力装置1(2)、57は入出力装置(3)を表わし
ている。
In the figure, 51 to 53 are central processing units (CPUs);
Reference numeral 54 represents a bus arbitration circuit, 55 represents an input/output device (1), 56 represents an input/output device 1 (2), and 57 represents an input/output device (3).

本例では、入出力装置(1)〜(3)は各々割り込みレ
ベルが異なるものとし、中央処理装置(CPU)51〜
53は、例えば三つの割り込みレベル端子を有し、該端
子からの入力により該当市り込みレベルの割り込み要求
が生じたものとして処理する。
In this example, it is assumed that the input/output devices (1) to (3) have different interrupt levels, and the central processing units (CPUs) 51 to
53 has, for example, three interrupt level terminals, and processes the input from the terminals as if an interrupt request of the corresponding market level has occurred.

バス調停回路54は、複数の中央処理装置(CPU)5
1〜53から同時にバス使用要求があった時は、特定の
アルゴリズムに従い、その内の一つの中央処理装置(C
P U )だけにパス使用許可を行なうものである。
The bus arbitration circuit 54 includes a plurality of central processing units (CPUs) 5
When there is a request to use the bus from 1 to 53 at the same time, one of the central processing units (C
PU) is permitted to use the path.

このアルゴリズムとして、例えば最も早く要求を出した
中央処理装置(c p u )に許可を与える方法があ
る。
As this algorithm, for example, there is a method of granting permission to the central processing unit (c p u ) that made the earliest request.

ここでは、例えば入出力装置(i)ssの割り込みレベ
ルが最も高く、入出力装置(3)57の割り込みレベル
が最も低いものとする。
Here, it is assumed that, for example, the interrupt level of the input/output device (i) ss is the highest, and the interrupt level of the input/output device (3) 57 is the lowest.

このような、複数の入出力装置55〜57と中央処理装
置(CPU)5に53からなる制御装置において、割り
込み処理によって入出力装置からの信号を中央処理装置
(CP U )で処理する場合には、複数の割り込みレ
ベルを設定し、割り込みレベルの高い処理を行なってい
る場合には、割り込みレベルの低い割り込みを受け付け
ないが、割り込みレベルの低い処理を行なっている場合
には、割り込みレベルの高い割り込みを受け付け、割り
込みの種別によって処理の順番に固定的に優先順位をつ
ける。
In such a control device consisting of a plurality of input/output devices 55 to 57 and a central processing unit (CPU) 5 to 53, when a signal from the input/output device is processed by the central processing unit (CPU) by interrupt processing, If multiple interrupt levels are set and processing with a high interrupt level is being performed, interrupts with a low interrupt level will not be accepted, but if processing with a low interrupt level is being performed, interrupts with a high interrupt level will not be accepted. Accepts interrupts and assigns a fixed priority to the processing order depending on the type of interrupt.

例えば、入出力装置(1)55かち割り込みがあった時
、パス調停回路54からパス使用許可を受けた中央処理
装置(CP U )に、該入出力装置(1)55の有す
る割り込みレベルの割り込みがかかり、割り込み処理を
行なう。
For example, when an input/output device (1) 55 receives an interrupt, the central processing unit (CPU) that has received permission to use the path from the path arbitration circuit 54 receives an interrupt at the interrupt level of the input/output device (1) 55. interrupt processing.

上記処理中に、入出力装置(3)57から割り込み要求
があっても、同一の中央処理装置(CPU)がパス使用
許可を受けでいる場合には、該中央処理装置(CPU)
はよりレベルの高い割り込み処理中のために、この割り
込み要求を受け付けない; 別の中央処理装置<c p u >が使用中でなければ
、その中央処理装置(CP U )が割り込みを受け付
ける。
During the above processing, even if an interrupt request is received from the input/output device (3) 57, if the same central processing unit (CPU) has received permission to use the path, then the central processing unit (CPU)
does not accept this interrupt request because it is processing a higher level interrupt; if another central processing unit <c p u > is not in use, that central processing unit (CPU) accepts the interrupt.

つまり、三つの中央処理装置(CP U )のうち、ど
の中央処理装置(CP U )をみても、よりレベルの
高い割り込みがあればそれを処理するが、レベルの低い
割り込みに対しては処理を行なわない。
In other words, whichever of the three central processing units (CPU) you look at, if there is a higher level interrupt, it will process it, but it will not process lower level interrupts. Don't do it.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

このような制御装置においでは、割り込みレベルの高い
信号が頻繁に生じると、それより割り込みレベルの低い
割り込みは、全く処理装置に受け付けられな(なる (
飢餓状態になる)。
In such a control device, if signals with a high interrupt level occur frequently, interrupts with a lower interrupt level will not be accepted by the processing device at all (
starvation).

本発明は、このような処理装置の飢餓状態を作らないよ
うにするためのものである。
The present invention is intended to prevent such processing equipment from starving.

(n!1を解決するための手段〕 本発明によれば、上述の目的は、前記特許請求の範囲に
記載した手段により達成される。
(Means for solving n!1) According to the present invention, the above object is achieved by the means described in the claims.

すなわち、本発明は、1または2以上の中央処理装置と
複数の入出力装置を具備し、入出力装置からの中央処理
装置で異なる処理を必要とする複数の割り込み種別を、
優先順位の異なる複数の割り込みレベルで中央処理1i
taが受け取り、割り込み処理を行なう制御装置におい
て、割り込み種別毎に割り込み回数を測定する手段と、
中央処理装置への割り込みレベルを変更する手段とを有
し、同一種別の割り込み頻度に応じて、割り込みレベル
を変更する制御装置割り込み制御方式である。
That is, the present invention is equipped with one or more central processing units and a plurality of input/output devices, and can handle a plurality of interrupt types that require different processing by the central processing unit from the input/output devices.
Central processing 1i with multiple interrupt levels with different priorities
means for measuring the number of interrupts for each interrupt type in a control device that is received by the ta and performs interrupt processing;
This is a control device interrupt control method that has means for changing the interrupt level to the central processing unit, and changes the interrupt level according to the frequency of interrupts of the same type.

〔作 用〕[For production]

本発明は、ts9込みレベルの高い割り込み種別の割り
込み頻度が大きくなった場合には、処理装置が飢餓状態
になる前に、割り込み頻度の高い割り込み種別の割り込
みレベルを下げる、あるいはIRQ込み頻度の高い割り
込みを一時的に割り込み禁止する等、割り込み頻度の少
ない割り込み種別のものから処理を行なうようにする方
法である。
In the present invention, when the interrupt frequency of an interrupt type with a high ts9 interrupt level increases, the interrupt level of the interrupt type with a high interrupt frequency is lowered, or the interrupt level of the interrupt type with a high IRQ interrupt frequency is This is a method of temporarily disabling interrupts, etc., so that processing is performed starting with interrupt types that have a low frequency of interrupts.

〔実施例〕〔Example〕

第1図は、本発明の一実施例を示す図であり、本発明の
割り込み制御方法を実現する制御vc置の一構成例を示
すものである。
FIG. 1 is a diagram showing an embodiment of the present invention, and shows an example of the configuration of a control VC device that implements the interrupt control method of the present invention.

同図において、1〜3は中央処理装置(CPU)、4は
パス調停・割り込みレベル変更回路、5は入出力装置[
(1)、6は入出力装置(2)、7は入出力装置(3)
、8は3×3スイツチ、9〜11はカウンタ(COU(
1)〜 C0U(3))、12はタイW (Tiger
)を表わしている。
In the figure, 1 to 3 are central processing units (CPUs), 4 is a path arbitration/interrupt level change circuit, and 5 is an input/output device [
(1), 6 is input/output device (2), 7 is input/output device (3)
, 8 is a 3x3 switch, 9 to 11 are counters (COU(
1)~C0U(3)), 12 is Tie W (Tiger
).

本実施例においても、従来例の場合と同様に、三つの中
央処理装置(CP U )を有する場合について説明す
る。
In this embodiment as well, a case will be described in which three central processing units (CPU) are provided, as in the case of the conventional example.

中央処理装置(CPU)1〜3と入出力装置5〜7は従
来のものと同様であり、バス調停・割り込みレベル変更
回路4は、従来と同様のパス調停機能を有する他、!1
つ込みレベルを変更するための変更信号を生成する機能
を新たに付加されたものである。
The central processing units (CPUs) 1 to 3 and input/output devices 5 to 7 are the same as those of the conventional ones, and the bus arbitration/interrupt level change circuit 4 has the same path arbitration function as the conventional one. 1
A new function has been added to generate a change signal for changing the mixing level.

カウンタ(COU(1)〜 C0U(3))9〜11は
各割り込みレベルの割り込み回数を計数するカウンタで
あり、タイマ12はw4’)込み回数測定時間を設定す
るものである。
Counters (COU(1) to COU(3)) 9 to 11 are counters for counting the number of interrupts at each interrupt level, and a timer 12 is used to set a time for measuring the number of interrupts w4'.

ここでは3X3スイツチを用いて構成しており、この3
×3スイツチ8が実際に割り込みレベルを変更する回路
部分であり、該3×3スイツチ8の出力A、B 、Cが
割り込みレベルに対応する。
Here, it is configured using 3X3 switches, and these 3
The ×3 switch 8 is the circuit portion that actually changes the interrupt level, and the outputs A, B, and C of the 3×3 switch 8 correspond to the interrupt level.

通常は、入出力装置(1)〜(3)が各々出力A−Cに
対応するが、例えば入′出力装置(1)からの割り込み
回数が増加したときは、これを、3X3スイツチ8のス
イッチ動作により、出力Cにつなぎ変えることにより割
り込みレベルを変更する。
Normally, input/output devices (1) to (3) correspond to outputs A-C, respectively, but for example, when the number of interrupts from input/output device (1) increases, this can be changed to the switch of 3X3 switch 8. Depending on the operation, the interrupt level is changed by changing the connection to output C.

このように、3X3スイツチ8のスイッチ動作を制御す
るのがパス調停・割り込みレベル変更回路4である。
In this way, the path arbitration/interrupt level change circuit 4 controls the switching operation of the 3X3 switch 8.

ここでは、各入出力装置ごとに割り込みレベルが異なる
例を示しているが、他の場合についても同様な方法で実
現で終る。各割り込み種別の割り込み頻度は、それぞれ
、割り込み種別ごとの割り込み回数カウンタ (COU
(1)〜 C0U(3))9〜11によって計数される
。この割り込み回数カウンタ9〜11はタイマ12によ
って、一定時間ごとにリセットされるため、カウンタ9
〜11の値は、一定時闇内における割り込み頻度を表わ
す。
Although an example in which the interrupt level differs for each input/output device is shown here, other cases can be implemented in the same manner. The interrupt frequency for each interrupt type is calculated using the interrupt frequency counter (COU) for each interrupt type.
(1) to C0U(3)) 9 to 11. The interrupt count counters 9 to 11 are reset by the timer 12 at regular intervals;
A value of ~11 represents the frequency of interruptions during a certain period of time.

カウンタ9〜11によって計測された結果は、バス調停
・割り込みレベル変更回路4に転送され、第2図の割り
込みレベルの変更動作を説明する図に示すように、予め
決められたルールによって1!Ii9込みレベル変更回
路は、中央処理装置(CP U )に対する割り込みレ
ベルを変更する。ここでは、3X3スイツチ8の出力A
−Cが割り込みレベルに対応すると考えれば良−1゜例
えば、状態■では、カウンタ(1)が設定値内、カウン
タ(2)およびカウンタ(3)が設定値を越えるから、
入出力装置(1)を最も高い割り込みレベルに、入出力
装置(2)、(3)を次の割り込みレベルにし、最下位
の割り込みレベル(出力C)には出力しない。
The results measured by the counters 9 to 11 are transferred to the bus arbitration/interrupt level change circuit 4, and as shown in FIG. The Ii9 interrupt level change circuit changes the interrupt level for the central processing unit (CPU). Here, the output A of 3X3 switch 8
-1゜For example, in state ■, counter (1) is within the set value and counter (2) and counter (3) exceed the set value.
The input/output device (1) is set to the highest interrupt level, the input/output devices (2) and (3) are set to the next interrupt level, and no output is output to the lowest interrupt level (output C).

また状態■のように、全入出力装置(1)。Also, as in state ■, all input/output devices (1).

(2)、(3)の割り込み回数が増加した場合には、全
入出力8111 (1)、(2)、(3)を出力Aにし
、出力B、Cには出力しない。
When the number of interrupts (2) and (3) increases, all input/outputs 8111 (1), (2), and (3) are set to output A, and outputs B and C are not output.

このように、本発明では一つの割り込み回数の多い入出
力装置は割り込みレベルを低くし、複数の入出力装置の
割り込み回数が増えたときは、それらを−緒にして低い
レベルにする。
In this way, according to the present invention, an input/output device that has a large number of interrupts is set to a low interrupt level, and when a plurality of input/output devices have an increased number of interrupts, they are all set to a low level.

以上の例は、複数の中央処理5&置(CP U )に、
まとめて割り込みレベルを変更する場合であったが、次
に、本発明の他の実施例である処理装置が個別に割I)
込みレベルを変更する場合の装置構成を第3図に示す。
In the above example, multiple central processing units (CPUs)
This was a case where the interrupt level was changed all at once, but next, in another embodiment of the present invention, the processing device changes the interrupt level individually.
FIG. 3 shows an apparatus configuration for changing the embedding level.

同図において、20は中央処理装置(CP U )、2
1.22は切替スイッチ、23は7ンドデート、24は
インバータ、25.26はカウンタ(COU  (1)
、COU  (2)’) 、27はタイマ(Ti論er
)を表わしている。
In the figure, 20 is a central processing unit (CPU);
1.22 is the changeover switch, 23 is the 7th date, 24 is the inverter, 25.26 is the counter (COU (1)
, COU (2)'), 27 is a timer (Ti theory
).

本例は、中央処理装置(CPU)20に対する割り込み
種別(1)、(2)の割り込みレベルを切替スイッチ2
1.22を用いて変更する例である。この回路における
カウンタ (1)、(2)の状態と中央処F[ffiの
入力A、Bに対する帛り込み種別の対応を第4図に示す
In this example, the interrupt level of interrupt types (1) and (2) for the central processing unit (CPU) 20 is set by the switch 2.
This is an example of changing using 1.22. FIG. 4 shows the correspondence between the states of counters (1) and (2) in this circuit and the inclusion types for inputs A and B of the central processing unit F[ffi.

ここでは、割り込み回数の多い割り込み種別を、より低
い割り込みレベルにするが、全ての割り込み種別の割り
込み回数が多い場合は、割り込みレベルの変更はしない
Here, the interrupt type with a large number of interrupts is set to a lower interrupt level, but if all interrupt types have a large number of interrupts, the interrupt level is not changed.

以上説明した実施例の回路構成では、割り込み種別に対
する割り込みレベルを変更したが、特定の割り込み種別
に対して中央処理装置に割り込みを伝達しない(1!l
り込みを禁止する)方法も考えられる。
In the circuit configuration of the embodiment described above, the interrupt level for the interrupt type is changed, but the interrupt is not transmitted to the central processing unit for a specific interrupt type (1!l
Another option is to prohibit access.

〔発明の効果〕〔Effect of the invention〕

本発明を用いることによって、複数の割り込みレベルを
用いる制御系における飢餓状態を無くすことが可能とな
る。
By using the present invention, it is possible to eliminate starvation in a control system that uses multiple interrupt levels.

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

第1図は本発明の一実施例を示す図、第2図は割り込み
レベルの変更動作を説明する図、第3図は本発明の他の
実施例を示す図、第4図はカウンタの計数状態と中央処
理装置への111り込み種別の対応を示す図、第5図は
従来の割り込み制御方法を用いた制御装置の構成例を示
す図である。 1〜3 ・・・・・・中央路m装置(CPU)、4 ・
・・・・・パス10% −119込みレベル変更回路、
5 ・・・・・・入出力装置(1)、     6 ・
・・・・・入出力装置(2)、    7 ・・・・・
・入出力装置(3)、8  ・・・・・・ 3×3スイ
ツチ、9−11・・・・・・カウンタ(COU(1)〜
 CoU(3))、12 ・・・・・・ タイマ、  
 20・・・・・・中央処理装置(CP U )、  
 21.22・・・・・・スイッチ、   23−・・
・・・7ンドデート、24 ・・・・・・ インバータ
、   2526  ・・・・・・カウンタ(COU 
(1)、COU (2))、27 ・・・・・・ タイ
FIG. 1 is a diagram showing one embodiment of the present invention, FIG. 2 is a diagram explaining the interrupt level changing operation, FIG. 3 is a diagram showing another embodiment of the present invention, and FIG. 4 is a diagram showing the counting of the counter. FIG. 5 is a diagram showing the correspondence between states and types of 111 interrupts to the central processing unit. FIG. 5 is a diagram showing an example of the configuration of a control device using a conventional interrupt control method. 1 to 3...Chuoro m device (CPU), 4 ・
...pass 10% -119 included level change circuit,
5 ... Input/output device (1), 6 ・
...Input/output device (2), 7...
・Input/output device (3), 8...3x3 switch, 9-11...Counter (COU(1)~
CoU(3)), 12... Timer,
20...Central processing unit (CPU),
21.22...Switch, 23-...
...7nd date, 24 ...Inverter, 2526 ...Counter (COU)
(1), COU (2)), 27... Timer

Claims (1)

【特許請求の範囲】 1または2以上の中央処理装置と複数の入出力装置を具
備し、入出力装置からの中央処理装置で異なる処理を必
要とする複数の割り込み種別を、優先順位の異なる複数
の割り込みレベルで中央処理装置が受け取り、割り込み
処理を行なう制御装置において、 割り込み種別毎に割り込み回数を測定する手段と、中央
処理装置への割り込みレベルを変更する手段とを有し、
同一種別の割り込み頻度に応じて、割り込みレベルを変
更することを特徴とする制御装置割り込み制御方式。
[Scope of Claims] Equipped with one or more central processing units and a plurality of input/output devices, a plurality of interrupt types that require different processing from the input/output devices in the central processing unit can be handled by a plurality of interrupt types having different priorities. The control device receives and processes interrupts at an interrupt level of the central processing unit, the control device having means for measuring the number of interrupts for each interrupt type, and means for changing the interrupt level to the central processing unit,
A control device interrupt control method characterized by changing an interrupt level depending on the frequency of interrupts of the same type.
JP23683889A 1989-09-14 1989-09-14 Controller interruption control system Pending JPH03100734A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP23683889A JPH03100734A (en) 1989-09-14 1989-09-14 Controller interruption control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP23683889A JPH03100734A (en) 1989-09-14 1989-09-14 Controller interruption control system

Publications (1)

Publication Number Publication Date
JPH03100734A true JPH03100734A (en) 1991-04-25

Family

ID=17006539

Family Applications (1)

Application Number Title Priority Date Filing Date
JP23683889A Pending JPH03100734A (en) 1989-09-14 1989-09-14 Controller interruption control system

Country Status (1)

Country Link
JP (1) JPH03100734A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008171178A (en) * 2007-01-11 2008-07-24 Kawasaki Microelectronics Kk Interruption control method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008171178A (en) * 2007-01-11 2008-07-24 Kawasaki Microelectronics Kk Interruption control method and device

Similar Documents

Publication Publication Date Title
US4275458A (en) Interrupt expander circuit
EP0497628B1 (en) Interrupt controller for a multiprocessor computer system
JPH04211855A (en) Apparatus and method for controlling communication bus in data processing system
JPH03100734A (en) Controller interruption control system
EP3945427A1 (en) Deadlock condition avoidance in a data processing system with a shared slave
JPH03102430A (en) Interruption control system
JPH02306344A (en) System for suppressing abnormal state of software
JP2001337841A (en) Task control unit
KR20000039260A (en) Method for interrupt arbitration
JPH03142631A (en) Multi-signal interruption circuit
JPS633341A (en) Preference control processing method
JPH0660017A (en) Collision circuit
JPS62286151A (en) Input/output processor
JP2000122963A (en) Interruption controller and interruption control method
JPH08335179A (en) One-chip microcomputer
JPH0474231A (en) Interruption control circuit
JPH05313917A (en) Interruption control circuit
JPH01243158A (en) Information processor
JPH09134294A (en) Interruption control circuit
KR100230810B1 (en) Round-robin algorithm
JPH0235552A (en) Interruption control circuit
JPH03167633A (en) Control method for interruption program
JPS62264349A (en) Bus priority deciding system
JPS61183745A (en) Interruption control device
JPH09218792A (en) Interruption notice circuit