JP2000242508A - Interruption arbitrating circuit - Google Patents

Interruption arbitrating circuit

Info

Publication number
JP2000242508A
JP2000242508A JP11043245A JP4324599A JP2000242508A JP 2000242508 A JP2000242508 A JP 2000242508A JP 11043245 A JP11043245 A JP 11043245A JP 4324599 A JP4324599 A JP 4324599A JP 2000242508 A JP2000242508 A JP 2000242508A
Authority
JP
Japan
Prior art keywords
counter
interrupt
arbitration
value
initial value
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
JP11043245A
Other languages
Japanese (ja)
Inventor
Hideki Nagamine
秀樹 永峰
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.)
NEC Engineering Ltd
Original Assignee
NEC Engineering 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 NEC Engineering Ltd filed Critical NEC Engineering Ltd
Priority to JP11043245A priority Critical patent/JP2000242508A/en
Publication of JP2000242508A publication Critical patent/JP2000242508A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To suppress the alteration of the interruption arbitrating circuit against the variation of the number of interruption request sources by inputting an initial value load signal to a count part when the count value matches a maximum count value. SOLUTION: The counter part 20 reads in an initial value set by a counter initial value setting part 21 with an initial value load signal outputted from a comparator part 23. Then the counter part 20 counts the clock input to its clock input terminal to increase in value. The output of the counter part 20 is taken out as a counter value output and inputted to the comparator part 23, which compares the count value with the maximum count set value from a maximum count value setting part 22. When the counter value matches the set value, the comparator part 23 outputs the initial value load signal to the counter part 20. Consequently, the counter increases in value repeatedly from the initial value (e.g. 0) to the maximum set value (e.g. 5).

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、割り込み調停回
路、特にプログラマブルカウンタを用いる割り込み調停
回路に関する。
The present invention relates to an interrupt arbitration circuit, and more particularly to an interrupt arbitration circuit using a programmable counter.

【0002】[0002]

【従来の技術】パーソナルコンピュータを含むコンピュ
ータシステム等にあっては、マイクロプロセッサ又はC
PU(中央演算ユニット)にバスを介して多くの装置が
接続されている。これら多くの装置からプロセッサへの
要求を効率よく調停して円滑な動作を行う為に調停回路
(アービタ)が使用される。
2. Description of the Related Art In a computer system including a personal computer, a microprocessor or C
Many devices are connected to a PU (Central Processing Unit) via a bus. An arbiter (arbiter) is used in order to efficiently arbitrate requests from many of these devices to the processor and perform a smooth operation.

【0003】斯る調停回路又は割り込み調停回路の従来
例は、例えば特開平9−31594号公報及び特開昭6
2−297944号公報等に開示されている。
Conventional examples of such arbitration circuits or interrupt arbitration circuits are disclosed in, for example, Japanese Patent Application Laid-Open Nos. 9-31594 and
It is disclosed in Japanese Patent Application Laid-Open No. 2-297944.

【0004】即ち、割り込み要因が発生した割り込み要
求元は、複数の割り込み要求元に与えられるユニークな
番号の中で自身に割り振られた番号と、割り込み制御部
の割り込み調停カウンタから出力されるカウント値が一
致した時に、割り込み制御部に割り込み要求信号を出力
する。割り込み要求元は、割り込み要求信号を検出する
と、割り込み調停カウンタの値から割り込み要求元を判
定する。
That is, the interrupt request source in which the interrupt factor has occurred is determined by the number assigned to itself among the unique numbers given to the plurality of interrupt request sources, and the count value output from the interrupt arbitration counter of the interrupt control unit. When they match, an interrupt request signal is output to the interrupt control unit. Upon detecting the interrupt request signal, the interrupt request source determines the interrupt request source from the value of the interrupt arbitration counter.

【0005】或は、割り込み制御部と割り込み要求元に
夫々割り込み調停カウンタを設け、割り込み制御部から
割り込み要求元へクロック及びリセット信号を出力し、
全てのカウンタを同じタイミングでインクリメント及び
初期化させる。割り込み要因が発生した割り込み要求元
では、自身に割り振られたユニークな番号とカウンタの
値が一致すると、割り込み制御部に対して割り込み要求
信号を出力し、割り込み制御部に割り込み要求元を判定
させる。割り込み調停カウンタを用いる場合、このよう
な調停方法が一般的である。
Alternatively, an interrupt arbitration counter is provided for each of the interrupt control unit and the interrupt request source, and a clock and a reset signal are output from the interrupt control unit to the interrupt request source.
All counters are incremented and initialized at the same timing. When the unique number assigned to the interrupt request source matches the counter value, the interrupt request source that has generated the interrupt factor outputs an interrupt request signal to the interrupt control unit, and causes the interrupt control unit to determine the interrupt request source. When an interrupt arbitration counter is used, such an arbitration method is generally used.

【0006】図8に従来の割り込み調停カウンタの構成
図(A)及びその動作説明図(B)を示す。図8(A)
に示す如く、割り込み制御部80と複数(n個)の割り
込み要求元83a〜83nとにより構成される。割り込
み制御部80は、割り込み調停カウンタ81及び割り込
み要求受け付け82を含んでいる。割り込み制御部80
と各割り込み要求元83a〜83nは、1本の割り込み
要求信号により接続される。また、各複数の割り込み要
求元83a〜83nは、夫々要求元に対してユニークに
割り振られた個別番号を有する。図8(A)に示す如
く、1本の割り込み要求信号を複数の割り込み要求元8
3a〜83nにより共有する場合には、割り込み要求の
競合を調停して回避する必要がある。その為に、割り込
み要求信号を出力するタイミングを時分割し、割り込み
要求元83a〜83nに対して順次割り込み要求を受け
付け82で受け受ける。
FIG. 8 shows a configuration diagram (A) of a conventional interrupt arbitration counter and an operation explanatory diagram (B) thereof. FIG. 8 (A)
As shown in (1), it is composed of an interrupt controller 80 and a plurality (n) of interrupt request sources 83a to 83n. The interrupt control unit 80 includes an interrupt arbitration counter 81 and an interrupt request reception 82. Interrupt control unit 80
The interrupt request sources 83a to 83n are connected by one interrupt request signal. Each of the plurality of interrupt request sources 83a to 83n has an individual number uniquely assigned to each request source. As shown in FIG. 8A, one interrupt request signal is transmitted to a plurality of interrupt request sources 8.
In the case of sharing by 3a to 83n, it is necessary to arbitrate and avoid conflict of interrupt requests. For this purpose, the timing of outputting the interrupt request signal is time-divided, and interrupt requests are sequentially received by the interrupt request sources 83a to 83n at the reception 82.

【0007】図8(B)に示す如く、割り込み制御部8
0の割り込み調停カウンタ81は、0、1、2、…nと
カウントアップする。nに達すると再度0に復帰してカ
ウントアップを反復する。
[0007] As shown in FIG.
The 0 interrupt arbitration counter 81 counts up to 0, 1, 2,... N. When it reaches n, it returns to 0 again and the count-up is repeated.

【0008】次に、図9(A)及び(B)を参照して、
6個の割り込み要求元83a〜83fを有する場合の動
作を説明する。個別(又は識別)番号0から5の割り込
み要求元83a〜83fから構成される図9(A)の割
り込み要求信号出力のタイミングチャートを図9(B)
に示す。割り込み要因が発生した割り込み要求元83
は、割り込み制御部80に設けられた割り込み調停カウ
ンタ81から出力されるカウント値と、自身に与えられ
た個別番号とを比較する。このカウンタ値と個別番号と
が一致したタイミングで割り込み要求信号を出力する
(図9(B)のタイミングチャートの(a)及び(b)
参照)。
Next, referring to FIGS. 9A and 9B,
The operation when there are six interrupt request sources 83a to 83f will be described. FIG. 9B is a timing chart of the interrupt request signal output of FIG. 9A including the interrupt request sources 83a to 83f of the individual (or identification) numbers 0 to 5.
Shown in Interrupt request source 83 where the interrupt factor occurred
Compares the count value output from the interrupt arbitration counter 81 provided in the interrupt control unit 80 with the individual number given to itself. An interrupt request signal is output at the timing when the counter value matches the individual number ((a) and (b) in the timing chart of FIG. 9B).
reference).

【0009】図10(A)、(B)はシステム構成変更
による割り込み要求元数83の減少と割り込み調停能力
の低下を示す。図9の場合には割り込み要求元数が83
a〜83fの6個であったが、図10では割り込み元数
が83a〜83dの4個に減少している。調停カウンタ
81は、0から5をインクリメント(カウンタアップ)
するよう構成されている。
FIGS. 10A and 10B show a decrease in the number of interrupt request sources 83 and a decrease in interrupt arbitration capability due to a change in the system configuration. In the case of FIG. 9, the number of interrupt request sources is 83
In FIG. 10, the number of interrupt sources has been reduced to four, 83a to 83d. The arbitration counter 81 increments 0 to 5 (counter up).
It is configured to be.

【0010】しかし、図10の場合には、0〜3で足
り、4及び5のカウンタ時間は無駄となることを図10
(B)のタイミングチャートに示す。即ち、図10の場
合には、割り込み調停カウンタ81が4及び5をカウン
タしても、そのカウント値に対応する割り込み要求元の
個別番号が存在しないので、無駄な調停区間となり、そ
の分だけ割り込み制御部80の調停能力が低下したこと
となる。
However, in the case of FIG. 10, the fact that 0 to 3 is sufficient and the counter times of 4 and 5 are wasted is shown in FIG.
This is shown in the timing chart of FIG. That is, in the case of FIG. 10, even if the interrupt arbitration counter 81 counts 4 and 5, since there is no individual number of the interrupt request source corresponding to the count value, it becomes a useless arbitration section, and the interrupt is performed accordingly. This means that the arbitration capability of the control unit 80 has decreased.

【0011】[0011]

【発明が解決しようとする課題】上述した従来の割り込
み調停回路によると、システム構成の変更等により割り
込み要求元数が変更(減少)した場合に割り込み調停カ
ウンタに無駄なカウンタ区間が生じて調停能力の低下を
招来する。換言すると、割り込み要求元数又はシステム
構成により調停効率が変化するという問題があった。
According to the above-described conventional interrupt arbitration circuit, when the number of interrupt request sources is changed (decreased) due to a change in the system configuration or the like, a wasteful counter section is generated in the interrupt arbitration counter, and the arbitration capability is increased. Leads to a decrease in In other words, there has been a problem that the arbitration efficiency changes depending on the number of interrupt request sources or the system configuration.

【0012】また、従来の割り込み調停回路では、割り
込み要求元が複数のグループにグループ分けされている
場合には別の問題が生じた。即ち、割り込み要求の優先
度により割り込み要求元が複数グループに分けられ、各
グループにおいてユニークな個別番号が与えられた場
合、調停カウンタは単純にインクリメントするので、グ
ループ毎に調停カウンタを動作することができない為
に、各グループ毎に個別にカウントすることができな
い。この場合にあっても、システム構成に変更が生じ、
割り込み要求元数が減少すると余計なカウント値まで割
り込み調停カウンタがインクリメントする為に調停効率
が低下する。
Further, in the conventional interrupt arbitration circuit, another problem occurs when the interrupt request sources are divided into a plurality of groups. That is, if the interrupt request source is divided into a plurality of groups according to the priority of the interrupt request, and a unique individual number is given to each group, the arbitration counter simply increments, so that the arbitration counter can be operated for each group. Because it is impossible, it cannot be counted individually for each group. Even in this case, the system configuration changes,
When the number of interrupt request sources decreases, the arbitration efficiency decreases because the interrupt arbitration counter increments to an unnecessary count value.

【0013】更にまた、割り込み要求元数が増加するシ
ステム構成の変更があった場合には、調停することがで
きなかった。
Further, when there is a change in the system configuration in which the number of interrupt request sources increases, arbitration cannot be performed.

【0014】従って、本発明の目的は、割り込み要求元
がグループ分けされている場合のシステム構成の変更等
に伴う割り込み要求元数の増減による調停不能又は調停
効率の低下を招来することのない割り込み調停回路を提
供することである。
Accordingly, an object of the present invention is to provide an interrupt which does not cause arbitration failure or decrease in arbitration efficiency due to an increase or decrease in the number of interrupt request sources due to a change in the system configuration when the interrupt request sources are grouped. An arbitration circuit is provided.

【0015】本発明の他の目的は、割り込み要求元数の
変更に対して、割り込み調停回路の変更を抑えることが
可能な割り込み調停回路を提供することである。
Another object of the present invention is to provide an interrupt arbitration circuit capable of suppressing a change in the interrupt arbitration circuit in response to a change in the number of interrupt request sources.

【0016】[0016]

【課題を解決するための手段】前述の課題を解決するた
め、本発明による割り込み調停回路は、次のような特徴
的な構成を採用している。
In order to solve the above-mentioned problems, an interrupt arbitration circuit according to the present invention employs the following characteristic configuration.

【0017】(1)複数の割り込み要求元からの割り込
み要求を調停する為の割り込み調停カウンタを含む割り
込み制御部を有する割り込み調停回路において、前記割
り込み調停カウンタとして、クロック入力を計数するカ
ウンタ部と、該カウンタ部の初期値を設定するカウンタ
初期値設定部と、前記カウンタ部の最大カウント値を設
定する最大カウント値設定部と、前記カウンタ部のカウ
ント値を前記最大カウント値と比較し、一致時に前記カ
ウンタ部に対して初期値ロード信号を入力するコンパレ
ータ部とを含むプログラマブル割り込み調停カウンタを
用いる割り込み調停回路。
(1) In an interrupt arbitration circuit having an interrupt control unit including an interrupt arbitration counter for arbitrating interrupt requests from a plurality of interrupt request sources, a counter unit for counting clock inputs as the interrupt arbitration counter; A counter initial value setting unit for setting an initial value of the counter unit, a maximum count value setting unit for setting a maximum count value of the counter unit, and comparing the count value of the counter unit with the maximum count value. An interrupt arbitration circuit using a programmable interrupt arbitration counter including a comparator unit for inputting an initial value load signal to the counter unit.

【0018】(2)前記複数の割り込み要求元は、2以
上のグループにグループ分けされている上記(1)の割
り込み調停回路。
(2) The interrupt arbitration circuit according to (1), wherein the plurality of interrupt request sources are grouped into two or more groups.

【0019】(3)前記プログラマブル割り込み調停カ
ウンタの前記カウンタ初期値設定部及び最大カウント値
設定部は、前記割り込み要求元のグループ数に応じて複
数個設け、セレクタにより切り替えられる上記(2)の
割り込み調停回路。
(3) A plurality of the counter initial value setting section and the maximum count value setting section of the programmable interrupt arbitration counter are provided according to the number of groups of the interrupt request source, and the interrupt of (2) is switched by a selector. Arbitration circuit.

【0020】(4)前記割り込み要求元のグループ分け
は、優先度に応じて行われる上記(2)の割り込み調停
回路。
(4) The interrupt arbitration circuit according to (2), wherein the grouping of the interrupt request sources is performed according to the priority.

【0021】(5)前記複数のグループの割り込み要求
元のカウント値は、前記カウンタ初期値設定部及び最大
カウント値設定部により任意に設定可能である上記
(3)の割り込み調停回路。
(5) The interrupt arbitration circuit according to (3), wherein the count values of the interrupt request sources of the plurality of groups can be arbitrarily set by the counter initial value setting unit and the maximum count value setting unit.

【0022】(6)前記セレクタの制御は、前記カウン
タ部からのカウント値の上位ビットに応じて行う上記
(3)の割り込み調停回路。
(6) The interrupt arbitration circuit according to the above (3), wherein the control of the selector is performed according to the upper bit of the count value from the counter section.

【0023】(7)前記カウンタ部は、前記コンパレー
タ部が初期値ロード信号を出力する毎に、前記カウンタ
初期値設定部からの設定値をロードする上記(1)の割
り込み調停回路。
(7) The interrupt arbitration circuit according to (1), wherein the counter section loads a set value from the counter initial value setting section every time the comparator section outputs an initial value load signal.

【0024】[0024]

【発明の実施の形態】以下、本発明による割り込み調停
回路の好適実施形態例を添付図1乃至図7を参照して詳
細に説明する。
BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a block diagram showing a preferred embodiment of an interrupt arbitration circuit according to the present invention; FIG.

【0025】先ず、図1を参照して説明する。図1
(A)は、本発明による割り込み調停回路の基本原理を
示すブロック図である。この割り込み調停回路は、割り
込み制御部10と複数(この場合には4個)の割り込み
要求元13a〜13dより構成される。割り込み制御部
10は、プログラマブル割り込み調停カウンタ11及び
割り込み要求受け付け12を含んでいる。各割り込み要
求元13a〜13dとプログラマブル割り込み調停カウ
ンタ11及び割り込み要求受け付け12とは、夫々1本
の信号線により相互接続されている。
First, a description will be given with reference to FIG. FIG.
FIG. 2A is a block diagram showing the basic principle of the interrupt arbitration circuit according to the present invention. This interrupt arbitration circuit includes an interrupt control unit 10 and a plurality (four in this case) of interrupt request sources 13a to 13d. The interrupt control unit 10 includes a programmable interrupt arbitration counter 11 and an interrupt request reception 12. Each of the interrupt request sources 13a to 13d, the programmable interrupt arbitration counter 11 and the interrupt request reception 12 are interconnected by one signal line.

【0026】図1の割り込み調停回路の動作は、図1
(B)のタイミングチャートに示す如く、図9の従来の
割り込み調停回路と同様である。即ち、例えば個別番号
3の割り込み要求元13dで割り込み要因が発生する
と、プログラマブル割り込み制御カウンタ11はインク
リメントし、カウント値が3となると割り込み要求信号
を発生する。ここで注目すべきは、割り込み調停カウン
タ11がプログラマブルであることである。このプログ
ラマブル割り込み調停カウンタ11は、システム構成、
即ち割り込み要求元13a〜13dの数に応じて、カウ
ンタ初期値(例えば0)及び最大値(例えば3)が外部
から自由にプログラム可能である。
The operation of the interrupt arbitration circuit shown in FIG.
As shown in the timing chart of FIG. 9B, it is the same as the conventional interrupt arbitration circuit of FIG. That is, for example, when an interrupt factor occurs at the interrupt request source 13d of the individual number 3, the programmable interrupt control counter 11 is incremented, and when the count value becomes 3, an interrupt request signal is generated. It should be noted here that the interrupt arbitration counter 11 is programmable. This programmable interrupt arbitration counter 11 has a system configuration
That is, the counter initial value (for example, 0) and the maximum value (for example, 3) can be freely programmed from the outside according to the number of interrupt request sources 13a to 13d.

【0027】図2は、図1の割り込み調停回路の割り込
み制御部10に使用されるプログラマブル割り込み調停
カウンタ11の詳細構成(A)及び動作タイミングチャ
ート(B)である。このプログラマブル割り込み調停カ
ウンタ11は、図2(A)のブロック図に示す如く、カ
ウンタ部20、カウンタ初期値設定部21、最大カウン
ト値設定部22及びコンパレータ部23を有する。
FIG. 2 is a detailed configuration (A) and an operation timing chart (B) of the programmable interrupt arbitration counter 11 used in the interrupt control section 10 of the interrupt arbitration circuit of FIG. As shown in the block diagram of FIG. 2A, the programmable interrupt arbitration counter 11 includes a counter section 20, a counter initial value setting section 21, a maximum count value setting section 22, and a comparator section 23.

【0028】カウンタ部20は、コンパレータ部23か
ら出力される初期値ロード信号により、カウンタ初期値
設定部21で設定した初期値を読み込む。その後、カウ
ンタ部20は、クロック入力端子に入力されるクロック
入力をカウントしてインクリメント(カウンタアップ)
する。このカウンタ部20の出力は、カウント値出力と
して取出されると共にコンパレータ部23に入力され
る。コンパレータ部23は、カウンタ部20からのカウ
ント値と最大カウント値設定部22からの設定値とを比
較する。このカウンタ値と設定値とが一致すると、コン
パレータ部23は、カウンタ部20に上述した初期値ロ
ード信号を出力する。この結果、図2(B)に示す如
き、初期値(例えば0)から最大設定値(例えば5)ま
で反復的にインクリメントする。
The counter section 20 reads the initial value set by the counter initial value setting section 21 in response to the initial value load signal output from the comparator section 23. Thereafter, the counter unit 20 counts the clock input input to the clock input terminal and increments (counts up).
I do. The output of the counter section 20 is taken out as a count value output and input to the comparator section 23. The comparator section 23 compares the count value from the counter section 20 with the set value from the maximum count value setting section 22. When the counter value matches the set value, the comparator unit 23 outputs the above-described initial value load signal to the counter unit 20. As a result, as shown in FIG. 2B, the value is repeatedly incremented from an initial value (for example, 0) to a maximum set value (for example, 5).

【0029】図1及び図2から容易に理解できる如く、
本発明による割り込み調停回路は、システム構成の変更
に容易に対応可能である。例えば、図1(A)の割り込
み調停回路例において、個別番号「4」の割り込み要求
元13eが付加されるシステム構成の変更があった場合
には、プログラマブル割り込み調停カウンタ11の最大
カウント値「4」に設定すればよい。更に、個別番号
「5」、「6」…の割り込み要求元13f、13g…が
付加される場合にも、プログラマブル割り込み調停カウ
ンタ11の最大カウント値を「5」、「6」…と設定す
れば足りる。
As can be easily understood from FIGS. 1 and 2,
The interrupt arbitration circuit according to the present invention can easily cope with a change in the system configuration. For example, in the example of the interrupt arbitration circuit of FIG. 1A, when there is a change in the system configuration to which the interrupt request source 13e of the individual number “4” is added, the maximum count value of the programmable interrupt arbitration counter 11 is “4”. ". Further, even when the interrupt request sources 13f, 13g... Of the individual numbers "5", "6"... Are added, the maximum count value of the programmable interrupt arbitration counter 11 is set to "5", "6". Is enough.

【0030】他方、割り込み要求元13が減少する場合
について説明する。例えば、割り込み要求元13dがシ
ステムから取り外されると、プログラマブル割り込み調
停カウンタ11の最大カウント値を「2」に設定する。
逆に、割り込み要求元13aが取り外される場合には、
最大カウント値は「3」のままで、カウンタ初期値を
「1」に設定すると、他の割り込み要求元13b〜13
dの個別番号「1」〜「3」を変更することなく動作す
る。
On the other hand, a case where the number of interrupt request sources 13 decreases will be described. For example, when the interrupt request source 13d is removed from the system, the maximum count value of the programmable interrupt arbitration counter 11 is set to “2”.
Conversely, when the interrupt request source 13a is removed,
If the initial count is set to “1” while the maximum count value remains “3”, the other interrupt request sources 13 b to 13
The operation is performed without changing the individual numbers “1” to “3” of d.

【0031】次に、図2のプログラマブル割り込み調停
カウンタ11のカウント値のプログラム方法を説明す
る。このプログラム方法には次の2つが考えられる。 (1)データバスを介して端末装置等からメモリ又はレ
ジスタにカウント値を保持する方法。 (2)外部ポートを利用し、スイッチ設定等によりカウ
ント値を保持する方法。
Next, a method of programming the count value of the programmable interrupt arbitration counter 11 of FIG. 2 will be described. The following two methods can be considered for this programming method. (1) A method of holding a count value in a memory or a register from a terminal device or the like via a data bus. (2) A method of using an external port to hold a count value by setting a switch or the like.

【0032】次に、割り込み要求元がその割り込み要求
の優先度等により複数のグループにグループ分けされて
いる場合について、図3を参照して説明する。図3のプ
ログラマブル割り込み調停カウンタ11’は、グループ
AとグループBの2グループにグループ化されている場
合の例である。このプルグラマブル割り込み調停カウン
タ11’は、カウンタ部20’グループA用のカウンタ
初期値設定部21a及び最大カウント値設定部22a、
グループB用のカウンタ初期値設定部21b及び最大カ
ウント値設定部22b、両カウンタ初期値設定部21
a、22bを切替えるセレクタ30、両最大カウント値
設定22a、22bを切替えるセレクタ31及びコンパ
レータ部23’により構成される。
Next, a case where interrupt request sources are grouped into a plurality of groups according to the priority of the interrupt request and the like will be described with reference to FIG. FIG. 3 shows an example in which the programmable interrupt arbitration counters 11 ′ are grouped into two groups of a group A and a group B. The programmable interrupt arbitration counter 11 'includes a counter initial value setting unit 21a and a maximum count value setting unit 22a for the counter unit 20' group A,
Group B counter initial value setting unit 21b, maximum count value setting unit 22b, both counter initial value setting units 21
The selector 30 includes a selector 30 that switches between the maximum count value settings 22a and 22b, and a comparator unit 23 ′.

【0033】次に、図3のプログラマブル割り込み調停
カウンタ11’の動作を説明する。最大カウント値設定
部22a、22bは、夫々グループA及びBの最大カウ
ント数を設定する。両グループA、Bに対する最大カウ
ント値である設定値a、bは、カウント値の最上位ビッ
トをセレクト信号としたセレクト31によって、グルー
プA又はグループBのいずれかの最大カウント設定値
a、bが選択されて、コンパレータ部23’に入力され
る。カウンタ部20’のカウント値は、コンパレータ値
23’により設定値a又はbと比較される。
Next, the operation of the programmable interrupt arbitration counter 11 'of FIG. 3 will be described. The maximum count value setting units 22a and 22b set the maximum count numbers of the groups A and B, respectively. The set values a and b, which are the maximum count values for both groups A and B, are determined by the select 31 using the most significant bit of the count value as the select signal, and the maximum count set values a and b of either the group A or the group B are changed. It is selected and input to the comparator unit 23 '. The count value of the counter unit 20 'is compared with the set value a or b by the comparator value 23'.

【0034】同様に、カウンタ初期値設定部21a、2
1bは、夫々グループA及びグループB用の割り込み調
停カウンタの初期値である設定値c又は設定値dを設定
する。これら設定値c、dは、同様にコンパレータ部2
3’の最上位ビットで制御されるセレクタ30を介して
カウンタ部20’に入力される。
Similarly, the counter initial value setting sections 21a, 21a
1b sets a set value c or a set value d which is an initial value of the interrupt arbitration counter for group A and group B, respectively. These set values c and d are similarly calculated by the comparator 2
The data is input to the counter unit 20 'via the selector 30 controlled by the most significant bit of 3'.

【0035】割り込み調停カウンタは、カウンタ初期値
設定部21a、21bのうちセレクタ30で選択され
た、例えばカウンタ初期値設定部21aの設定値cをコ
ンパレータ部23’からの出力である初期値ロード信号
に応じてロード(入力)する。この設定値cが入力され
たカウンタ部20’は、クロック入力により上述した設
定値cからインクリメントされる。カウンタ部20’の
カウント値が設定値cの割り込み要求元グループAに対
してグループAの最大カウント値設定部22aで設定さ
れた設定値aにインクリメントすると、コンパレータ部
23’により生成される初期値ロード信号により、第2
の割り込み要求元グループBに対して設定されたカウン
タ初期値(設定値d)をロードしてクロック入力により
インクリメントを始める。
The interrupt arbitration counter outputs, for example, an initial value load signal, which is an output from the comparator unit 23 ', which is set by the selector 30 among the counter initial value setting units 21a, 21b. Load (input) according to. The counter section 20 'to which the set value c has been input is incremented from the set value c by the clock input. When the count value of the counter unit 20 'is incremented by the set value a set by the maximum count value setting unit 22a of the group A for the interrupt request source group A of the set value c, the initial value generated by the comparator unit 23' By the load signal, the second
, The counter initial value (set value d) set for the interrupt request source group B is loaded, and increment is started by clock input.

【0036】次に、カウンタ部20’のカウント値が設
定値bまでインクリメントされると、コンパレータ部2
3’の初期値ロード信号により、カウンタ部20’は再
度設定値cをロードしインクリメントを続行する。従っ
てカウンタ部20’は、c〜a、d〜bのカウントを反
復する。
Next, when the count value of the counter section 20 'is incremented to the set value b, the comparator section 2'
In response to the 3 'initial value load signal, the counter unit 20' loads the set value c again and continues incrementing. Therefore, the counter unit 20 'repeats counting of c to a and d to b.

【0037】また、割り込み要求元が更に多くのグルー
プに分けられている場合には、各グループに対するカウ
ンタ初期値及び最大カウント値は、調停カウンタの上位
数ビットをセレクト信号として選択する。カウンタ部2
0’は、あるグループに対して設定された最大カウント
値までインクリメントすると、次のグループに対するカ
ウント初期値をロードする。カウンタ部20’があるグ
ループに対する最大カウント値までインクリメントして
いる間に、セレクタは、次のグループに対して設定され
たカウンタ初期値が選択される。カウンタ部20’のカ
ウンタ値がそのグループに対して設定された最大カウン
ト値まで達すると、次のグループに対するカウンタ初期
値がロードされる。最終グループに対して設定された最
大カウント値に達すると、第1グループに対するカウン
タ初期値がロードされてインクリメントを行う。
When the number of interrupt request sources is further divided into groups, the upper bits of the arbitration counter are selected as select signals for the counter initial value and the maximum count value for each group. Counter part 2
When 0 'is incremented to the maximum count value set for a certain group, the count initial value for the next group is loaded. While the counter unit 20 'is incrementing to the maximum count value for one group, the selector selects the initial counter value set for the next group. When the counter value of the counter section 20 'reaches the maximum count value set for the group, the counter initial value for the next group is loaded. When the maximum count value set for the last group is reached, the counter initial value for the first group is loaded and incremented.

【0038】次に、図4は、割り込み要求元をグループ
A及びグループBの各々3つの割り込み要求元を有する
システムの動作を説明する。ここで、グループAに属す
る割り込み要求元13a、13b、13cには、夫々個
別番号「00」、「01」、「02」が割り当てられ、
グループBに属する要求元13d、13e、13fに
は、夫々個別番号「10」、「11」、「12」が割り
当てられると仮定する。カウンタ部のカウント値の最上
位ビットの0と1は、コンパレータ部においてカウント
値を比較する最大カウント値を選択し、且つカウンタ部
にロードするカウンタ初期値を選択する為のセレクト信
号となる。
Next, FIG. 4 illustrates the operation of a system having three interrupt request sources of group A and group B, respectively. Here, the individual numbers “00”, “01”, and “02” are assigned to the interrupt request sources 13a, 13b, and 13c belonging to the group A, respectively.
It is assumed that the request sources 13d, 13e, and 13f belonging to the group B are assigned the individual numbers "10", "11", and "12", respectively. The most significant bits 0 and 1 of the count value of the counter section are select signals for selecting the maximum count value for comparing the count values in the comparator section and for selecting the counter initial value to be loaded into the counter section.

【0039】図4において、割り込み制御部10’のプ
ログラマブル割り込み調停カウンタ11’は、第1割り
込み要求元グループA(13a〜13c)のカウンタ初
期値「00」から「01」、「02」とインクリメント
する。このとき、カウンタ初期値は、第2割り込み要求
元グループB(13d〜13f)に対して設定されたカ
ウンタ初期値「10」が選択されている。第1割り込み
要求元グループAに対する最大カウント値が「02」で
あるので、プログラマブル割り込み調停カウンタ11’
は、カウント値「02」の次に第2割り込み要求元グル
ープBのカウンタ初期値「10」をロードし、「1
1」、「12」とインクリメントする。このとき、カウ
ンタ初期値は、既に第1割り込み要求元グループに対し
て設定されたカウンタ初期値「00」を選択している。
調停カウンタ11’は、カウント値が「12」に達する
と、第2割り込み要求元グループに対する最大カウント
値が「12」であるので、次に第1割り込み要求元グル
ープAのカウンタ初期値「00」をロードして「0
1」、「02」とインクリメントする。以下、調停カウ
ンタ11’は上述の動作を反復する。
In FIG. 4, the programmable interrupt arbitration counter 11 'of the interrupt control unit 10' increments the counter initial value "00" of the first interrupt requesting group A (13a to 13c) from "00" to "01" and "02". I do. At this time, the counter initial value “10” set for the second interrupt request source group B (13d to 13f) is selected as the counter initial value. Since the maximum count value for the first interrupt request source group A is "02", the programmable interrupt arbitration counter 11 '
Loads the counter initial value “10” of the second interrupt request source group B after the count value “02”, and sets “1”.
1 "and" 12 "are incremented. At this time, as the counter initial value, the counter initial value “00” already set for the first interrupt request source group has been selected.
When the count value of the arbitration counter 11 ′ reaches “12”, the maximum count value of the second interrupt request source group is “12”, so that the counter initial value of the first interrupt request source group A is “00”. And load "0
1 "and" 02 ". Hereinafter, the arbitration counter 11 'repeats the above operation.

【0040】次に、図5乃至図7を参照して、割り込み
要求元グループが上述の例と異なる場合のプログラマブ
ル割り込み調停カウンタ11’の動作例を説明する。
Next, an example of the operation of the programmable interrupt arbitration counter 11 'when the interrupt request source group is different from the above example will be described with reference to FIGS.

【0041】図5は、各々割り込み要求元数が4のグル
ープA及びグループBの2つのグループの場合の例であ
る。このとき、グループAの割り込み要求元には「0
0」、「01」、「02」、「03」の個別番号が割り
当てられ、グループBの割り込み要求元には「10」、
「11」、「12」、「13」の個別番号が割り当てら
れている。そこで、調停カウンタ11’は、「00」、
「01」、「02」、「03」のカウント後に「1
0」、「11」、「12」、「13」にインクリメント
する状況を示す。
FIG. 5 shows an example in the case of two groups, Group A and Group B, each having four interrupt request sources. At this time, the interrupt request source of group A is “0”.
Individual numbers 0, 01, 02, and 03 are assigned, and the interrupt request source of group B is 10
Individual numbers “11”, “12”, and “13” are assigned. Therefore, the arbitration counter 11 ′ has “00”,
After counting "01", "02" and "03", "1"
It shows a situation of incrementing to “0”, “11”, “12”, and “13”.

【0042】図6は、割り込み要求元数5で個別番号が
「00」、「01」、「02」、「03」、「04」の
グループAと、割り込み要求元数2で個別番号が「1
2」、「13」の2つのグループから成るシステムの場
合である。
FIG. 6 shows a group A having an interrupt request source number 5 and individual numbers "00", "01", "02", "03", and "04", and an interrupt request source number 2 and an individual number "5". 1
This is the case of a system consisting of two groups of “2” and “13”.

【0043】図7は、割り込み要求元数3で個別番号
「03」、「04」、「05」のグループAと、割り込
み要求元数4で個別番号「10」、「11」、「1
2」、「13」のグループBと、割り込み要求元数3で
個別番号「22」、「23」、「24」のグループC
と、割り込み要求元数5で個別番号「31」、「3
2」、「33」、「34」、「35」のグループDとの
4グループから成るシステムの場合である。この場合、
最上位ビットの0〜3が最大カウント値及びカウンタ初
期値のセレクト信号となる。
FIG. 7 shows a group A having individual numbers "03", "04", and "05" with three interrupt request sources, and individual numbers "10", "11", and "1" with four interrupt request sources.
Group B of “2” and “13” and Group C of individual numbers “22”, “23” and “24” with three interrupt request sources
And the individual numbers "31" and "3"
This is the case of a system composed of four groups, ie, group D of “2”, “33”, “34”, and “35”. in this case,
The most significant bits 0 to 3 are select signals for the maximum count value and the counter initial value.

【0044】以上、本発明による割り込み調停回路の好
適実施形態例の構成及び動作を詳述した。しかし、本発
明は単に斯る特定例のみに限定されるべきではなく、本
発明の要旨を逸脱することなく、特定用途に応じて種々
の変形変更が可能であること、当業者には容易に理解で
きよう。
The configuration and operation of the preferred embodiment of the interrupt arbitration circuit according to the present invention have been described in detail. However, the present invention should not be limited only to such specific examples, and various modifications and alterations can be made according to specific applications without departing from the spirit of the present invention. I can understand.

【0045】[0045]

【発明の効果】上述の説明から明らかな如く、本発明の
割り込み調停回路によると、次のような従来技術にない
種々の顕著な効果が得られる。
As is apparent from the above description, according to the interrupt arbitration circuit of the present invention, the following various remarkable effects not obtained in the prior art can be obtained.

【0046】すなわち、従来の調停回路ではシステム構
成の変更によって割込み要求数が増えた場合、調停する
ことができない。逆に割込み要求数が減った場合、前述
のように無駄なカウント区間が生じる。
That is, in the conventional arbitration circuit, arbitration cannot be performed when the number of interrupt requests increases due to a change in the system configuration. Conversely, when the number of interrupt requests decreases, a useless count section occurs as described above.

【0047】これに対して本発明によれば、グループ分
けされた割り込み要求元に対して、グループ毎に独立し
た調停が可能である。その理由は、 グループ毎にカウ
ンタの初期値、最大カウント数を設定することが可能で
あり、システム変更に応じて設定値を変更することがで
きるからである。
On the other hand, according to the present invention, independent arbitration can be performed for each group of interrupt request sources that are grouped. The reason is that the initial value and the maximum count of the counter can be set for each group, and the set value can be changed according to the system change.

【0048】また、グループ分けされた割り込み要求元
の数が変更されても調停能力の低下を防げる。その理由
は、 グループ別にカウンタの初期値、カウント数を設
定することができるため、無駄なカウント時間を省くこ
とができるためである。
Further, even if the number of interrupt request sources grouped is changed, it is possible to prevent the arbitration capability from lowering. The reason is that the initial value and the count number of the counter can be set for each group, so that useless counting time can be omitted.

【0049】更に、システム変更に伴う調停回路の変更
を極力、抑えることができる。その理由は、調停カウン
タのカウントスタート値及び最大カウント値をグループ
ごとに設定できるため、システム構成変更による調停カ
ウンタ構成への影響が比較的少ないためである。
Further, the change of the arbitration circuit accompanying the system change can be suppressed as much as possible. The reason is that since the count start value and the maximum count value of the arbitration counter can be set for each group, the influence of the system configuration change on the arbitration counter configuration is relatively small.

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

【図1】本発明による割り込み調停回路の原理を示し、
(A)はブロック図、(B)は動作タイミングチャート
である。
FIG. 1 shows the principle of an interrupt arbitration circuit according to the present invention;
(A) is a block diagram, and (B) is an operation timing chart.

【図2】図1に示す割り込み制御部に含まれるプログラ
マブル割り込み調停カウンタを示し、(A)ばブロック
図、(B)は動作タイミングチャートである。
2 shows a programmable interrupt arbitration counter included in the interrupt control unit shown in FIG. 1, wherein FIG. 2 (A) is a block diagram and FIG. 2 (B) is an operation timing chart.

【図3】複数グループにグループ化された割り込み要求
元を有する場合の本発明による割り込み調停回路のプロ
グラマブル割り込み調停カウンタのブロック図である。
FIG. 3 is a block diagram of a programmable interrupt arbitration counter of the interrupt arbitration circuit according to the present invention when interrupt request sources are grouped into a plurality of groups.

【図4】図3に示すプログラマブル割り込み調停カウン
タを使用する本発明による割り込み調停回路のブロック
図である。
FIG. 4 is a block diagram of an interrupt arbitration circuit according to the present invention that uses the programmable interrupt arbitration counter shown in FIG.

【図5】各々4個の割り込み要求元数の2つのグループ
A及びBの場合の調停カウンタの動作タイミングチャー
トである。
FIG. 5 is an operation timing chart of the arbitration counter in the case of two groups A and B each having four interrupt request sources.

【図6】割り込み要求元数が夫々5及び2の2つのグル
ープA及びBの場合の調停カウンタの動作タイミングチ
ャートである。
FIG. 6 is an operation timing chart of the arbitration counter in the case of two groups A and B in which the numbers of interrupt request sources are 5 and 2, respectively.

【図7】割り込み要求元数が夫々3、4、3及び5の4
つのグループA、B、C及びDより成る場合の調停カウ
ンタの動作タイミングチャートである。
FIG. 7 shows that the number of interrupt request sources is 4, 4, 3, and 5, respectively.
5 is an operation timing chart of an arbitration counter in a case where the arbitration counter includes two groups A, B, C and D.

【図8】従来の割り込み調停回路の構成(A)及びカウ
ンタの動作タイミングチャート(B)である。
FIG. 8 is a configuration (A) of a conventional interrupt arbitration circuit and an operation timing chart (B) of a counter.

【図9】図8に示す従来の割り込み調停回路の動作説明
図である。
9 is an operation explanatory diagram of the conventional interrupt arbitration circuit shown in FIG.

【図10】図8に示す従来の割り込み調停回路の課題を
説明する為の図である。
10 is a diagram for explaining a problem of the conventional interrupt arbitration circuit shown in FIG.

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

10、10’ 割り込み制御部 11、11’ プログラマブル割り込み調停カウンタ 13 割り込み要求元 20、20’ カウンタ部 21、21a、21b カウンタ初期値設定部 22、22a、22b 最大カウント値設定部 23、23’ コンパレータ部 30、31 セレクタ 10, 10 'Interrupt control unit 11, 11' Programmable interrupt arbitration counter 13 Interrupt request source 20, 20 'Counter unit 21, 21a, 21b Counter initial value setting unit 22, 22a, 22b Maximum count value setting unit 23, 23' Comparator Unit 30, 31 Selector

Claims (7)

【特許請求の範囲】[Claims] 【請求項1】複数の割り込み要求元からの割り込み要求
を調停する為の割り込み調停カウンタを含む割り込み制
御部を有する割り込み調停回路において、前記割り込み
調停カウンタとして、クロック入力を計数するカウンタ
部と、該カウンタ部の初期値を設定するカウンタ初期値
設定部と、前記カウンタ部の最大カウント値を設定する
最大カウント値設定部と、前記カウンタ部のカウント値
を前記最大カウント値と比較し、一致時に前記カウンタ
部に対して初期値ロード信号を入力するコンパレータ部
とを含むプログラマブル割り込み調停カウンタを用いる
ことを特徴とする割り込み調停回路。
An interrupt arbitration circuit having an interrupt control unit including an interrupt arbitration counter for arbitrating interrupt requests from a plurality of interrupt request sources, wherein the interrupt arbitration counter counts a clock input; A counter initial value setting unit for setting an initial value of the counter unit, a maximum count value setting unit for setting a maximum count value of the counter unit, and comparing the count value of the counter unit with the maximum count value. An interrupt arbitration circuit using a programmable interrupt arbitration counter including a comparator unit for inputting an initial value load signal to the counter unit.
【請求項2】前記複数の割り込み要求元は、2以上のグ
ループにグループ分けされていることを特徴とする請求
項1に記載の割り込み調停回路。
2. The interrupt arbitration circuit according to claim 1, wherein said plurality of interrupt request sources are grouped into two or more groups.
【請求項3】前記プログラマブル割り込み調停カウンタ
の前記カウンタ初期値設定部及び最大カウント値設定部
は、前記割り込み要求元のグループ数に応じて複数個設
け、セレクタにより切り替えられることを特徴とする請
求項2に記載の割り込み調停回路。
3. The programmable interrupt arbitration counter according to claim 1, wherein a plurality of said counter initial value setting units and a maximum count value setting unit are provided in accordance with the number of groups of said interrupt request source, and are switched by a selector. 3. The interrupt arbitration circuit according to 2.
【請求項4】前記割り込み要求元のグループ分けは、優
先度に応じて行われることを特徴とする請求項2に記載
の割り込み調停回路。
4. The interrupt arbitration circuit according to claim 2, wherein said grouping of interrupt request sources is performed according to priority.
【請求項5】前記複数のグループの割り込み要求元のカ
ウント値は、前記カウンタ初期値設定部及び最大カウン
ト値設定部により任意に設定可能であることを特徴とす
る請求項3に記載の割り込み調停回路。
5. The interrupt arbitration according to claim 3, wherein the count values of the interrupt request sources of the plurality of groups can be arbitrarily set by the counter initial value setting unit and the maximum count value setting unit. circuit.
【請求項6】前記セレクタの制御は、前記カウンタ部か
らのカウント値の上位ビットに応じて行うことを特徴と
する請求項3に記載の割り込み調停回路。
6. The interrupt arbitration circuit according to claim 3, wherein control of said selector is performed in accordance with an upper bit of a count value from said counter section.
【請求項7】前記カウンタ部は、前記コンパレータ部が
初期値ロード信号を出力する毎に、前記カウンタ初期値
設定部からの設定値をロードすることを特徴とする請求
項1に記載の割り込み調停回路。
7. The interrupt arbitration according to claim 1, wherein the counter section loads a set value from the counter initial value setting section every time the comparator section outputs an initial value load signal. circuit.
JP11043245A 1999-02-22 1999-02-22 Interruption arbitrating circuit Pending JP2000242508A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11043245A JP2000242508A (en) 1999-02-22 1999-02-22 Interruption arbitrating circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11043245A JP2000242508A (en) 1999-02-22 1999-02-22 Interruption arbitrating circuit

Publications (1)

Publication Number Publication Date
JP2000242508A true JP2000242508A (en) 2000-09-08

Family

ID=12658513

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11043245A Pending JP2000242508A (en) 1999-02-22 1999-02-22 Interruption arbitrating circuit

Country Status (1)

Country Link
JP (1) JP2000242508A (en)

Similar Documents

Publication Publication Date Title
US4621342A (en) Arbitration circuitry for deciding access requests from a multiplicity of components
US5218703A (en) Circuit configuration and method for priority selection of interrupts for a microprocessor
JPS6156542B2 (en)
US20040103231A1 (en) Hierarchical bus arbitration
CN107743621B (en) Integrated circuit input and output
US20020133654A1 (en) Method and apparatus for bus arbitration capable of effectively altering a priority order
JPH07152586A (en) Cyclic priority-level encoder
US20110069717A1 (en) Data transfer device, information processing apparatus, and control method
CN111103959B (en) Register resetting system and chip
CN110908936B (en) bus control circuit
CN112486899A (en) Integrated circuit, bus system and scheduling method
JP2000242508A (en) Interruption arbitrating circuit
EP0283230B1 (en) A register circuit
KR20040021485A (en) Memory control apparatus and method of controlling memory access capable of selecting page mode in order to reduce memory access time
JP2004213666A (en) Dma module and its operating method
US6222900B1 (en) Counter device
US6868457B2 (en) Direct memory access controller, direct memory access device, and request device
JP2577146B2 (en) Priority control circuit
JP2003006139A (en) Dma transfer apparatus
JP2002099503A (en) Arbitration circuit
US20060200608A1 (en) Bus arbiter and bus arbitrating method
JPH0443302B2 (en)
JP2005173859A (en) Memory access control circuit
US6700402B2 (en) Output control circuit and output control method
JP2000201161A (en) Arbitration control circuit

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20040420

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20040817