JPS60129841A - Interruption control circuit - Google Patents

Interruption control circuit

Info

Publication number
JPS60129841A
JPS60129841A JP23922283A JP23922283A JPS60129841A JP S60129841 A JPS60129841 A JP S60129841A JP 23922283 A JP23922283 A JP 23922283A JP 23922283 A JP23922283 A JP 23922283A JP S60129841 A JPS60129841 A JP S60129841A
Authority
JP
Japan
Prior art keywords
stack pointer
interrupt
stack
register
main memory
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
JP23922283A
Other languages
Japanese (ja)
Inventor
Sumio Ozawa
小澤 純雄
Yutaka Takano
豊 高野
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 JP23922283A priority Critical patent/JPS60129841A/en
Publication of JPS60129841A publication Critical patent/JPS60129841A/en
Pending legal-status Critical Current

Links

Landscapes

  • Executing Machine-Instructions (AREA)

Abstract

PURPOSE:To make separately a saving area at every interruption level by providing a stack pointer, a register and a sequence circuit for controlling them. CONSTITUTION:A register 33 is provided for saving a stack pointer 31, a new stack pointer is stored from a main storage device 1 and a stack is provided newly. Thereafter, by saving an instruction counter IC3 and a status register STR4, including the stack pointer, too, the stack can be separated at every interruption level, saving positions of the registers such as the IC3, the STR4, etc. related to the interrupting operation and the registers which are not related directly to the interruption, such as a general register GR5, etc. can be discriminated, and switching of a task in an operating system, etc. is controlled easily.

Description

【発明の詳細な説明】 産業上の利用分野 本発明はコンピュータの割り込み制御回路に関するもの
である。
DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to an interrupt control circuit for a computer.

従来例の構成とその問題点 近年集積回路の集積密度が増大する中で特にマイクロコ
ンピュータの高機能化、高性能化の傾向が顕著であり、
割り込み制御回路も高性能化が重要となって来た。
Conventional configurations and their problems In recent years, as the integration density of integrated circuits has increased, there has been a particularly noticeable trend towards higher functionality and higher performance of microcomputers.
Improving the performance of interrupt control circuits has also become important.

以下図面を参照しながら従来の割り込み制御回路につい
て説明を行なう。
A conventional interrupt control circuit will be explained below with reference to the drawings.

第1図は従来の割シ込み制御回路を示すものである。第
1図において1は主記憶装置、2は上記主記憶装置上に
設けられたスタック領域にアクセスするアドレスを蓄え
たスタックポインタ、3は命令カウンタ(以下ICと記
す)、4は状態レジスタ(以下STRと記す)、5は汎
用レジスタ(以下GRと記す)、6は割り込み信号7を
受けつけることにより起動され割り込み制御を実行する
順序回路、8は上記順序回路6から出力されるアドレス
信号9と上記スタックポインタ2から出力されるアドレ
ス信号1oとを選択して上記主記憶装置1に対するアド
レス信号11を生成するマルチプレクサ、12はデータ
バスで、上記IC。
FIG. 1 shows a conventional interrupt control circuit. In FIG. 1, 1 is the main memory, 2 is a stack pointer that stores addresses for accessing the stack area provided on the main memory, 3 is an instruction counter (hereinafter referred to as IC), and 4 is a status register (hereinafter referred to as IC). 5 is a general-purpose register (hereinafter referred to as GR), 6 is a sequential circuit that is activated by receiving the interrupt signal 7 and executes interrupt control, and 8 is the address signal 9 output from the sequential circuit 6 and the above. A multiplexer selects the address signal 1o output from the stack pointer 2 and generates an address signal 11 for the main memory device 1; 12 is a data bus; and 12 is a data bus connected to the IC.

STR,GRの内容をそれぞれバッファ13゜14.1
5を通して上記主記憶装置1に転送するだめのものであ
る。
Buffer the contents of STR and GR respectively at 13°14.1
5 to the main storage device 1.

以上の様に構成された割シ込み制御回路について以下そ
の動作について説明する。まず割9込み信号7が順序回
路6に入力されると、順序回路6は主記憶装置1上に設
けられたスタック領域にIC3,5TR4,GR5の内
容を格納するためマルチプレクサ8を信号16で制御し
てスタックポインタ2の内容を主記憶装置1にアドレス
として出力する。まずバッファ13を制御信号5ELB
により選択してICの内容をデータバス12に出力して
主記憶装置1上にICの値を格納する。
The operation of the interrupt control circuit configured as described above will be explained below. First, when the interrupt signal 7 is input to the sequential circuit 6, the sequential circuit 6 controls the multiplexer 8 with the signal 16 in order to store the contents of IC3, 5TR4, and GR5 in the stack area provided on the main memory 1. and outputs the contents of stack pointer 2 to main memory 1 as an address. First, the buffer 13 is controlled by the control signal 5ELB.
, the contents of the IC are output to the data bus 12, and the value of the IC is stored in the main memory 1.

次に順序回路6はスタックポインタ2に対しカウント制
御信号17を出力し、スタックポインタの値を1だけ減
じる。1だけ減じられた内容をもつスタックポインタ2
の内容はマルチプレクサ8を通って主記憶装置1にアド
レス信号として与えられる。この時バッファ14が制御
信号5ELCにより選択され5TR4の内容がデータバ
ス12に出力され、主記憶装置1上でスタックポインタ
2の新しい内容で示される記憶位置に格納される。次に
順序回路6は主記憶装置1の特定アドレスを信号9より
出力し、マルチプレクサ8を通って主記憶装置1に与え
、主記憶装置1上の該当する記憶位置よシ内容をデータ
バス12に読み出しIC3に格納する。同様にして順序
回路6は信号9に別の特定アドレスを出力し主記憶装置
1からS TR4の新しい値を読み出し5TII(4に
格納する。この様にして割り込み信号7を受け付けてか
らの割り込み制御動作が行なわれるが、割り込み処理プ
ログ2ムを開始する前には更に汎用レジスタの退避を行
なわなければならない。この汎用レジスタの退避動作は
プログラムで行なわれるため、退避動作中に更にレベル
の高い割り込みの生じる場合がある。
Next, the sequential circuit 6 outputs a count control signal 17 to the stack pointer 2, and decrements the value of the stack pointer by one. Stack pointer 2 with contents decremented by 1
The contents of are given to the main memory device 1 as an address signal through the multiplexer 8. At this time, the buffer 14 is selected by the control signal 5ELC, and the contents of 5TR4 are output to the data bus 12 and stored in the storage location indicated by the new contents of the stack pointer 2 on the main memory 1. Next, the sequential circuit 6 outputs the specific address of the main memory 1 from the signal 9, passes it through the multiplexer 8, and gives it to the main memory 1, and transfers the contents of the corresponding memory location on the main memory 1 to the data bus 12. Read and store in IC3. Similarly, the sequential circuit 6 outputs another specific address to the signal 9, reads the new value of STR4 from the main memory 1, and stores it in 5TII (4. In this way, the interrupt control after accepting the interrupt signal 7 is performed. The operation is performed, but before starting the interrupt handling program, the general-purpose register must be saved.Since this general-purpose register saving operation is performed by the program, a higher-level interrupt may occur during the saving operation. may occur.

第2図はこの時のスタックの状態を表わしたものである
。図において2○はスタックポインタ、21は主記憶装
置の内容を示す。第2図は割り込みがA点で受け付けら
れその時のICとSTRが主記憶装置上のスタックに退
避させられ、割り込み処理プログラムにより汎用レジス
タGHQ 、 GRlを退避している時に更にレベルの
高い割り込みが受け付けられその時のICが退避させら
れた時の状態を示している。
FIG. 2 shows the state of the stack at this time. In the figure, 2◯ indicates a stack pointer, and 21 indicates the contents of the main memory. Figure 2 shows that an interrupt is accepted at point A, the current IC and STR are saved to the stack on the main memory, and while the general-purpose registers GHQ and GRl are being saved by the interrupt processing program, an interrupt of a higher level is accepted. This shows the state when the IC is evacuated at that time.

この様に従来の割り込み制御回路によれば、割り込み時
点のICとSTRの退避のための領域と汎用レジスタ等
の直接コンピュータの割り込み動作と関係のないレジス
タの退避領域とが共通になっているため、これらが混然
一体となって区別がつかず、オペレーティングシステム
等で退避させられたIC,STR及び汎用レジスタの内
容とを操作して、タスクの切換え等の処理を行なうこと
ができないという欠点を持っていた。
In this way, according to the conventional interrupt control circuit, the area for saving the IC and STR at the time of an interrupt and the area for saving registers such as general-purpose registers that are not directly related to the interrupt operation of the computer are common. The drawback is that these are mixed together and cannot be distinguished, and it is not possible to perform tasks such as task switching by manipulating the contents of the IC, STR, and general-purpose registers saved by the operating system, etc. had.

発明の目的 本発明は上記欠点に鑑み、割り込みレベル毎に退避領域
を個別に作ることの出来る割り込み制御回路を提供する
ことを目的とするものであるO発明の構成 本発明は、スタックポインタとレジスタとこれある。
OBJECTS OF THE INVENTION In view of the above drawbacks, it is an object of the present invention to provide an interrupt control circuit that can individually create a save area for each interrupt level. And this is it.

実施例の説明 以下本発明の一実施例について図面を参照しながら説明
する。第3図は本発明の一実施例における割り込み制御
回路の構成を示すものである0第3図において、1は主
記憶装置、3はIC。
DESCRIPTION OF EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings. FIG. 3 shows the configuration of an interrupt control circuit in an embodiment of the present invention. In FIG. 3, 1 is a main memory device, and 3 is an IC.

4はSTR,5はGR,7は割り込み信号、8はマルチ
プレクサ、13,14.15は後述する順序回路3oに
よって制御されるバッファ、12はデータバスで以上は
第1図の構成と同じものである。31は主記憶装置1上
に設けられたスタック領域にアクセスするためのアドレ
スを蓄えたスタックポインタで格納信号32によりデー
タノくス12」二のデータを格納することができるもの
であり、33はスタックポインタ31の出力を信号34
の11il制御によって格納するレジスタで、その出力
は)くノファ35を介してデータバス12に出力される
03oは割り込み信号7を受け付けることによって動作
を開始し、バッファ13,14,15.35の制御信号
5ETA、5ETB、5ETC,5ETD、 スタック
ポインタ31のカウント制御信号17.スタックポイン
タ31の格納信号32.主記憶装置1上の特定アドレス
を示す信号9等を出力する順序回路である。
4 is an STR, 5 is a GR, 7 is an interrupt signal, 8 is a multiplexer, 13, 14, and 15 are buffers controlled by a sequential circuit 3o, which will be described later, and 12 is a data bus, which is the same as the configuration shown in FIG. be. 31 is a stack pointer that stores an address for accessing a stack area provided on the main memory device 1, and can store data in the data node 12'' by a storage signal 32; The output of pointer 31 is sent to signal 34
03o is a register that stores data under the control of 11il, and its output is output to the data bus 12 via the kunofa 35. 03o starts operation by accepting the interrupt signal 7, and controls the buffers 13, 14, 15, and 35. Signals 5ETA, 5ETB, 5ETC, 5ETD, stack pointer 31 count control signal 17. Storage signal 32 of stack pointer 31. This is a sequential circuit that outputs a signal 9 indicating a specific address on the main memory device 1, etc.

以上の様に構成された割り込み制御回路について以下そ
の動作について説明する。
The operation of the interrupt control circuit configured as described above will be explained below.

捷ず割シ込み信号7が順序回路30で受け付けられると
順序回路3○はスタックポインタ31の内容をレジスタ
33に信号34の制御によって格納する。
When the interrupt signal 7 is received by the sequential circuit 30, the sequential circuit 30 stores the contents of the stack pointer 31 in the register 33 under the control of the signal 34.

次に信号9に主記憶装置1上の特定アドレスを出力し、
マルチプレクサを介して主記憶装置1にアクセスし、該
当記憶位置より内容をデータバス12に読み出し、格納
信号32の制御によりスタックポインタ31上に格納す
る。これより順序回路3゜は信号16によりマルチプレ
クサ8をスタックポインタ31側に切シ換えスタックポ
インタ31の内容をアドレス信号11上に出力し主記憶
装置1にアクセスし、まず5ELA信号によりバッファ
35を選択しレジスタ33の内容をデータバス12を介
して該当記憶位置に書き込む。この書き込み動作終了後
、更にスタックポインタ31に対しカウント制御信号1
γを出力しその内容を1だけ減じさせ、5ELB信号に
よりバッファ13を選択しICを同様にして該当記憶位
置に書き込む。STRに対しても同様の操作が繰り返え
される。以降”ICa 、5TR4に新しい値を主記憶
装置1から読み込む動作は従来例と同様である。
Next, output a specific address on the main memory device 1 to the signal 9,
The main memory device 1 is accessed via the multiplexer, the contents are read out from the corresponding memory location onto the data bus 12, and stored on the stack pointer 31 under the control of the storage signal 32. From this, the sequential circuit 3° switches the multiplexer 8 to the stack pointer 31 side by the signal 16, outputs the contents of the stack pointer 31 on the address signal 11, accesses the main memory 1, and first selects the buffer 35 by the 5ELA signal. The contents of the register 33 are then written to the corresponding storage location via the data bus 12. After this write operation is completed, a count control signal 1 is sent to the stack pointer 31.
γ is output, its contents are decreased by 1, the buffer 13 is selected by the 5ELB signal, and the IC is written to the corresponding storage location in the same manner. Similar operations are repeated for STR. Thereafter, the operation of reading new values into ICa and 5TR4 from the main memory 1 is the same as in the conventional example.

これらの動作が終了することにより割り込み処理プログ
ラムが起動し、最初に汎用レジスタ6の退避が行なわれ
るが、この時に新たにレベルの高い割り込みが受け付け
られたとした時の主記憶装置1上のスタックの状態を第
4図に示す。
When these operations are completed, the interrupt processing program is started and the general-purpose register 6 is first saved. At this time, if a new high-level interrupt is accepted, the stack on the main memory 1 will be saved. The state is shown in FIG.

第4図において41はスタックポインタ、42は主記憶
装置1上のスタックの内容である。図中A点で割り込み
が入り、その時のスタックポインタ、IC,STR等が
退避させられ、割り込み処理プログラムで汎用レジスタ
の転送が行なわれてGRo、GRlが退避させられてい
る。この時B点で新たに高いレベルの割り込みが入った
とするとその時のIC,STR等の退避には新たにスタ
ックが作られ以前の退避領域とは別の記憶位置に退避さ
せられる。
In FIG. 4, 41 is a stack pointer, and 42 is the contents of the stack on the main memory 1. An interrupt occurs at point A in the figure, the stack pointer, IC, STR, etc. at that time are saved, and the interrupt processing program transfers the general-purpose registers, and GRo and GRl are saved. If a new high-level interrupt occurs at point B at this time, a new stack is created to save the IC, STR, etc. at that time, and they are saved to a storage location different from the previous save area.

以上の様に本実施例によれば、スタックポインタ31の
退避用にレジスタ33を設は新しいスタックポインタを
主記憶装置から格納しスタックを新設した後にスタック
ポインタも含めI C、STRを退避することにより、
各割り込みレベル毎にスタックを分離すると七ができ、
割り込み動作に関連するICやSTRなとのレジスタと
GRなどの様に直接割り込みと関係のないレジスタの退
避位置を識別出来る様になり、オペレーティングシステ
ム等におけるタスク切換え等の制御が容易化される。
As described above, according to this embodiment, the register 33 is provided to save the stack pointer 31, the new stack pointer is stored from the main memory, and after a new stack is created, the IC and STR including the stack pointer are saved. According to
Separating the stack for each interrupt level creates seven,
It becomes possible to identify the save locations of registers such as ICs and STRs related to interrupt operations and registers such as GR that are not directly related to interrupts, making it easier to control task switching in the operating system and the like.

発明の効果 本発明の割り込み制御回路は、スタックポインタとレジ
スタとこれらを制御する順序回路とを設けることによシ
、割シ込みレベル毎に退避領域を個別に作ることができ
その実用的効果は大きい。
Effects of the Invention By providing a stack pointer, a register, and a sequential circuit for controlling these, the interrupt control circuit of the present invention can create separate save areas for each interrupt level, and its practical effects are as follows. big.

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

第1図は従来の割り込み制御回路を示すブロック図、第
2図は従来の割り込み制御回路で割り込み動作を行なっ
た時のスタックの状態を示す状態図、第3図は本発明の
一実施例における割り込み制御回路を示すブロック図、
第4図は同実施例における割り込み動作時でのスタック
の状態を示す状態図である。 31・・・・・・スタックポインタ、3o・・・・・順
序回路、33・・・・・・レジスタ。 代理人の氏名 弁理士 中 尾 敏 男 はが1名晃1
図 第2図 第3図 第4図
FIG. 1 is a block diagram showing a conventional interrupt control circuit, FIG. 2 is a state diagram showing the state of the stack when an interrupt operation is performed in the conventional interrupt control circuit, and FIG. 3 is a block diagram showing a stack state in an embodiment of the present invention. A block diagram showing the interrupt control circuit,
FIG. 4 is a state diagram showing the state of the stack during interrupt operation in the same embodiment. 31...Stack pointer, 3o...Sequential circuit, 33...Register. Name of agent: Patent attorney Toshio Nakao, 1 person, 1 person, Akira 1
Figure 2 Figure 3 Figure 4

Claims (1)

【特許請求の範囲】[Claims] スタックポインタと、レジスタと、割り込み信号を受け
つけることにより上記スタックポインタの内容を上記レ
ジスタに転送し、主記憶上より上記割り込み信号に対応
する値を上記スタックポインタに転送し、上記スタック
ポインタの内容の示す主記憶上の記憶位置に上記レジス
タの内容を格納する制御を行なう順序回路とを備えたこ
とを特徴とする割り込み制御回路。
By receiving the stack pointer, register, and interrupt signal, the contents of the stack pointer are transferred to the register, the value corresponding to the interrupt signal is transferred from main memory to the stack pointer, and the contents of the stack pointer are transferred to the stack pointer. An interrupt control circuit comprising: a sequential circuit that controls storing the contents of the register at a storage location on main memory shown in FIG.
JP23922283A 1983-12-19 1983-12-19 Interruption control circuit Pending JPS60129841A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP23922283A JPS60129841A (en) 1983-12-19 1983-12-19 Interruption control circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP23922283A JPS60129841A (en) 1983-12-19 1983-12-19 Interruption control circuit

Publications (1)

Publication Number Publication Date
JPS60129841A true JPS60129841A (en) 1985-07-11

Family

ID=17041559

Family Applications (1)

Application Number Title Priority Date Filing Date
JP23922283A Pending JPS60129841A (en) 1983-12-19 1983-12-19 Interruption control circuit

Country Status (1)

Country Link
JP (1) JPS60129841A (en)

Similar Documents

Publication Publication Date Title
JP2545482B2 (en) Interface device transfer parameter setting method
JPH02267634A (en) Interrupt system
US4095268A (en) System for stopping and restarting the operation of a data processor
JPS60129841A (en) Interruption control circuit
JPH0668725B2 (en) Device for responding to interrupt condition in data processing system and method for responding to asynchronous interrupt condition
JP2643931B2 (en) Information processing device
JPH0754467B2 (en) Data processing device
JP2585905B2 (en) Multitask execution device
JPS603229B2 (en) Information processing method
JPH0377137A (en) Information processor
JPH06309169A (en) Information processor
JPS607529A (en) Buffer memory device
JPH0347536B2 (en)
JPS62184560A (en) Input/output buffer controller
JPS6120139A (en) Interruption control system
JPH0333934A (en) Register saving/recovering system
JPH0447350A (en) Main storage read/response control
JPS6352240A (en) Data processor
JP2803270B2 (en) SCSI host adapter circuit
JP2501393B2 (en) Direct memory access device
JPH0578859B2 (en)
JP2003186666A (en) Microcomputer and dma control circuit
JPS63132368A (en) Interrupting system for multiprocessor
JPH05224953A (en) Device and method for controlling interruption
JPH02183342A (en) Interruption controller