JPH01276261A - Interruption control device - Google Patents

Interruption control device

Info

Publication number
JPH01276261A
JPH01276261A JP10452488A JP10452488A JPH01276261A JP H01276261 A JPH01276261 A JP H01276261A JP 10452488 A JP10452488 A JP 10452488A JP 10452488 A JP10452488 A JP 10452488A JP H01276261 A JPH01276261 A JP H01276261A
Authority
JP
Japan
Prior art keywords
interrupt
daisy chain
priority level
control device
priority
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
JP10452488A
Other languages
Japanese (ja)
Inventor
Katsuhiro Hirayama
勝啓 平山
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP10452488A priority Critical patent/JPH01276261A/en
Publication of JPH01276261A publication Critical patent/JPH01276261A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To form an interruption control device with a high interruption responsiveness by causing the sequence of the coupling of a daisy chain to be variable according to a value set to an interruption prior level register. CONSTITUTION:A variable daisy chain 7 has a characteristic to be set at a prior level to be originally provided on a hardware when values on respective prior registers 2 in an initial condition, namely, after they are reset are all in a condition to be reset or when the values in respective prior registers 2 are plurally the same. By causing the daisy chain 7 to be variable according to a priority set to the prior level registers 2 to respective interruptions by means of a program by a user, a processing can be executed by surely accepting the interruptions successively in the priority according to the intention of the user program, namely, an emergency degree. Thus, the interruption control device can be realized in which an overhead at the time of accepting the interruption is canceled and which is excellent in the responsiveness.

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、複数の割込みを高速に処理するプロセッサの
割込み制御装置に関する。
DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to an interrupt control device for a processor that processes multiple interrupts at high speed.

従来の技術 近年、多(のマイクロプロセッサを応用したシステムが
開発され、その規模は大規模化、複雑化してきている。
BACKGROUND ART In recent years, systems using multiple microprocessors have been developed, and their scale has become larger and more complex.

応用システムに組み込まれるプロセッサは、一般にシス
テム全体の管理を行う場合が多いが、その担当する仕事
(以下タスクと呼ぶ)数は増加する一方である。プロセ
ッサにおけるタスクの起動は、外部的あるいは内部的に
発生した割込み信号によるものが多いため、プロセッサ
は多(の割込みを管理、処理する必要が出て来ている。
Processors incorporated in application systems generally manage the entire system in many cases, and the number of tasks (hereinafter referred to as tasks) that they are responsible for is increasing. Since tasks in a processor are often activated by interrupt signals generated externally or internally, it has become necessary for the processor to manage and process a large number of interrupts.

割込みの中には、緊急度の高いものや低いものと言った
種々の割込みがあり、その応用システムにとって、最適
で効率的な処理を行う割込み制御装置が必要になってき
ている。
There are various types of interrupts, such as those with a high level of urgency and those with a low level of urgency, and an interrupt control device that performs optimal and efficient processing has become necessary for the application system.

従来技術による割込み制御装置の例を、第2図を用いて
説明する。第2図は、BO・・・・・・Bnのn個の割
込み要因1を制御するものであり、それぞれの割込み要
因に対してデータバス9.アドレスバス10を用いて任
意に設定可能な割込み優先レジスタ2を設け、それぞれ
の割込み要因からの割込み要求信号RBO・・・・・・
RBnは、順番にディジーチェインにより結合され、各
割込み要求から1つの割込みとその割込み優先レベルを
受理し、ブロセッサへの割込み処理起動信号11と受付
けられた割込み要因のリセット信号を出力する割込み受
付は回路6により構成される。
An example of a conventional interrupt control device will be described with reference to FIG. In FIG. 2, n interrupt factors 1 of BO...Bn are controlled, and a data bus 9 . An interrupt priority register 2 that can be arbitrarily set using the address bus 10 is provided, and an interrupt request signal RBO from each interrupt source is provided.
The RBn are sequentially connected by a daisy chain, accept one interrupt and its interrupt priority level from each interrupt request, and output an interrupt processing start signal 11 to the processor and a reset signal for the accepted interrupt cause. It is composed of a circuit 6.

第2図に示す従来構成による動作は、ある1つの割込み
要因Brrr(○≦m≦nの自然数〉が発生した場合、
割込み要求信号RBmとその割込み優先レベルVBmが
割込み受付は回路6に送付され、プロセッサ側が受付は
可能状態であれば割込み要因Bmは即時に受付けられ処
理され、割込み要因Bmに対してその割込み要求が受付
けられたことを示し、その要因をクリアするリセット信
号を送付する。この場合、プロセッサが既に他の割込み
要因Beを処理中であった場合、その処理中の割込み優
先レベルVBeが先の割込みのそれVBmよりも小さか
った場合は、割込み要因B&の処理が中断され、先に割
込み要因Bmに対する処理が実行され、終了後、割込み
要因Beに対する処理が再開される。また複数の同一優
先レベルの割込み要因Biと同Bi+1が同時に発生し
た場合、その両方の優先レベルVBiとVBi+1とは
同一の値であるが、ディジーチェインで優先レベルの高
いVBiが先に処理され、割込み要因Biの処理後も割
込み要求RBi+1が発生しており、かつ他にVBi+
1よりも高い割込み優先レベルが発生しておらず、かつ
、ディジーチェインによって他にBi+1よりも高い優
先レベルの割込みが発生していなければ、割込み要因B
i±1が続いて受理され処理される。しかしながら、割
込み要因BOとBnの2つが同時に発生し、かつそれぞ
れの割込み優先レベルが、VBO<VBnと設定されて
いた場合、ディジーチェインによるハードウェア上の優
先レベルが優先されるため、−旦割込み要因BOをプロ
セッサは受付け、その後他にBnよりも優先レベルの高
い割込みが発生していなければ、先に受付けた割込み要
因B○の処理を中断し、割込み要因Bnを受付けられ処
理されることになる。一般的に、プログラムにより割込
み優先レベルレジスタに設定された値は、ユーザの緊急
度を表わすものであり、ユーザによって優先指定を受け
た割込み要因Bnがプロセッサに受付けられ処理が開始
されるまでに、前述の様な不必要な時間がかかり割込み
受理に対するオーバーヘッドが発生し、かかる従来技術
によれば割込みの応答性を悪くする場合があった。
The operation according to the conventional configuration shown in FIG.
The interrupt request signal RBm and its interrupt priority level VBm are sent to the circuit 6 for interrupt acceptance, and if the processor side is in a state where acceptance is possible, the interrupt cause Bm is immediately accepted and processed, and the interrupt request is sent to the interrupt cause Bm. It indicates that the request has been accepted and sends a reset signal to clear the cause. In this case, if the processor is already processing another interrupt factor Be, and if the interrupt priority level VBe being processed is lower than that of the previous interrupt, VBm, the processing of interrupt factor B& is interrupted; Processing for interrupt cause Bm is executed first, and after completion, processing for interrupt cause Be is restarted. Furthermore, when multiple interrupt factors Bi and Bi+1 with the same priority level occur simultaneously, the priority levels VBi and VBi+1 of both of them have the same value, but VBi with the higher priority level is processed first in the daisy chain. Even after interrupt factor Bi is processed, interrupt request RBi+1 is generated, and VBi+
If no interrupt priority level higher than 1 has occurred and no other interrupt with a priority level higher than Bi+1 has occurred due to daisy chaining, interrupt cause B
i±1 is subsequently accepted and processed. However, if two interrupt causes, BO and Bn, occur at the same time and their respective interrupt priority levels are set as VBO<VBn, the priority level on the hardware due to daisy chain takes priority, so - The processor accepts the cause BO, and then, if no other interrupt with a higher priority level than Bn has occurred, it interrupts the processing of the interrupt cause B○ that was accepted earlier, and then accepts and processes the interrupt cause Bn. Become. Generally, the value set in the interrupt priority level register by a program represents the user's level of urgency, and by the time the interrupt factor Bn given priority by the user is accepted by the processor and processing begins, As described above, unnecessary time is required and overhead is generated for interrupt acceptance, and such conventional technology may impair interrupt responsiveness.

発明が解決しようとする課題 前述の従来技術の説明で明らかな様に、かかる従来技術
によれば、複数の割込みが同時に発生し、かつそれぞれ
のソフトウェア上の割込み優先レベルが、ディジーチェ
インによるハードウェア上の優先レベルとは逆向きに設
定されていた場合、ソフトウェア上の最高優先レベルの
割込みが受付けられるまでに、不必要な時間を要すると
いう不都合があった。本発明は、かかる問題点を解決し
、割込み応答性の高い割込み制御装置を提供することを
目的とする。
Problems to be Solved by the Invention As is clear from the description of the prior art described above, according to the prior art, multiple interrupts occur simultaneously, and the interrupt priority level of each interrupt is determined by the hardware by daisy chaining. If the priority level is set in the opposite direction from the upper priority level, there is an inconvenience that it takes an unnecessary amount of time until the interrupt with the highest priority level on the software is accepted. An object of the present invention is to solve such problems and provide an interrupt control device with high interrupt responsiveness.

課題を解決するための手段 本発明では、割込み優先レジスタによる使先レベルを優
先的に制御させるべく、ディジーチェインを割込み優先
レベルレジスタに設定された値に従って、組み換える機
能をそなえた割込み制御装置である。
Means for Solving the Problems The present invention provides an interrupt control device having a function of rearranging the daisy chain according to the value set in the interrupt priority level register in order to preferentially control the level to be used by the interrupt priority register. be.

作用 本発明によると、割込み優先レベルレジスタに設定され
た値に従って、ディジーチェインの結合の順番を可変に
することにより、従来技術における複数の割込みが発生
したときの割込み受付けのオーバーヘッドという問題は
解決され、割込み応答性の高い割込み制御装置を提供で
きる。
According to the present invention, the problem of the overhead of interrupt acceptance when multiple interrupts occur in the prior art is solved by making the order of daisy chain connection variable according to the value set in the interrupt priority level register. , it is possible to provide an interrupt control device with high interrupt responsiveness.

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

第1図は、本発明の一実施例における割込み制御方式の
構成を示すものである。第1図において、1は割込み要
因、2は割込みに対する優先レベルを設定するレジスタ
、7は割込み優先レベルレジスタ2に設定された値によ
りディジーチェインの結合の順番を変更することのでき
る可変ディジーチェイン、4は各別込み要求信号のワイ
ヤドOR回路、8は割込み受付は回路、9および10は
割込み優先レジスタ2に対しアクセス(読み出し・書き
込み)するためのデータバス・アドレスバスをそれぞれ
示す。
FIG. 1 shows the configuration of an interrupt control system in an embodiment of the present invention. In FIG. 1, 1 is an interrupt factor, 2 is a register for setting the priority level for interrupts, 7 is a variable daisy chain whose connection order can be changed according to the value set in the interrupt priority level register 2; 4 is a wired OR circuit for each separate request signal; 8 is a circuit for accepting interrupts; and 9 and 10 are data buses and address buses for accessing (reading and writing) the interrupt priority register 2, respectively.

つぎに、本実施例の割込み制御装置について以下その動
作について説明する。まず、ある1つの割込みAmが発
生した場合、その割込み要求信号RAmが可変ディジー
チェイン7を通して、割込み受付は回路8に送付し、そ
れが受付けられた場合、割込み受付は信号を信号線11
を通して、プロセッサ側に送付し処理を開始し、割込み
要因Amに対してその割込み要求をクリアする信号をリ
セット信号線12に送付する。この場合、プロセッサ側
で既にある割込みAeを処理中であった場合、割込み優
先ベクトルVAeがVAmよりも大かあるいは等価であ
れば、割込みAmはAeの処理終了を待ってから受付け
られる。VAeがVAmよりも小さい場合、割込み処理
Aeは中断され処理Amを先に処理する。可変ディジー
チェイン7は、初期状態すなわちリセット後の各優先レ
ジスタ2内の値は全てリセットされた状態あるいは各優
先レジスタ2内の値が複数同一であった場合、ハードウ
ェア上でもともと有する優先レベルに設定される特性を
有している。本実施例の場合、APRO・・・・・・A
PRn全てが同一のレベルに設定されていた場合、可変
ディジーチェイン7は、AO・・・・・・Anの順に結
合され、AOが最も高い優先順位を保持する。従って複
数の同一レベルの割込みが発生した場合は、前記の様な
可変ディジーチェイン7による優先レベルに従って順番
に、各割込みが処理されることになる。
Next, the operation of the interrupt control device of this embodiment will be explained below. First, when a certain interrupt Am occurs, the interrupt request signal RAm is sent to the interrupt acceptance circuit 8 through the variable daisy chain 7, and when it is accepted, the interrupt acceptance signal is sent to the signal line 11.
A signal is sent to the processor side through the reset signal line 12 to start processing, and a signal to clear the interrupt request for the interrupt cause Am is sent to the reset signal line 12. In this case, if a certain interrupt Ae is already being processed on the processor side, if the interrupt priority vector VAe is greater than or equal to VAm, the interrupt Am will be accepted after waiting for the processing of Ae to finish. If VAe is smaller than VAm, interrupt processing Ae is interrupted and processing Am is processed first. In the variable daisy chain 7, in the initial state, that is, after reset, the values in each priority register 2 are all reset, or in the case where multiple values in each priority register 2 are the same, the variable daisy chain 7 returns to its original priority level on the hardware. It has the properties that are set. In the case of this embodiment, APRO...A
If all PRn are set to the same level, the variable daisy chain 7 is connected in the order of AO...An, with AO holding the highest priority. Therefore, when a plurality of interrupts of the same level occur, each interrupt is processed in order according to the priority level by the variable daisy chain 7 as described above.

同様に複数の優先レベルレジスタの値がそれぞれ異なる
割込みが発生した場合は、可変ディジーチェインは各割
込み優先レベルレジスタの値に従ってその結合の順番を
変更し、それによって設定された優先レベルに従って順
番に各割込みが処理される。
Similarly, if multiple interrupts with different priority level register values occur, the variable daisy chain changes the order of their combination according to the value of each interrupt priority level register, and then interrupts each interrupt in turn according to the set priority level. Interrupts are processed.

以上の様に本実施例によれば、ディジーチェインをユー
ザがプログラムにより各割込みに対する優先レベルレジ
スタに設定した優先順位に従って可変にすることにより
、ユーザプログラムの意志に従った優先順位、つまり緊
急度合により確実に順番に割込みを受付けて処理するこ
とができ、割込み受付は時におけるオーバーへ・ソドを
解消した応答性に優れた割込み制御装置を実現すること
ができる。
As described above, according to this embodiment, by making the daisy chain variable according to the priority set by the user program in the priority level register for each interrupt, the priority order according to the will of the user program, that is, the degree of urgency can be changed. It is possible to realize an interrupt control device that can reliably accept and process interrupts in order, and that has excellent responsiveness and eliminates the problem of excessive interrupt reception.

発明の効果 本発明によれば、複数の割込み要因に対し、各各任意の
割込み優先レベルをソフトウェア的に決定する手段とそ
の設定された割込み優先レベルを保持する割込み優先レ
ベルレジスタを備え、また各割込み要求発生回路はディ
ジーチェインにより順番に結合されハードウェア的に優
先レベルを決定する手段と該ディジーチェインは前記の
ソフトウェア的に設定された割込み優先レベルに従って
、自動的にその結合の順番を組み換えることができる可
変ディジーチェインを備えたことにより、複数の割込み
が同時に発生した場合においても、割込み受付は処理の
オーバーへ・ンドを解消し、かつ確実にユーザがプログ
ラムにより設定した優先順位に従って順番に割込みを受
付け・処理を行うことができる応答性の優れた割込み制
御装置を提供することができる。
Effects of the Invention According to the present invention, means for determining each arbitrary interrupt priority level by software for a plurality of interrupt causes, and an interrupt priority level register for holding the set interrupt priority level are provided. The interrupt request generation circuits are sequentially connected by a daisy chain, and the means for determining the priority level by hardware, and the daisy chain automatically rearranges the order of connection according to the interrupt priority level set by the software. Even when multiple interrupts occur simultaneously, interrupt reception eliminates processing overload and ensures that interrupts are accepted in order according to the priority set by the user program. It is possible to provide an interrupt control device with excellent responsiveness that can accept and process interrupts.

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

第1図は本発明の一実施例である割込み制御方式を示す
ブロック図、第2図は従来の技術による割込み制御方式
を示すブロック図である。 1・・・・・・割込み要因、2・・・・・・割込み優先
レベルレジスタ、3・・・・・・ディジーチェイン用ゲ
ート、4・・・・・・割込み要求信号のワイヤドOR回
路、5・・・・・・割込み優先レベル出力スイッチ、6
・・・・・・割込み受付は回路、7・・・・・・可変デ
ィジーチェイン、8・・・・・・割込み受付は回路、9
・・・・・・データバス、10・・・・・・アドレスバ
ス、11・・・・・・プロセッサへの割込み受付は信号
(割込み処理開始信号)、12・・・・・・割込み受付
は返答、13・・・・・・現在受付は中あるいは処理中
の割込み優先レベル。 代理人の氏名 弁理士 中尾敏男 ほか1名9−デーク
FIG. 1 is a block diagram showing an interrupt control method according to an embodiment of the present invention, and FIG. 2 is a block diagram showing an interrupt control method according to a conventional technique. 1... Interrupt factor, 2... Interrupt priority level register, 3... Daisy chain gate, 4... Interrupt request signal wired OR circuit, 5 ...Interrupt priority level output switch, 6
・・・・・・Circuit for interrupt reception, 7・・・Variable daisy chain, 8・・・・・・Circuit for interrupt reception, 9
... Data bus, 10 ... Address bus, 11 ... Signal (interrupt processing start signal) for accepting interrupts to the processor, 12 ... For accepting interrupts. Reply, 13...The reception is currently at the interrupt priority level of medium or processing. Name of agent: Patent attorney Toshio Nakao and one other person 9-Deke

Claims (1)

【特許請求の範囲】[Claims] 複数の割込み要因に対し、各々任意の割込み優先レベル
を設定する手段とその設定された割込み優先レベルを保
持する割込み優先レベルレジスタ群を有し、また各割込
み要求発生回路はデイジーチェインにより順番に結合さ
れ優先レベルを決定する手段をも有し、かつデイジーチ
ェインは前記の設定された割込み優先レベルに従って、
自動的にその結合の順番を組み換える機能をそなえたこ
とを特徴とする割込み制御装置。
It has means for setting arbitrary interrupt priority levels for multiple interrupt sources, and a group of interrupt priority level registers that hold the set interrupt priority levels, and each interrupt request generation circuit is connected in sequence by a daisy chain. and means for determining the interrupt priority level, and the daisy chain operates according to the set interrupt priority level.
An interrupt control device characterized by having a function of automatically rearranging the order of connections.
JP10452488A 1988-04-27 1988-04-27 Interruption control device Pending JPH01276261A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10452488A JPH01276261A (en) 1988-04-27 1988-04-27 Interruption control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10452488A JPH01276261A (en) 1988-04-27 1988-04-27 Interruption control device

Publications (1)

Publication Number Publication Date
JPH01276261A true JPH01276261A (en) 1989-11-06

Family

ID=14382881

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10452488A Pending JPH01276261A (en) 1988-04-27 1988-04-27 Interruption control device

Country Status (1)

Country Link
JP (1) JPH01276261A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1999044141A1 (en) * 1998-02-26 1999-09-02 Kabushiki Kaisha Toshiba Signal processor unit and digital information receiver with detachable card module

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1999044141A1 (en) * 1998-02-26 1999-09-02 Kabushiki Kaisha Toshiba Signal processor unit and digital information receiver with detachable card module
US6973022B1 (en) 1998-02-26 2005-12-06 Kabushiki Kaisha Toshiba Signal processor unit and digital information receiver with detachable card module

Similar Documents

Publication Publication Date Title
US5497501A (en) DMA controller using a predetermined number of transfers per request
EP0358163A1 (en) Interrupt controller
JP2002516433A (en) Software configuration method for prioritizing interrupts in microprocessor based devices.
KR100708096B1 (en) Bus system and execution scheduling method for access commands thereof
US5999969A (en) Interrupt handling system for message transfers in network having mixed hardware and software emulated modules
US5931937A (en) Symmetric parallel multi-processing bus architecture
JPH01276261A (en) Interruption control device
JP2594600B2 (en) Single chip microcomputer
EP0321568A1 (en) Pipeline control system
JP2643931B2 (en) Information processing device
JPH1118122A (en) Data transfer system
JP2947195B2 (en) Interrupt mask control method
JP2990800B2 (en) Interrupt processing device
JP2667285B2 (en) Interrupt control device
JPH01205259A (en) Block transfer circuit
JPH0113575B2 (en)
JPH1115794A (en) Parallel data processor
JPH0520261A (en) Priority control cirucit
JPS6049465A (en) Data transfer method between microcomputers
JPH09265446A (en) Bus controller
JPH0362249A (en) Data processor
JPH03122744A (en) Computer system
JPH02210932A (en) Controller
JPS6342547A (en) Line control unit
JPH08339345A (en) Information processing system