JPH0683639A - Register device - Google Patents
Register deviceInfo
- Publication number
- JPH0683639A JPH0683639A JP4234538A JP23453892A JPH0683639A JP H0683639 A JPH0683639 A JP H0683639A JP 4234538 A JP4234538 A JP 4234538A JP 23453892 A JP23453892 A JP 23453892A JP H0683639 A JPH0683639 A JP H0683639A
- Authority
- JP
- Japan
- Prior art keywords
- register
- register device
- context
- interrupt
- processing
- 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
Links
Abstract
(57)【要約】
【目的】 割り込み処理に際し、複数のバスサイクルを
用いることなくコンテキストの退避及び復帰を可能とす
る。
【構成】 第2レジスタ12は、予め割り込み処理に必
要な情報が格納されている。割り込み処理が受け付けら
れ制御信号5、10が立ち上がると、第2レジスタ12
の値が第1レジスタ13へと転送され、第1ラッチ14
に格納されている元のタスク処理のコンテキストが第3
レジスタ15へと転送される。尚、割り込み受付前に、
第1レジスタ13の値が第1ラッチ14へ転送されてい
る。元のタスク処理へ復帰するとき制御信号6が立ち上
がり、第3レジスタ15に退避されたコンテキストが第
2ラッチ16を介して直接第1レジスタ13へ転送され
る。
【効果】 オーバヘッドを削減でき、高速な割り込み処
理への切替え及び復帰が可能となる。
(57) [Summary] [Purpose] It is possible to save and restore the context during interrupt processing without using multiple bus cycles. [Structure] The second register 12 stores in advance information necessary for interrupt processing. When the interrupt processing is accepted and the control signals 5 and 10 rise, the second register 12
Is transferred to the first register 13 and the first latch 14
The original task processing context stored in
It is transferred to the register 15. In addition, before accepting the interrupt,
The value of the first register 13 has been transferred to the first latch 14. When returning to the original task process, the control signal 6 rises, and the context saved in the third register 15 is directly transferred to the first register 13 via the second latch 16. [Effect] Overhead can be reduced, and switching to high-speed interrupt processing and restoration can be performed.
Description
【0001】[0001]
【産業上の利用分野】この発明は、プロセッサに内蔵さ
れたレジスタ装置に関するものである。具体的には、プ
ロセッサを用いたシステムの割り込み処理に関して、通
常のタスク処理と割り込み処理との切替え及び復帰を高
速に実現するレジスタ装置に関している。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a register device built in a processor. More specifically, the present invention relates to a register device that realizes high-speed switching and restoration of normal task processing and interrupt processing for interrupt processing of a system using a processor.
【0002】[0002]
【従来の技術】図4は、プロセッサに内蔵されたレジス
タ装置の従来の構成を示したブロック図である。従来の
レジスタ装置に於いて主要部をなすのは、同図の内部レ
ジスタ13Aである。本内部レジスタ13Aは、プロセ
ッサの内部バス1に接続されており、制御信号4Aが内
部レジスタ13Aに印加されると、内部バス1のデータ
が内部レジスタ13Aに書き込まれる。又、制御信号5
が内部レジスタ13Aに印加されると、内部レジスタ1
3Aはそのデータ値を内部バス1に書き出す。又、プロ
セッサ内部17とプロセッサ外部18との間には、入出
力バッファ19が設けられており、プロセッサ外部18
のシステムバス20には外部メモリ21が接続されてい
る。この外部メモリ21は、後述するように、内部レジ
スタ13Aに格納されているコンテキスト(プロセッサ
が現在実行中のプログラムに関する情報)を、割り込み
処理の間、退避するために用いられるものである。2. Description of the Related Art FIG. 4 is a block diagram showing a conventional structure of a register device incorporated in a processor. The main part of the conventional register device is the internal register 13A shown in FIG. The internal register 13A is connected to the internal bus 1 of the processor, and when the control signal 4A is applied to the internal register 13A, the data of the internal bus 1 is written in the internal register 13A. Also, control signal 5
Is applied to the internal register 13A, the internal register 1
3A writes the data value to the internal bus 1. An input / output buffer 19 is provided between the processor inside 17 and the processor outside 18, and the processor outside 18
An external memory 21 is connected to the system bus 20 of FIG. As will be described later, the external memory 21 is used to save the context (information regarding the program currently being executed by the processor) stored in the internal register 13A during interrupt processing.
【0003】次に、図4のレジスタ装置を内蔵したプロ
セッサを用いたシステムに於いて、プロセッサが割り込
み処理を受け付けた時に行われる(a)割り込みハンド
ラ(割り込み処理専用のプログラム)への処理切替え動
作と、(b)割り込みハンドラから元のタスク処理への
復帰動作とについて、以下説明を行う。Next, in a system using a processor having the register device shown in FIG. 4, (a) a process switching operation to an interrupt handler (a program dedicated to interrupt processing), which is performed when the processor accepts interrupt processing. And (b) the returning operation from the interrupt handler to the original task processing will be described below.
【0004】(a) 割り込みハンドラへの処理切替え
動作 プロセッサが割り込み処理を受け付けると、先ず、割り
込みハンドラの処理に先立ってコンテキストの退避を行
う。このコンテキストの退避として、内部レジスタ13
Aの最新の値(割り込み受付時のタスク処理のコンテキ
スト)を各レジスタ単位毎に内部バス1へ出力し、入出
力バッファ19及びシステムバス20を介して、当該内
部レジスタ13Aの最新の値を外部メモリ21に書き出
す。(A) Process Switching Operation to Interrupt Handler When the processor accepts an interrupt process, first, the context is saved before the interrupt handler process. To save this context, the internal register 13
The latest value of A (context of task processing at the time of interrupt acceptance) is output to the internal bus 1 for each register unit, and the latest value of the internal register 13A is externally output via the input / output buffer 19 and the system bus 20. Write to the memory 21.
【0005】コンテキストの退避が終了すると、次に外
部からプロセッサ内部の他のレジスタに転送され、格納
されている割り込みベクタを内部バス1へ出力し、その
割り込みベクタの値を内部レジスタ13A内のプログラ
ムカウンタ(図示せず)に書き込む。これにより、割り
込みハンドラの処理がプロセッサ内で開始される。When the saving of the context is completed, it is transferred from the outside to another register inside the processor, the stored interrupt vector is output to the internal bus 1, and the value of the interrupt vector is stored in the program in the internal register 13A. Write to a counter (not shown). As a result, the processing of the interrupt handler is started in the processor.
【0006】(b) 元のタスク処理への復帰 一方、割り込みハンドラから元のタスク処理へプロセッ
サが復帰する場合には、外部メモリ21に退避されたコ
ンテキストを内部レジスタ13Aに読み込む必要があ
る。そこで、各レジスタ単位毎に、外部メモリ21から
当該コンテキストがシステムバス20へ出力され、入出
力バッファ19及び内部バス1を介して内部レジスタ1
3Aに読み込まれる。この内部レジスタ13Aの読み込
みは、制御信号4Aにより制御される。(B) Return to original task processing On the other hand, when the processor returns to the original task processing from the interrupt handler, it is necessary to read the context saved in the external memory 21 into the internal register 13A. Therefore, for each register unit, the context is output from the external memory 21 to the system bus 20, and the internal register 1 is output via the input / output buffer 19 and the internal bus 1.
It is read by 3A. The reading of the internal register 13A is controlled by the control signal 4A.
【0007】このように、従来のレジスタ装置では、割
り込み処理受付後、割り込み処理への移行に当たって、
実行中のタクト処理のコンテキストを外部メモリ21に
退避した上で、割り込みハンドラ等への処理切替えを行
っている。又、退避されたコンテキストを内部レジスタ
13Aに再び読み込むことによって、元のタスク処理へ
の復帰を実現している。As described above, in the conventional register device, in the transition to the interrupt processing after receiving the interrupt processing,
The context of the tact process being executed is saved in the external memory 21, and then the process is switched to the interrupt handler or the like. Further, by re-reading the saved context into the internal register 13A, the return to the original task processing is realized.
【0008】[0008]
【発明が解決しようとする課題】従来のレジスタ装置は
以上の様に構成されているので、割り込み処理への切替
え及び復帰に当たって次の様な問題点が発生していた。Since the conventional register device is constructed as described above, the following problems have occurred when switching to and returning from interrupt processing.
【0009】その一つは、割り込み処理受付により割り
込みハンドラ等への処理切替えが行われる度に、内部レ
ジスタの個々の値をコンテキストとして外部メモリに書
き出し退避する必要があった。又、元のタスク処理に復
帰する際にも、退避されたコンテキストを各々システム
バス等を介して内部レジスタに読み込む処理が必要であ
った。従って、仮にn個のレジスタ情報よりなるコンテ
キストを退避し、且つ復帰時に読み込みを行うには、n
回のバスサイクルが必要であった。One of the problems is that it is necessary to write each value of the internal register to the external memory as a context and save it each time the process is switched to the interrupt handler or the like upon receipt of the interrupt process. Further, when returning to the original task processing, it is necessary to read the saved contexts into the internal registers via the system bus or the like. Therefore, if the context consisting of n pieces of register information is saved and read at the time of restoration,
One bus cycle was required.
【0010】このように、従来のレジスタ装置による割
り込みハンドラ等への処理移行及び元のタスク処理への
復帰には多くのバスサイクルを必要としており、割り込
み処理等にリアルタイム性が必要とされる分野に於いて
は、割り込みハンドラ等への切替えと割り込みハンドラ
からの復帰にかかるオーバヘッドが、システム上、大き
な問題となる。As described above, many bus cycles are required to shift the processing to the interrupt handler and the like and to return to the original task processing by the conventional register device, and the real-time property is required for the interrupt processing and the like. In this case, the overhead of switching to an interrupt handler and returning from the interrupt handler poses a serious system problem.
【0011】この発明は、かかる問題を解決すべくなさ
れたものであり、その目的は、割り込み処理受付に際し
て必要なコンテキストの退避及び元のタスク処理への復
帰に必要なコンテキストの読み込みを複数のバスサイク
ルを用いることなく高速に実現し得るレジスタ装置を提
供することにある。The present invention has been made to solve such a problem, and an object of the present invention is to save the context necessary for accepting an interrupt process and read the context necessary for returning to the original task process on a plurality of buses. It is to provide a register device that can be realized at high speed without using cycles.
【0012】[0012]
1) 請求項1に係るレジスタ装置は、プロセッサに内
蔵されており、プロセッサが割り込み処理を受け付ける
以前のタスク処理のコンテキストを格納した第1レジス
タ装置と、第1レジスタ装置に接続され、割り込み処理
の受け付け時以前に予め割り込み処理に必要な情報が格
納された第2レジスタ装置とを備えており、割り込み処
理の受け付け時に応じて割り込み処理に必要な情報を第
2レジスタ装置が第1レジスタ装置に転送するようにし
たものである。1) A register device according to claim 1 is built in a processor, and a first register device that stores a context of task processing before the processor accepts interrupt processing, and a register device connected to the first register device for interrupt processing A second register device in which information necessary for interrupt processing is stored in advance before reception is provided, and the second register device transfers information necessary for interrupt processing to the first register device in response to the acceptance of interrupt processing. It is something that is done.
【0013】2) 請求項2に係るレジスタ装置は、プ
ロセッサに内蔵され、プロセッサが割り込み処理を受け
付ける以前のタスク処理のコンテキストを格納した第1
レジスタ装置と、第1レジスタ装置に接続された第2レ
ジスタ装置とを備えており、割り込み処理の受け付け時
に応じて第1レジスタ装置が実行中のタスクのコンテキ
ストを第2レジスタ装置に転送するようにしたものであ
る。2) A register device according to a second aspect is built in a processor and stores a context of task processing before the processor accepts interrupt processing.
A register device and a second register device connected to the first register device are provided, and the context of the task being executed by the first register device is transferred to the second register device in response to the acceptance of the interrupt process. It was done.
【0014】3) 請求項3に係るレジスタ装置では、
請求項2のレジスタ装置に於ける第1レジスタ装置が、
コンテキストを格納した第1レジスタと、第1レジスタ
と第2レジスタ装置とに接続されたラッチとを備えるよ
うにしたものであり、しかも割り込み処理の受け付け時
直前に第1レジスタがコンテキストをラッチに転送し、
ラッチは転送されてきた当該コンテキストを割り込み処
理の受け付け時に応じて第2レジスタ装置に転送するよ
うにしている。3) In the register device according to claim 3,
The first register device in the register device according to claim 2,
A first register storing the context and a latch connected to the first register and the second register device are provided, and the first register transfers the context to the latch immediately before the acceptance of the interrupt processing. Then
The latch transfers the transferred context to the second register device in response to the acceptance of the interrupt process.
【0015】4) 請求項4に係るレジスタ装置は、プ
ロセッサに内蔵され、割り込み処理に必要な情報を格納
した第1レジスタ装置と、その出力端が第1レジスタ装
置に接続され、割り込み処理の受け付け時におけるタス
ク処理のコンテキストを格納した第2レジスタ装置とを
備えており、プロセッサが割り込み処理から割り込み処
理の受け付け時におけるタスク処理に復帰する時点に応
じて、第2レジスタ装置がコンテキストを第1レジスタ
装置に転送するようにしたものである。4) A register device according to claim 4 is a first register device which is built in a processor and stores information necessary for interrupt processing, and an output end of which is connected to the first register device to accept interrupt processing. A second register device that stores the context of the task process at the time, and the second register device sets the context to the first register at the time when the processor returns from the interrupt process to the task process at the time of accepting the interrupt process. It is designed to be transferred to the device.
【0016】5) 請求項5に係るレジスタ装置は、プ
ロセッサに内蔵されており、プロセッサが現在実行して
いるタスク処理のコンテキストを格納した第1レジスタ
装置と、その出力端が第1レジスタ装置の第1入力端に
接続され、且つプロセッサが割り込み処理を受け付ける
以前に予め割り込み処理に必要な情報が格納された第2
レジスタ装置と、その入力端が第1レジスタ装置の出力
端に接続され、その出力端が第1レジスタ装置の第2入
力端に接続された第3レジスタ装置とを備えており、し
かも第2レジスタ装置は割り込み処理の受け付け時に応
じて割り込み処理に必要な情報を前記第1レジスタ装置
に転送すると共に、第1レジスタ装置は割り込み処理の
受け付け時に応じて当該受け付け時のタスク処理のコン
テキストを第3レジスタ装置に転送する一方、プロセッ
サが割り込み処理から受け付け時のタスク処理に復帰す
る時点に応じて、第3レジスタ装置がコンテキストを第
1レジスタ装置に転送するようにしたものである。5) A register device according to claim 5 is built in a processor, and a first register device that stores a context of task processing currently being executed by the processor and an output end of the first register device are A second input which is connected to the first input terminal and in which information necessary for interrupt processing is stored in advance before the processor accepts the interrupt processing;
A second register having a register device and an input end connected to an output end of the first register device and an output end connected to a second input end of the first register device; and a second register The device transfers the information necessary for the interrupt processing to the first register device in response to the acceptance of the interrupt process, and the first register device determines the context of the task process at the time of the acceptance of the interrupt process in the third register. While transferring to the device, the third register device transfers the context to the first register device at the time when the processor returns from the interrupt process to the task process at the time of acceptance.
【0017】6) 請求項6に係るレジスタ装置では、
請求項6の第1レジスタ装置が、その第1及び第2入力
端がそれぞれ第2レジスタ装置の出力端及び第3レジス
タ装置の出力端に接続され、且つコンテキストを格納し
た第1レジスタと、第1レジスタと第2レジスタ装置と
の間に接続されたラッチとを備えるようにしたものであ
り、しかも第1レジスタは割り込み処理の受け付け時直
前にコンテキストをラッチに転送し、ラッチは第1レジ
スタより転送されてきたコンテキストを割り込み処理の
受け付け時に応じて第3レジスタ装置に転送するように
している。6) In the register device according to claim 6,
The first register device according to claim 6, wherein the first and second input terminals are respectively connected to the output terminal of the second register device and the output terminal of the third register device, and a first register storing a context, A latch connected between the first register and the second register device is provided. Moreover, the first register transfers the context to the latch immediately before the acceptance of the interrupt processing, and the latch is transferred from the first register. The transferred context is transferred to the third register device in response to the acceptance of the interrupt process.
【0018】[0018]
1) 請求項1に係る発明では、プロセッサが割り込み
処理を受け付けると、第2レジスタ装置は、割り込み処
理に必要な情報をプロセッサの内部バスを経由すること
なく直接第1レジスタ装置へ転送する。1) In the invention according to claim 1, when the processor accepts the interrupt processing, the second register device directly transfers the information necessary for the interrupt processing to the first register device without passing through the internal bus of the processor.
【0019】2) 請求項2に係る発明では、プロセッ
サが割り込み処理を受け付けると、第1レジスタ装置
は、プロセッサの内部バスを経由することなく直接に、
割り込み処理受け付け時におけるタスク処理のコンテキ
ストをプロセッサ内部の第2レジスタ装置へ転送する。
これにより、当該コンテキストの退避が実行されたこと
となる。2) In the invention according to claim 2, when the processor accepts the interrupt processing, the first register device directly directly passes through the internal bus of the processor.
The context of the task processing when the interrupt processing is accepted is transferred to the second register device inside the processor.
As a result, the saving of the context is executed.
【0020】3) 請求項3に係る発明では、プロセッ
サが割り込み処理を受け付ける直前に、第1レジスタが
実行中のタスク処理のコンテキストを直接ラッチに転送
する。更にラッチは、当該コンテキストを割り込み処理
受け付け時に直接第2レジスタ装置へ転送する。従っ
て、割り込み処理受け付け時には、第1レジスタは割り
込み処理に必要な情報を受取ることができる状態にあ
る。3) In the invention according to claim 3, immediately before the processor accepts the interrupt processing, the context of the task processing being executed by the first register is directly transferred to the latch. Further, the latch directly transfers the context to the second register device when the interrupt process is accepted. Therefore, when the interrupt process is accepted, the first register is ready to receive the information necessary for the interrupt process.
【0021】4) 請求項4に係る発明では、プロセッ
サが割り込み処理から割り込み処理受け付け時に実行し
ていたタスク処理へ復帰するとき、第2レジスタ装置
は、プロセッサの内部バスを経由することなく直接に、
当該タスク処理のコンテキストを第1レジスタ装置へ転
送する。4) In the invention according to claim 4, when the processor returns from the interrupt processing to the task processing that was being executed at the time of accepting the interrupt processing, the second register device directly does not go through the internal bus of the processor. ,
The context of the task process is transferred to the first register device.
【0022】5) 請求項5に係る発明では、プロセッ
サが割り込み処理を受け付けると、第1レジスタ装置
が、プロセッサの内部バスを介することなく直接に、割
り込み処理受け付け時におけるタスク処理のコンテキス
トを第3レジスタ装置に転送する。又、同時に、第2レ
ジスタ装置が、同じくプロセッサの内部バスを介するこ
となく直接に、割り込み処理に必要な情報を第1レジス
タ装置に転送する。従って、割り込み処理受け付けと同
時に、第1レジスタ装置に格納された情報は、タスク処
理のコンテキストから上記割り込み処理に必要な情報へ
と切替られ、且つコンテキストの退避も同時に行われた
こととなり、割り込み処理への移行が速やかに完了す
る。5) In the invention according to claim 5, when the processor accepts the interrupt process, the first register device directly determines the context of the task process at the time of accepting the interrupt process without passing through the internal bus of the processor. Transfer to register device. At the same time, the second register device also directly transfers the information necessary for the interrupt processing to the first register device without passing through the internal bus of the processor. Therefore, at the same time when the interrupt processing is accepted, the information stored in the first register device is switched from the context of the task processing to the information necessary for the interrupt processing, and the context is saved at the same time. Will be completed promptly.
【0023】一方、プロセッサが割り込み処理受け付け
時のタスク処理へと復帰するとき、第3レジスタ装置
は、プロセッサの内部バスを介することなく直接に、退
避されていたそのコンテキストを第1レジスタ装置に転
送する。従って、復帰時と同時に、第1レジスタ装置に
格納されていた情報が、割り込み処理に必要な情報から
元のタスク処理のコンテキストへと書き換えられる。On the other hand, when the processor returns to the task processing when the interrupt processing is accepted, the third register device directly transfers the saved context to the first register device without passing through the internal bus of the processor. To do. Therefore, at the same time as the return, the information stored in the first register device is rewritten from the information necessary for the interrupt processing to the context of the original task processing.
【0024】6) 請求項6に係る発明では、プロセッ
サが割り込み処理を受け付ける直前に、第1レジスタが
実行中のタスク処理のコンテキストを直接ラッチに転送
する。更にラッチは、当該コンテキストを割り込み処理
受け付け時に直接第3レジスタ装置へ転送する。従っ
て、割り込み処理受け付け時には、第1レジスタは割り
込み処理に必要な情報を受取ることができる状態にあ
る。6) In the invention according to claim 6, immediately before the processor accepts the interrupt processing, the context of the task processing being executed by the first register is directly transferred to the latch. Further, the latch directly transfers the context to the third register device when interrupt processing is accepted. Therefore, when the interrupt process is accepted, the first register is ready to receive the information necessary for the interrupt process.
【0025】[0025]
【実施例】図1は、この発明の一実施例であるレジスタ
装置の構成を示したブロック図である。本図に於いて、
図4と同一符号は同一の構成要素を示している。本レジ
スタ装置の中核となる部分は、第1レジスタ13、第2
レジスタ12及び第3レジスタ15である。各レジスタ
12、13、15共、プロセッサの内部バス1に接続さ
れている。各レジスタ12、13、15の構成は、次の
通りである。1 is a block diagram showing the structure of a register device according to an embodiment of the present invention. In this figure,
4 that are the same as those in FIG. 4 indicate the same components. The core part of this register device is the first register 13 and the second register.
A register 12 and a third register 15. Each of the registers 12, 13 and 15 is connected to the internal bus 1 of the processor. The configuration of each register 12, 13, 15 is as follows.
【0026】先ず、第2レジスタ12は後述するよう
に、割り込みハンドラの先頭アドレス等の情報(割り込
み処理に必要な情報)を予め格納しておくためのもので
ある。第2レジスタ12には、2つの制御信号2、3が
印加されている。この内、前者2は内部バス1の値を当
該第2レジスタ12に書き込むための制御信号であり、
後者3は第2レジスタ12に格納されている値を内部バ
ス1に読み出すための制御信号である。又、第2レジス
タ12の出力端の一つが第1レジスタ13に接続されて
いる。First, as will be described later, the second register 12 is for preliminarily storing information such as the start address of the interrupt handler (information necessary for interrupt processing). Two control signals 2 and 3 are applied to the second register 12. Of these, the former 2 is a control signal for writing the value of the internal bus 1 into the second register 12,
The latter 3 is a control signal for reading the value stored in the second register 12 to the internal bus 1. Also, one of the output terminals of the second register 12 is connected to the first register 13.
【0027】一方、第1レジスタ13は、プロセッサの
動作に用いるレジスタであり、内部レジスタに対応する
ものである。この第1レジスタ13には、4種類の制御
信号4〜7が印加されている。その内、制御信号4は、
内部バス1の値を当該第1レジスタ13に書き込むため
の制御信号であり、制御信号7は第1レジスタ13に格
納されている値を内部バス1に読み出すための制御信号
である。一方、制御信号5は、第2レジスタ12に格納
されている値(割り込み処理に必要な情報)を当該第1
レジスタ13に転送するための制御信号であり、又、制
御信号6は後述する第2ラッチ16の値を当該第1レジ
スタ13に転送するための制御信号である。On the other hand, the first register 13 is a register used for the operation of the processor and corresponds to the internal register. Four types of control signals 4 to 7 are applied to the first register 13. Among them, the control signal 4 is
The control signal 7 is a control signal for writing the value of the internal bus 1 to the first register 13, and the control signal 7 is a control signal for reading the value stored in the first register 13 to the internal bus 1. On the other hand, as the control signal 5, the value stored in the second register 12 (information necessary for interrupt processing) is set to the first value.
The control signal 6 is a control signal for transferring to the register 13, and the control signal 6 is a control signal for transferring the value of the second latch 16 described later to the first register 13.
【0028】第1レジスタ13と第3レジスタ15との
間には第1ラッチ14が接続されている。この第1ラッ
チ14は、第1レジスタ13から転送されてきた値を第
3レジスタ15に更に転送するためのものである。本ラ
ッチ14に印加されている制御信号8は、第1レジスタ
13に格納されている値を当該第1ラッチ14に転送す
るためのバスクロック信号である。又、このバスクロッ
ク信号8は、第3レジスタ15に格納された値を第2ラ
ッチ16へ転送するためにも用いられる。A first latch 14 is connected between the first register 13 and the third register 15. The first latch 14 is for further transferring the value transferred from the first register 13 to the third register 15. The control signal 8 applied to the main latch 14 is a bus clock signal for transferring the value stored in the first register 13 to the first latch 14. The bus clock signal 8 is also used to transfer the value stored in the third register 15 to the second latch 16.
【0029】第3レジスタ15は、割り込み処理を開始
する迄のコンテキストであるレジスタ値を記憶するため
のものであり、後述するようにコンテキスト退避用のレ
ジスタに該当している。本第3レジスタ15に印加され
ている制御信号9〜11は、次の通りである。即ち、制
御信号9は内部バス1の値を第3レジスタ15に書き込
むためのものであり、制御信号10は第1ラッチ14の
値を第3レジスタ15に転送するための制御信号であ
り、制御信号11は第3レジスタ15に格納された値を
内部バス1へ書き出す為の制御信号である。又、第3レ
ジスタ15の出力端の一端は、第2ラッチ16に接続さ
れている。この第2ラッチ16は、前述した通り、制御
信号6に応じて第3レジスタ15から転送されてきた値
を第1レジスタ13に転送するためのものである。The third register 15 is for storing a register value which is a context until the interrupt processing is started, and corresponds to a context saving register as described later. The control signals 9 to 11 applied to the third register 15 are as follows. That is, the control signal 9 is for writing the value of the internal bus 1 to the third register 15, and the control signal 10 is a control signal for transferring the value of the first latch 14 to the third register 15. The signal 11 is a control signal for writing the value stored in the third register 15 to the internal bus 1. Further, one end of the output end of the third register 15 is connected to the second latch 16. As described above, the second latch 16 is for transferring the value transferred from the third register 15 in response to the control signal 6 to the first register 13.
【0030】ここで図2は、図1に示した本レジスタ装
置を1ビットについて具体的に構成した一例である。図
2中、各符号1.1、12.1〜16.1はそれぞれ図
1中の1及び12〜16に対応している。Here, FIG. 2 is an example in which the register device shown in FIG. 1 is specifically configured for one bit. In FIG. 2, reference numerals 1.1, 12.1 to 16.1 correspond to 1 and 12 to 16 in FIG. 1, respectively.
【0031】又、図3は、図1及び2に示した本レジス
タ装置の動作を示すタイミングチャートである。同図
(a)〜(e)は、各々制御信号2、5、10、6及び
8の値を示している。又、同図(f)〜(k)は、各々
内部バス1の値、第2レジスタ12の値、第1レジスタ
13の値、第1ラッチ14の値、第3レジスタ15の値
及び第2ラッチ16の値を示している。又、同図(l)
は、時間軸を示している。即ち、時刻t22は割り込み
処理に必要な情報を第2レジスタ12に書き込む時刻で
あり、時刻t23はプロセッサが割り込み処理を受け付
けた時刻である。又、時刻t24は割り込みハンドラの
処理から割り込み処理以前に行っていたタスク処理にプ
ロセッサが復帰する時刻であり、時刻t25は再びプロ
セッサが割り込み処理を受け付けた時刻である。FIG. 3 is a timing chart showing the operation of the register device shown in FIGS. (A) to (e) of the same figure show the values of the control signals 2, 5, 10, 6 and 8, respectively. Further, (f) to (k) in the figure respectively show the value of the internal bus 1, the value of the second register 12, the value of the first register 13, the value of the first latch 14, the value of the third register 15, and the second value. The value of the latch 16 is shown. Also, the same figure (l)
Indicates the time axis. That is, time t22 is the time when the information necessary for the interrupt processing is written in the second register 12, and time t23 is the time when the processor accepts the interrupt processing. Further, time t24 is the time at which the processor returns from the processing of the interrupt handler to the task processing performed before the interrupt processing, and time t25 is the time at which the processor again accepts the interrupt processing.
【0032】次に、プロセッサの処理が割り込みハンド
ラの処理へ切替わる場合の動作について、図3を参照し
つつ説明することとする。Next, the operation when the processing of the processor is switched to the processing of the interrupt handler will be described with reference to FIG.
【0033】先ず、プロセッサが割り込み処理以前に処
理しているタスク処理をA系列とし、割り込み処理以降
後に処理する割り込みハンドラの処理をB系列とする。
図3に示すように割り込み処理時(時刻t23)以前に
於いては、第1レジスタ13の値はA1からA2へとA
系列の処理に従った値となる。そしてこの時点では、割
り込み処理を受け付けた後に実行する割り込みハンドラ
に必要な情報(ハンドラの先頭アドレス等)を、時刻t
22の時か、又はそれ以前に制御信号2によって第2レ
ジスタ12に書き込んでおく。図3では、時刻t22に
於いて制御信号2がLレベルからHレベルへ立ち上が
り、内部バス1の値B1が第2レジスタ12に書き込ま
れることとしている。しかも本実施例では、制御信号8
も又時刻t22に於いてHレベルへ立ち上がるため、第
1レジスタ13が格納しているコンテキストの値A2が
第1ラッチ14に転送される。First, the task processing processed by the processor before the interrupt processing is set to the A series, and the processing of the interrupt handler processed after the interrupt processing is set to the B series.
As shown in FIG. 3, before the interrupt processing (time t23), the value of the first register 13 is changed from A1 to A2 by A.
It is a value according to the processing of the series. At this point, information necessary for the interrupt handler to be executed after accepting the interrupt processing (the start address of the handler, etc.) is stored at the time t.
It is written in the second register 12 by the control signal 2 at or before 22. In FIG. 3, at time t22, the control signal 2 rises from the L level to the H level, and the value B1 of the internal bus 1 is written in the second register 12. Moreover, in this embodiment, the control signal 8
Also at time t22, since it rises to the H level, the context value A2 stored in the first register 13 is transferred to the first latch 14.
【0034】次にプロセッサが時刻t23に於いて割り
込み処理を受け付けると、制御信号5がHレベルへ立ち
上がり、その結果、第2レジスタ12が格納している値
B1が第1レジスタ13に転送される。これにより、第
1レジスタ13の値は、タスク処理に必要なコンテキス
ト値A2から割り込みハンドラの実行に必要な値B1へ
と変わり、プロセッサは直ちに割り込みハンドラの処理
を開始する。しかも制御信号10が制御信号5と同期し
てHレベルへ立ち上がるため、第1ラッチ14に格納さ
れていたコンテキストの値A2が第3レジスタ15へ転
送されることとなる。即ち、先のタスク処理に用いられ
ていた第1レジスタ13の値A2は、第1ラッチ14を
経由して、時刻t23に於いて第3レジスタ14にコン
テキストとして退避されたこととなる。このように割り
込み処理が受け付けられると、第2レジスタ12から第
1レジスタ13へ直接割り込み処理に必要な情報が転送
されると共に、第1レジスタ13が有していた先のタス
ク処理のコンテキストも又内部バス1を介せず直接に第
3レジスタ15へ転送されることとなる。When the processor next accepts the interrupt processing at time t23, the control signal 5 rises to the H level, and as a result, the value B1 stored in the second register 12 is transferred to the first register 13. . As a result, the value of the first register 13 changes from the context value A2 required for task processing to the value B1 required for execution of the interrupt handler, and the processor immediately starts processing of the interrupt handler. Moreover, since the control signal 10 rises to the H level in synchronization with the control signal 5, the context value A2 stored in the first latch 14 is transferred to the third register 15. That is, the value A2 of the first register 13 used for the previous task processing is saved as the context in the third register 14 at time t23 via the first latch 14. When the interrupt processing is accepted in this way, the information necessary for the interrupt processing is directly transferred from the second register 12 to the first register 13, and the context of the previous task processing held by the first register 13 is also changed. It is directly transferred to the third register 15 without going through the internal bus 1.
【0035】同様に、割り込みハンドラの処理から先に
実行していたタスク処理に復帰する場合の動作につい
て、図3を参照しつつ説明する。図3に示す通り、割り
込みハンドラの処理が行われている間(時刻t23〜時
刻t24)、第1レジスタ13の値は、割り込みハンド
ラの処理に従って、B1、B2及びB3へと変わる。Similarly, the operation for returning from the interrupt handler process to the previously executed task process will be described with reference to FIG. As shown in FIG. 3, while the processing of the interrupt handler is being performed (time t23 to time t24), the value of the first register 13 changes to B1, B2, and B3 according to the processing of the interrupt handler.
【0036】時刻t24に於いて、割り込みハンドラが
終了すると、制御信号6がHレベルへ立ち上がり、第3
レジスタ15に格納されている先のレジスタ値が、コン
テキストとして第2ラッチ16を経由して、第1レジス
タ13に転送される。尚、第3レジスタ15から第2ラ
ッチ16への転送は、時刻t23の後に最初に制御信号
8がHレベルへ立ち上がる時に実行されている。従っ
て、第1レジスタ13の値は、値B3からA2へと書替
えられ、直ちに元のタスク処理が継続される。この様
に、元のタスク処理への復帰に於いても、内部バス1を
介することなく、元のタスク処理のコンテキストが直接
に第1レジスタ13へと転送される。At time t24, when the interrupt handler ends, the control signal 6 rises to H level and the third
The previous register value stored in the register 15 is transferred to the first register 13 via the second latch 16 as the context. The transfer from the third register 15 to the second latch 16 is executed when the control signal 8 first rises to the H level after time t23. Therefore, the value of the first register 13 is rewritten from the value B3 to A2, and the original task processing is immediately continued. In this way, even when returning to the original task processing, the context of the original task processing is directly transferred to the first register 13 without going through the internal bus 1.
【0037】更に、時刻t25に於いて再びプロセッサ
が割り込み処理を受け付けた場合には、時刻t22に於
いて第2レジスタ12に格納されている割り込み処理に
必要な情報B1が同様に第1レジスタ13に転送され、
以下、時刻t23に於いてプロセッサの処理が割り込み
ハンドラの処理へと切替わった場合の動作と同じ動作が
行われる。Further, when the processor again accepts the interrupt processing at the time t25, the information B1 necessary for the interrupt processing stored in the second register 12 at the time t22 is also stored in the first register 13 similarly. Transferred to
Thereafter, at time t23, the same operation is performed as when the processing of the processor is switched to the processing of the interrupt handler.
【0038】以上述べた様に、本実施例では割り込み処
理に必要な情報を予め第2レジスタ12に転送している
ため、従来装置のように割り込み受け付け毎にプロセッ
サ内部に持つ割り込みハンドラ等の情報を内部バス1を
経由してレジスタに転送する必要がなく、割り込み受付
後直ちに割り込みハンドラを開始することができる。し
かも、プロセッサが割り込み処理を受け付ける毎に生成
される制御信号5、10によって、割り込み処理以前に
実行していたタスク処理のコンテキストとしてのレジス
タ情報が第3レジスタ15に退避され、従来装置のよう
にプロセッサの外部のメモリ上にスタックとして当該情
報を退避する必要がなくなる。これにより、退避するレ
ジスタの個数分だけ外部メモリをアクセスする必要がな
くなり、割り込み処理受付後直ちに割り込みハンドラを
実行できる。As described above, in this embodiment, since the information necessary for the interrupt processing is transferred to the second register 12 in advance, the information of the interrupt handler and the like held in the processor every time the interrupt is accepted as in the conventional device. Need not be transferred to the register via the internal bus 1, and the interrupt handler can be started immediately after receiving the interrupt. Moreover, by the control signals 5 and 10 generated each time the processor accepts the interrupt processing, the register information as the context of the task processing executed before the interrupt processing is saved in the third register 15, and like the conventional device. It is not necessary to save the information as a stack on the memory outside the processor. As a result, it is not necessary to access the external memory by the number of registers to be saved, and the interrupt handler can be executed immediately after receiving the interrupt processing.
【0039】更に、割り込みハンドラから元のタスク処
理への復帰の際、従来装置のように退避したコンテキス
トをプロセッサ外部のメモリから読み込むことなく、退
避されたコンテキストを第3レジスタ15から第1レジ
スタ13へと直接転送するだけで行うことができ、メモ
リアクセスによるオーバヘッドが生じることなく、割り
込みハンドラからの復帰を行うことができる。Further, when returning from the interrupt handler to the original task processing, the saved context is read from the third register 15 to the first register 13 without reading the saved context from the memory outside the processor as in the conventional device. It is possible to return from the interrupt handler without incurring the overhead of memory access.
【0040】尚、割り込みのネスティングが2階層以上
の場合には、1階層目の割り込みハンドラへの切替え及
び復帰を本レジスタ装置を用いて行い、2階層目以上の
割り込みハンドラの切替え時については、制御信号5、
6及び10をマスクした上で、従来の割り込み処理への
切替えと同様に、プロセッサ外部のメモリ上にスタック
として先のタスク処理のコンテキストを退避することと
すればよい。即ち、2階層目以上の割り込み処理への切
替え及び復帰については、従来の機能を用いることとな
る。When the nesting of interrupts is of two or more layers, switching to and returning from the interrupt handler of the first layer is performed by using this register device, and when switching the interrupt handler of the second layer and above, Control signal 5,
After masking 6 and 10, the context of the previous task processing may be saved as a stack in a memory outside the processor, as in the case of switching to the conventional interrupt processing. That is, the conventional function is used for switching to and returning from the interrupt processing of the second and higher layers.
【0041】又、高速な切替えが必要とされる特定の割
り込みハンドラへの切替え時のみ、本レジスタ装置の第
2及び第3レジスタ12、15を利用することも可能で
ある。It is also possible to use the second and third registers 12 and 15 of this register device only when switching to a specific interrupt handler that requires high-speed switching.
【0042】又、本実施例のように割り込み処理への切
替え及び復帰を全て第2及び第3レジスタ12、15を
用いて行うのではなく、割り込み処理に必要な情報を転
送する時にのみ第1及び第2レジスタ13、12を用い
るようにしてもよく、又、タスク処理のコンテキストの
退避又は復帰にのみ第1及び第3レジスタ13、15を
用いるようにすることも可能である。これらの場合に
は、内部バス1を介した情報の転送が一部利用されるこ
ととなる。Further, as in the present embodiment, switching to interrupt processing and restoration are not all performed by using the second and third registers 12 and 15, but only when the information necessary for interrupt processing is transferred. Alternatively, the first and third registers 13 and 15 may be used, or the first and third registers 13 and 15 may be used only to save or restore the context of the task processing. In these cases, transfer of information via the internal bus 1 will be partially used.
【0043】[0043]
1) 請求項1に係る発明では、割り込み処理の受け付
けの度に行う割り込み処理に必要な情報の内部レジスタ
への書き込みを、内部バスを用いることなく、直接に第
2レジスタ装置から第1レジスタ装置へと書き込むこと
によって実現することができる。これにより、書き込み
時のオーバーヘッドを削減することができ、割り込み処
理への切替え動作の高速化に大きく寄与することができ
る。1) In the invention according to claim 1, the information necessary for the interrupt processing performed each time the interrupt processing is accepted is written in the internal register directly from the second register device to the first register device without using the internal bus. It can be achieved by writing to. As a result, the overhead at the time of writing can be reduced, which can greatly contribute to the speeding up of the switching operation to the interrupt processing.
【0044】2) 請求項2及び3に係る発明では、割
り込み処理受け付け後、割り込み処理へ切替えるために
必要とされる現タスク処理のコンテキスト退避を、従来
装置の様にプロセッサ外部のメモリへアクセスすること
なく、しかもプロセッサ内部のバスをアクセスすること
なく、直接に第1レジスタ装置から第2レジスタ装置へ
と転送することによって速やかに実現することができ
る。しかも、割り込み処理受け付け後、直ちに当該退避
を実現し得る。この様に本発明は、コンテキスト退避時
のオーバーヘッドを格段に削減することができ、割り込
み処理への高速な切替えの実現に大きく寄与することが
できる。2) In the inventions according to claims 2 and 3, after accepting the interrupt processing, the context saving of the current task processing required for switching to the interrupt processing is accessed to the memory outside the processor like the conventional apparatus. This can be realized promptly by directly transferring the data from the first register device to the second register device without accessing the bus inside the processor. Moreover, the saving can be realized immediately after accepting the interrupt processing. As described above, the present invention can significantly reduce the overhead at the time of saving the context, and can greatly contribute to the realization of high-speed switching to the interrupt processing.
【0045】又、コンテキストの退避を直ちに完了させ
ることができることから、次の処理として必要な割り込
み処理に必要な情報の第1レジスタ装置への書き込みを
も速やかに実行することが可能となる。Further, since the saving of the context can be completed immediately, it becomes possible to promptly write the information necessary for the interrupt processing required as the next processing to the first register device.
【0046】3) 更に請求項3及び6に係る発明で
は、受け付け時直前に予め第1レジスタに格納されたタ
スク処理のコンテキストをラッチへ転送しておくことが
できるため、コンテキストの退避及び割り込み処理に必
要な情報の書き込みを、割り込み処理の受け付けと同時
にしかも確実に実行することができる。3) Further, in the inventions according to claims 3 and 6, since the context of the task processing stored in the first register in advance just before the acceptance can be transferred to the latch, the saving of the context and the interrupt processing It is possible to surely execute writing of information necessary for the same as the reception of the interrupt processing.
【0047】4) 請求項4に係る発明では、割り込み
処理受け付け時のタスク処理のコンテキストを第1レジ
スタ装置と直接に接続された第2レジスタ装置に格納し
ているので、当該第2レジスト装置から第1レジスタ装
置へ上記コンテキストを直接転送するだけで、上記タス
ク処理への復帰を直ちに実現することができる。その
際、外部メモリへのアクセスや内部バスのアクセスを必
要としないため、復帰時のオーバーヘッドを格段に削減
することができ、復帰後、速やかに元のタスク処理へと
移行することが可能となる。この様に本発明は、割り込
み処理からの復帰を高速化することができる効果を奏す
る。4) In the invention according to claim 4, since the context of the task process at the time of accepting the interrupt process is stored in the second register device directly connected to the first register device, A return to the task processing can be realized immediately by simply transferring the context directly to the first register device. At that time, since access to the external memory or access to the internal bus is not required, the overhead at the time of restoration can be significantly reduced, and after the restoration, it is possible to immediately shift to the original task processing. . As described above, the present invention has the effect of speeding up recovery from interrupt processing.
【0048】5) 請求項5及び6に係る発明では、割
り込み処理受け付け後、第1レジスタ装置から第3レジ
スタ装置へタスク処理のコンテキストを直接転送するこ
とによって、直ちに当該コンテキストの退避を完了させ
ることができる。その際、プロセッサ内部の第3レジス
タ装置を利用しているため外部メモリへのアクセスが必
要なく、しかもプロセッサ内部のバスをもアクセスする
必要がないため、コンテキスト退避に要するオーバーヘ
ッドを大幅に削減できる。更に割り込み処理に必要な情
報をも、プロセッサ内部の第2レジスタ装置から内部バ
スをアクセスすることなく直接に第1レジスタ装置へ当
該情報を転送することによって、第1レジスタ装置へ書
き込むことができるため、当該書込みに要するオーバー
ヘッドを従来装置に比して格段に削減することができ
る。5) In the invention according to claims 5 and 6, after the interrupt processing is accepted, the context of the task processing is directly transferred from the first register device to the third register device, thereby immediately completing the saving of the context. You can At this time, since the third register device inside the processor is used, there is no need to access the external memory, and since it is not necessary to access the bus inside the processor, the overhead required for context saving can be greatly reduced. Further, information necessary for interrupt processing can be written in the first register device by directly transferring the information from the second register device inside the processor to the first register device without accessing the internal bus. The overhead required for the writing can be significantly reduced as compared with the conventional device.
【0049】しかも割り込み処理から元のタスク処理へ
の復帰に際しても、第3レジスタ装置から第1レジスタ
装置へ当該タスク処理のコンテキストを直接的に転送す
るだけで良いため、復帰に要するオーバーヘッドをも格
段に削減することができる。Moreover, when returning from the interrupt processing to the original task processing, it is sufficient to directly transfer the context of the task processing from the third register device to the first register device, so that the overhead required for the recovery is significantly increased. Can be reduced to
【0050】この様に本発明は、割り込み処理への高速
な切替えと割り込み処理からの高速な復帰とを共に実現
することができる。As described above, the present invention can realize both high-speed switching to interrupt processing and high-speed recovery from interrupt processing.
【図1】この発明の一実施例であるレジスタ装置の構成
を示すブロック図である。FIG. 1 is a block diagram showing a configuration of a register device according to an embodiment of the present invention.
【図2】1ビットでのレジスタ装置の具体的構成を示し
た回路図である。FIG. 2 is a circuit diagram showing a specific configuration of a 1-bit register device.
【図3】レジスタ装置の動作を示したタイミングチャー
トである。FIG. 3 is a timing chart showing the operation of the register device.
【図4】従来のレジスタ装置の構成を示したブロック図
である。FIG. 4 is a block diagram showing a configuration of a conventional register device.
1 内部バス 12 第2レジスタ 13 第1レジスタ 14 第1ラッチ 15 第3レジスタ 16 第2ラッチ 1 Internal Bus 12 2nd Register 13 1st Register 14 1st Latch 15 3rd Register 16 2nd Latch
─────────────────────────────────────────────────────
─────────────────────────────────────────────────── ───
【手続補正書】[Procedure amendment]
【提出日】平成5年1月11日[Submission date] January 11, 1993
【手続補正1】[Procedure Amendment 1]
【補正対象書類名】明細書[Document name to be amended] Statement
【補正対象項目名】0005[Name of item to be corrected] 0005
【補正方法】変更[Correction method] Change
【補正内容】[Correction content]
【0005】コンテキストの退避が終了すると、割り込
みベクタに従って外部から割込みハンドラの先頭アドレ
スを読み込み、その値を内部レジスタ13A内のプログ
ラムカウンタ(図示せず)に書き込む。これにより、割
り込みハンドラの処理がプロセッサ内で開始される。[0005] When the saving of the context is finished, the beginning of the interrupt handler from the outside in accordance with the interrupt <br/> seen vector address
Read the value into a program counter (not shown) in the internal register 13A. As a result, the processing of the interrupt handler is started in the processor.
【手続補正2】[Procedure Amendment 2]
【補正対象書類名】明細書[Document name to be amended] Statement
【補正対象項目名】0007[Correction target item name] 0007
【補正方法】変更[Correction method] Change
【補正内容】[Correction content]
【0007】このように、従来のレジスタ装置では、割
り込み処理受付後、割り込み処理への移行に当たって、
実行中タスクのコンテキストを外部メモリ21に退避し
た上で、割り込みハンドラ等への処理切替えを行ってい
る。又、退避されたコンテキストを内部レジスタ13A
に再び読み込むことによって、元のタスク処理への復帰
を実現している。As described above, in the conventional register device, in the transition to the interrupt processing after receiving the interrupt processing,
The context of the task being executed is saved in the external memory 21, and then the process is switched to the interrupt handler or the like. In addition, the context saved is stored in the internal register 13A.
By re-reading into, the return to the original task processing is realized.
【手続補正3】[Procedure 3]
【補正対象書類名】明細書[Document name to be amended] Statement
【補正対象項目名】0009[Correction target item name] 0009
【補正方法】変更[Correction method] Change
【補正内容】[Correction content]
【0009】その一つは、割り込み処理受付により割り
込みハンドラ等への処理切替えが行われる度に、内部レ
ジスタの個々の値をコンテキストとして外部メモリに書
き出し退避する必要があった。又、元のタスク処理に復
帰する際にも、退避されたコンテキストを各々システム
バス等を介して内部レジスタに読み込む処理が必要であ
った。従って、仮にn個のレジスタ情報よりなるコンテ
キストを退避し、且つ復帰時に読み込みを行うには、2
n回のバスサイクルが必要であった。One of the problems is that each time the processing is switched to the interrupt handler or the like upon receipt of the interrupt processing, it is necessary to write and save each value of the internal register as a context in the external memory. Further, when returning to the original task processing, it is necessary to read the saved contexts into the internal registers via the system bus or the like. Therefore, if save the context of n pieces of register information, the and reads at the time of return, 2
N bus cycles were required.
【手続補正4】[Procedure amendment 4]
【補正対象書類名】図面[Document name to be corrected] Drawing
【補正対象項目名】図3[Name of item to be corrected] Figure 3
【補正方法】変更[Correction method] Change
【補正内容】[Correction content]
【図3】 [Figure 3]
Claims (6)
あって、 前記プロセッサが割り込み処理を受け付ける以前のタス
ク処理のコンテキストを格納した第1レジスタ装置と、 前記第1レジスタ装置に接続され、前記割り込み処理の
受け付け時以前に予め前記割り込み処理に必要な情報が
格納された第2レジスタ装置とを備え、 前記第2レジスタ装置は前記割り込み処理の受け付け時
に応じて前記割り込み処理に必要な情報を第1レジスタ
装置に転送することを特徴とするレジスタ装置。1. A register device built in a processor, the first register device storing a context of a task process before the processor accepts an interrupt process, and the interrupt process connected to the first register device. A second register device in which information necessary for the interrupt processing is stored in advance before the acceptance of the interrupt request, and the second register device stores the information necessary for the interrupt process in the first register in response to the acceptance of the interrupt process. Register device characterized by transferring to a device.
あって、 前記プロセッサが割り込み処理を受け付ける以前のタス
ク処理のコンテキストを格納した第1レジスタ装置と、 前記第1レジスタ装置に接続された第2レジスタ装置と
を備え、 前記第1レジスタ装置は前記割り込み処理の受け付け時
に応じて実行中のタスク処理の前記コンテキストを第2
レジスタ装置に転送することを特徴とするレジスタ装
置。2. A register device built into a processor, the first register device storing a context of task processing before the processor accepts an interrupt process, and a second register connected to the first register device. A first register device, and the first register device sets the context of the task process being executed in response to the interrupt process to the second context.
A register device characterized by transferring to a register device.
ッチとを備えており、 前記第1レジスタは前記割り込み処理の受け付け時直前
に前記コンテキストを前記ラッチに転送し、 前記ラッチは前記第1レジスタより転送されてきた前記
コンテキストを前記割り込み処理の受け付け時に応じて
前記第2レジスタ装置に転送することを特徴とする請求
項2記載のレジスタ装置。3. The first register device comprises a first register storing the context, and a latch connected to the first register and a second register device, the first register being the interrupt. The context is transferred to the latch immediately before the acceptance of processing, and the latch transfers the context transferred from the first register to the second register device in response to acceptance of the interrupt processing. The register device according to claim 2.
あって、 割り込み処理に必要な情報を格納した第1レジスタ装置
と、 その出力端が前記第1レジスタ装置に接続され、前記割
り込み処理の受け付け時におけるタスク処理のコンテキ
ストを格納した第2レジスタ装置とを備え、 前記プロセッサが前記割り込み処理から前記割り込み処
理の受け付け時におけるタスク処理に復帰する時点に応
じて、前記第2レジスタ装置が前記コンテキストを前記
第1レジスタ装置に転送することを特徴とするレジスタ
装置。4. A register device built in a processor, the first register device storing information necessary for interrupt processing, and an output terminal thereof connected to the first register device, when the interrupt processing is accepted. A second register device that stores the context of the task processing in the above, and the second register device stores the context in response to a time point when the processor returns from the interrupt process to the task process at the time of accepting the interrupt process. A register device for transferring to a first register device.
あって、 前記プロセッサが現在実行しているタスク処理のコンテ
キストを格納した第1レジスタ装置と、 その出力端が前記第1レジスタ装置の第1入力端に接続
され、前記プロセッサが割り込み処理を受け付ける以前
に予め前記割り込み処理に必要な情報が格納された第2
レジスタ装置と、 その入力端が前記第1レジスタ装置の出力端に接続さ
れ、その出力端が前記第1レジスタ装置の第2入力端に
接続された第3レジスタ装置とを備え、 前記第2レジスタ装置は前記割り込み処理の受け付け時
に応じて前記割り込み処理に必要な情報を前記第1レジ
スタ装置に転送すると共に、 前記第1レジスタ装置は前記割り込み処理の受け付け時
に応じて当該受け付け時のタスク処理のコンテキストを
前記第3レジスタ装置に転送する一方、 前記プロセッサが前記割り込み処理から前記受け付け時
のタスク処理に復帰する時点に応じて、前記第3レジス
タ装置は格納する前記コンテキストを前記第1レジスタ
装置に転送することを特徴とするレジスタ装置。5. A register device built in a processor, the first register device storing a context of task processing currently being executed by the processor, and its output end being a first input of the first register device. A second device which is connected to the end and stores information necessary for the interrupt processing in advance before the processor accepts the interrupt processing.
A third register device having an input end connected to an output end of the first register device and an output end connected to a second input end of the first register device; The device transfers information necessary for the interrupt processing to the first register device in response to the acceptance of the interrupt process, and the first register device responds to the acceptance of the interrupt process in the context of the task process at the time of acceptance. Is transferred to the third register device, while the third register device transfers the stored context to the first register device in response to a time point when the processor returns from the interrupt process to the task process at the time of acceptance. A register device characterized by:
置の出力端及び前記第3レジスタ装置の出力端に接続さ
れ、前記コンテキストを格納した第1レジスタと、 前記第1レジスタと第2レジスタ装置との間に接続され
たラッチとを備えており、 前記第1レジスタは前記割り込み処理の受け付け時直前
に前記コンテキストを前記ラッチに転送し、 前記ラッチは前記第1レジスタより転送されてきた前記
コンテキストを前記割り込み処理の受け付け時に応じて
前記第3レジスタ装置に転送することを特徴とする請求
項5記載のレジスタ装置。6. The first register device has a first and a second input end connected to an output end of the second register device and an output end of the third register device, respectively, and a first storing the context. A register and a latch connected between the first register and a second register device, wherein the first register transfers the context to the latch immediately before the reception of the interrupt processing, and the latch 6. The register device according to claim 5, wherein said context transferred from said first register is transferred to said third register device in response to the acceptance of said interrupt processing.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP4234538A JPH0683639A (en) | 1992-09-02 | 1992-09-02 | Register device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP4234538A JPH0683639A (en) | 1992-09-02 | 1992-09-02 | Register device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0683639A true JPH0683639A (en) | 1994-03-25 |
Family
ID=16972599
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP4234538A Pending JPH0683639A (en) | 1992-09-02 | 1992-09-02 | Register device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0683639A (en) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US8020169B2 (en) | 2003-01-09 | 2011-09-13 | Japan Science And Technology Agency | Context switching system having context cache and a register file for the save and restore context operation |
| US8327122B2 (en) | 2006-03-02 | 2012-12-04 | Samsung Electronics Co., Ltd. | Method and system for providing context switch using multiple register file |
| JP2023526788A (en) * | 2020-05-18 | 2023-06-23 | アドバンスト・マイクロ・ディバイシズ・インコーポレイテッド | Method and system for utilizing a master shadow physical register file |
-
1992
- 1992-09-02 JP JP4234538A patent/JPH0683639A/en active Pending
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US8020169B2 (en) | 2003-01-09 | 2011-09-13 | Japan Science And Technology Agency | Context switching system having context cache and a register file for the save and restore context operation |
| US8327122B2 (en) | 2006-03-02 | 2012-12-04 | Samsung Electronics Co., Ltd. | Method and system for providing context switch using multiple register file |
| JP2023526788A (en) * | 2020-05-18 | 2023-06-23 | アドバンスト・マイクロ・ディバイシズ・インコーポレイテッド | Method and system for utilizing a master shadow physical register file |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPH05250305A (en) | Data transfer control system | |
| JPH09330236A (en) | Microprocessor and its peripheral devices | |
| JPH0683639A (en) | Register device | |
| EP0385136B1 (en) | Microprocessor cooperating with a coprocessor | |
| JPH0696007A (en) | DMA transfer method | |
| JPH11110214A (en) | Instruction control system and method | |
| JPS61165170A (en) | Bus controlling system | |
| JPS6242301B2 (en) | ||
| JP2604604B2 (en) | Stack control device | |
| JPH03218524A (en) | Instruction processor | |
| JPS6391756A (en) | Partial write instruction processing system for storage device | |
| JPH03201032A (en) | Arithmetic processing unit | |
| JP2581144B2 (en) | Bus control device | |
| JPH03241442A (en) | Store buffer control system | |
| JPS62297954A (en) | Memory control system | |
| JPS61117651A (en) | Interface device | |
| JPS58222348A (en) | Information processor | |
| JPH0273747A (en) | Circuit controlling exchange processing waiting queue with priority | |
| JPH09160786A (en) | Microprocessor | |
| JPH0152775B2 (en) | ||
| JPH0317756A (en) | Storage access system | |
| JPS6246353A (en) | Memory read system | |
| JPS60218146A (en) | Storage device address control system | |
| JPH05210695A (en) | Data processor | |
| JPH0685154B2 (en) | Intermediate buffer control method |