JPH0346051A - Interruption control system for multiprocessor system - Google Patents

Interruption control system for multiprocessor system

Info

Publication number
JPH0346051A
JPH0346051A JP18017589A JP18017589A JPH0346051A JP H0346051 A JPH0346051 A JP H0346051A JP 18017589 A JP18017589 A JP 18017589A JP 18017589 A JP18017589 A JP 18017589A JP H0346051 A JPH0346051 A JP H0346051A
Authority
JP
Japan
Prior art keywords
processor
interrupt
processing
priority
signal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP18017589A
Other languages
Japanese (ja)
Inventor
Tatsunari Hashizume
橋爪 達成
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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry 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 Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP18017589A priority Critical patent/JPH0346051A/en
Publication of JPH0346051A publication Critical patent/JPH0346051A/en
Pending legal-status Critical Current

Links

Landscapes

  • Multi Processors (AREA)

Abstract

PURPOSE:To improve system processing efficiency by permitting a processor with low processing priority to execute an interruption processing when interruption occurs. CONSTITUTION:When interruption occurs, signals PRI0-7 showing the priority of the processing decided from the propriety of the interruption of the processor, the priority level of a task in the middle of execution, a processor number and the like are outputted from the processing parts 8 of respective processors 1. An interruption control part 9 compares the signals PRI0-7 with signals XPRI0-7* for comparing processing priority, which arrive from the other processor, and the processor with the lowest priority is caused to execute the interruption processing. Thus, an interruption control system superior in system processing efficiency can be obtained.

Description

【発明の詳細な説明】 [産業上の利用分野コ 本発明は、マルチプロセッサ構成のコンピュータシステ
ムにおける割込み制御方式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an interrupt control method in a computer system having a multiprocessor configuration.

[従来の技術] 第2図は特開昭61−75453号公報に開示された従
来の割込み制御方式の一構成例を示すブロック図である
[Prior Art] FIG. 2 is a block diagram showing a configuration example of a conventional interrupt control system disclosed in Japanese Patent Laid-Open No. 61-75453.

入出力装置2から複数のプロセッサ1−1.1−2.l
−3,・・・・・・に割込みをかける。この割込み制御
はプロセッサの周辺回路によって行われる。
From the input/output device 2 to the plurality of processors 1-1.1-2. l
Interrupt at -3,... This interrupt control is performed by peripheral circuits of the processor.

周辺回路を構成するAND回路5−1.5−25−3・
・・・・・は割込み禁止の動作を行う。またOR回路3
−2.3−3・・・・・・とAND回路4−2.4−3
・・・・・・は優先順位を決定し、択一的に入出力装置
2の割込み要求IRQを各プロセッサに与える動作を行
う。
AND circuit 5-1.5-25-3 configuring the peripheral circuit
... performs an operation that disables interrupts. Also, OR circuit 3
-2.3-3...and AND circuit 4-2.4-3
. . . determines the priority order and performs an operation of selectively giving the interrupt request IRQ of the input/output device 2 to each processor.

このうち各プロセッサのOR回路3−2.3−3・・・
・・・による制御は、これらがチェーン状につながれ、
各プロセッサの優先順位がつないだ順に固定されること
から、デイジー・チェーン方式と呼ばれる。プロセッサ
1−1の優先度が高く、順次1−2.l−3・・・・・
・の方向に低くなっている。
Among these, OR circuit 3-2, 3-3... of each processor
The control by ... is performed by connecting these in a chain,
It is called a daisy chain method because the priority of each processor is fixed in the order in which it is connected. The priority of processor 1-1 is high, and the priority is sequentially 1-2. l-3...
・It is lowering in the direction of .

また、AND回路4−2.4−3・・・・・・による制
御は、各プロセッサの割込み可否状態(N ON MA
SK端子)に基づいて行なわれ、本方式ではこの制御要
素と上記したデイジー・チェーン接続による固定優先度
との2つの組合せによって割込み先プロセッサが決定さ
れるようになっている。
Also, the control by the AND circuits 4-2, 4-3...
SK terminal), and in this system, the interrupt destination processor is determined by a combination of this control element and the above-mentioned fixed priority based on the daisy chain connection.

今、プロセッサ1−1が割込み否で、プロセッサl−2
が割込み可とする。すると、プロセッサ1−1のNON
MASK端子から出力される割込み否の信号“L”は反
転されて、AND回路4−2に入力される。また、プロ
セッサ1−2のNONM A S K端子から出力され
る割込み可信号″H”はそのままAND回路4−2に入
力されるため、AND回路4−2は付勢されてその出力
を“H++にする。
Now, processor 1-1 is not interrupting, processor l-2
is interruptible. Then, NON of processor 1-1
The interrupt rejection signal "L" output from the MASK terminal is inverted and input to the AND circuit 4-2. Further, since the interrupt enable signal "H" output from the NONM A S K terminal of the processor 1-2 is directly input to the AND circuit 4-2, the AND circuit 4-2 is energized and its output is "H++". Make it.

一方、プロセッサ1−2の割込み端子(INT端子)へ
の人力は当初“L”であり、この“L”信号と、反転回
路7−2により反転された“H“信号とが排他的OR回
路6−2に入力されて、排他的OR回路6−2はその出
力を“H”にする。
On the other hand, the human input to the interrupt terminal (INT terminal) of the processor 1-2 is initially "L", and this "L" signal and the "H" signal inverted by the inverting circuit 7-2 are combined into an exclusive OR circuit. 6-2, the exclusive OR circuit 6-2 makes its output "H".

上記したAND回路4−2の“H”出力と、排他的OR
回路6−2の″H″出力とが共に入力されるAND回路
5−2は、入出力装置2からの割込み信号IRQを待つ
The “H” output of the AND circuit 4-2 described above and exclusive OR
The AND circuit 5-2, to which the "H" output of the circuit 6-2 is input, waits for an interrupt signal IRQ from the input/output device 2.

ここで、入出力装置2の割込み信号IRQが出力される
と、AND回路5−2は出力がH”となり、その“H”
信号がプロセッサl−2のINT端子に入力されるため
、プロセッサ1−2によって割込み処理が行われる。
Here, when the interrupt signal IRQ of the input/output device 2 is output, the output of the AND circuit 5-2 becomes "H", and the "H"
Since the signal is input to the INT terminal of processor 1-2, interrupt processing is performed by processor 1-2.

プロセッサ1−2のINT端子に人力された“H”信号
は、また、そのまま排他的OR回路6−2に入力される
と共に、反転回路7−2により反転されて同じく排他的
OR回路6−2に入力されるため、排他的OR回路6−
2の出力は変化せず“H”を維持する。同時に反転回路
7−2の“L”出力は、上位プロセッサ側のAND回路
5−1に入力されて、AND回路5−1を禁止状態にす
る。
The "H" signal input to the INT terminal of the processor 1-2 is also input as is to the exclusive OR circuit 6-2, and is also inverted by the inverting circuit 7-2 and sent to the same exclusive OR circuit 6-2. Exclusive OR circuit 6-
The output of No. 2 does not change and remains at "H". At the same time, the "L" output of the inverting circuit 7-2 is input to the AND circuit 5-1 on the host processor side, thereby putting the AND circuit 5-1 in a disabled state.

また、プロセッサ1−2から出力される割込み可信号“
H”はOR回路3−2の出力を“H”とし、これを反転
して入力とするAND回路4−3の出力を“L ++に
して、更にこれを下位プロセッサ側のAND回路5−3
に人力するためAND回路5−3も禁止状態にする。 
このようにして、プロセッサ1−2によって割込み処理
が行われているときには、プロセッサl−2の割込み禁
止機能を有する上位側及び下位側のAND回路5−1.
5−3・・・・・・が禁止状態となるので、下位プロセ
ッサ13は勿論、上位プロセッサ1−1が割込み可とな
っても、それらの割込み端子INTへの割込み信号は生
じない。
In addition, the interrupt enable signal “
"H" sets the output of the OR circuit 3-2 to "H", inverts it and sets the output of the AND circuit 4-3 as input to "L++", and further outputs this to the AND circuit 5-3 on the lower processor side.
AND circuit 5-3 is also set to a prohibited state in order to perform manual input.
In this way, when the processor 1-2 is performing interrupt processing, the upper and lower AND circuits 5-1.
Since the processors 5-3, .

[発明が解決しようとする課題] しかしながら、上述した従来の割込み制御方式■各プロ
セッサの割込み可否状態 ■デイジー・チェーン接続による固定優先度の2つの要
素のみの組合せによって、割込み先のプロセッサが決定
されるため、次のような欠点があった。
[Problems to be Solved by the Invention] However, in the conventional interrupt control method described above, the interrupt destination processor is determined by a combination of only two factors: - Interrupt enable/disable status of each processor - Fixed priority by daisy chain connection. As a result, it had the following drawbacks:

全く処理を行っていない状態、例えばウェイト状態ある
いはアイドル状態のプロセッサが存在していたとする。
Assume that there is a processor that is not performing any processing, such as a wait state or an idle state.

しかし、そのプロセッサよりもデイジー・チェーン接続
によって高い優先度となっているプロセッサのうち割込
み可能状態のものがあれば、処理を行っていないプロセ
ッサの方ではなく、デイジー・チェーンの優先度の高い
方のプロセッサに割り込んでしまう。このようにデイジ
ー・チェーンの優先度の高い方のプロセッサに割り込ま
せるのは、回路構成を簡素化するためである。また上記
割込みは、たとえデイジー・チェーン優先度の高い方の
プロセッサが何らかの処理を行っていたとしても、それ
とは無関係に行われてしまう。その結果、システムの処
理効率が低下するという問題があった。
However, if there is an interrupt-enabled processor that has a higher priority in the daisy chain than that processor, then the processor with the higher priority in the daisy chain will interrupts the processor. The reason why the processor with the higher priority in the daisy chain is interrupted in this way is to simplify the circuit configuration. Furthermore, even if the processor with a higher daisy chain priority is performing some processing, the above-mentioned interrupt is performed regardless of that processor. As a result, there was a problem in that the processing efficiency of the system decreased.

本発明の目的は、各プロセッサの処理優先度を比較して
割込み先プロセッサを決定することによって、上述した
従来技術の欠点を解消して、他に暇なプロセッサが存在
するにもかかわらず、忙しいプロセッサに割り込んでし
まうということのない、システム処理効率の優れた割込
み制御方式を提供することにある。
An object of the present invention is to solve the above-mentioned drawbacks of the prior art by comparing the processing priorities of each processor and determining the interrupt destination processor. An object of the present invention is to provide an interrupt control method that does not interrupt a processor and has excellent system processing efficiency.

[課題を解決するための手段] 本発明は、複数のプロセッサに対する割込み要求を制御
するマルチプロセッサシステムの割込み制御方式におい
て、各プロセッサの割込み可否状態、実行中のタスク優
先レベルを含むプロセッサの処理優先要素を組み合わせ
て決定される各プロセッサの処理優先度を示す手段と、
各プロセッサ間の処理優先度を比較して、処理優先度の
低いプロセッサに割込み要求を伝える比較手段とを備え
て構成したものである。
[Means for Solving the Problems] The present invention provides an interrupt control method for a multiprocessor system that controls interrupt requests to a plurality of processors. means for indicating processing priority of each processor determined by combining elements;
The processor is configured to include comparison means for comparing the processing priorities between the respective processors and transmitting an interrupt request to the processor with the lower processing priority.

[作用] 例えば入出力装置から割込み要求が出されると、処理優
先度を示す手段から各プロセッサの処理優先度が出力さ
れる。
[Operation] For example, when an interrupt request is issued from an input/output device, the processing priority of each processor is output from the processing priority indicating means.

すると、各プロセッサでは自分の処理優先度と他の処理
優先度とが比較手段によって比較され、自分の処理優先
度が他の処理優先度よりも高ければ、自分のプロセッサ
に対する割込み要求を拒否する。これとは逆に、自分の
処理優先度が他のプロセッサのいずれの処理優先度より
も低ければ、自分のプロセッサに割込み要求が伝えられ
る。
Then, in each processor, its own processing priority and other processing priorities are compared by comparison means, and if the own processing priority is higher than the other processing priority, an interrupt request to the own processor is rejected. Conversely, if the processing priority of one's own processor is lower than the processing priority of any of the other processors, the interrupt request is transmitted to the own processor.

従って、処理優先度の低いプロセッサが割込み要求を受
は取り、この処理優先度の低いプロセッサにおいて割込
み処理が行われる。
Therefore, a processor with a low processing priority receives and receives an interrupt request, and the interrupt processing is performed in this processor with a low processing priority.

[実施例] 以下、本発明の一実施例を第1図、第3図〜第7図を用
いて説明する。
[Example] An example of the present invention will be described below with reference to FIGS. 1 and 3 to 7.

第1図はマルチプロセッサ構成のコンピュータシステム
に適用した本発明の割込み制御方式の一例を示す。
FIG. 1 shows an example of an interrupt control method of the present invention applied to a computer system having a multiprocessor configuration.

図示例では、3台のプロセッサl−1,1−2゜1−3
と1台の入出力装置2とから構成されるマルチプロセッ
サシステムを示している。各プロセッサの内部構造は同
一であるため、各プロセッサおよび各プロセッサを構成
する要素の符号に−N(N=1.2.3)を付して、こ
れらを区別している。プロセッサについては、この−N
を除いた符号を用いて共通に説明する。
In the illustrated example, three processors l-1, 1-2゜1-3
This figure shows a multiprocessor system consisting of one input/output device 2 and one input/output device 2. Since the internal structure of each processor is the same, -N (N=1.2.3) is attached to the code of each processor and the elements constituting each processor to distinguish them. For processors, this −N
Common explanations will be made using the symbols excluding .

プロセッサlは数値演算等を行う処理部8と割込み制御
を行う割込み制御部9とから構成される。
The processor 1 is composed of a processing section 8 that performs numerical calculations, etc., and an interrupt control section 9 that performs interrupt control.

これらの間は、割込み制御部9から処理部8へ割込み要
求IRQを伝える信号線12と、処理部8から割込み制
御部9へ処理部8が行っている処理の優先度を表す信号
P RI 、7を伝える信号線13により接続されてい
る。この処理の優先度を表す信号P RI o−vは、
ここでは8ビツト構成としているため、最大256レベ
ルの処理優先度を区別することが可能である。
Between these, there is a signal line 12 that transmits the interrupt request IRQ from the interrupt control section 9 to the processing section 8, and a signal PRI from the processing section 8 to the interrupt control section 9 indicating the priority of the processing being performed by the processing section 8. 7 is connected by a signal line 13 that transmits the signal. The signal P RI ov representing the priority of this process is
Since the 8-bit configuration is used here, it is possible to distinguish between a maximum of 256 levels of processing priority.

各プロセッサ間は、入出力装置2の割込み発生を示す信
号INTを伝える信号線IOにより相互接続されている
。また、各プロセッサ間は、各プロセッサの処理優先度
を比較するための信号×PRI 、、* (*は負論理
の信号を示す)を伝える信号線11により相互接続され
ている。この比較信号XPRI。〜、*は各プロセッサ
の入出力信号である。
The processors are interconnected by a signal line IO that transmits a signal INT indicating the occurrence of an interrupt from the input/output device 2. Further, the processors are interconnected by a signal line 11 that transmits signals xPRI, , * (* indicates a negative logic signal) for comparing the processing priorities of each processor. This comparison signal XPRI. ~, * are input/output signals of each processor.

次に、このような構成における動作説明を第3図を用い
て説明する。
Next, the operation in such a configuration will be explained using FIG. 3.

先ず、入出力装置2に割込み要求が発生すると、割込み
発生を示す信号INTを使い、全てのプロセッサに対し
割込み発生を信号線10を介して通知する。全てのプロ
セッサはINT信号の立ち上がり、即ち“L”レベルか
らH”レベルへの遷移ニよって割込み発生の有無を検出
しくステップ301)、割込みが発生したことを検出し
た時点で、処理部8からPRIG−7信号線13によっ
て伝えられているプロセラ゛すの処理優先度PRr、−
7を保持する(ステップ302)。
First, when an interrupt request is generated in the input/output device 2, a signal INT indicating the occurrence of an interrupt is used to notify all processors of the occurrence of the interrupt via the signal line 10. All the processors detect the occurrence of an interrupt by the rising edge of the INT signal, that is, the transition from the "L" level to the "H" level (step 301). When the occurrence of an interrupt is detected, the processing unit 8 sends the PRIG signal. -7 Processing priority PRr of the processor transmitted through the signal line 13, -
7 is held (step 302).

次に、各プロセッサ間に接続されているXPRI0〜.
*信号線11に、保持した処理優先度PR1゜−7を極
性を反転して出力しくステップ3o3)、自プロセッサ
で保持した値PRr。−7と、処理優先度を比較するた
めに他プロセツサから取り込まれる信号XPRIQ〜、
とを比較する(ステップ304)、。
Next, XPRI0 to .
*Output the held processing priority PR1°-7 with its polarity inverted to the signal line 11 (Step 3o3), and output the value PRr held by the own processor. -7, and a signal XPRIQ taken in from another processor to compare processing priorities.
(step 304).

比較の結果、自プロセッサより処理優先度が低い処理を
行っているプロセッサが他にあることが判明すると、即
ち、保持したPRI。〜7≠XPRI0..であると、
処理優先度の高い方のプロセッサはX P RI 、、
*信号線11にその保持した優先度を出力するのを止め
る(ステップ306)。
As a result of the comparison, if it is found that there is another processor that is performing a process with a lower processing priority than the own processor, that is, the retained PRI. ~7≠XPRI0. .. So,
The processor with higher processing priority is X P RI ,...
*Stop outputting the held priority to the signal line 11 (step 306).

反対に、各プロセッサ間で処理優先度を比較した結果、
あるプロセッサが最も処理優先度の低い処理を行ってい
ることが判明した場合、そのプロセッサの割込み制御部
9はIRQ信号を使って割込み要求を処理部8に伝える
(ステップ305)。
On the other hand, as a result of comparing the processing priorities between each processor,
When it is determined that a certain processor is performing a process with the lowest processing priority, the interrupt control unit 9 of that processor transmits an interrupt request to the processing unit 8 using the IRQ signal (step 305).

なお、8ビツトで構成される各プロセッサの処理の優先
度は、プロセッサの割込み可否状態(ハードウェアにて
検出)や、実行中のタスクの優先レベル(ソフトウェア
にて設定)等を組み合わせて決定する。また、これらの
値だけでは処理の優先度が複数のプロセッサ間で同一と
なってしまう可能性があるため、それを避けるために、
ハードウェアにて固定的に定められているプロセッサ番
号なども使用する。
The processing priority of each processor, which consists of 8 bits, is determined by combining the processor's interrupt enable/disable status (detected by hardware), the priority level of the task being executed (set by software), etc. . Also, with these values alone, there is a possibility that the processing priority will be the same among multiple processors, so to avoid this,
A processor number fixedly determined by the hardware is also used.

なお、優先度を決定する上記要素中にプロセッサの割込
み否状態があり、このとき割込みは行わないが、プロセ
ッサは割込みの受付は処理は行う。
Note that among the above-mentioned factors that determine the priority level, there is an interrupt disable state of the processor, and in this case, an interrupt is not performed, but the processor accepts and processes the interrupt.

即ち、全てのプロセッサが割込み否状態であった場合、
プロセッサに対してINTが出されると最も処理の優先
度が低いプロセッサの割込み処理部9は割込み受付は処
理を行って割込み要求IRQを処理部8に出すが、処理
部8はその要求を割込み切状態となるまで保留するので
ある。
In other words, if all processors are in an interrupt disabled state,
When an INT is issued to a processor, the interrupt processing unit 9 of the processor with the lowest processing priority processes the interrupt reception and issues an interrupt request IRQ to the processing unit 8, but the processing unit 8 interrupts the request. It will be put on hold until the situation is met.

さて、次に割込み制御部9とプロセッサの処理優先度と
について更に詳細に説明する。
Next, the interrupt control unit 9 and the processing priority of the processor will be explained in more detail.

第4図は割込み制御部9の構成を示すブロック図である
。割込み制御部9は、ラッチ回路41゜比較回路42.
AND回路44から主に構成されている。
FIG. 4 is a block diagram showing the configuration of the interrupt control section 9. As shown in FIG. The interrupt control unit 9 includes a latch circuit 41 and a comparator circuit 42 .
It mainly consists of an AND circuit 44.

ラッチ回路41はINT信号が信号線1oを介して入力
されたとき、処理部8の処理優先度PR1、〜7を保持
する。
The latch circuit 41 holds the processing priorities PR1 to PR7 of the processing section 8 when the INT signal is input through the signal line 1o.

比較回路42は、ラッチ回路41で保持した自プロセッ
サの処理優先度であるLPRro−7を極性を反転して
x P RI G−7本信号線11に出力し、自分の出
力信号と他のプロセッサから出力されるXPRI。〜7
7個とを比較する。最も大きなLPRl、、信号を出力
したプロセッサが割込みを獲得して比較回路42から獲
得信号“H”を出力し、それ以外のプロセッサでは獲得
に失敗して比較回路42から“L″を出力する。なお、
比較回路42に入力される調停開始信号は常に“H”レ
ベルとする。
The comparison circuit 42 inverts the polarity of LPRro-7, which is the processing priority of its own processor held in the latch circuit 41, and outputs it to the xPRI G-7 signal line 11, thereby comparing its own output signal with that of the other processor. XPRI output from. ~7
Compare with 7 pieces. The processor that outputs the largest LPRl signal acquires the interrupt and outputs the acquisition signal "H" from the comparison circuit 42, while the other processors fail in acquisition and output the acquisition signal "L" from the comparison circuit 42. In addition,
The arbitration start signal input to the comparison circuit 42 is always at the "H" level.

AND回路44は、比較回路42から獲得信号“Hパが
出力されているとき、タイミング制御回路43からIN
T信号の立上がり後、比較回路が安定する時間待ちをし
たタイミングで、IRQ信号を処理部8に出力して当該
プロセッサに割込み処理を行わせる。
The AND circuit 44 outputs the IN signal from the timing control circuit 43 when the acquisition signal "H" is output from the comparison circuit 42.
After the T signal rises, the comparison circuit waits for a period of time to stabilize, and then outputs the IRQ signal to the processing unit 8 to cause the processor to perform interrupt processing.

第5図は比較回路42の具体的なブロック図を示す。処
理優先度を示す8ビツト構成に対応して8個の判定回路
50〜57を有する。各判定回路の内部構造は同一であ
る。8個の判定回路50〜57は調停開始信号線によっ
て直列接続されると共に、ラッチ回路41からの8本の
L P RI o+。
FIG. 5 shows a concrete block diagram of the comparison circuit 42. It has eight determination circuits 50 to 57 corresponding to the 8-bit configuration indicating processing priority. The internal structure of each determination circuit is the same. The eight determination circuits 50 to 57 are connected in series by arbitration start signal lines, and the eight L PRI o+ from the latch circuit 41.

信号線45と外部からの8本のxPRf、、*信号線1
1との対応する各線にそれぞれ接続されている。なお、
XPRI。、7本信号線はオーブンコレクタ方式が採用
されている。
Signal line 45 and 8 external xPRf, *Signal line 1
1 and are respectively connected to the corresponding lines. In addition,
XPRI. , the oven collector method is adopted for the seven signal lines.

ここで、最も高位の判定回路50の構成について説明す
る。調停開始信号が“H″のとき自分が保持中の信号L
PR1,を反転(LPRIo*)L、ドライバ504を
介してXPRIo*信号線に出力するNAND回路50
1と、自分が保持中の信号L P R1,、またはドラ
イバ505を介して送られてくる他のXPRI、*信号
の何れかが“H”のとき“H“信号を出力するOR回路
502と、調停開始信号が“H”のときOR回路502
の出力を下位判定回路51の調停開始信号端子に出力す
るAND回路503とから構成されている。
Here, the configuration of the highest-level determination circuit 50 will be explained. When the arbitration start signal is “H”, the signal held by itself is L
NAND circuit 50 that inverts PR1, (LPRIo*) L and outputs it to the XPRIo* signal line via the driver 504.
1, the signal LPR1 it is holding, or another XPRI sent via the driver 505, and an OR circuit 502 that outputs an "H" signal when any of the *signals is "H". , when the arbitration start signal is “H”, the OR circuit 502
and an AND circuit 503 that outputs the output of . to the arbitration start signal terminal of the lower determination circuit 51.

この例ではLPRl7の桁が最も低い。上位の桁−(L
PRr。)から順に自分の保持信号とXPRl o−7
本信号を判定する。自分が保持中の信号(例えばLPR
T、)がL”レベルで、x P RI O−?*信号(
例えばx P RI + * )が″L″L″ルの場合
、下位の桁の判定回路には調停開始信号を出力しない。
In this example, the digit of LPRl7 is the lowest. Upper digit - (L
PRr. ) to your own holding signal and XPRl o-7
Judge this signal. The signal you are holding (for example, LPR)
T,) is at L” level, and the x PRI O-?* signal (
For example, when x PRI + *) is "L", the arbitration start signal is not output to the lower digit determination circuit.

したがって、本プロセッサは処理優先度が高いと判定さ
れ、割込みの獲得は失敗する。このようにして最も処理
−優先度の低いプロセッサが割込み処理を行う。
Therefore, it is determined that this processor has a high processing priority, and the acquisition of the interrupt fails. In this way, the processor with the lowest processing priority handles the interrupt.

第6図はプロセッサの処理優先度を決定するビット構成
を示している。8ビツトのうちPRrOビットが最も上
位の桁で、以下PRIl、PRI2・・・・・・の順に
低くなっていく。
FIG. 6 shows the bit configuration for determining the processing priority of the processor. Among the 8 bits, the PRrO bit is the most significant digit, and the values decrease in the order of PRIl, PRI2, . . .

ENBはPRIOの1ビツト構成で、割込み可否を示し
、rOJのとき割込み否(割込みマスク)、Illのと
き割込み可を表す。
ENB is a 1-bit configuration of PRIO and indicates whether or not an interrupt is enabled. rOJ indicates no interrupt (interrupt mask), and Ill indicates interrupt is enabled.

L E V E L a+4はPRII 〜PRI5の
5ビツト構成からなり、タスクの優先レベルを示す。「
00000Jのとき優先度が最も高いタスクが走行中で
あること、即ち割込みが最もかけにくいことを示す。r
lllllJのときは優先度が最も低いタスクが走行中
であること、即ち割込みが最もかけやすい状態にあるこ
とを示す。
LEVEL a+4 consists of 5 bits PRII to PRI5 and indicates the priority level of the task. "
00000J indicates that the task with the highest priority is running, that is, it is the most difficult to interrupt. r
When it is lllllJ, it indicates that the task with the lowest priority is running, that is, it is in a state where it is most likely to be interrupted.

最後のCPUN0.〜1はPR16〜PRI7の2ビツ
ト構成からなり、プロセッサ番号を示す。「○0JTO
IJrl 0Jrl IJはそれぞれ各プロセッサNO
,0,NO,1,NO,2,NO,3を表す。即ち、本
ビット構成では4つのプロセッサまでの割込み制御を可
能としている。
Last CPUN0. ~1 consists of 2 bits PR16~PRI7 and indicates the processor number. “○0JTO
IJrl 0Jrl IJ is each processor NO.
,0,NO,1,NO,2,NO,3. That is, this bit configuration allows interrupt control for up to four processors.

第7図は上述したLEVEL、、の具体的な設定例を示
す。タスクの優先度を、カーネルのオペレーティングシ
ステム(O3,)、I10ドライバO8,上記以外のO
8,そしてユーザ・アプリケーションというように、重
要な順から上位2ビツトに振り当てる。
FIG. 7 shows a specific setting example of the above-mentioned LEVEL. The priority of the task can be set to the kernel operating system (O3,), I10 driver O8, or O8 other than the above.
8. Then assign the most important bits to the top two bits, such as user application.

このように全8ビツトのP RI o−r(M号に上述
した割付けを行うと、プロセッサの処理優先度は、結局
、次のようになる。
If the above-mentioned allocation is made to all 8-bit PRI or (M) in this way, the processing priority of the processor will be as follows.

PRI、、=rOO000000J 処理優先度最高(割込みを最も受けにくい)PR1,、
、=rl 1111111J処理優先度最低(割込みを
最も受けやすい)以上述べたように本実施例によれば、
割込み発生時点で、プロセッサの割込み可否、実行中の
タスクの優先レベル、プロセッサ番号等から決定される
処理の優先度を表す信号PR1,,を各プロセッサの処
理部8から出力し、この信号と他のプロセッサから来る
処理優先度を比較するための信号X P RI O−?
*とを割込み制御部9により比較して、最も優先度の低
いプロセッサに割込み処理をさせるように構成しである
。このため、例えば処理優先度の高いプロセッサが何ら
かの処理を行っていたとすると、全く処理を行っていな
い状態のプロセッサが存在すれば、そのプロセッサの方
が処理優先度が低いので、全く処理を行っていない状態
のプロセッサが選ばれることとなり、したがって、処理
優先度の高い方のプロセッサに割り込んでしまうという
ことがない。
PRI,,=rOO000000J Highest processing priority (least susceptible to interrupts) PR1,,
,=rl 1111111J Lowest processing priority (easiest to receive interrupts) As described above, according to this embodiment,
At the time of occurrence of an interrupt, the processing unit 8 of each processor outputs a signal PR1, which indicates the priority of the process determined from the interrupt availability of the processor, the priority level of the task being executed, the processor number, etc. A signal for comparing the processing priorities coming from the processors X PRI O-?
* and is compared by the interrupt control unit 9, and the processor with the lowest priority is made to handle the interrupt. Therefore, for example, if a processor with a high processing priority is performing some processing, if there is a processor that is not processing at all, that processor has a lower processing priority and is not processing at all. Therefore, a processor with a higher processing priority will not be interrupted.

なお、本実施例ではプロセッサが3台で入出力装置が1
台の場合について述べたが、本発明はこれに限定される
ものではなく、それ以上の台数を用いることもできるし
、またプロセッサについては2台であってもよい。また
、割込み発生を示す信号を出力する装置は入出力装置に
限定されず、その他の装置であってもよい。
Note that in this embodiment, there are three processors and one input/output device.
Although the case has been described with respect to the number of processors, the present invention is not limited to this, and a larger number of processors may be used, and the number of processors may be two. Further, a device that outputs a signal indicating the occurrence of an interrupt is not limited to an input/output device, and may be any other device.

また、本実施例で(ま最も処理優先度の低いプロセッサ
に割込みを処理させるようにしたが、相対的に処理優先
度の低い任意のプロセッサを選ぶようにしてもよい。
Further, in this embodiment, the processor with the lowest processing priority is made to process the interrupt, but any processor with a relatively low processing priority may be selected.

[発明の効果コ 本発明によれば、割込み発生時点に処理優先度の低いプ
ロセッサに割込み処理をさせるので、システム処理効率
を向上することができる。
[Effects of the Invention] According to the present invention, since a processor with a low processing priority is caused to process the interrupt when an interrupt occurs, system processing efficiency can be improved.

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

第1図は本発明による割込み制御方式の一実施例を示す
構成図、第2図は従来の割込み制御方式例を示す構成図
、第3図は本実施例の割込み制御部の動作を説明するフ
ローチャート、第4図は本実施例の割込み制御部のブロ
ック図、第5図は同じく具体的な割込み制御部の回路図
、第6図はプロセッサの処理優先度を示す説明図、第7
図は同じくさらに詳細な説明図である。 1−1.1−2.1−3はプロセッサ、8−1゜8−2
.8−3は処理優先度を示す手段を有する処理部、9−
1.9−2.9−3は比較手段としての割込み制御部、
INTは割込み要求ないし割込み発生を示す信号、EN
Bは割込み可否状態を示すビット、LEVEL、、は実
行中のタスク優先レベルを示すビット、PRl。7.は
処理の優先度を表す信号、XPRIo−t*は処理優先
度を比較するための信号である。 「1」:割込可 rlllllJ:優先度が最も低いタスクが走行中第6
図 タスクの優先レヘ゛ルの詳細説明図 第7図
FIG. 1 is a block diagram showing an example of an interrupt control method according to the present invention, FIG. 2 is a block diagram showing an example of a conventional interrupt control method, and FIG. 3 explains the operation of the interrupt control section of this embodiment. Flowchart, FIG. 4 is a block diagram of the interrupt control unit of this embodiment, FIG. 5 is a circuit diagram of the same specific interrupt control unit, FIG.
The figure is also a more detailed explanatory diagram. 1-1.1-2.1-3 is a processor, 8-1゜8-2
.. 8-3 is a processing unit having means for indicating processing priority; 9-
1.9-2.9-3 is an interrupt control unit as a comparison means,
INT is a signal indicating an interrupt request or interrupt occurrence, EN
B is a bit indicating the interrupt enable/disable state, LEVEL is a bit indicating the priority level of the task being executed, and PRl. 7. is a signal representing the processing priority, and XPRIo-t* is a signal for comparing the processing priority. "1": Interruption allowed rllllllJ: The task with the lowest priority is running
Figure 7 Detailed explanation of task priority level

Claims (1)

【特許請求の範囲】 複数のプロセッサに対する割込み要求を制御するマルチ
プロセッサシステムの割込み制御方式において、 各プロセッサの割込み可否状態、実行中のタスク優先レ
ベルを含むプロセッサの処理優先要素を組み合わせて決
定される各プロセッサの処理優先度を示す手段と、 各プロセッサ間の処理優先度を比較して、優先度の低い
プロセッサに割込み要求を伝える比較手段とを備えたこ
とを特徴とする割込み制御方式。
[Claims] In an interrupt control method for a multiprocessor system that controls interrupt requests to a plurality of processors, the interrupt control method is determined by combining processing priority factors of the processors, including the interrupt enable/disable state of each processor and the priority level of the task being executed. An interrupt control method comprising: means for indicating the processing priority of each processor; and comparison means for comparing the processing priorities among the processors and transmitting an interrupt request to a processor with a lower priority.
JP18017589A 1989-07-14 1989-07-14 Interruption control system for multiprocessor system Pending JPH0346051A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP18017589A JPH0346051A (en) 1989-07-14 1989-07-14 Interruption control system for multiprocessor system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP18017589A JPH0346051A (en) 1989-07-14 1989-07-14 Interruption control system for multiprocessor system

Publications (1)

Publication Number Publication Date
JPH0346051A true JPH0346051A (en) 1991-02-27

Family

ID=16078706

Family Applications (1)

Application Number Title Priority Date Filing Date
JP18017589A Pending JPH0346051A (en) 1989-07-14 1989-07-14 Interruption control system for multiprocessor system

Country Status (1)

Country Link
JP (1) JPH0346051A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04328665A (en) * 1991-04-22 1992-11-17 Internatl Business Mach Corp <Ibm> Multiprocessor and interrupt arbitrator thereof
JPH06223042A (en) * 1992-12-18 1994-08-12 Internatl Business Mach Corp <Ibm> Apparatus and method for control of interruption in multiprocessor system
JPH07105156A (en) * 1993-09-20 1995-04-21 Internatl Business Mach Corp <Ibm> Scalable system interrupt structure for multiprocessing system
WO2009122670A1 (en) * 2008-04-03 2009-10-08 パナソニック株式会社 Multiprocessor system and multiprocessor system interrupt control method
JP2011004083A (en) * 2009-06-17 2011-01-06 Nippon Telegr & Teleph Corp <Ntt> Communication quality control device and communication quality control method

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04328665A (en) * 1991-04-22 1992-11-17 Internatl Business Mach Corp <Ibm> Multiprocessor and interrupt arbitrator thereof
JPH06223042A (en) * 1992-12-18 1994-08-12 Internatl Business Mach Corp <Ibm> Apparatus and method for control of interruption in multiprocessor system
JPH07105156A (en) * 1993-09-20 1995-04-21 Internatl Business Mach Corp <Ibm> Scalable system interrupt structure for multiprocessing system
WO2009122670A1 (en) * 2008-04-03 2009-10-08 パナソニック株式会社 Multiprocessor system and multiprocessor system interrupt control method
JP2009251802A (en) * 2008-04-03 2009-10-29 Panasonic Corp Multiprocessor system and multiprocessor system interrupt control method
JP2011004083A (en) * 2009-06-17 2011-01-06 Nippon Telegr & Teleph Corp <Ntt> Communication quality control device and communication quality control method

Similar Documents

Publication Publication Date Title
JPH0454255B2 (en)
JP2004521410A (en) System and method for implementing a multi-level interrupt scheme in a computer system
JPS62280948A (en) Bus arbitration system
US6470407B1 (en) Method for arbitrating interrupt priorities among peripherals in a microprocessor-based system
JPH0346051A (en) Interruption control system for multiprocessor system
US20210243257A1 (en) Service request interrupt router for virtual interrupt service providers
EP1856617A1 (en) Data processing system with interrupt controller and interrupt controlling method
KR102360214B1 (en) Scheduling method of system on chip including real-time shared interface
US8090801B1 (en) Methods and apparatus for performing remote access commands between nodes
JPH10320349A (en) Processor and data transfer system using the processor
JP2624989B2 (en) Data transfer control device
JPH10177489A (en) Task scheduling method
KR20030004763A (en) Interrupt processing apparatus
JP2000259548A (en) Dma bus transfer system
JP2001117860A (en) Memory access priority switching controller
JP2008250419A (en) Competition arbitration apparatus, master-slave system, and method for competition arbitration
JP2000010934A (en) Bus arbitration system in multi-cpu system
JPH08147175A (en) Interruption controller
JPS62259157A (en) Interruption system
JP2000099455A (en) First-come priority bus competition control system
JP2002091903A (en) Bus system
JP2002222161A (en) Semiconductor device, and method of transferring data
JPH03152648A (en) Arbitrating circuit for bus using right
JPH076123A (en) Interruption device
KR20000039582A (en) Apparatus for processing interrupters of versa module eurocard