JPS60193046A - Detecting system for instruction exception - Google Patents

Detecting system for instruction exception

Info

Publication number
JPS60193046A
JPS60193046A JP4881784A JP4881784A JPS60193046A JP S60193046 A JPS60193046 A JP S60193046A JP 4881784 A JP4881784 A JP 4881784A JP 4881784 A JP4881784 A JP 4881784A JP S60193046 A JPS60193046 A JP S60193046A
Authority
JP
Japan
Prior art keywords
instruction
microprogram
gate
state
register
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.)
Granted
Application number
JP4881784A
Other languages
Japanese (ja)
Other versions
JPH0258648B2 (en
Inventor
Hiroshi Takada
洋 高田
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP4881784A priority Critical patent/JPS60193046A/en
Publication of JPS60193046A publication Critical patent/JPS60193046A/en
Publication of JPH0258648B2 publication Critical patent/JPH0258648B2/ja
Granted legal-status Critical Current

Links

Abstract

PURPOSE:To start a microprogram for execution of instructions immediately after a macroinstruction is fetched by using a memory means which stores the proper information on the macroinstruction. CONSTITUTION:Each bit of a state flag 7 is used to display each type of state of a computer related to execution of each macroinstruction and then set and reset by a normal microinstruction in response to each displayed state. Then each word of a memory 5 which is read out with an operation code defined as an address is prescribed as an exception state of the corresponding instruction. Under such conditions, the corresponding bit of the flag 7 is set at ''1'' and other bits are set at ''0''. The data read out of the memory 5 is held at a register 6, and a pair of corresponding bits of the register 6 and the flag 7 is used as the input of a gate of an AND gate 8. The all outputs of the gate 8 are supplied to an OR gate 9.

Description

【発明の詳細な説明】 (a)発明の技術分野 本発明はマイクロプログラム制御計算機に係り、特にマ
クロ命令の命令例外を検出する為の制御方式に関する。
DETAILED DESCRIPTION OF THE INVENTION (a) Technical Field of the Invention The present invention relates to a microprogram control computer, and particularly to a control method for detecting an instruction exception of a macro instruction.

山)技術の背景 電子計算機の所謂中央処理装置を構成する方式として、
マイクロプログラム制御方式が広く使用されている。マ
イクロプログラム制御方式は、回路の減少、機能変更の
容易性等の利点を有するが、一般に所謂専用回路を持つ
方式に比較して処理速度が遅くなるので、速度向上の為
には適当に専用回路を導入する必要がある。
M) Technical Background As a method for configuring the so-called central processing unit of an electronic computer,
Microprogram control methods are widely used. The microprogram control method has advantages such as fewer circuits and ease of changing functions, but generally the processing speed is slower than a method with a so-called dedicated circuit. It is necessary to introduce

(C)従来技術と問題点 一般に、計算機の命令仕様にはそれぞれ例外状態が規定
されている。例外状態とは、その命令の実行を中止すべ
き何等かの状態であって、例えば非特権モードの状態に
ある計算機において特権命令を実行することは、特権命
令を設けた目的から当然抑止されなければならないから
、このような状態は特権命令に規定されるべき例外状態
の一つとなる。
(C) Prior Art and Problems In general, each computer instruction specification defines an exception state. An exceptional state is a state in which the execution of the instruction should be stopped; for example, the execution of a privileged instruction in a computer that is in a non-privileged mode must naturally be prevented from being executed due to the purpose of providing the privileged instruction. Therefore, such a state is one of the exceptional states that should be specified for privileged instructions.

各命令の実行において、その命令に規定されている例外
状態をチェックし、例外状態が存在する場合には、通常
その命令の実行をしないで、所定の状態情報の設定等を
行つた後、例外状態の発生に対する後始末の処理を行う
プログラムを開始できるように所謂割り出しをする。
When executing each instruction, the exception state specified in that instruction is checked, and if an exception state exists, the instruction is not executed normally, but after setting the predetermined state information, etc., the exception state is checked. A so-called index is made so that a program that performs cleanup processing in response to the occurrence of the condition can be started.

従来マイクロプログラム制御計算機においては、各命令
(マクロ命令)ごとのマイクロプログラムは第1図に概
略の処理の流れを示すように構成され、命令の本来の機
能の実行に先立って、所定の例外状態の存否をチェック
し、何れの例外状態も無い場合に初めて本来の機能を実
行するようになっていた。そのため、例外状態は本来発
生することが少ないにもかかわらず、その総てをチェッ
クするための固定的な処理時間が命令実行に常に挿入さ
れ、計算機の性能を低下する要因となっていた。
In conventional microprogram control computers, the microprogram for each instruction (macro instruction) is structured as shown in the schematic processing flow shown in Figure 1. , and only executes its original function when there is no exception condition. Therefore, even though exceptional states rarely occur, fixed processing time is always inserted into instruction execution to check all of them, which causes a decline in computer performance.

(d)発明の目的 従って本発明の目的は、上記のような従来のマイクロプ
ログラム計算機の問題点を解決し、簡単な構成で、計算
機の性能を改善することのできる命令例外検出方式を提
供するにある。
(d) Object of the Invention Accordingly, an object of the present invention is to provide an instruction exception detection method that can solve the problems of conventional microprogram computers as described above and improve the performance of the computer with a simple configuration. It is in.

(e)発明の構成 この目的は本発明によれば、マクロ命令の実行をマイク
ロプログラムによって制御するマイクロプログラム制御
計算機の命令例外検出方式において、各マクロ命令の固
有情報を格納する記憶手段、該マクロ命令のオペレーシ
ョンコードをアドレスとして該記憶手段にアクセスする
手段、該アクセス手段により読み出す上記固有情報の保
持手段、上記計算機の状態情報の保持手段、該両保持手
段の対応するビットの論理積信号を発生する手段、該信
号により特定のマイクロプログラムへ分岐を起こす手段
を有することを特徴とする命令例外検出方式によって達
成することができる。
(e) Structure of the Invention According to the present invention, in an instruction exception detection method for a microprogram controlled computer in which execution of macro instructions is controlled by a microprogram, a storage means for storing unique information of each macro instruction; means for accessing the storage means using the operation code of the instruction as an address; means for holding the unique information read by the access means; means for holding the state information of the computer; and generating an AND signal of corresponding bits of both holding means. This can be achieved by an instruction exception detection method characterized by having means for causing a branch to a specific microprogram based on the signal.

(f)発明の実施例 第2図は本発明の実施例を示すブロック図である。lは
マイクロプログラムを格納する制御記憶装置、2はその
アドレスレジスタ、3は制御記憶装置1からフェッチさ
れるマイクロ命令を保持するマイクロ命令レジスタであ
り、通常図示されない主記憶装置等からフェッチされる
マクロ命令のオペレーションコード(レジスタ4に保持
されるものとする。)によみで、そのマクロ命令の実行
を制御するマイクロプログラムの入口アドレスが決定さ
れる。但し、本発明の適用においてマイクロ命令及びそ
の制御方式は公知の何れでもよく、特定の方式に限定さ
れるものではない。 “本発明において、レジスタ4の
オペレーションコードは、例外条件記憶装置5をアクセ
スする為にも使用される。この記憶装置5の1語の各ビ
ットは状態フラグ7の各ビットに対応するビット数を持
つ。
(f) Embodiment of the invention FIG. 2 is a block diagram showing an embodiment of the invention. 1 is a control storage device that stores a microprogram, 2 is its address register, and 3 is a microinstruction register that holds microinstructions fetched from the control storage device 1, and macros that are usually fetched from a main storage device, etc., not shown. The entry address of the microprogram that controls the execution of the macro instruction is determined by reading the operation code of the instruction (assumed to be held in register 4). However, in the application of the present invention, any known microinstruction and its control method may be used, and the microinstruction is not limited to a specific method. “In the present invention, the operation code of register 4 is also used to access exception condition storage 5. Each bit of one word of this storage 5 has the number of bits corresponding to each bit of status flag 7. have

状態フラグ7の各ビットはそれぞれマクロ命令実行に関
連する計算機の各種状態を表示するのに使用され、各ビ
ットはそれが表示する状態に応じて、通常マイクロ命令
でセット/リセットされる。
Each bit of the status flag 7 is used to indicate various states of the computer related to macroinstruction execution, and each bit is usually set/reset by a microinstruction depending on the state it indicates.

それらのビットが表す状態の例としては、前記の非特権
モードの他に、例えば非マルチプロセシングモード、拡
張命令不使用モード、その他がある。
Examples of states represented by these bits include, in addition to the non-privileged mode described above, a non-multiprocessing mode, a mode that does not use extended instructions, and others.

これらの例で説明すれば、状態フラグの該当ビットは土
偶の各モードにおいて”1″にセットされ、例えば特権
モードは非特権モード・ビットを0”にセットすること
により表示する。
To explain with these examples, the relevant bit of the status flag is set to "1" in each mode of the clay figurine, and for example, the privileged mode is indicated by setting the non-privileged mode bit to 0.

オペレージリンコードをアドレスとして読み出される記
憶装置5の各語は、該当する命令の例外状態として規定
されている状態の、状態フラグ7のビットに対応するビ
ットを”1”とし、その他のビットは0″とする。
For each word of the storage device 5 that is read using the operating link code as an address, the bit corresponding to the bit of the status flag 7 in the state defined as the exception state of the corresponding instruction is set to "1", and the other bits are set to 0. ”.

例えば特権命令については、状態フラグ7の非特権モー
ド・ビットに対応するビットを”1”とする。又、この
命令が拡張命令モードにおいてのみ使用可能な特権命令
であれば、更に拡張命令不使用モード・ビットに対応す
るビットも”l”とする。一方、この命令がマルチプロ
セシングか否かにかかわらず使用できる(即ち、この条
件は例外状態として規定されていない)特権命令であれ
ば、非マルチプロセシングモード・ビットに対応するビ
ットは0″にしなければならない。
For example, for a privileged instruction, the bit corresponding to the non-privileged mode bit of status flag 7 is set to "1". Furthermore, if this instruction is a privileged instruction that can only be used in the extended instruction mode, the bit corresponding to the extended instruction unused mode bit is also set to "1". On the other hand, if this instruction is a privileged instruction that can be used regardless of multiprocessing (i.e., this condition is not defined as an exception state), the bit corresponding to the non-multiprocessing mode bit must be set to 0''. Must be.

又、記憶装置5の非特権命令に対応する各語における、
非特権モード・ビットに対応するビットは総て0″にし
ておく。
Furthermore, in each word corresponding to a non-privileged instruction in the storage device 5,
All bits corresponding to non-privileged mode bits are set to 0''.

記憶装置5の読み出しデータはレジスタ6に保持される
。レジスタ6と状態フラグ7との各対応するビット対は
、それぞれ論理積ゲート8の1個のゲートの入力となる
。論理積ゲート8の全出力は論理和ゲート9に入力する
。従って、状態フラグ7及び記憶装置5の各語が上記の
ように設定されているとすると、例えば非特権モードに
おいて成る特権命令がフェッチされると、非特権モード
・ビット及びこれに対応するレジスタ6のビットが共に
1”であるので、そのビット対の論理積条件が成立し、
論理和ゲート9の出力である例外信号10が1″となる
Read data from the storage device 5 is held in the register 6. Each corresponding bit pair of register 6 and status flag 7 becomes an input to one gate of AND gate 8, respectively. All outputs of AND gate 8 are input to OR gate 9. Therefore, assuming that the status flag 7 and each word of the storage device 5 are set as described above, when a privileged instruction consisting of, for example, a non-privileged mode is fetched, the non-privileged mode bit and the corresponding register 6 Both bits are 1'', so the AND condition of the bit pair is satisfied,
The exception signal 10, which is the output of the OR gate 9, becomes 1''.

例外信号10によりレジスタ11の内容が制御記憶アド
レスレジスタ2にセットされる。レジスタ11には予め
固定の例外処理マイクロプログラム入口アドレスがセッ
トされている。従って、マイクロプログラムは例外処理
を開始することができる。レジスタ11の内容は、マク
ロ命令によって定まるアドレスがセットされる方式とす
ることもできる。
The contents of register 11 are set in control storage address register 2 by exception signal 10 . A fixed exception handling microprogram entry address is set in the register 11 in advance. Therefore, the microprogram can initiate exception handling. The contents of the register 11 may be set to an address determined by a macro instruction.

以上の制御方式により、第1図に示したマイクロプログ
ラム処理の流れ図に対応する処理の流れは第3図に示す
流れ図のようになる。
With the above control system, the flow of processing corresponding to the flowchart of microprogram processing shown in FIG. 1 becomes as shown in the flowchart of FIG. 3.

(幻発明の効果 以上の説明から明らかなように、本発明によれば各マク
ロ命令の実行に先立って、マイクロプログラムによって
例外状態をチェックする必要が無く、マクロ命令のフェ
ッチに続いて直ちに命令実行のマイクロプロゲラみを開
始できるので、計算機の性能を改善することができ、又
マイクロプログラムの構成が簡単になるので信頼性の向
上、コストの低下に寄与することができる。
(Effect of the Phantom Invention As is clear from the above explanation, according to the present invention, there is no need for the microprogram to check the exception status before executing each macro instruction, and the instruction is executed immediately after fetching the macro instruction.) Since the microprogram can be started, the performance of the computer can be improved, and the configuration of the microprogram can be simplified, contributing to improved reliability and reduced costs.

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

第1図は従来の命令実行マイクロプログラムの処理の流
れ図、第2図は実施例回路のブロック図、第3図は本発
明を実施した場合の命令実行マイクロプログラムの処理
の流れ図である。 図において、1は制御記憶装置、2は制御記憶アドレス
レジスタ、3はマイクロ命令レジスタ、4はオペレーシ
ョンコードレジスタ、5は例外条件記憶装置、6はレジ
スタ、7は状態フラグ、8は論理積ゲート、9は論理和
ゲート、1oは例外信号線、11はレジスタを示す。 *3TfJ
FIG. 1 is a flowchart of processing of a conventional instruction execution microprogram, FIG. 2 is a block diagram of an embodiment circuit, and FIG. 3 is a flowchart of processing of an instruction execution microprogram when the present invention is implemented. In the figure, 1 is a control storage device, 2 is a control storage address register, 3 is a microinstruction register, 4 is an operation code register, 5 is an exception condition storage device, 6 is a register, 7 is a status flag, 8 is an AND gate, 9 is an OR gate, 1o is an exception signal line, and 11 is a register. *3TfJ

Claims (1)

【特許請求の範囲】[Claims] マクロ命令の実行をマイクロプログラムによって制御す
るマイクロプログラム制御計算機の命令例外検出方式に
おいて、各マクロ命令の固有情報を格納する記憶手段、
該マクロ命令のオペレーションコードをアドレスとして
該記憶手段にアクセスする手段、該アクセス手段により
読み出す上記固有情報の保持手段、上記計算機の状態情
報の保持手段、該両保持手段の対応するビットの論理積
信号を発生する手段、該信号により特定のマイクロプロ
グラムへ分岐を起こす手段を有することを特徴とする命
令例外検出方式。
In an instruction exception detection method for a microprogram controlled computer in which execution of macro instructions is controlled by a microprogram, a storage means for storing unique information of each macro instruction;
means for accessing the storage means using the operation code of the macro instruction as an address; means for holding the unique information read by the access means; means for holding the state information of the computer; and an AND signal of corresponding bits of both holding means. 1. An instruction exception detection method comprising: means for generating a signal; and means for causing a branch to a specific microprogram based on the signal.
JP4881784A 1984-03-14 1984-03-14 Detecting system for instruction exception Granted JPS60193046A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4881784A JPS60193046A (en) 1984-03-14 1984-03-14 Detecting system for instruction exception

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4881784A JPS60193046A (en) 1984-03-14 1984-03-14 Detecting system for instruction exception

Publications (2)

Publication Number Publication Date
JPS60193046A true JPS60193046A (en) 1985-10-01
JPH0258648B2 JPH0258648B2 (en) 1990-12-10

Family

ID=12813763

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4881784A Granted JPS60193046A (en) 1984-03-14 1984-03-14 Detecting system for instruction exception

Country Status (1)

Country Link
JP (1) JPS60193046A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0344739A (en) * 1989-07-12 1991-02-26 Matsushita Electric Ind Co Ltd Instruction exception detecting device

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0367945A (en) * 1989-08-05 1991-03-22 Matsushita Seiko Co Ltd Apparatus for trial run for air conditioner

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5525192A (en) * 1978-08-14 1980-02-22 Fujitsu Ltd Illegal processing system for option instruction
JPS5583941A (en) * 1978-12-21 1980-06-24 Toshiba Corp Microprogram system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5525192A (en) * 1978-08-14 1980-02-22 Fujitsu Ltd Illegal processing system for option instruction
JPS5583941A (en) * 1978-12-21 1980-06-24 Toshiba Corp Microprogram system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0344739A (en) * 1989-07-12 1991-02-26 Matsushita Electric Ind Co Ltd Instruction exception detecting device

Also Published As

Publication number Publication date
JPH0258648B2 (en) 1990-12-10

Similar Documents

Publication Publication Date Title
US5664199A (en) Microcomputer free from control of central processing unit (CPU) for receiving and writing instructions into memory independent of and during execution of CPU
US4949241A (en) Microcomputer system including a master processor and a slave processor synchronized by three control lines
JPH0193837A (en) Microprocessor for debug
JPH0430053B2 (en)
US4926318A (en) Micro processor capable of being connected with a coprocessor
US4747045A (en) Information processing apparatus having an instruction prefetch circuit
US5003468A (en) Guest machine execution control system for virutal machine system
US6199156B1 (en) System for explicitly referencing a register for its current content when performing processor context switch
JPS6319058A (en) Memory device
JPS60193046A (en) Detecting system for instruction exception
JPH03271829A (en) Information processor
JP2619425B2 (en) Sequence controller
JP2562838B2 (en) Processor and store buffer control method
JPH0222413B2 (en)
JPS6148741B2 (en)
JP2731618B2 (en) emulator
JPS6227423B2 (en)
JPH01188943A (en) Data processing system for symbol processing
JPH0795288B2 (en) Microcomputer
JPS626341A (en) Information processor
JPH0154729B2 (en)
JPH01175052A (en) Microaddress register mechanism
JPH059814B2 (en)
JPS62150434A (en) Loop control type data processor
JPH0548498B2 (en)