JPH08161280A - Interruption mediation system of multiprocessor system - Google Patents

Interruption mediation system of multiprocessor system

Info

Publication number
JPH08161280A
JPH08161280A JP17580793A JP17580793A JPH08161280A JP H08161280 A JPH08161280 A JP H08161280A JP 17580793 A JP17580793 A JP 17580793A JP 17580793 A JP17580793 A JP 17580793A JP H08161280 A JPH08161280 A JP H08161280A
Authority
JP
Japan
Prior art keywords
request signal
cpu
input
processing
priority level
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
JP17580793A
Other languages
Japanese (ja)
Inventor
Naomi Taniguchi
尚己 谷口
Hiroshi Kioi
洋 鬼追
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 Corp
NEC Robotics Engineering Ltd
Original Assignee
NEC Corp
NEC Robotics 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 Corp, NEC Robotics Engineering Ltd filed Critical NEC Corp
Priority to JP17580793A priority Critical patent/JPH08161280A/en
Publication of JPH08161280A publication Critical patent/JPH08161280A/en
Pending legal-status Critical Current

Links

Landscapes

  • Bus Control (AREA)
  • Multi Processors (AREA)

Abstract

PURPOSE: To input an interruption request signal in a CPU where arithmetic processing load is minimum when this interruption request signal is generated. CONSTITUTION: Each MES 5 and 6 of CPU 1 and 2 investigates whether ALU (artlhmelic and logial unit) 3 and 4 are in arithmetic operations or no, and outputs a logical value '0' if the self-ALU is not in operation by the measurement result and the logical value '1' if the self-ALU is in operation to an ARB(arbiter) 10. In the ARB 10, the presence or absence of the interruption signal from an I/O 8 through an IOC(input output controller) 9 is judged, the priority levels for the interruption requests of each CPU 1 and 2 are compared if the interruption requests are received, and an interruption request signal 14 is inputted in the CPU of the higher priority level through a bus 11. Namely, when the priority level of the CPU 1 is higher than the priority level of the CPU 2, the interruption request signal 14 is inputted in the CUP 1, and when the priority level is reversed, the interruption request signal is inputted in the CPU 2.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明はマルチプロセッサシステ
ムにおいて入出力装置から割込み要求信号が発生したと
きどのプロセッサにこれを処理させるかを調停するマル
チプロセッサシステムの割込み調停方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an interrupt arbitration system for a multiprocessor system which arbitrates which processor should process an interrupt request signal from an input / output device in the multiprocessor system.

【0002】[0002]

【従来の技術】一般に、リアルタイムシステムにおいて
は、入出力装置からの割込み要求信号をトリガとして処
理を行う。
2. Description of the Related Art Generally, in a real-time system, an interrupt request signal from an input / output device is used as a trigger for processing.

【0003】図4は従来の割込み処理方式の一例を示す
シングルプロセッサシステムのブロック図である。
FIG. 4 is a block diagram of a single processor system showing an example of a conventional interrupt processing system.

【0004】図4を参照すると、プロセッサ(CPU)
41内の演算部(ALU)44は入力装置(INE)4
2から入力される割込み要求信号45を検出して処理要
求46があると判断したときには、この処理要求46に
対する演算を行って出力装置(OTE)43に演算結果
47を出力する。
Referring to FIG. 4, a processor (CPU)
The arithmetic unit (ALU) 44 in 41 is an input device (INE) 4
When the interrupt request signal 45 input from 2 is detected and it is determined that there is the processing request 46, the processing result 46 is calculated and the calculation result 47 is output to the output device (OTE) 43.

【0005】図5は従来の割込み処理方式の他の例を示
すマルチプロセッサシステムのブロック図である。
FIG. 5 is a block diagram of a multiprocessor system showing another example of the conventional interrupt processing system.

【0006】図5を参照すると、CPU51内のALU
55がINE53からの割込み要求信号57により処理
要求58を受け、演算結果59をOTE54に出力す
る。
Referring to FIG. 5, the ALU in the CPU 51
55 receives the processing request 58 by the interrupt request signal 57 from the INE 53, and outputs the calculation result 59 to the OTE 54.

【0007】このCPU51内のALU55が処理を行
っている間にINE53で他の処理要求が発生した場合
には、破線図示のように割込み要求信号57を他のCP
U52へ入力してCPU52内のALU56で処理を行
うことによって単位時間当りに処理可能な信号数を大き
くしている。
If another processing request is issued by the INE 53 while the ALU 55 in the CPU 51 is performing processing, the interrupt request signal 57 is sent to another CP as shown by the broken line.
The number of signals that can be processed per unit time is increased by inputting it to U52 and processing it by the ALU 56 in the CPU 52.

【0008】この場合にINE53からの割込み要求信
号をどのCPUに入力するかの割込み調停の割当て手順
として、従来の技術では、機械均等のため割込み要求信
号を各CPUに順番に入力していた。
In this case, as a procedure for assigning interrupt arbitration to which CPU the interrupt request signal from the INE 53 is input, in the prior art, the interrupt request signal was sequentially input to each CPU for machine equality.

【0009】図6は図5に示す従来のマルチプロセッサ
システムにおける割込み処理の遅延を説明するための図
である。
FIG. 6 is a diagram for explaining the delay of interrupt processing in the conventional multiprocessor system shown in FIG.

【0010】CPU51内のALU55とCPU52内
のALU56とはそれぞれ別の動作をするものとする。
The ALU 55 in the CPU 51 and the ALU 56 in the CPU 52 perform different operations.

【0011】処理要求61,62が発生すると各CPU
51,52に順番に割込み要求信号が入力されてALU
55,56が演算処理を行う。
When the processing requests 61 and 62 occur, each CPU
Interrupt request signals are sequentially input to 51 and 52, and the ALU
55 and 56 perform arithmetic processing.

【0012】この場合に、処理要求61に対する処理時
間の方が処理要求62に対する処理時間よりも長い時で
も、次の処理要求63はCPU51に入力されるため、
CPU52のALU56は既に演算処理を終了して空い
ているにもかかわらず、処理要求63の処理開始はCP
U51のALU55が処理要求61の演算処理を終了し
てからとなる。
In this case, even when the processing time for the processing request 61 is longer than the processing time for the processing request 62, the next processing request 63 is input to the CPU 51.
Although the ALU 56 of the CPU 52 has already finished the arithmetic processing and is vacant, the processing start of the processing request 63 is CP.
This is after the ALU 55 of U51 finishes the arithmetic processing of the processing request 61.

【0013】[0013]

【発明が解決しようとする課題】この従来の割込み処理
方式では、各CPUでのALUの動作状況には無関係に
割込み要求信号を各CPUに順番に入力しているので、
入力された割込み要求信号を処理中のCPUに次の割込
み要求信号が入力されると、その処理開始が遅くなると
いう問題点があった。
In this conventional interrupt processing system, the interrupt request signal is sequentially input to each CPU regardless of the operating condition of the ALU in each CPU.
When the next interrupt request signal is input to the CPU that is processing the input interrupt request signal, there is a problem that the processing start is delayed.

【0014】したがって、本発明の目的は、割込み要求
信号が発生したとき演算処理負荷が最少のCPUにこの
割込み要求信号を入力することにより、システム全体の
処理効率を向上したマルチプロセッサシステムの割込み
調停方式を提供することにある。
Therefore, it is an object of the present invention to input an interrupt request signal to a CPU having a minimum arithmetic processing load when an interrupt request signal is generated, thereby improving the processing efficiency of the entire system and thereby arbitrating interrupts in a multiprocessor system. To provide a method.

【0015】[0015]

【課題を解決するための手段】本発明によれば、入出力
装置からの割込み要求信号を処理開始のトリガとするリ
アルタイムシステムで複数のプロセッサをバス結合して
構成されるマルチプロセッサシステムにおいて、それぞ
れ自己の負荷状態を測定した前記各プロセッサからの結
果により最少負荷のプロセッサに前記割込み要求信号を
入力して処理を行わせることを特徴とするマルチプロセ
ッサシステムの割込み調停方式が得られる。
According to the present invention, in a multiprocessor system configured by bus-coupling a plurality of processors in a real-time system in which an interrupt request signal from an input / output device is used as a trigger to start processing, An interrupt arbitration system for a multiprocessor system is obtained, in which the interrupt request signal is input to the processor with the minimum load to perform processing according to the result from each processor that measures its own load state.

【0016】また、前記各プロセッサは自己の負荷状態
を測定してその結果を前記割込み要求信号に対する受付
けの優先レベル信号として外部に出力する負荷測定手段
を備え、前記入出力装置で前記割込み要求信号が発生し
たとき前記各プロセッサからの前記優先レベル信号に基
づいて前記割込み要求信号を入力すべきプロセッサを判
断するアービトレーション手段を備えることを特徴とす
るマルチプロセッサシステムの割込み調停方式が得られ
る。
Further, each processor is provided with load measuring means for measuring its own load condition and outputting the result to the outside as a priority level signal for acceptance of the interrupt request signal. When an interrupt occurs, an interrupt arbitration method for a multiprocessor system is provided, which comprises arbitration means for determining a processor to which the interrupt request signal should be input based on the priority level signal from each processor.

【0017】[0017]

【実施例】次に、本発明について図面を参照して説明す
る。
Next, the present invention will be described with reference to the drawings.

【0018】図1は本発明のマルチプロセッサシステム
の割込み調停方式の一実施例のブロック図である。
FIG. 1 is a block diagram of an embodiment of an interrupt arbitration system for a multiprocessor system according to the present invention.

【0019】図1を参照すると、本実施例のマルチプロ
セッサシステムは、バス11で結合されたプロセッサ
(CPU)1,2と、入出力装置(IOE)7とから構
成されている。
Referring to FIG. 1, the multiprocessor system of the present embodiment comprises processors (CPU) 1 and 2 connected by a bus 11 and an input / output device (IOE) 7.

【0020】CPU1,2はそれぞれ演算部(ALU)
3,4を有し、IOE7からバス11を通して入力され
た処理要求を処理する。また、CPU1,2はそれぞれ
負荷測定手段(MES)5,6を有し、ALU3,4の
動作状態を測定してその測定結果をIOE7からの割込
み要求信号に対する優先レベル信号12,13として出
力する。
CPUs 1 and 2 are arithmetic units (ALU), respectively.
3 and 4, and processes a processing request input from the IOE 7 through the bus 11. The CPUs 1 and 2 have load measuring means (MES) 5 and 6, respectively, measure the operating states of the ALUs 3 and 4, and output the measurement results as priority level signals 12 and 13 for the interrupt request signal from the IOE 7. .

【0021】なお、MES5,6の機能をオペレーティ
ングシステム(ソフトウェア)に組み込んでソフトウェ
ア処理することができる。
The functions of the MESs 5 and 6 can be incorporated into an operating system (software) for software processing.

【0022】IOE7は入出力部(I/O)8と、入出
力制御部(IOC)9と、アービタ(ARB)10とを
有している。
The IOE 7 has an input / output unit (I / O) 8, an input / output control unit (IOC) 9, and an arbiter (ARB) 10.

【0023】I/O8で割込み信号が発生すると、IO
C9はARB9に入力されている各CPU1,2からの
優先レベル信号の優先レベルを問い合わせ、その応答か
ら判断して割込み要求信号14を優先レベルの高いCP
Uへバス11を通して入力する。
When an interrupt signal is generated in I / O8, IO
C9 inquires the priority level of the priority level signal from each of the CPUs 1 and 2 input to the ARB 9, judges the interrupt request signal 14 from the response, and sends the interrupt request signal 14 to the CP having a high priority level.
Input to U via bus 11.

【0024】次に図2,図3を併用して図1に示した実
施例の動作について説明する。
Next, the operation of the embodiment shown in FIG. 1 will be described with reference to FIGS.

【0025】図2は図1における負荷測定手段の処理の
一例を示すフローチャートであり、また図3は図1にお
けるアービトレーション処理の一例を示すフローチャー
トである。
FIG. 2 is a flow chart showing an example of the processing of the load measuring means in FIG. 1, and FIG. 3 is a flow chart showing an example of the arbitration processing in FIG.

【0026】CPU1,2のMES5,6はそれぞれA
LU3,4が演算動作中か否かを調べる(ステップS2
1)。
The MESs 5 and 6 of the CPUs 1 and 2 are respectively A
It is checked whether or not the LU3 and LU4 are in operation (step S2).
1).

【0027】そして、その測定結果によって自ALUが
動作中でなければ(S21でNO)、論理値“0”を
(S23)、また、動作中であれば(S21でYE
S)、論理値“1”をARB9に出力する(S22)。
According to the measurement result, if the own ALU is not in operation (NO in S21), the logical value "0" is set (S23), and if it is in operation (YE in S21).
S), the logical value "1" is output to the ARB 9 (S22).

【0028】ARB10では、I/O8からの割込み要
求信号の有無を判断し(S31)、割込み要求信号があ
れば各CPU1,2の割込み要求に対する優先レベル信
号12,13の優先レベルを比較して(S32)、優先
レベルの高い方のCPUにバス11を通して割込み要求
信号14を入力する。
The ARB 10 judges whether or not there is an interrupt request signal from the I / O 8 (S31), and if there is an interrupt request signal, compares the priority levels of the priority level signals 12 and 13 with respect to the interrupt requests of the CPUs 1 and 2. (S32), the interrupt request signal 14 is input to the CPU having the higher priority level through the bus 11.

【0029】すなわち、S32において、CPU1の優
先レベルがCPU2の優先レベルより高いとき(CPU
1≧CPU2)はCPU1に割込み要求信号14を入力
し(S33)、優先レベルが逆のとき(CPU1<CP
U2)はCPU2に割込み要求信号14を入力する(S
34)。
That is, in S32, when the priority level of CPU1 is higher than the priority level of CPU2 (CPU
1 ≧ CPU2) inputs the interrupt request signal 14 to the CPU1 (S33), and when the priority level is opposite (CPU1 <CP
U2) inputs the interrupt request signal 14 to the CPU 2 (S2)
34).

【0030】本実施例では、MESの機能をオペレーテ
ィングシステムに組み込んだとき、例えば各プロセッサ
で複数の演算機能が動作する場合に動作待ちとなってい
る演算部の数に応じて優先レベルを決めることができ
る。
In this embodiment, when the MES function is incorporated in the operating system, for example, when a plurality of arithmetic functions operate in each processor, the priority level is determined according to the number of arithmetic units waiting for operation. You can

【0031】また、各プロセッサで動作している演算部
の機能の緊急度に応じて優先レベルを決めることもでき
る。
Further, the priority level can be determined according to the urgency of the function of the arithmetic unit operating in each processor.

【0032】なお、上記実施例は、2個のプロセッサを
備えるマルチプロセッサシステムを例示したが、プロセ
ッサの数が3個以上のマルチプロセッサシステムにおい
ても同様の動作となる。
Although the above-described embodiment exemplifies a multiprocessor system having two processors, the same operation is performed in a multiprocessor system having three or more processors.

【0033】[0033]

【発明の効果】以上説明したように本発明は、入出力装
置からの割込み要求信号を、割込み要求信号が発生した
時点で負荷が最少のプロセッサに入力し、そのプロセッ
サに処理を行わせることにより、マルチプロセッサシス
テム全体としての処理効率を向上させることができると
いう効果を有する。
As described above, according to the present invention, the interrupt request signal from the input / output device is input to the processor with the least load at the time when the interrupt request signal is generated, and the processor is caused to perform the processing. The effect is that the processing efficiency of the multiprocessor system as a whole can be improved.

【0034】また、負荷測定機能をオペレーティングシ
ステムに組み込むことにより、プロセッサの優先レベル
を柔軟に設定することができるという効果を有する。
By incorporating the load measuring function in the operating system, the priority level of the processor can be flexibly set.

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

【図1】本発明のマルチプロセッサシステムの割込み調
停方式の一実施例のブロック図である。
FIG. 1 is a block diagram of an embodiment of an interrupt arbitration method for a multiprocessor system according to the present invention.

【図2】図1における負荷測定手段の処理の一例を示す
フローチャートである。
FIG. 2 is a flowchart showing an example of processing of load measuring means in FIG.

【図3】図1におけるアービトレーション処理の一例を
示すフローチャートである。
FIG. 3 is a flowchart showing an example of arbitration processing in FIG.

【図4】従来の割込み処理方式の一例を示すシングルプ
ロセッサシステムのブロック図である。
FIG. 4 is a block diagram of a single processor system showing an example of a conventional interrupt processing system.

【図5】従来の割込み処理方式の他の例を示すマルチプ
ロセッサシステムのブロック図である。
FIG. 5 is a block diagram of a multiprocessor system showing another example of a conventional interrupt processing system.

【図6】図5に示す従来のマルチプロセッサシステムに
おける割込み処理の遅延を説明するための図である。
FIG. 6 is a diagram for explaining a delay of interrupt processing in the conventional multiprocessor system shown in FIG.

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

1,2,41,51,52 プロセッサ(CPU) 3,4,44,55,56 演算部(ALU) 5,6 負荷測定手段(MES) 7 入出力装置(IOE) 8 入出力部(I/O) 9 入出力制御部(IOC) 10 アービタ(ARB) 11 バス 12,13 優先レベル信号 14,45,57 割込み要求信号 42,53 入力装置(INE) 43,54 出力装置(OTE) 46,58,61,62,63 処理要求 47,59 演算結果 1, 2, 41, 51, 52 Processor (CPU) 3, 4, 44, 55, 56 Operation Unit (ALU) 5, 6 Load Measuring Means (MES) 7 Input / Output Device (IOE) 8 Input / Output Unit (I / O) 9 Input / output control unit (IOC) 10 Arbiter (ARB) 11 Bus 12, 13 Priority level signal 14, 45, 57 Interrupt request signal 42, 53 Input device (INE) 43, 54 Output device (OTE) 46, 58 , 61, 62, 63 Processing request 47, 59 Operation result

───────────────────────────────────────────────────── フロントページの続き (72)発明者 鬼追 洋 神奈川県横浜市神奈川区新浦島町 1丁目 1番地25 日本電気ロボットエンジニアリ ング株式会社内 ─────────────────────────────────────────────────── ─── Continuation of the front page (72) Inventor Hiroshi Onoi, 1-1, Shinurashima-cho, Kanagawa-ku, Yokohama-shi, Kanagawa 1-25, NEC Electric Robot Engineering Co., Ltd.

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 入出力装置からの割込み要求信号を処理
開始のトリガとするリアルタイムシステムで複数のプロ
セッサをバス結合して構成されるマルチプロセッサシス
テムにおいて、それぞれ自己の負荷状態を測定した前記
各プロセッサからの結果により最少負荷のプロセッサに
前記割込み要求信号を入力して処理を行わせることを特
徴とするマルチプロセッサシステムの割込み調停方式。
1. A multiprocessor system configured by bus-combining a plurality of processors in a real-time system in which an interrupt request signal from an input / output device is used as a trigger to start processing, and each of the processors measures its own load state. An interrupt arbitration method for a multiprocessor system, characterized in that the interrupt request signal is input to a processor with the least load to perform processing.
【請求項2】 前記各プロセッサは自己の負荷状態を測
定してその結果を前記割込み要求信号に対する受付けの
優先レベル信号として外部に出力する負荷測定手段を備
え、前記入出力装置で前記割込み要求信号が発生したと
き前記各プロセッサからの前記優先レベル信号に基づい
て前記割込み要求信号を入力すべきプロセッサを判断す
るアービトレーション手段を備えることを特徴とする請
求項1記載のマルチプロセッサシステムの割込み調停方
式。
2. Each of the processors includes load measuring means for measuring its own load state and outputting the result to the outside as a priority level signal for acceptance of the interrupt request signal, wherein the interrupt request signal is provided by the input / output device. 2. An interrupt arbitration system for a multiprocessor system according to claim 1, further comprising arbitration means for determining a processor to which said interrupt request signal should be inputted based on said priority level signal from said each processor when the above occurs.
JP17580793A 1993-07-16 1993-07-16 Interruption mediation system of multiprocessor system Pending JPH08161280A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP17580793A JPH08161280A (en) 1993-07-16 1993-07-16 Interruption mediation system of multiprocessor system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP17580793A JPH08161280A (en) 1993-07-16 1993-07-16 Interruption mediation system of multiprocessor system

Publications (1)

Publication Number Publication Date
JPH08161280A true JPH08161280A (en) 1996-06-21

Family

ID=16002583

Family Applications (1)

Application Number Title Priority Date Filing Date
JP17580793A Pending JPH08161280A (en) 1993-07-16 1993-07-16 Interruption mediation system of multiprocessor system

Country Status (1)

Country Link
JP (1) JPH08161280A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9460032B2 (en) 2010-10-08 2016-10-04 Samsung Electronics Co., Ltd. Apparatus and method for processing an interrupt

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59149549A (en) * 1983-01-28 1984-08-27 Toshiba Corp Control system for acceptance of interruption
JPH03102454A (en) * 1989-09-14 1991-04-26 Fujitsu Ltd Asynchronous event distributing device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59149549A (en) * 1983-01-28 1984-08-27 Toshiba Corp Control system for acceptance of interruption
JPH03102454A (en) * 1989-09-14 1991-04-26 Fujitsu Ltd Asynchronous event distributing device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9460032B2 (en) 2010-10-08 2016-10-04 Samsung Electronics Co., Ltd. Apparatus and method for processing an interrupt

Similar Documents

Publication Publication Date Title
US5659760A (en) Microprocessor having interrupt vector generation unit and vector fetching command unit to initiate interrupt processing prior to returning interrupt acknowledge information
US6789258B1 (en) System and method for performing a synchronization operation for multiple devices in a computer system
JPH08161280A (en) Interruption mediation system of multiprocessor system
JPH07160650A (en) Task execution controller
JP2806771B2 (en) Bus arbitration circuit
JPH07219887A (en) Dma transfer controller
JPH01305461A (en) Right of using bus control system
JP2000010934A (en) Bus arbitration system in multi-cpu system
JPH0381833A (en) Arithmetic processor
JPH0830549A (en) Bus control device
JP2000029719A (en) Interrupt controller
JP2004220309A (en) Multiprocessor system
JPH0644178A (en) Interruption controller
JP2615921B2 (en) Input / output control method in operating system
JPH0869382A (en) Semiconductor device
JPH04169953A (en) Computer system
JPH03152648A (en) Arbitrating circuit for bus using right
JPH0528114A (en) Multiprocessor system
JPH02191041A (en) Data processor
JPH0628319A (en) Logical simulator
JPS60564A (en) Memory access competition controlling system
JPH04124761A (en) Bus acquiring method for multi-processor system
JPH03263128A (en) Microprocessor
JPS61226839A (en) Event processing system
JPH02146660A (en) Information processor

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 19970114