JP2584082B2 - High-speed interrupt processing device - Google Patents

High-speed interrupt processing device

Info

Publication number
JP2584082B2
JP2584082B2 JP2004115A JP411590A JP2584082B2 JP 2584082 B2 JP2584082 B2 JP 2584082B2 JP 2004115 A JP2004115 A JP 2004115A JP 411590 A JP411590 A JP 411590A JP 2584082 B2 JP2584082 B2 JP 2584082B2
Authority
JP
Japan
Prior art keywords
interrupt
bank
register
processing
factor
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.)
Expired - Fee Related
Application number
JP2004115A
Other languages
Japanese (ja)
Other versions
JPH03209528A (en
Inventor
幹雄 荻須
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 JP2004115A priority Critical patent/JP2584082B2/en
Publication of JPH03209528A publication Critical patent/JPH03209528A/en
Application granted granted Critical
Publication of JP2584082B2 publication Critical patent/JP2584082B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、マルチレジスタファイル構成を持つ、マイ
クロプロセッサ,マイクロコンピュータにおいて、割込
み処理を、割込み処理専用のレジスタファイルに割当て
るか、或いは現在使用していないレジスタファイルに割
込み要因毎割当てることにより、スタックのプッシュ,
ポップ動作をなくし、高速応答を実現できる高速割込み
装置に関するものである。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a microprocessor or microcomputer having a multi-register file structure, in which interrupt processing is assigned to a register file dedicated to interrupt processing or is not currently used. By assigning each interrupt factor to a register file, it is possible to push the stack,
The present invention relates to a high-speed interrupt device capable of realizing a high-speed response without a pop operation.

従来の技術 従来、マルチレジスタファイル構成の、マイクロプロ
セッサ,マイクロコンピュータにおいて、割込みの処理
をする場合、割込み処理用のレジスタファイルを設け
て、そのレジスタファイルに割込み処理を集中させてい
た。
2. Description of the Related Art Conventionally, when processing an interrupt in a microprocessor or microcomputer having a multi-register file configuration, a register file for interrupt processing is provided, and interrupt processing is concentrated on the register file.

発明が解決しようとする課題 この方法では、最初に受理した割込み要因はデータの
プッシュは行なわれずに処理されるので、高速に応答す
ることができるが、それ以降受理した割込み要因に対し
ては割込み優先度が高い為に受理されたにもかかわら
ず、データのプッシュ或いはポップ動作が存在し、高速
に応答することができなかった。
According to this method, the interrupt factor received first is processed without data push, so that it is possible to respond at high speed. However, the interrupt factor received thereafter is interrupted. Despite being accepted due to high priority, there was a data push or pop operation, and it was not possible to respond at high speed.

また割込み要因の一部について専用の処理レジスタを
設ける方法も考えられているが、ユーザープログラムに
より、割込みの優先度が異なる為、汎用的な使用方法に
対して満足できるものとなっていなかった。
Although a method of providing a dedicated processing register for a part of the interrupt factor has been considered, since the priority of the interrupt varies depending on the user program, it has not been satisfactory for a general-purpose use method.

本発明は上記従来の課題を解決するもので、高速処理
が必要な割込み要因に対して、高速応答を実現し、かつ
ユーザープログラムに汎用的に対応できる高速割込み処
理装置を提供することを目的としている。
An object of the present invention is to solve the above-mentioned conventional problems, and to provide a high-speed interrupt processing device that realizes a high-speed response to an interrupt factor that requires high-speed processing and can universally respond to a user program. I have.

課題を解決するための手段 この課題を解決するために、本発明の高速割込み装置
は、マルチレジスタファイル構成のマイクロプロセッ
サ,マイクロコンピュータにおいて、割込み処理専用レ
ジスタファイル或いは空レジスタファイルで割込み処理
を行ない、かつ割込み要因毎にどのレジスタファイルで
処理を行なうかを任意指定できる様に構成されている。
Means for Solving the Problems In order to solve this problem, a high-speed interrupt device of the present invention performs interrupt processing using a register file dedicated to interrupt processing or an empty register file in a microprocessor or microcomputer having a multi-register file configuration. In addition, it is configured such that it is possible to arbitrarily specify which register file is to be processed for each interrupt factor.

作用 この構成により、高速割込み応答が必要な割込み要因
に対して応答性を上げることができるとともに汎用的な
ハードウェアを実現することができる。
Operation With this configuration, it is possible to improve responsiveness to an interrupt factor requiring a high-speed interrupt response and to realize general-purpose hardware.

実施例 以下、本発明の実施例について説明する。Examples Hereinafter, examples of the present invention will be described.

第1図は本発明の割込み発生時に処理レジスタファイ
ルを指定する高速割込み処理装置の一実施例である。
FIG. 1 shows an embodiment of a high-speed interrupt processing apparatus for designating a processing register file when an interrupt occurs according to the present invention.

マルチレジスタファイル構成のマイクロプロセッサ或
いはマイクロコンピュータにおいて、レジスタファイル
1〜5(以下バンク)はユーザープログラムにより、任
意に通常タスクや割込みタスクに割当てられる。割込み
処理用にバンクを割当てる場合、レジスタファイル選択
部6(以下バンク選択部)内の割込み要因毎に割込み処
理をするバンク指定するレジスタ10でユーザープログラ
ムによりバンク番号を指定する。第1図においては割込
み要因1から4までの処理バンクを指定するレジスタが
図示されているが、割込み要因の数だけレジスタの本数
を用意する。割込み部7から割込み要因を識別できる割
込み受理信号が発生すると、バンク選択部6は前記信号
を受けて、割込み要因を認識し、処理すべきバンクを選
択する。割込み優先度が高い割込み要因については割込
み要因毎処理バンク指定レジスタ10において、割込み処
理バンクが専用となる様に指定をし、また優先度の低い
割込み要因については複数の割込み要因で1つのバンク
を共用する様に指定をする。優先度が高い割込み要因を
処理するバンクには通常タスクも割当てないことによ
り、完全に特定の割込み処理専用バンクとなり、マイク
ロROM(図示せず)により、割込みの発生時にデータの
プッシュ,ポップを行なわずに、割込み処理を即座に開
始することができ、システム応答性が向上する。
In a microprocessor or a microcomputer having a multi-register file structure, register files 1 to 5 (hereinafter referred to as banks) are arbitrarily assigned to a normal task or an interrupt task by a user program. When allocating a bank for interrupt processing, a bank number is specified by a user program in a register 10 for specifying a bank for performing interrupt processing for each interrupt factor in a register file selection unit 6 (hereinafter, bank selection unit). Although FIG. 1 shows the registers for designating the processing banks of the interrupt factors 1 to 4, the number of registers is prepared by the number of interrupt factors. When an interrupt acknowledgment signal for identifying an interrupt factor is generated from the interrupt unit 7, the bank selecting unit 6 receives the signal, recognizes the interrupt factor, and selects a bank to be processed. For interrupt factors with a high interrupt priority, specify in the processing bank specification register 10 for each interrupt factor so that the interrupt processing bank is dedicated. For interrupt factors with a low priority, one bank is assigned with multiple interrupt factors. Specify to share. By not assigning a normal task to the bank that processes the interrupt factor with high priority, it becomes a completely dedicated bank for interrupt processing, and the micro ROM (not shown) pushes and pops data when an interrupt occurs. Instead, interrupt processing can be started immediately, and system responsiveness is improved.

第2図は本発明の割込み発生時に空レジスタファイル
か或いは現在タスク処理中のレジスタファイルに処理を
割当てる高速割込み処理装置の一実施例である。
FIG. 2 shows an embodiment of a high-speed interrupt processing apparatus according to the present invention which allocates processing to an empty register file or a register file currently being processed when an interrupt occurs.

バンク選択部8は現在システムとして可動しているバ
ンク番号を把握するための実行履歴レジスタ9と、割込
み要因毎に割込み処理を空バンクで実行するか或いは、
現在タスク実行中のバンクでするかを指定する割込み要
因毎優先度指定レジスタ11から構成されている。実行履
歴レジスタ9は現在タスクが割当てられているバンクに
対応するビット位置に“1"がハードウェアによりセット
されている。割込み要因毎優先指定レジスタ11では、ユ
ーザープログラムにより、割込み要因毎に割込み発生時
に高速に応答する必要があるのかどうかに応じて、優先
度の高い割込みであれば“1"をセットしておく。第2図
においては割込み要因1〜4に対して本レジスタのビッ
トが用意されているが、全割込み要因に対して本レジス
タを用意する。割込み部7から割込み要因を識別できる
割込み受理信号が発生するとバンク選択部8は割込み要
因毎優先度指定レジスタ11の内容をみて、空バンクで割
込み処理をするか否かを判断する。空バンクで割込み処
理を行なう場合、実行履歴レジスタ9の内容を調べて可
動していないバンク番号から空バンクを捜し出すととも
に、捜し出した空バンクに割込み処理を割当てる。割込
み処理のうち高速で行なう必要があるものを、空バンク
に割当てることにより、システムの柔軟性が増し、オペ
レーティングシステムも負担が軽減する。空バンクに割
当てられた割込み処理は、専用バンクでの処理となるの
で、データのプッシュ,ポップがなく高速に割込み応答
ができる。
The bank selection unit 8 includes an execution history register 9 for ascertaining the bank number currently operating as a system, and executing an interrupt process for each interrupt factor in an empty bank, or
It is composed of a priority specification register 11 for each interrupt factor, which specifies whether to execute the task in the currently executing bank. In the execution history register 9, "1" is set by hardware at a bit position corresponding to the bank to which the task is currently assigned. In the priority designation register 11 for each interrupt factor, "1" is set for a high priority interrupt according to whether or not it is necessary to respond at a high speed when an interrupt occurs for each interrupt factor by a user program. In FIG. 2, bits of this register are prepared for interrupt factors 1 to 4, but this register is prepared for all interrupt factors. When an interrupt acknowledgment signal capable of identifying an interrupt cause is generated from the interrupt unit 7, the bank selection unit 8 checks the contents of the priority designation register 11 for each interrupt cause and determines whether or not to perform an interrupt process in an empty bank. When interrupt processing is performed in an empty bank, the contents of the execution history register 9 are checked to find an empty bank from the bank numbers that are not movable, and the interrupt processing is assigned to the empty bank found. By assigning the interrupt processing that needs to be performed at high speed to an empty bank, the flexibility of the system is increased and the burden on the operating system is reduced. Since the interrupt processing assigned to the empty bank is performed in the dedicated bank, the interrupt response can be performed at high speed without data push and pop.

発明の効果 以上のように本発明によれば、高速応答性を必要とす
る割込み要因に対して、データのプッシュ,ポップする
ことを回避することができ、割込み処理の高速応答を実
現できるとともに、通常処理のスループット向上が図れ
る。また、ハードウェアにより処理レジスタファイルを
選択するため、ソフトウェアの負担も軽減することがで
きる。
Advantageous Effects of the Invention As described above, according to the present invention, it is possible to avoid data push and pop with respect to an interrupt factor requiring high-speed response, and realize high-speed response of interrupt processing. The throughput of the normal processing can be improved. Further, since the processing register file is selected by hardware, the load on software can be reduced.

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

第1図は本発明の割込み発生時に処理レジスタファイル
を指定する一実施例のブロック図、第2図は本発明の割
込み発生時に空レジスタファイルか或いは現在タスク処
理中のレジスタファイルに処理を割当てる一実施例のブ
ロック図である。 1〜5……レジスタファイル(バンク)、6,8……レジ
スタファイル選択部(バンク選択部)、7……割込み
部、9……実行履歴レジスタ、10……割込み要因毎処理
バンク指定レジスタ、11……割込み要因毎優先度指定レ
ジスタ。
FIG. 1 is a block diagram of an embodiment of the present invention for designating a processing register file when an interrupt occurs, and FIG. 2 is an example of assigning processing to an empty register file or a register file currently being processed by a task when an interrupt occurs according to the present invention. It is a block diagram of an example. 1 to 5: register file (bank), 6, 8: register file selection section (bank selection section), 7: interrupt section, 9: execution history register, 10: processing bank designation register for each interrupt factor, 11 ... Priority designation register for each interrupt factor.

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】複数のバンクで構成されるマルチレジスタ
ファイルシステムにおける高速割込み処理装置であっ
て、バンク選択部が、現在システムとして可動している
バンク番号を把握するための実行履歴レジスタと、割込
み要因毎に割込み処理を空バンクで実行するか、あるい
は、現在タスク実行中のバンクでするか指定するための
割込み要因毎優先度指定レジスタとを備え、割込み受理
信号が発生すると前記バンク選択部は、前記割込み要因
毎優先度指定レジスタの内容をみて、空バンクで割込み
処理を行うか否かを判断し、空バンクで割込み処理を行
なう場合、前記実行履歴レジスタの内容を調べて空バン
クを捜し出すとともに、前記空バンクに割込み処理を割
当てることを特徴とする高速割込み処理装置。
1. A high-speed interrupt processing apparatus in a multi-register file system comprising a plurality of banks, wherein a bank selection unit includes an execution history register for ascertaining a bank number currently operating as a system; A priority specification register for each interrupt factor for specifying whether to execute an interrupt process in an empty bank for each factor or in a bank currently executing a task, and when an interrupt acceptance signal is generated, the bank selection unit By checking the contents of the priority specification register for each interrupt factor, it is determined whether or not to execute an interrupt process in an empty bank. When performing an interrupt process in an empty bank, the contents of the execution history register are searched for an empty bank. A high-speed interrupt processing device, wherein an interrupt process is assigned to the empty bank.
JP2004115A 1990-01-11 1990-01-11 High-speed interrupt processing device Expired - Fee Related JP2584082B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004115A JP2584082B2 (en) 1990-01-11 1990-01-11 High-speed interrupt processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004115A JP2584082B2 (en) 1990-01-11 1990-01-11 High-speed interrupt processing device

Publications (2)

Publication Number Publication Date
JPH03209528A JPH03209528A (en) 1991-09-12
JP2584082B2 true JP2584082B2 (en) 1997-02-19

Family

ID=11575786

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004115A Expired - Fee Related JP2584082B2 (en) 1990-01-11 1990-01-11 High-speed interrupt processing device

Country Status (1)

Country Link
JP (1) JP2584082B2 (en)

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60214044A (en) * 1984-04-09 1985-10-26 Nec Corp Microcomputer

Also Published As

Publication number Publication date
JPH03209528A (en) 1991-09-12

Similar Documents

Publication Publication Date Title
JP2525997B2 (en) I / O interrupt subclass recognition method
US5511200A (en) Method and apparatus for providing an enhanced programmable priority interrupt controller
JP2972355B2 (en) Digital data processor and operating method thereof
JPH07104842B2 (en) External storage interrupt control method
US4103330A (en) Task handling in a data processing apparatus
US4764869A (en) Method and apparatus for controlling interruption in the course of instruction execution in a processor
JP2584082B2 (en) High-speed interrupt processing device
EP0240606A2 (en) Pipe-line processing system and microprocessor using the system
JP2797760B2 (en) Parallel processing computer system
JPH01273136A (en) System for converting operating system to firmware
JPH0528431B2 (en)
JP2585905B2 (en) Multitask execution device
JP2579008B2 (en) Time-division multitasking execution device
US5579495A (en) Information processing in which a simulation of parallelism is achieved
JP3126247B2 (en) Information processing apparatus and method
JPH0527911A (en) Command executing order deciding method for disk device
JP3073903B2 (en) Information processing apparatus and I / O interrupt control method thereof
JPS61282932A (en) Address counter control system
JPH05241890A (en) Data trace system
JPH10143376A (en) Information processing device
JPS58221447A (en) Data processor
JP2551054B2 (en) I / O system reconfiguration processor
JPH0721111A (en) Priority level determination system
JPH0766032B2 (en) Test system
JPS63229530A (en) Interruption control system

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees