JPH0548492B2 - - Google Patents

Info

Publication number
JPH0548492B2
JPH0548492B2 JP29531786A JP29531786A JPH0548492B2 JP H0548492 B2 JPH0548492 B2 JP H0548492B2 JP 29531786 A JP29531786 A JP 29531786A JP 29531786 A JP29531786 A JP 29531786A JP H0548492 B2 JPH0548492 B2 JP H0548492B2
Authority
JP
Japan
Prior art keywords
exception
memory
attribute information
code
microprogram
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 - Lifetime
Application number
JP29531786A
Other languages
Japanese (ja)
Other versions
JPS63147235A (en
Inventor
Koji Saito
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.)
NEC Corp
Original Assignee
Nippon Electric 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 Nippon Electric Co Ltd filed Critical Nippon Electric Co Ltd
Priority to JP29531786A priority Critical patent/JPS63147235A/en
Publication of JPS63147235A publication Critical patent/JPS63147235A/en
Publication of JPH0548492B2 publication Critical patent/JPH0548492B2/ja
Granted legal-status Critical Current

Links

Description

【発明の詳細な説明】[Detailed description of the invention]

〔産業上の利用分野〕 本発明は仮想計算機方式をとるマイクロプログ
ラム制御の情報処理装置に関し、特に例外割込み
方式に関する。 〔従来の技術〕 従来、この種の情報処理装置は、装置が仮想計
算機として動作している時、例外を検出すると、
例外割込み処理を行なう特定のマイクロプログラ
ムを起動し、起動されたマイクロプログラムは発
生した例外の種類を判定して、その例外の種類に
従つて仮想計算機のモードで例外割込み処理を行
なうか、実計算機のモード(仮想計算機のモー
ド)で例外割込み処理を行なうかを決定してい
た。 〔発明が解決しようとする問題点〕 上述した従来の情報処理装置は、マイクロプロ
グラムが例外の種類を判定し、装置が仮想計算機
のモードで動作している時に仮想計算機モードで
直接例外割込み処理を行なうか実計算機のモード
で例外割込み処理を行なうかを決定し、仮想計算
機のモードでは直接処理できない例外のときに
は、マイクロプログラムでVM(仮想計算機モー
ド)フラグをリセツトすることにより仮想計算機
のモードから実計算機のモードへモード遷移を行
なつているため、性能の低下、マイクロプログラ
ムのステツプ数増加を招くという欠点がある。 〔問題点を解決するための手段〕 本発明の情報処理装置は、 装置が仮想計算機として動作していることを示
すVMモードフラグと、 処理すべき命令の命令語やオペランドに関する
メモリへのアクセス例外や、命令の実行によつて
発生する例外を検出する例外検出手段と、 例外検出手段で検出された例外検出信号を例外
コードに変換するエンコード手段と、 エンコード手段によつて生成された例外コード
によつてアドレスを与えられ、該例外コードに対
応した例外処理を行なう一連のマイクロプログラ
ムの先頭アドレス、属性情報ならびにVMモード
フラグをリセツトするか否かの信号を出力するメ
モリデコーダと、 メモリデコーダから出力された属性情報を保持
し、マイクロプログラムに該属性情報を表示する
属性表示手段と、 複数のマイクロ命令語が格納されている制御記
憶を有し、メモリデコーダから出力された先頭ア
ドレスによつてマイクロ命令語を順次出力する制
御記憶手段とを有している。 〔作 用〕 装置がVMモードで動作している時、例外検出
手段で検出された例外が例外コードに変換されこ
の例外コードでメモリデコーダを引き例外コード
に対応した例外処理を行なう一連のマイクロプロ
グラムが起動されて、例外処理を行なうソフトプ
ログラムに通知する割込みコードおよび該割込み
コードの属性からなる属性情報が属性表示手段を
用いてマイクロプログラムに通知される。このと
き、処理すべき例外がVMモードで直接処理でき
ない場合、VMモードフラグがメモリデコーダの
出力でリセツトされ、VMモードから実計算機モ
ードに自動的にモード遷移が行なわれる。このよ
うに、例外の種類の判定、VMモードフラグのリ
セツトがマイクロプログラムによらずに行なわれ
るので割込み処理を行なう一連のマイクロプログ
ラムの処理性能を上げることができる。 〔実施例〕 次に、本発明の実施例について図面を参照して
説明する。 第1図は本発明の情報処理装置の一実施例を示
すブロツク図、第2図は第1図中のメモリデコー
ダ3のデータ形式を示す図、第3図は第1図中の
属性表示手段4である属性表示レジスタのデータ
形式を示す図である。 本情報処理装置は、例外検出手段1と、エンコ
ード手段2と、メモリデコーダ3と、属性表示手
段4と、制御記憶手段5と、VMモードフラグ6
とを有している。 例外検出手段1は本情報処理装置で処理すべき
ソフトウエア命令の命令語やオペランドに関する
メモリ(図示せず)へのアクセス例外や命令の実
行によつて発生する演算例外などを検出する回路
で、検出した16本の例外信号ex0〜ex15を信号線1
00を介してエンコード手段2に与える。 エンコード手段2はエンコーダ20と例外レジ
スタ21から構成される。エンコーダ20は例外
検出信号ex0〜ex15をプライオリテイを取つて4ビ
ツトでコード化し、信号線200を介して例外コ
ードEiを例外レジスタ21に出力する。例外レジ
スタ21の保持する例外コードEiは信号線201
を介してメモリデコーダ3にアドレス信号として
与えられる。次表はエンコーダ20の真理値表で
ある。
[Industrial Application Field] The present invention relates to a microprogram-controlled information processing device using a virtual computer method, and particularly to an exception interrupt method. [Prior Art] Conventionally, this type of information processing device, when an exception is detected when the device is operating as a virtual computer,
A specific microprogram that handles exception interrupts is started, and the launched microprogram determines the type of exception that has occurred, and depending on the type of exception, either handles the exception interrupt in virtual machine mode or in real computer mode. mode (virtual machine mode) to determine whether to handle exception interrupts. [Problems to be Solved by the Invention] In the conventional information processing device described above, a microprogram determines the type of exception, and when the device is operating in virtual machine mode, directly performs exception interrupt processing in virtual machine mode. If the exception cannot be directly handled in virtual machine mode, the microprogram resets the VM (virtual machine mode) flag and executes it from virtual machine mode. Since mode transition is performed to the computer mode, there are drawbacks such as a decrease in performance and an increase in the number of microprogram steps. [Means for solving the problem] The information processing device of the present invention has a VM mode flag indicating that the device is operating as a virtual machine, and a memory access exception related to the instruction word and operand of the instruction to be processed. an exception detection means for detecting an exception that occurs due to the execution of an instruction; an encoding means for converting an exception detection signal detected by the exception detection means into an exception code; Therefore, a memory decoder is provided with an address and outputs the start address of a series of microprograms that perform exception processing corresponding to the exception code, attribute information, and a signal indicating whether to reset the VM mode flag; and an output from the memory decoder. It has an attribute display means for holding attribute information and displaying the attribute information on the microprogram, and a control memory storing a plurality of microinstruction words, and has a control memory that stores a plurality of microinstruction words. and control storage means for sequentially outputting command words. [Function] When the device is operating in VM mode, an exception detected by the exception detection means is converted into an exception code, and this exception code is used to trigger a memory decoder to execute a series of microprograms that performs exception processing corresponding to the exception code. is activated, and attribute information consisting of an interrupt code to be notified to a software program that performs exception processing and attributes of the interrupt code is notified to the microprogram using an attribute display means. At this time, if the exception to be handled cannot be handled directly in VM mode, the VM mode flag is reset by the output of the memory decoder, and the mode is automatically changed from VM mode to real computer mode. In this way, since the determination of the type of exception and the reset of the VM mode flag are performed without using the microprogram, the processing performance of a series of microprograms that perform interrupt processing can be improved. [Example] Next, an example of the present invention will be described with reference to the drawings. FIG. 1 is a block diagram showing an embodiment of the information processing apparatus of the present invention, FIG. 2 is a diagram showing the data format of the memory decoder 3 in FIG. 1, and FIG. 3 is an attribute display means in FIG. 1. 4 is a diagram showing the data format of the attribute display register No. 4. FIG. This information processing device includes an exception detection means 1, an encoding means 2, a memory decoder 3, an attribute display means 4, a control storage means 5, and a VM mode flag 6.
It has The exception detection means 1 is a circuit that detects access exceptions to memory (not shown) related to instruction words and operands of software instructions to be processed by the information processing device, arithmetic exceptions generated by execution of instructions, etc. Connect the detected 16 exception signals e x0 to e x15 to signal line 1.
00 to the encoding means 2. The encoding means 2 is composed of an encoder 20 and an exception register 21. The encoder 20 prioritizes the exception detection signals e x0 to e x15 , encodes them into 4 bits, and outputs the exception code Ei to the exception register 21 via the signal line 200. The exception code Ei held by the exception register 21 is connected to the signal line 201
is applied to the memory decoder 3 as an address signal. The following table is a truth table for encoder 20.

【表】【table】

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

以上説明したように本発明は、各例外毎に、例
外処理を行なう一連のマイクロプログラムの先頭
アドレス、属性情報、処理すべき例外がVMモー
ドで直接処理できるか否かの情報をメモリ(メモ
リデコーダ)に予め記憶しておき、装置がVMモ
ードで動作している時、例外検出手段で検出され
た例外コードに変換し、この例外コードでメモリ
デコーダを引き例外コードに対応した例外処理を
行なう一連のマイクロプログラムを起動し、例外
コードに対応するソフトプログラムに通知する割
込みコードおよび該割込みコードの属性からなる
属性情報を属性表示手段を用いてマイクロプログ
ラムに通知し、さらに処理すべき例外がVMモー
ドで直接処理できない時、VMモードフラグをメ
モリデコーダの出力でリセツトし、VMモードか
ら実計算機モードに自動的にモード遷移を行なう
ことにより、割込み処理を行なう一連のマイクロ
プログラムの処理性能を上げることができる効果
がある。
As explained above, the present invention stores, for each exception, the start address of a series of microprograms that perform exception handling, attribute information, and information on whether or not the exception to be handled can be directly handled in VM mode in memory (memory decoder). ), and when the device is operating in VM mode, it is converted into an exception code detected by the exception detection means, and this exception code is used to draw the memory decoder and perform exception processing corresponding to the exception code. The interrupt code to be notified to the software program corresponding to the exception code and the attribute information consisting of the attributes of the interrupt code are notified to the microprogram using the attribute display means, and the exception to be handled is determined to be in VM mode. By resetting the VM mode flag with the output of the memory decoder and automatically transitioning from VM mode to real computer mode, the processing performance of a series of microprograms that perform interrupt processing can be improved. There is an effect that can be done.

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

第1図は本発明の情報処理装置の一実施例を示
すブロツク図、第2図は第1図中のメモリデコー
ダ3のデータ形式を示す図、第3図は第1図中の
属性表示手段4である属性表示レジスタのデータ
形式を示す図である。 1……例外検出手段、2……エンコード手段、
3……メモリデコーダ、4……属性表示手段、5
……制御記憶手段、6……VMモードフラグ、2
0……エンコーダ、21……例外レジスタ、50
……アドレス回路、51……アドレスレジスタ、
52……制御記憶、53……制御レジスタ、10
0,200,201,300〜302,400,
500〜504,600〜602,700……信
号線。
FIG. 1 is a block diagram showing an embodiment of the information processing apparatus of the present invention, FIG. 2 is a diagram showing the data format of the memory decoder 3 in FIG. 1, and FIG. 3 is an attribute display means in FIG. 1. 4 is a diagram showing the data format of the attribute display register No. 4. FIG. 1... Exception detection means, 2... Encoding means,
3...Memory decoder, 4...Attribute display means, 5
...Control storage means, 6...VM mode flag, 2
0...Encoder, 21...Exception register, 50
... Address circuit, 51 ... Address register,
52...Control memory, 53...Control register, 10
0,200,201,300~302,400,
500-504,600-602,700...Signal line.

Claims (1)

【特許請求の範囲】 1 仮想計算機方式をとるマイクロプログラム制
御の情報処理装置において、 装置が仮想計算機として動作していることを示
すVMモードフラグと、 処理すべき命令の命令語やオペランドに関する
メモリへのアクセス例外や、命令の実行によつて
発生する例外を検出する例外検出手段と、 例外検出手段で検出された例外検出信号を例外
コードに変換するエンコード手段と、 エンコード手段によつて生成された例外コード
によつてアドレスを与えられ、該例外コードに対
応した例外処理を行なう一連のマイクロプログラ
ムの先頭アドレス、属性情報ならびにVMモード
フラグをリセツトするか否かの信号を出力するメ
モリデコーダと、 メモリデコーダから出力された属性情報を保持
し、マイクロプログラムに該属性情報を表示する
属性表示手段と、 複数のマイクロ命令語の格納されている制御記
憶を有し、メモリデコーダから出力された先頭ア
ドレスによつてマイクロ命令語を順次出力する制
御記憶手段とを有することを特徴とする情報処理
装置。
[Scope of Claims] 1. In a microprogram-controlled information processing device that uses a virtual computer system, a VM mode flag indicating that the device is operating as a virtual computer, and memory information regarding instruction words and operands of instructions to be processed. exception detection means for detecting access exceptions and exceptions generated by instruction execution; encoding means for converting the exception detection signal detected by the exception detection means into an exception code; a memory decoder that is given an address by an exception code and outputs the start address of a series of microprograms that performs exception processing corresponding to the exception code, attribute information, and a signal indicating whether to reset a VM mode flag; It has an attribute display means for holding attribute information output from the decoder and displaying the attribute information on the microprogram, and a control memory storing a plurality of microinstruction words, and has a control memory that stores attribute information output from the memory decoder. An information processing apparatus characterized by comprising: control storage means for sequentially outputting microinstructions.
JP29531786A 1986-12-10 1986-12-10 Information processor Granted JPS63147235A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP29531786A JPS63147235A (en) 1986-12-10 1986-12-10 Information processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP29531786A JPS63147235A (en) 1986-12-10 1986-12-10 Information processor

Publications (2)

Publication Number Publication Date
JPS63147235A JPS63147235A (en) 1988-06-20
JPH0548492B2 true JPH0548492B2 (en) 1993-07-21

Family

ID=17819042

Family Applications (1)

Application Number Title Priority Date Filing Date
JP29531786A Granted JPS63147235A (en) 1986-12-10 1986-12-10 Information processor

Country Status (1)

Country Link
JP (1) JPS63147235A (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0754472B2 (en) * 1987-06-10 1995-06-07 富士通株式会社 Interrupt processing control method

Also Published As

Publication number Publication date
JPS63147235A (en) 1988-06-20

Similar Documents

Publication Publication Date Title
JP4703718B2 (en) Selective subroutine return structure
US3938101A (en) Computer system with post execution I/O emulation
JPH0766365B2 (en) Co-processor control system
JPH0546383A (en) Data processor
JPH07120338B2 (en) Method for a data processor to coordinate the execution of instructions by a coprocessor and the data processor
JPS6250934A (en) Interrupting control system of processor
JPS6212529B2 (en)
JPH0548492B2 (en)
JPH0550015B2 (en)
JP4916151B2 (en) Parallel computing device
JPH0222413B2 (en)
JPS62293432A (en) Information processor
JP2562838B2 (en) Processor and store buffer control method
JPS63147236A (en) Information processor
JPH07105043A (en) Program error detection device
JPH01125633A (en) System for debugging multi-processing system
JPS6221131B2 (en)
JPS63214856A (en) Data protection control system for data processing unit
JPH01175052A (en) Microaddress register mechanism
JPS59188900A (en) Data processor
JPS6155731A (en) Processor provided with condition code discriminating function
JPH01223563A (en) Information processor
JPS60193047A (en) Mode checking system of microprogram
JPS6247752A (en) Counter circuit for number of instruction executions of information processor
JPS61112240A (en) Data processor