JPH01258034A - Program exceptional processing system - Google Patents

Program exceptional processing system

Info

Publication number
JPH01258034A
JPH01258034A JP8590688A JP8590688A JPH01258034A JP H01258034 A JPH01258034 A JP H01258034A JP 8590688 A JP8590688 A JP 8590688A JP 8590688 A JP8590688 A JP 8590688A JP H01258034 A JPH01258034 A JP H01258034A
Authority
JP
Japan
Prior art keywords
exception
code
exceptional
microprogram
circuit
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
JP8590688A
Other languages
Japanese (ja)
Other versions
JP2560401B2 (en
Inventor
Tetsuya Hagiwara
哲也 萩原
Fumio Matsunoshita
松野下 文郎
Yoshihiro Mizushima
水島 芳宏
Koichi Ueda
上田 孝一
Satoshi Sugiura
聡 杉浦
Masato Tanaka
正人 田中
Akisumi Koike
小池 夫澄
Tatsuki Nakada
達己 中田
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 JP63085906A priority Critical patent/JP2560401B2/en
Publication of JPH01258034A publication Critical patent/JPH01258034A/en
Application granted granted Critical
Publication of JP2560401B2 publication Critical patent/JP2560401B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Advance Control (AREA)

Abstract

PURPOSE:To enable changing an exceptional code or forming a new exceptional code without changing hardware by forming an optional interruption code by a microprogram to execute exceptional processing interruption. CONSTITUTION:Exceptional information detected by exception detecting circuits (3-50)-(3-55) is inputted to an arithmetic circuit 3-88 by a specific microprogram flow and the output of the circuit 3-88 is written in an exceptional code register 3-37. At the same time, an exceptional FF 3-17 is turned on or the exceptional information is inputted to the circuit 3-88 and temporarily stored in a register file. When the circuits 3-88 forms a new exceptional code by the microprogram flow, the output of a writing bus of the circuit 3-88 is written in the register 3-37. At the same time, the FF 3-37 is turned on and exceptional interruption processing is started to report the exceptional code set up in the register 3-37 to software.

Description

【発明の詳細な説明】 〔概要〕 パイプライン方式のプログラム例外処理回路を備えたマ
イクロプログラム制御の情報処理装置におけるプログラ
ム例外処理方式に関し、ハードウェアの変更を行うこと
なく、例外コードの変更や、新しい例外コードを生成す
ることを目的とし、 情報処理装置の例外検出回路の出力を演算回路に入力す
る手段と、上記マイクロプログラムで、上記検出回路か
らの例外情報から該演算回路で割込みコードを生成させ
る手段と、その結果を該演算回路の書込みバスを介して
例外コードレジスタに書込む手段と、上記生成した例外
発生により、命令継続を抑止させて、且つ例外割込みを
発生させる手段とを設けて、マイクロプログラムにより
、任意の割込みコードを生成して例外処理割込みを行う
ように構成する。
[Detailed Description of the Invention] [Summary] Regarding a program exception handling method in a microprogram-controlled information processing device equipped with a pipelined program exception handling circuit, it is possible to change an exception code without changing the hardware. For the purpose of generating a new exception code, means for inputting the output of an exception detection circuit of an information processing device to an arithmetic circuit, and the above-mentioned microprogram, generate an interrupt code in the arithmetic circuit from exception information from the above-mentioned detection circuit. means for writing the result into an exception code register via a write bus of the arithmetic circuit, and means for inhibiting instruction continuation and generating an exception interrupt by the generation of the generated exception. , a microprogram is configured to generate an arbitrary interrupt code and perform an exception handling interrupt.

〔産業上の利用分野〕[Industrial application field]

本発明は、パイプライン方式のプログラム例外処理回路
を備えたマイクロプログラム制御の情報処理装置におけ
るプログラム例外処理方式に関する。
The present invention relates to a program exception handling method in a microprogram-controlled information processing device equipped with a pipelined program exception handling circuit.

情報処理装置の中央処理装置(CPU)では命令の実行
の際、ソフトウェアのプログラムミス、又は使用者の与
えた不当データによる種々のプログラム例外条件を検査
し、異常があった場合にはプログラム割込みを起こし、
該例外側込みの種別を割込みコードにしてソフトウェア
に報告しなければならない。
When the central processing unit (CPU) of an information processing device executes an instruction, it checks for various program exception conditions caused by software programming errors or invalid data provided by the user, and if an abnormality is found, a program interrupt is issued. Wake up,
The type of exception must be reported to the software as an interrupt code.

この例外には、命令読出しのミスのように命令に依存し
ない例外と、未定義命令コードや特権命令のように命令
の種類に依存する例外、及びオペランド読出しや演算例
外のように命令を実行してから判る例外がある。
These exceptions include exceptions that do not depend on the instruction such as an error in reading an instruction, exceptions that depend on the type of instruction such as an undefined instruction code or privileged instruction, and exceptions that do not depend on the instruction such as an error in reading an operand or an operation exception. There are exceptions that will become clear later.

これらの例外の中で、命令に依存する例外は例外条件の
パターンに共通性があり、又、命令に対応するマイクロ
プログラムの例外判定条件を変えることにより、比較的
容易に、修正できるが、命令の実行後に判る例外は、ハ
ードウェアで回路を組む為修正が困難である。
Among these exceptions, exceptions that depend on instructions have a common pattern of exception conditions, and can be corrected relatively easily by changing the exception judgment conditions of the microprogram corresponding to the instruction. Exceptions found after execution are difficult to correct because the circuit is constructed using hardware.

この為、新しい命令を追加しようとした場合や。For this reason, if you try to add a new command.

既存の命令の仕様変更により、例外割込みコードを変え
なければならない時は、該ハードウェアの改造となり、
多大な費用と工数を必要とする問題があった。又、発生
するコードのパターンの種類を増やすとハードウェアの
増加となる問題もあることから、最近のように、データ
処理の多様化に伴って、情報処理装置の機能の変更に対
する要求が多い状況においては、少ない費用で効果的に
、例外コードの変更や、新しい例外コードを生成して例
外割込みを発生できるプログラム例外処理方式が必要と
される。
If the exception interrupt code has to be changed due to a change in the specifications of an existing instruction, the hardware must be modified.
There was a problem that required a large amount of cost and man-hours. In addition, increasing the number of types of code patterns that can be generated also poses the problem of increasing the amount of hardware, so as data processing becomes more diversified, there are many requests to change the functions of information processing equipment. There is a need for a program exception handling method that can effectively change an exception code or generate a new exception code to generate an exception interrupt at a low cost.

〔従来の技術と発明が解決しようとする課題〕第2図は
従来のプログラム例外処理方式を説明する図であり、(
a)はブロック図を示し、(b)は動作タイムチャート
を示している。
[Prior art and problems to be solved by the invention] FIG. 2 is a diagram explaining a conventional program exception handling method.
(a) shows a block diagram, and (b) shows an operation time chart.

先ず、本図(a)のブロック図において、3−61〜3
−88は、情報処理装置の本来の命令処理の為の回路の
一部である。
First, in the block diagram of this figure (a), 3-61 to 3
-88 is a part of the circuit for original instruction processing of the information processing device.

命令の読出しによって得られた命令コードは、命令コー
ドレジスタ3−61に投入され、その命令コードにより
制御記憶(CS) 3−60から対応するマイクロプロ
グラムが読み出されて、パイプラインタグ(フリップフ
ロップ(FF)からなる制御ビット群) 3−62〜3
−66に流される。
The instruction code obtained by reading the instruction is input to the instruction code register 3-61, and the corresponding microprogram is read from the control storage (CS) 3-60 according to the instruction code, and the pipeline tag (flip-flop) is read out. (control bit group consisting of FF) 3-62~3
-66.

これらの制御ビットにより、各パイプラインステージを
順に制御することにより命令が実行される。
These control bits execute instructions by controlling each pipeline stage in turn.

3−81〜3−88は演算部の回路であり、Bステージ
で読み出された主記憶/バッファのオペランドデータ、
又はレジスタオペランドデータがBステージの制御ピッ
) 3−64の制御の元に、選択回路3−86 、3−
87によって選択され、オペランドデータレジスタ3−
81.3−82に入力される。
3-81 to 3-88 are circuits of the arithmetic unit, and the operand data of the main memory/buffer read out in the B stage;
or register operand data is the B stage control pin) Under the control of 3-64, selection circuits 3-86, 3-
87 and operand data register 3-
81.3-82.

この両オペランドの値がEステージの制御ビット3−6
5の制御により演算回路3−88で演算を施され、リザ
ルトレジスタ3−83に書込まれる。
The values of both operands are the control bits 3-6 of the E stage.
Under the control of 5, the arithmetic circuit 3-88 performs an arithmetic operation, and the result is written into the result register 3-83.

更に、該リザルトレジスタ3−83の値はWステージの
制御ビット3−66の制御によりレジスタファイル3−
85中のレジスタ、又は主記憶/バッファに書込まれる
Furthermore, the value of the result register 3-83 is controlled by the control bit 3-66 of the W stage.
85 or main memory/buffer.

本図において、3−11〜3−55は例外処理の為の回
路であって、3−11〜3−17は例外検出を示すフリ
ップフロップ(FF)であり、パイプラインのそれぞれ
のステージで検出された例外事象が、ゲート回路3−2
2〜3−26により論理和される。
In this figure, 3-11 to 3-55 are circuits for exception handling, and 3-11 to 3-17 are flip-flops (FF) for detecting exceptions, which are detected at each stage of the pipeline. The exception event that occurred is the gate circuit 3-2.
It is logically summed by 2 to 3-26.

3−50〜3−55はそれぞれのステージの例外を検出
し、コード化する論理回路であり、その例外コードはパ
イプライン接続されている例外コードレジスタ3−31
〜3−37を流れる。
3-50 to 3-55 are logic circuits that detect and code exceptions in each stage, and the exception codes are stored in the pipeline-connected exception code register 3-31.
Flows through 3-37.

3−50で検出されるのは命令読出しに関する例外(例
えば、無効アドレスからの読出し等)であり、ハードウ
ェアによって検出/コード化される。
Detected at 3-50 are exceptions related to instruction reads (eg, reading from an invalid address, etc.) and are detected/coded by hardware.

3−52で検出されるのは未定義命令例外、特権命金側
外等があり、その例外検出条件はAステージの制御ビッ
ト3−62によって与えられ、ハードウェアによって検
出/コード化される。
What is detected at 3-52 are undefined instruction exceptions, outside privileges, etc., and the exception detection conditions are given by control bits 3-62 of the A stage and detected/coded by hardware.

3−53.3−54で検出される例外は主記憶オペラン
ドアクセス等に関するものであり、3−55で検出され
る例外は演算実行に関するもの(例えば、除数が0°の
場合の演算等)であり、いずれもハードウェアによって
検出/コード化される。
3-53. The exception detected in 3-54 is related to main memory operand access, etc., and the exception detected in 3-55 is related to calculation execution (for example, calculation when the divisor is 0°). Yes, both are detected/encoded by hardware.

選択回路3−42〜3−46は、前のステージで検出さ
れた例外コードを優先させる為のものであり、前述の例
外検出を表すフリップフロップ(PP) 3−13〜3
−17によって該優先制御が行われる。
The selection circuits 3-42 to 3-46 are for giving priority to the exception code detected in the previous stage, and are flip-flops (PP) 3-13 to 3 representing the above-mentioned exception detection.
-17, the priority control is performed.

又、例外コードレジスタ3−37.例外検出フリップフ
ロップ(PF) 3−17の帰還ループ■、■は、上記
各ステージで検出した例外事象を例外割込み処理におい
て、ソフトウェアに報告する為に保持してお(為の回路
である。
Also, exception code register 3-37. The feedback loops (1) and (2) of the exception detection flip-flop (PF) 3-17 are circuits for holding the exception events detected at each of the above stages in order to report them to software in the exception interrupt processing.

次に、(b)図によって、例外発生時のパイプラインの
動作を説明する。
Next, the operation of the pipeline when an exception occurs will be explained with reference to FIG.

今、3番目のマイクロプログラムフローのBステージで
例外が検出されたとすると、それ以前の命令の動作を保
証する為に、その時゛1゛にセットされた例外検出フリ
ップフロップ(FP) 3−15の内容は3−16迄パ
イプラインに従って流される。そして、フリップフロッ
プ(PP) 3−16が°1′になると、3番目以降の
マイクロプログラムフローが抑止され、クリアパイプラ
イン(RSで示す)に入り、パイプラインの通常の命令
処理に関係する制御ビット3−62〜3−66は全てク
リアされ、その後に、例外割込み処理の為のマイクロプ
ログラムフローが流れ出し、上記例外コードレジスタ3
−37に保持されていた内容が例外割込みコードとして
報告される。
Now, if an exception is detected in the B stage of the third microprogram flow, in order to guarantee the operation of the previous instructions, the exception detection flip-flop (FP) 3-15, which is set to "1" at that time, is The contents flow according to the pipeline from 3-16. Then, when flip-flop (PP) 3-16 becomes °1', the third and subsequent microprogram flows are inhibited, enter the clear pipeline (indicated by RS), and control related to normal instruction processing of the pipeline. Bits 3-62 to 3-66 are all cleared, and then the microprogram flow for exception interrupt processing starts and the above exception code register 3 is cleared.
-37 is reported as the exception interrupt code.

このように、従来のプログラム例外処理方式においては
、殆どの例外事象がハードウェア論理で例外コードを作
成していた為、例外コードの変更や、新しい例外コード
を必要するような場合には、ハードウェアの改造を必要
とすると言う問題があった・ 本発明は上記従来の欠点に鑑み、パイプライン方式のプ
ログラム例外処理回路を備えたマイクロプログラム制御
の情報処理装置におけるプログラム例外処理方式におい
て、例外コードの変更や、新しい例外コードを作る際に
、ハードウェアの変更を行うことなくマイクロプログラ
ムの変更で対処する例外処理方式を提供することを目的
とするものである。
In this way, in conventional program exception handling methods, exception codes for most exception events were created using hardware logic, so when an exception code needs to be changed or a new exception code is required, hardware logic is required. In view of the above-mentioned drawbacks of the conventional technology, the present invention provides a program exception processing method for a microprogram-controlled information processing device equipped with a pipelined program exception processing circuit. The purpose of this is to provide an exception handling method that can be handled by changing the microprogram without changing the hardware when changing the code or creating new exception code.

〔課題を解決するための手段〕[Means to solve the problem]

上記の問題点は下記の如(に構成されたプログラム例外
処理方式によって解決される。
The above problem is solved by a program exception handling method configured as follows.

パイプライン方式のプログラム例外処理回路を備えたマ
イクロプログラム制御の情報処理装置において、 例外検出回路の出力を演算回路に入力する手段と、 上記マイクロプログラムで、上記検出回路からの例外情
報から該演算回路で割込みコードを生成させる手段と、 その結果を該演算回路の書込みバスを介して例外コード
レジスタに書込む手段と、 上記生成した例外発生により、命令継続を抑止させて、
且つ例外割込みを発生させる手段とを設けて、 マイクロプログラムにより、任意の割込みコードを生成
して例外処理割込みを行うように構成する。
A microprogram-controlled information processing device equipped with a pipelined program exception handling circuit, comprising means for inputting an output of the exception detection circuit to an arithmetic circuit; means for generating an interrupt code, means for writing the result into an exception code register via a write bus of the arithmetic circuit, and inhibiting instruction continuation by the generated exception,
In addition, a means for generating an exception interrupt is provided so that an arbitrary interrupt code is generated by a microprogram and an exception handling interrupt is performed.

〔作用〕[Effect]

即ち、本発明によれば、パイプライン方式のプログラム
例外処理回路を備えたマイクロプログラム制御の情報処
理装置におけるプログラム例外処理方式において、新設
した特定命令、或いは、機能を変更した特定命令を実行
する際、特定のマイクロプログラムフローで、例外検出
回路で検出した例外情報を演算回路に入力し、その出力
を例外コードレジスタに書込むと同時に、例外フリップ
フロップ(FF)を°オン°するか、又は該例外情報を
演算回路に入力して、−旦レジスタフアイルに記憶して
おき、特定のマイクロプログラムフローで、該演算回路
で新たな例外コードを生成した時点で、該演算回路の書
込みバスの出力を例外コードレジスタに書込むと同時に
例外フリップフロップ(FP)を°オン゛として例外割
込み処理に入り、該例外コードレジスタにセットされた
例外コードをソフトウェアに報告するようにしたもので
あるので、ハードウェアの改造を加えることなく、マイ
クロプログラムを変更、或いは新設するだけで、例外コ
ードの変更、或いは新しい例外コードを生成することが
できる効果がある。
That is, according to the present invention, in a program exception handling method in a microprogram-controlled information processing device equipped with a pipelined program exception handling circuit, when executing a newly established specific instruction or a specific instruction whose function has been changed, In a specific microprogram flow, the exception information detected by the exception detection circuit is input to the arithmetic circuit, and its output is written to the exception code register, and at the same time, an exception flip-flop (FF) is turned on or the corresponding Exception information is input to an arithmetic circuit and stored in a register file, and when a new exception code is generated in the arithmetic circuit in a specific microprogram flow, the output of the write bus of the arithmetic circuit is At the same time as writing to the exception code register, the exception flip-flop (FP) is turned on to enter exception interrupt processing, and the exception code set in the exception code register is reported to the software. This has the advantage that the exception code can be changed or a new exception code can be generated simply by changing the microprogram or creating a new one without modifying the microprogram.

〔実施例〕〔Example〕

以下本発明の実施例を図面によって詳述する。 Embodiments of the present invention will be described in detail below with reference to the drawings.

第1図は本発明の一実施例をブロック図で示した図であ
り、例外検出回路3−53〜3−55の出力を演算回路
の入力とする手段のと、演算回路3−88の出力の書込
みバスを例外コードレジスタ3−37に入力する手段■
と、該演算回路3−88の出力を例外コードレジスタ3
−37に書込む時に、例外フリップフロップ(FF) 
3−17を゛オン゛とする手段■が本発明を実施するの
に必要な手段である。尚、全図を通して同じ符号は同じ
対象物を示している。
FIG. 1 is a block diagram showing an embodiment of the present invention, showing means for inputting the outputs of the exception detection circuits 3-53 to 3-55 to the arithmetic circuit, and the output of the arithmetic circuit 3-88. Means for inputting the write bus to the exception code register 3-37■
and the output of the arithmetic circuit 3-88 is sent to the exception code register 3.
- When writing to 37, the exception flip-flop (FF)
Means (2) for turning on 3-17 is a necessary means to carry out the present invention. Note that the same reference numerals indicate the same objects throughout the figures.

本発明を実施しても、命令処理、及び例外事象の検出動
作そのものは特に従来方式と変わることはないので省略
し、ここでは、特定の命令の機能を変更したり、新規な
命令を追加した際の例外コードの変更、或いは、新たな
例外コードの生成方式を中心にして、本発明のプログラ
ム例外処理方式を説明する。
Even if the present invention is implemented, the instruction processing and the exceptional event detection operation itself will not be particularly different from the conventional method, so they will be omitted here. The program exception handling method of the present invention will be explained with a focus on changing the exception code or generating a new exception code.

今、新しい例外割込みコードが定義されたとすると、そ
の例外事象を検出するマイクロプログラムフローの、例
えば、Bステージでの例外検出回路3−54における従
来の例外コード作成処理を制御ビット3−64によって
抑止し、そこで検出した例外情報を本発明によって新設
したルート■で演算回路3−88に入力し、該演算回路
3−88を通してレジスタファイル3−85中の作業用
レジスタに書込むように指示し、継続する特定のマイク
ロプログラムフローで、従来からある演算回路3−88
による演算機能により、上記作業用レジスタに格納され
ている例外情報を用いて、上記定義した例外コードを作
成し、本発明で新設したルート■により例外コードレジ
スタ3−37に書込むように指示すると共に、そのWス
テージにおいて例外割込みを強制させる為にルート■で
例外フリップフロップ(FF) 3−17を°オン° 
とするように機能させる。
Now, if a new exception interrupt code is defined, control bits 3-64 inhibit the conventional exception code creation process in the exception detection circuit 3-54 in the B stage of the microprogram flow that detects the exception event. Then, the exception information detected there is input to the arithmetic circuit 3-88 through the route (3) newly established according to the present invention, and is instructed to be written to the working register in the register file 3-85 through the arithmetic circuit 3-88. Continuing specific microprogram flow, conventional arithmetic circuits 3-88
Creates the above-defined exception code using the exception information stored in the above-mentioned work register using the arithmetic function, and instructs it to be written to the exception code register 3-37 using the route (newly established in the present invention). At the same time, in order to force an exception interrupt at the W stage, exception flip-flop (FF) 3-17 is turned on at the root ■.
make it function as such.

すると、従来のプログラム例外割込みと同様にして、そ
のマイクロプログラムフロー、及び以降のマイクロプロ
グラムフローの抑止、及び例外割込みが発生し、該生成
され例外コードレジスタ3−37に書込まれている例外
コードをソフトウェアに報告することができるようにな
る。
Then, in the same manner as a conventional program exception interrupt, the microprogram flow and subsequent microprogram flows are inhibited, and an exception interrupt occurs, and the exception code generated and written in the exception code register 3-37 is generated. can be reported to the software.

つまり、本発明を実施することによりマイクロプログラ
ムの変更等で、自由に例外コードを作成することができ
る。
In other words, by implementing the present invention, exception codes can be freely created by changing the microprogram or the like.

尚、上記の実施例では、Bステージの例外事象のみを演
算回路に入力する例で説明したが、他のステージで検出
された例外情報を該演算回路3−88に入力することは
勿論、該Bステージの例外コードレジスタ3−34の出
力を入力することや、−船釣に良く知られているバイパ
ス回路によって、一つ前のマイクロプログラムフローの
Eステージの例外情報を入力すること、更に、該例外検
出回路で検出した例外情報をコンデイションコードのデ
ータ形式に変換して入力するようにしても良いことは言
う迄もないことである。
In the above embodiment, only the exceptional event of the B stage is input to the arithmetic circuit. However, it is of course possible to input exception information detected at other stages to the arithmetic circuit 3-88. Inputting the output of the exception code register 3-34 of the B stage, - inputting the exception information of the E stage of the previous microprogram flow using a bypass circuit well known in boat fishing; It goes without saying that the exception information detected by the exception detection circuit may be converted into a condition code data format and input.

又、上記の実施例においては、上記の例外情報をレジス
タファイル3−85中の作業用レジスタに一旦書込んで
おいて、該例外を検出したマイクロプログラムフローと
は異なる別の(具体的には、継続した)マイクロプログ
ラムフローで例外コードを作成する例で説明したが、該
例外検出回路3−54の出力を演算回路3−88に入力
して、即演算を行いその出力をその侭書込みバスに乗せ
、例外コードレジスタ3−37に書込むと同時に例外フ
リップフロップ(FF) 3−17を°オン“ とする
ようにしても良いことは言う迄もないことである。
Further, in the above embodiment, the above exception information is once written to the working register in the register file 3-85, and then the exception information is written to a different microprogram flow (specifically, , continued)), the output of the exception detection circuit 3-54 is input to the arithmetic circuit 3-88, the arithmetic operation is performed immediately, and the output is sent to the write bus. It goes without saying that the exception flip-flop (FF) 3-17 may be turned on at the same time as the exception code register 3-37 is written.

このように、本発明はプログラム例外処理方式において
、例外コードを変更したい場合や、新しい例外コードを
作成したい場合、関連する命令を実行して検出された例
外情報を演算回路に入力し、該演算回路で特定の演算を
施して、予め、定義した新たな例外コードを作成し、例
外コードレジスタに書込んで例外割込みを強制するよう
にした所に特徴がある。
As described above, in a program exception handling method, when it is desired to change an exception code or to create a new exception code, the present invention executes a related instruction, inputs the detected exception information to an arithmetic circuit, and executes the relevant instruction. The feature is that a new predefined exception code is created by performing a specific operation in the circuit, and written to the exception code register to force an exception interrupt.

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

以上、詳細に説明したように、本発明のプログラム例外
処理方式は、パイプライン方式のプログラム例外処理回
路を備えたマイクロプログラム制御の情報処理装置にお
けるプログラム例外処理方式において、新設した特定命
令、或いは、機能を変更した特定命令を実行する際、特
定のマイクロプログラムフローで、例外検出回路で検出
した例外情報を演算回路に入力し、その出力を例外コー
ドレジスタに書込むと同時に、例外フリップフロップ(
PF)を“オン゛するか、又は該例外情報を演算回路に
入力して、−旦レジスタフアイルに記憶しておき、特定
のマイクロプログラムフローで、該演算回路で新たな例
外コードを生成した時点で、該演算回路の書込みバスの
出力を例外コードレジスタに書込むと同時に例外フリッ
プフロップ(FF)を°オン°として例外割込み処理に
入り、該例外コードレジスタにセットされた例外コード
をソフトウェアに報告するようにしたものであるので、
ハードウェアの改造を加えることなく、マイクロプログ
ラムを変更、或いは新設するだけで、例外コードの変更
、或いは新しい例外コードを生成することができる効果
がある。
As described above in detail, the program exception handling method of the present invention is a program exception handling method in a microprogram-controlled information processing device equipped with a pipelined program exception handling circuit, and uses newly established specific instructions or When executing a specific instruction whose function has been changed, in a specific microprogram flow, the exception information detected by the exception detection circuit is input to the arithmetic circuit, the output is written to the exception code register, and at the same time the exception flip-flop (
PF) or inputs the exception information to the arithmetic circuit and stores it in the register file, and then generates a new exception code in the arithmetic circuit in a specific microprogram flow. At the same time, the output of the write bus of the arithmetic circuit is written to the exception code register, and the exception flip-flop (FF) is turned on to enter exception interrupt processing, and the exception code set in the exception code register is reported to the software. Because it was designed to
There is an advantage that the exception code can be changed or a new exception code can be generated simply by changing the microprogram or creating a new one without modifying the hardware.

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

第1図は本発明の一実施例をブロック図で示した図。 第2図は従来のプログラム例外処理方式を説明する図。 である。 図面において、 3−11〜3−17は例外検出を示すフリップフロップ
(FF)、又は例外フリップフロップ(FP) 。 3−22〜3−26は論理和回路。 3−31〜3−37は例外コードレジスタ。 3−42〜3−46は選択回路。 3−50〜3−55は例外検出回路。 3−81〜3−88は演算回路。 ■〜■は本発明を実施する為の手段、又はルート。 ■、■は保持ルート をそれぞれ示す。 舖  1−f   凸
FIG. 1 is a block diagram showing an embodiment of the present invention. FIG. 2 is a diagram explaining a conventional program exception handling method. It is. In the drawings, 3-11 to 3-17 are flip-flops (FF) or exception flip-flops (FP) for detecting exceptions. 3-22 to 3-26 are OR circuits. 3-31 to 3-37 are exception code registers. 3-42 to 3-46 are selection circuits. 3-50 to 3-55 are exception detection circuits. 3-81 to 3-88 are arithmetic circuits. ■ to ■ are means or routes for carrying out the present invention. ■ and ■ indicate retention routes, respectively. 1-f convex

Claims (1)

【特許請求の範囲】 パイプライン方式のプログラム例外処理回路(3)を備
えたマイクロプログラム制御の情報処理装置において、 例外検出回路(3−50〜3−55)の出力を演算回路
(3−8)に入力する手段([1])と、 上記マイクロプログラムで、上記検出回路(3−50〜
3−55)からの例外情報から該演算回路(3−8)で
割込みコードを生成させる手段と、 その結果を該演算回路(3−8)の書込みバスを介して
例外コードレジスタ(3−37)に書込む手段([2]
)と、 上記生成した例外発生により、命令継続を抑止させて、
且つ例外割込みを発生させる手段([3])とを設けて
、 マイクロプログラムにより、任意の割込みコードを生成
して例外処理割込みを行うことを特徴とするプログラム
例外処理方式。
[Claims] In a microprogram-controlled information processing device equipped with a pipelined program exception handling circuit (3), the output of the exception detection circuit (3-50 to 3-55) is transmitted to the arithmetic circuit (3-8). ) and the means ([1]) for inputting to the detection circuit (3-50 to 3-50) using the microprogram.
means for generating an interrupt code in the arithmetic circuit (3-8) from exception information from the arithmetic circuit (3-55); ) ([2]
), the instruction continuation is inhibited by the exception generated above, and
A program exception handling method characterized by further comprising: means ([3]) for generating an exception interrupt, and a microprogram generates an arbitrary interrupt code and performs an exception handling interrupt.
JP63085906A 1988-04-07 1988-04-07 Program exception handling method Expired - Fee Related JP2560401B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63085906A JP2560401B2 (en) 1988-04-07 1988-04-07 Program exception handling method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63085906A JP2560401B2 (en) 1988-04-07 1988-04-07 Program exception handling method

Publications (2)

Publication Number Publication Date
JPH01258034A true JPH01258034A (en) 1989-10-16
JP2560401B2 JP2560401B2 (en) 1996-12-04

Family

ID=13871879

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63085906A Expired - Fee Related JP2560401B2 (en) 1988-04-07 1988-04-07 Program exception handling method

Country Status (1)

Country Link
JP (1) JP2560401B2 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61285540A (en) * 1985-06-13 1986-12-16 Nec Corp Information processor
JPS62171026A (en) * 1986-01-23 1987-07-28 Mitsubishi Electric Corp Pipe line arithmetic unit

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61285540A (en) * 1985-06-13 1986-12-16 Nec Corp Information processor
JPS62171026A (en) * 1986-01-23 1987-07-28 Mitsubishi Electric Corp Pipe line arithmetic unit

Also Published As

Publication number Publication date
JP2560401B2 (en) 1996-12-04

Similar Documents

Publication Publication Date Title
US5692169A (en) Method and system for deferring exceptions generated during speculative execution
US4181942A (en) Program branching method and apparatus
JPH07248897A (en) Method and device for recovery from exception in computer system
JPH04266125A (en) Method for realizing instruction which can be erased on computer
JPH034936B2 (en)
JPH01258034A (en) Program exceptional processing system
JP2002014809A (en) Microprocessor and assembler and its method and recording medium with its program recorded
EP0806723A2 (en) Method and apparatus for handling multiple precise events in a pipelined digital processor
JPH1196006A (en) Information processor
JPS63214804A (en) Processor for plc and plc
JP4063182B2 (en) Processor and interrupt control method thereof
JPH02197924A (en) Central arithmetic processor
JPS6327746B2 (en)
KR20080044652A (en) Method for debugging by using stack of cpu
JP3523350B2 (en) Program counting system and program counter operating method
JP2562838B2 (en) Processor and store buffer control method
US11263014B2 (en) Sharing instruction encoding space between a coprocessor and auxiliary execution circuitry
KR100765867B1 (en) Computer and control method of the computer
JPH02132524A (en) Information processor
JPH06162067A (en) Device and method for controlling vector instruction
WO1990005951A1 (en) Method of handling unintended software interrupt exceptions
KR950005523B1 (en) Step-run processing method of programmable logic controller
JP2671161B2 (en) Register interference check method
JP2987281B2 (en) Processor
JP2023151592A (en) Information processor and operation control method for information processor

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees