JPS63313237A - Microcomputer - Google Patents

Microcomputer

Info

Publication number
JPS63313237A
JPS63313237A JP14957087A JP14957087A JPS63313237A JP S63313237 A JPS63313237 A JP S63313237A JP 14957087 A JP14957087 A JP 14957087A JP 14957087 A JP14957087 A JP 14957087A JP S63313237 A JPS63313237 A JP S63313237A
Authority
JP
Japan
Prior art keywords
information
interrupt
storage device
branched
microcomputer
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
JP14957087A
Other languages
Japanese (ja)
Inventor
Koichi Hanamura
花村 公一
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP14957087A priority Critical patent/JPS63313237A/en
Publication of JPS63313237A publication Critical patent/JPS63313237A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4812Task transfer initiation or dispatching by interrupt, e.g. masked

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)

Abstract

PURPOSE:To rapidly response to an interruption request by storing interruption information with high using frequency in the 2nd storage device having a rapid access processing function so that the information is initially accessed at the time of generating an interruption. CONSTITUTION:A control circuit 3 receiving an interruption accepting signal S2 sends a vector information signal S3 to a detecting circuit 6. The circuit 6 detects the existence of branched information corresponding to a level included in the signal S3 in a cache memory 5. When the corresponding branched information exists, the control circuit 3 branches the signal S3 to a branched destination indicated in the branched information. When there is no corresponding branched information, the control circuit 3 inputs the branched information (i) stored in an external storage device 4 through a data bus DB, overwrites the information (i) in the cache memory 5 correspondingly to the i-th level and then branches the information (i) to a branched destination shown in the information (i).

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は、高速に割込み処理が行える割込み処理機能
を有するマイクロコンピュータに関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a microcomputer having an interrupt processing function that can perform interrupt processing at high speed.

(従来の挟*) 第2図は従来の割込み処理機能を有するマイクロコンピ
ュータのブロック構成図である。同図において、マイク
ロコンピュータ1内に割込み受付回路2が備えられてお
り、割込みが発生すると割込み要求信号S1がこの割込
み受付回路2に入力される。この割込み要求信号S1は
割込み要因に対応して、識別のための一連の数値である
ベクトル情報を含んでいる。割込み受付回路2は、マイ
クロコンピュータ1が現在実行中の命令の実行完了後、
この割込み要求信号S1を受付け、割込み要求信号S1
内のベクトル情報を含ませた割込み受付信号S2を次段
の制御回路3に送る。
(Conventional Pin*) FIG. 2 is a block diagram of a microcomputer having a conventional interrupt processing function. In the figure, an interrupt reception circuit 2 is provided in a microcomputer 1, and when an interrupt occurs, an interrupt request signal S1 is input to this interrupt reception circuit 2. This interrupt request signal S1 includes vector information, which is a series of numerical values for identification, corresponding to the interrupt factor. After the microcomputer 1 completes execution of the instruction currently being executed, the interrupt acceptance circuit 2
This interrupt request signal S1 is accepted, and the interrupt request signal S1
The interrupt acceptance signal S2 containing the vector information is sent to the control circuit 3 at the next stage.

これを受けた制御回路3は現在のマイクロコンピュータ
1の内部状態(プログラムカウンタ、プログラムステー
タスレジスタ値等)を外部記憶装置4の所定装置に退避
させる。この外部記憶装置4は他にベクトル情報に示さ
れるレベル毎に、そのレベルに対応する割込み処理の分
岐先情報を格納している。
Upon receiving this, the control circuit 3 saves the current internal state of the microcomputer 1 (program counter, program status register value, etc.) to a predetermined device of the external storage device 4. The external storage device 4 also stores, for each level indicated by the vector information, branch destination information of interrupt processing corresponding to that level.

内部状態退避後、制御回路3は外部記憶装置4上におい
て、割込み受付信号S2内のベクトル情報に示された第
iレベルの格納装置にアクセスし、第iレベルに格納さ
れた分岐先情報1をデータバスDBを介して読みとり、
この分岐先情報i、に示された分岐先に分岐することで
割込み処理が行われる。
After saving the internal state, the control circuit 3 accesses the i-th level storage device indicated by the vector information in the interrupt acceptance signal S2 on the external storage device 4, and stores the branch destination information 1 stored in the i-th level. Read via data bus DB,
Interrupt processing is performed by branching to the branch destination indicated by this branch destination information i.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

従来の割込み処理機能を有するマイクロコンピュータは
上記したように、割込み8発生する度に、割込み処理を
行なうための分岐先情報等の割込み情報を外部記憶袋M
4より読出すことで割込み処理を行っていた。このため
、割込みの都度、外部記憶装置4との比較的長いアクセ
ス時間が必要となり、割込みが頻繁に発生するような応
用システムを実行する際に、このシステムのスルーブツ
トが低下してしまう問題点があった。
As mentioned above, a conventional microcomputer with an interrupt processing function stores interrupt information such as branch destination information for interrupt processing in the external memory bag M every time an interrupt 8 occurs.
Interrupt processing was performed by reading from 4. Therefore, each time an interrupt occurs, a relatively long time is required to access the external storage device 4, which causes the problem that the throughput of this system decreases when executing an application system where interrupts occur frequently. there were.

この発明は上記のような問題点を解消するためになされ
たもので、割込み要求に対し高速に応答することができ
る割込み処理機能を有するマイクロコンピュータを得る
ことを目的とする。
The present invention has been made to solve the above-mentioned problems, and an object of the present invention is to provide a microcomputer having an interrupt processing function that can quickly respond to interrupt requests.

〔問題点を解決するための手段〕[Means for solving problems]

この発明にかかるマイクロコンピュータは割込み発生時
に割込発生要因に対応したベクトル情報を含む割込み要
求信号を受け、この割込み要求信号に応答して第1の記
憶装置上の該ベクトル情報に対応した記憶装置にアクセ
スすることで当該割込み処理の割込み情報を得る構成に
加え、前記第1の記憶装置よりもアクセス処理が高速な
第2の記憶装置を設け、この第2の記憶装置上に使用頻
度が高い割込み情報を格納し、割込み発生時に対応する
割込み情報が前記第2の記憶装置上に存在するか否かを
判別し、存在していれば、その割込み情報を得て割込み
処理を行い、存在していなければ前記第1の記憶装置よ
り対応する割込み情報を得ることで割込み処理を行うよ
うに構成されている。
The microcomputer according to the present invention receives an interrupt request signal including vector information corresponding to an interrupt generation factor when an interrupt occurs, and in response to the interrupt request signal, a storage device corresponding to the vector information on a first storage device. In addition to the configuration in which interrupt information of the interrupt processing is obtained by accessing, a second storage device whose access processing is faster than the first storage device is provided, and on this second storage device, there is provided a second storage device that is frequently used. It stores interrupt information, determines whether or not corresponding interrupt information exists on the second storage device when an interrupt occurs, and if it exists, obtains the interrupt information and performs interrupt processing, and then determines whether the interrupt information exists. If not, the interrupt processing is performed by obtaining corresponding interrupt information from the first storage device.

(作用) この発明における高速なアクセス処理機能を有した第2
の記憶装置は使用頻度の高い割込み情報を格納しており
、割込み発生時において最初にアクセスされる構成にし
たため、大半の割込み要求に対する応答は第1の記憶装
置をアクセスすることなく第2の記憶装置のみにアクセ
スすることで行える。
(Function) The second device having a high-speed access processing function according to the present invention
The storage device stores frequently used interrupt information and is configured to be accessed first when an interrupt occurs, so most responses to interrupt requests are sent to the second storage device without accessing the first storage device. This can be done by accessing only the device.

(実施例〕 第1図はこの発明の一実施例であるマイクロコンピュー
タの割込み処理機能を示すブロック構成図である。同図
において1〜4.Sl、82.DBは従来と同じである
ので、説明は省略するが、従来と異なる点として外部記
憶袋H4に比べ高速にアクセスできるキャッシュメモリ
5及びキャッシュメモリ5内に格納された分岐先情報を
検出する検出回路6が新たに設けられた点が挙げられる
(Embodiment) Fig. 1 is a block diagram showing the interrupt processing function of a microcomputer which is an embodiment of the present invention. Although the explanation will be omitted, the difference from the conventional model is that a cache memory 5 that can be accessed faster than the external storage bag H4 and a detection circuit 6 that detects branch destination information stored in the cache memory 5 are newly provided. Can be mentioned.

キャッシュメモリ5内には、予め使用頻度の高い割込み
処理の分岐先情報がベクトル情報のレベルに対応させて
格納されており、検出回路6は制御回路3より与えられ
たベクトル情報信号S3により、キャッシュメモリ5内
において、ベクトル情報に示されたレベルに対応する分
岐先情報の有無を検出し、その有無の検出結果と、後に
詳述する制御回路3のアクセスすべきキャッシュメモリ
5上におけるアドレス値を分岐情報検出信号S4として
v4111回路3に送っている。なお、dbはキャッシ
ュメモリ5とlllll回路3間に設けられた内部デー
タバスである。
In the cache memory 5, branch destination information of frequently used interrupt processing is stored in advance in correspondence with the level of vector information, and the detection circuit 6 uses the vector information signal S3 given from the control circuit 3 to The presence or absence of branch destination information corresponding to the level indicated by the vector information is detected in the memory 5, and the detection result and the address value on the cache memory 5 to be accessed by the control circuit 3, which will be described in detail later, are detected. It is sent to the v4111 circuit 3 as a branch information detection signal S4. Note that db is an internal data bus provided between the cache memory 5 and the lllll circuit 3.

このような構成において、割込みが発生すると割込み要
求信号S1が割込み受付回路2に入力される。割込み受
付回路2は、マイクロコンピュータ1が現在実行中の命
令実行後、この割込み要求信号S1を受付け、従来同様
ベクトル情報を含んだ割込み受付信号S2を次段の制御
回路3に送る。
In such a configuration, when an interrupt occurs, an interrupt request signal S1 is input to the interrupt reception circuit 2. The interrupt acceptance circuit 2 accepts this interrupt request signal S1 after the microcomputer 1 executes the instruction currently being executed, and sends an interrupt acceptance signal S2 containing vector information to the next stage control circuit 3 as in the conventional art.

これを受けたtIIJwJ回路3は現在のマイクロコン
ピユータ1の内部状態を退避させ、ベクトル情報信号S
3を検出回路6に送る。検出回路6はキャッシュメモリ
5内においてベクトル情報信号S3に含まれたレベルに
対応する分岐先情報の有無を検出する。
Upon receiving this, the tIIJwJ circuit 3 saves the current internal state of the microcomputer 1 and outputs the vector information signal S.
3 is sent to the detection circuit 6. The detection circuit 6 detects the presence or absence of branch destination information corresponding to the level included in the vector information signal S3 in the cache memory 5.

対応する分岐先情報がキャッシュメモリ5内に存在した
場合、その格納アドレス値(これをADlとする)と存
在を示す情報とを分岐情報検出信号S4に含ませて、t
ilWJ回路3に送る。これを受けた制御回路3はキャ
ッシュメモリ5上のアドレスAD1に格納された分岐先
情報をデータバスdbを介して読取り、この分岐先情報
に示された分岐先に分岐することで割込み処理が行われ
る。
If the corresponding branch destination information exists in the cache memory 5, the storage address value (this is referred to as ADl) and information indicating the existence are included in the branch information detection signal S4, and t
Send to ilWJ circuit 3. Upon receiving this, the control circuit 3 reads the branch destination information stored at the address AD1 on the cache memory 5 via the data bus db, and executes the interrupt process by branching to the branch destination indicated by this branch destination information. be exposed.

一方、対応する分岐先情報がキャッシュメモリ5内に存
在しなかった場合、不存在を示す情報と、L RU (
least recently used)法により選
択された、最後にアクセスされた時点が最も古い分岐先
情報のアドレス値(これをAC3とする)とを分岐情報
検出信号S4に含ませて制御回路3に送る。
On the other hand, if the corresponding branch destination information does not exist in the cache memory 5, information indicating the absence and L RU (
The address value of the branch destination information having the oldest access point (this is set as AC3) selected by the least recently used) method is included in the branch information detection signal S4 and sent to the control circuit 3.

これを受けた制御回路3は外部記憶装N4より割込み受
付信号S2内のベクトル情報に示された第iレベルの格
納装置にアクセスし、分岐先情報iをデータバスdbを
介して取り込み、この分岐先情報iを第iレベルと対応
させてキャッシュメモリ5内のアドレスAD2上にオー
バライドし、その後、分岐先情報iに示された分岐先に
分岐することで割込み処理が行われる。
Upon receiving this, the control circuit 3 accesses the i-th level storage device indicated by the vector information in the interrupt acceptance signal S2 from the external storage device N4, fetches the branch destination information i via the data bus db, and Interrupt processing is performed by associating destination information i with the i-th level and overriding address AD2 in the cache memory 5, and then branching to the branch destination indicated by branch destination information i.

このように、キャッシュメモリ5内に絶えず使用頻度の
高い分岐先情報を格納することで、大半の割込み要求に
対する応答は制御回路3.キャッシュメモリ5及び検出
回路6闇で行うことができる。その結果、アクセス時間
が遅い外部記憶装置4にアクセスすることがほとんどな
くなるため、頻繁に割込みが発生してもマイクロコンピ
ュータ1のスループットはほとんど低下しない。
In this way, by constantly storing frequently used branch destination information in the cache memory 5, responses to most interrupt requests are handled by the control circuit 3. This can be done in the dark using the cache memory 5 and the detection circuit 6. As a result, the external storage device 4 having a slow access time is rarely accessed, so the throughput of the microcomputer 1 hardly decreases even if interrupts occur frequently.

なお、この実施例ではキャッシュメモリ5をマイクロコ
ンピュータ1内部に備えたが、外部にアクセス時間が高
速な第2の記憶装置を備えることによってもこの発明を
実施できる。また、割込み情報として分岐先情報のみを
示したが、更に割込み要因に対応する属性値等オペレー
ティングシステムにおける管理上必要な情報を含ませて
もよく、割込み要求も外部からの割込みだけに限らず、
内部に発生する割込みにおいても、この発明を適用する
ことができる。
In this embodiment, the cache memory 5 is provided inside the microcomputer 1, but the present invention can also be implemented by providing an external second storage device with a fast access time. In addition, although only branch destination information is shown as interrupt information, information necessary for management in the operating system such as attribute values corresponding to interrupt factors may also be included, and interrupt requests are not limited to external interrupts.
The present invention can also be applied to internally generated interrupts.

また、置換えアルゴリズムとしてしRU法を示したが、
FIFO法(First−in first−out 
:先入れ先出し方式)等の他の方法を用いてもよく、置
換えを行わずキャッシュメモリ5内に格納する分岐先情
報を固定することも考えられる。
Also, the RU method was shown as a replacement algorithm, but
FIFO method (first-in first-out
It is also possible to use other methods such as a first-in, first-out method, or to fix the branch destination information stored in the cache memory 5 without replacing it.

〔発明の効果〕〔Effect of the invention〕

以上説明したように、この発明によれば、高速なアクセ
ス処理機能を有する例えばキャッシュメモリ等の第2の
記憶装置に使用頻度の高い割込み情報を格納し、割込み
発生時にまず、この第2の記憶装置にアクセスするよう
にしたため、割込み要求に対し高速に応答することがで
きる割込み処理機能を有するマイクロコンピュータを得
ることができる。
As explained above, according to the present invention, frequently used interrupt information is stored in a second storage device such as a cache memory having a high-speed access processing function, and when an interrupt occurs, the second storage device is first stored in the second storage device. Since the device is accessed, it is possible to obtain a microcomputer having an interrupt processing function that can quickly respond to an interrupt request.

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

第1図はこの発明の一実施例であるマイクロコンピュー
タの割込み処理機能を示したブロック構成図、第2図は
従来のマイクロコンピュータの割込み処理機能を示した
ブロック構成図である。 図において、1はマイクロコンピュータ、3は制御回路
、4は外部記憶装置、5はキャッシュメモリ、6は検出
回路である。 なお、各図中同一符号は同一または相当部分を示す。
FIG. 1 is a block diagram showing the interrupt processing function of a microcomputer according to an embodiment of the present invention, and FIG. 2 is a block diagram showing the interrupt processing function of a conventional microcomputer. In the figure, 1 is a microcomputer, 3 is a control circuit, 4 is an external storage device, 5 is a cache memory, and 6 is a detection circuit. Note that the same reference numerals in each figure indicate the same or corresponding parts.

Claims (2)

【特許請求の範囲】[Claims] (1)割込み発生時に割込発生要因に対応したベクトル
情報を含む割込み要求信号を受け、この割込み要求信号
に応答して第1の記憶装置上の該ベクトル情報に対応し
た記憶装置にアクセスし、当該割込み処理の割込み情報
を得ることで誘込み処理を行うマイクロコンピュータに
おいて、前記第1の記憶装置よりもアクセス処理が高速
な第2の記憶装置を設け、この第2の記憶装置上に使用
頻度が高い割込み情報を格納し、 割込み発生時に対応する割込み情報が前記第2の記憶装
置上に存在するか否かを判別し、 存在していれば、その割込み情報を得て割込み処理を行
い、存在していなければ前記第1の記憶装置より対応す
る割込み情報を得ることで割込み処理を行うことを特徴
としたマイクロコンピュータ。
(1) receiving an interrupt request signal including vector information corresponding to an interrupt generation factor when an interrupt occurs, and accessing a storage device corresponding to the vector information on a first storage device in response to the interrupt request signal; In a microcomputer that performs invitation processing by obtaining interrupt information for the interrupt processing, a second storage device whose access processing is faster than the first storage device is provided, and a frequency of use is stored on the second storage device. storing interrupt information with a high value, determining whether or not corresponding interrupt information exists on the second storage device when an interrupt occurs, and if so, obtaining the interrupt information and performing interrupt processing; If the microcomputer does not exist, the microcomputer performs interrupt processing by obtaining corresponding interrupt information from the first storage device.
(2)前記第1の記憶装置は外部に設けたものであり、
前記第2の記憶装置は内部に備えた特許請求の範囲第1
項記載のマイクロコンピュータ。
(2) the first storage device is provided externally;
The second storage device is provided internally.
The microcomputer described in Section 1.
JP14957087A 1987-06-16 1987-06-16 Microcomputer Pending JPS63313237A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP14957087A JPS63313237A (en) 1987-06-16 1987-06-16 Microcomputer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP14957087A JPS63313237A (en) 1987-06-16 1987-06-16 Microcomputer

Publications (1)

Publication Number Publication Date
JPS63313237A true JPS63313237A (en) 1988-12-21

Family

ID=15478075

Family Applications (1)

Application Number Title Priority Date Filing Date
JP14957087A Pending JPS63313237A (en) 1987-06-16 1987-06-16 Microcomputer

Country Status (1)

Country Link
JP (1) JPS63313237A (en)

Similar Documents

Publication Publication Date Title
JPH02235156A (en) Information processor
EP0298418A2 (en) Virtual computer system
US5388229A (en) Data transmission system which prefetches data to be transferred
JPS63313237A (en) Microcomputer
JPH01286029A (en) Microprogram patching system
JPS6324327A (en) Instruction fetch processing system
JPH0377137A (en) Information processor
JPH05120133A (en) Cache device
JPH04205448A (en) Information processor
JPH02189658A (en) Cache memory
JPH04213727A (en) Information processor
JPH0248733A (en) Information processor
JPH03119424A (en) Information processing system and its device
JPS6146562A (en) Operation processing system of array element
JPH07114479A (en) Interruption control system
JPH04271405A (en) Sequence instruction processor
JPH01188941A (en) Control system for execution of program
JPH03119425A (en) Information processing system and its device
JPH05100903A (en) Address tracer
JPH01280851A (en) Cache store control system
JPH04245333A (en) Information processor
JPH0335323A (en) Control system for execution of instruction
JPS638841A (en) Interruption accepting system
JPH01243122A (en) Information processing unit
JPH0223426A (en) Information processor