[go: up one dir, main page]

JPH0441377B2 - - Google Patents

Info

Publication number
JPH0441377B2
JPH0441377B2 JP58062772A JP6277283A JPH0441377B2 JP H0441377 B2 JPH0441377 B2 JP H0441377B2 JP 58062772 A JP58062772 A JP 58062772A JP 6277283 A JP6277283 A JP 6277283A JP H0441377 B2 JPH0441377 B2 JP H0441377B2
Authority
JP
Japan
Prior art keywords
flag
exception
register
data
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.)
Expired - Lifetime
Application number
JP58062772A
Other languages
Japanese (ja)
Other versions
JPS59188745A (en
Inventor
Susumu Shibazaki
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 JP58062772A priority Critical patent/JPS59188745A/en
Publication of JPS59188745A publication Critical patent/JPS59188745A/en
Publication of JPH0441377B2 publication Critical patent/JPH0441377B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Executing Machine-Instructions (AREA)

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、情報処理装置における例外検出のマ
イクロプログラム制御方式に関し、特にそのデー
タチエツクおよび分岐制御方式に関する。
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to a microprogram control method for exception detection in an information processing device, and particularly to its data check and branch control method.

(従来技術) 従来この種のマイクロプログラム制御方式の情
報処理装置は、第1図に示すような中央処理装置
100の内部に制御記憶200と、制御記憶レジ
スタ210と、制御記憶アドレスレジスタ220
と、制御記憶アドレス加算器230と、制御記憶
アドレスセレクタ240と、作業用レジスタ30
0と、論理演算回路310と、データチエツク回
路320と、例外フラグ331と、零フラグ33
2と、負フラグ333とから成るフラグレジスタ
330と、フラグセレクタ340とから構成され
ていた。上記の構成において、制御記憶アドレス
レジスタ220により指示されたアドレスの制御
記憶200の内容のマイクロ命令は、制御記憶レ
ジスタ210に転送されて格納され、中央処理装
置100内の各部の動作を制御する。
(Prior Art) Conventionally, this type of microprogram control type information processing apparatus has a central processing unit 100 as shown in FIG.
, a control storage address adder 230, a control storage address selector 240, and a working register 30.
0, logic operation circuit 310, data check circuit 320, exception flag 331, and zero flag 33
2, a flag register 330 consisting of a negative flag 333, and a flag selector 340. In the above configuration, the microinstruction of the contents of the control memory 200 at the address indicated by the control memory address register 220 is transferred to and stored in the control memory register 210, and controls the operation of each part within the central processing unit 100.

制御記憶レジスタ210に格納されたマイクロ
命令は、通常の場合には、制御記憶アドレス加算
器230を使用して制御記憶アドレスレジスタ2
20の内容に1を加算し、制御記憶アドレスセレ
クタ240を通して、制御記憶アドレスレジスタ
220に再格納するように制御する。すなわち、
上記動作により制御記憶200の連続アドレスの
マイクロ命令が実行されるわけである。
A microinstruction stored in control storage register 210 is normally transferred to control storage address register 2 using control storage address adder 230.
1 is added to the contents of 20 and controlled to be stored again in the control storage address register 220 through the control storage address selector 240. That is,
By the above operation, the microinstructions at consecutive addresses in the control memory 200 are executed.

制御記憶レジスタ210に格納されたマイクロ
命令が条件付き分岐命令の場合には、条件を判定
すべきデータを作業用レジスタ300に格納し、
論理演算回路310により論理演算を行い、その
結果をフラグレジスタ330内の零フラグ332
と負フラグ333とにセツトし、所望の条件付き
分岐が行えるようにフラグセレクタ340により
1ビツトまたは2ビツトのフラグを選択し、制御
記憶アドレスセレクタ240を通して制御記憶ア
ドレスレジスタ220の1ビツトまたは2ビツト
と置換えるように指示する。すなわち、選択した
フラグが1ビツトであれば2方向、2ビツトであ
れば4方向の条件付き分岐が実行されるわけであ
る。
If the microinstruction stored in the control storage register 210 is a conditional branch instruction, the data for determining the condition is stored in the working register 300;
A logical operation circuit 310 performs a logical operation, and the result is set to a zero flag 332 in a flag register 330.
and a negative flag 333, select a 1-bit or 2-bit flag by the flag selector 340 so that the desired conditional branch can be performed, and select 1 or 2 bits of the control storage address register 220 through the control storage address selector 240. instructs you to replace it with That is, if the selected flag is 1 bit, a conditional branch is executed in 2 directions, and if it is 2 bits, a conditional branch is executed in 4 directions.

制御記憶レジスタ210に格納されたマイクロ
命令が例外チエツク命令の場合には、例外をチエ
ツクすべきデータを作業用レジスタ300に格納
し、データチエツク回路320により例外チエツ
クを行い、その結果をフラグレジスタ330の内
部のエラーフラグ331にセツトする。そこで、
フラグセレクタ340によりフラグを選択し、制
御アドレスセレクタ240を通して制御記憶アド
レスレジスタ220の内容の1ビツトと置換える
ように指示する。すなわち、例外の有無により、
2方向の条件付き分岐が実行されるわけである。
If the microinstruction stored in the control storage register 210 is an exception check instruction, the data to be checked for an exception is stored in the working register 300, the data check circuit 320 performs the exception check, and the result is stored in the flag register 330. The internal error flag 331 is set. Therefore,
A flag is selected by the flag selector 340 and instructed to be replaced with one bit of the contents of the control storage address register 220 through the control address selector 240. In other words, depending on the presence or absence of exceptions,
A two-way conditional branch is executed.

上記の従来技術による情報処理装置において
は、データ値の正、零、負に応じてデータには異
なる処理が必要であり、さらに、例外のチエツク
が必要である場合には、3ビツトテストによる8
ウエイの分岐を1マイクロ命令により実行する
と、8ステツプのマイクロ命令が必要となる。実
際には例外なしで正、例外なしで零、例外なしで
負、例外ありの4ケースで必要であり、4ステツ
プが無駄になつてしまうという欠点があつた。ま
た、例外チエツクと条件判定とを分離すると、性
能が低下してしまい、従来技術では制御記憶の使
用効率の低下が、あるいは性能の低下かのいずれ
かは不可避であるという欠点があつた。
In the information processing device according to the above-mentioned conventional technology, data requires different processing depending on whether the data value is positive, zero, or negative, and if it is necessary to check for exceptions, an 8-bit check is performed using a 3-bit test.
If a way branch is executed using one microinstruction, eight steps of microinstructions are required. In reality, it is necessary in four cases: positive without exception, zero without exception, negative without exception, and with exception, which has the disadvantage that the four steps are wasted. Furthermore, if exception checking and condition determination are separated, performance deteriorates, and the prior art has the disadvantage that either a decrease in control memory usage efficiency or a decrease in performance is unavoidable.

(発明の目的) 本発明の目的は、発生し得ない組合せを含む条
件判定を行う場合には同時に例外検出も行い、例
外が検出されたことにより上記条件判定が発生し
得ない条件に変更されるように構成することによ
つて、上記欠点を除去し、制御記憶の使用効率と
性能とが高い例外検出方式を提供することにあ
る。
(Objective of the Invention) The object of the present invention is to detect an exception at the same time when performing a condition judgment that includes a combination that cannot occur, and to change the above condition judgment to a condition that cannot occur due to the detection of the exception. It is an object of the present invention to provide an exception detection method that eliminates the above-mentioned drawbacks and has high control memory usage efficiency and performance.

(発明の構成) 本発明による例外検出方式は作業用レジスタ
と、論理演算回路と、複数のフラグレジスタと、
データチエツク回路と、フラグ変更回路と、フラ
グセレクタとを具備してマイクロプログラム制御
方式により構成して実現したものである。
(Structure of the Invention) The exception detection method according to the present invention includes a working register, a logic operation circuit, a plurality of flag registers,
It is realized by comprising a data check circuit, a flag change circuit, and a flag selector, and is constructed using a microprogram control system.

作業用レジスタは、例外検出ならびに条件判定
を必要とするデータを格納するためのものであ
る。
The working register is for storing data that requires exception detection and condition determination.

論理演算回路は、データの論理演算を実行する
ためのものである。
The logical operation circuit is for performing logical operations on data.

複数のフラグレジスタは、論理演算の結果を表
示するためのものである。
The plurality of flag registers are for displaying the results of logical operations.

データチエツク回路は、データの例外検出を行
うためのものである。
The data check circuit is for detecting data exceptions.

フラグ変更回路は、例外が検出された場合に複
数のフラグレジスタの本来は有り得ない組み合わ
せに変更するためのものである。
The flag change circuit is for changing a combination of a plurality of flag registers to an originally impossible combination when an exception is detected.

フラグセレクタは、フラグレジスタの表示にし
たがつて条件付き分岐の分岐モードを選択するた
めのものである。
The flag selector is for selecting a branch mode of a conditional branch according to the display in the flag register.

(実施例) 本発明の実施例を示す第2図において、本発明
の情報処理装置は、中央処理装置100の内部に
制御記憶200と、制御記憶レジスタ210と、
制御記憶アドレスレジスタ220と、制御記憶ア
ドレス加算器230と、制御記憶アドレスセレク
タ240と、作業用レジスタ300と、論理演算
回路310と、データチエツク回路320と、零
フラグ332と負フラグ333とから成るフラグ
レジスタ330と、フラグセレクタ340と、フ
ラグ変更回路350とから構成されている。
(Embodiment) In FIG. 2 showing an embodiment of the present invention, the information processing device of the present invention includes a control memory 200 and a control memory register 210 inside the central processing unit 100.
Consists of a control memory address register 220, a control memory address adder 230, a control memory address selector 240, a working register 300, a logic operation circuit 310, a data check circuit 320, a zero flag 332, and a negative flag 333. It is composed of a flag register 330, a flag selector 340, and a flag change circuit 350.

上記構成において、制御記憶アドレスレジスタ
22により指示された制御記憶200の内部アド
レスに格納されたマイクロ命令は、制御記憶レジ
スタ210に転送されて格納され、中央処理装置
100の内部の各部動作を制御する。
In the above configuration, the microinstruction stored at the internal address of the control memory 200 specified by the control memory address register 22 is transferred to and stored in the control memory register 210, and controls the operation of each internal part of the central processing unit 100. .

通常の場合には、制御記憶レジスタ210に格
納されたマイクロ命令は制御記憶アドレス加算器
230を使用して制御記憶アドレスレジスタ22
0の内容に1を加算し、制御記憶アドレスセレク
タ240を通して制御記憶アドレスレジスタ22
0に格納するように制御する。すなわち、制御記
憶200に格納された連続アドレスのマイクロ命
令が実行される。
In the normal case, microinstructions stored in control storage register 210 are transferred to control storage address register 210 using control storage address adder 230.
1 is added to the contents of 0, and the control memory address register 22 is added to the control memory address register 22 through the control memory address selector 240.
Control so that it is stored at 0. That is, microinstructions at consecutive addresses stored in control memory 200 are executed.

条件付き分岐の場合には、制御記憶レジスタ2
20に格納されたマイクロ命令により条件判定を
行うべきデータを作業用レジスタ300に格納
し、論理演算回路310により論理演算を行い、
演算結果をフラグレジスタ330の内部の零フラ
グ332と負フラグ333とに格納する。そこ
で、所望の条件付き分岐が行えるように、フラグ
セレクタ340によつて1ビツトまたは2ビツト
のフラグを選択し、制御記憶アドレスセレクタ2
40によつて制御記憶アドレスレジスタ220の
1ビツトまたは2ビツトと置換えるように指示す
る。すなわち、選択したフラグが1ビツトであれ
ば2方向、2ビツトであれば4方向の条件付き分
岐が実行される。この場合には、従来例と同じよ
うに零フラグ332と負フラグ333とは同時に
セツトされない。
In case of conditional branch, control storage register 2
20 stores data to be subjected to condition determination in a working register 300, performs a logical operation by a logical operation circuit 310,
The calculation result is stored in a zero flag 332 and a negative flag 333 inside the flag register 330. Therefore, in order to perform the desired conditional branch, the flag selector 340 selects a 1-bit or 2-bit flag, and the control storage address selector 2 selects a 1-bit or 2-bit flag.
40 instructs to replace one or two bits of the control storage address register 220. That is, if the selected flag is 1 bit, a 2-way conditional branch is executed, and if it is 2 bits, a 4-way conditional branch is executed. In this case, the zero flag 332 and the negative flag 333 are not set at the same time as in the conventional example.

次に、例外チエツクが必要であつて、データ値
が正、零、または負であるかに応じて異なる処理
が必要であるようなデータを考える。例外チエツ
クとデータ値の正、零、負の条件判定とを同時に
行うような例外チエツク付き条件付き分岐の場合
には、制御記憶レジスタ210に格納されたマイ
クロ命令により例外チエツクと条件判定を行うべ
きデータとを作業用レジスタ300に格納し、論
理演算回路310に対して論理演算を指示すると
共に、データチエツク回路320を制御して作業
用レジスタ300の内容の例外チエツクを指示す
る。例外が存在しない場合には、データチエツク
回路320から論理値0を出力するため、フラグ
変更回路350は論理演算回路310から出力し
たフラグの値をそのままフラグレジスタ330へ
転送する。
Next, consider data that requires exception checking and requires different processing depending on whether the data value is positive, zero, or negative. In the case of a conditional branch with an exception check that simultaneously performs an exception check and a conditional determination of whether the data value is positive, zero, or negative, the exception check and conditional determination should be performed by a microinstruction stored in the control storage register 210. It stores the data in the working register 300, instructs the logic operation circuit 310 to perform a logical operation, and also controls the data check circuit 320 to instruct exception checking of the contents of the working register 300. If there is no exception, the data check circuit 320 outputs a logic value of 0, so the flag change circuit 350 transfers the flag value output from the logic operation circuit 310 to the flag register 330 as is.

例外が存在した場合には、データチエツク回路
320は論理値1を出力するため、フラグ変更回
路350は論理演算回路310から出力したフラ
グの値に関係なく全ビツトの値を1に変更してフ
ラグレジスタ330へ転送する。マイクロ命令は
フラグレジスタ330へ転送された値を格納し、
フラグセレクタ340により零フラグ332と負
フラグ333との2ビツトを選択し、制御記憶ア
ドレスセレクタ240によつて制御記憶アドレス
レジスタ220の2ビツトと置換える。すなわ
ち、4方向の条件付き分岐が実行されるわけであ
る。この場合には、例外なしで正、例外なしで
零、例外なしで負、例外ありの4ケースが存在す
る。
If an exception exists, the data check circuit 320 outputs a logic value of 1, so the flag change circuit 350 changes the values of all bits to 1 and sets the flag regardless of the value of the flag output from the logic operation circuit 310. Transfer to register 330. The microinstruction stores the value transferred to flag register 330;
The flag selector 340 selects two bits, the zero flag 332 and the negative flag 333, and the control storage address selector 240 replaces them with the two bits of the control storage address register 220. In other words, conditional branching in four directions is executed. In this case, there are four cases: positive without exception, zero without exception, negative without exception, and with exception.

以上の説明から理解できるように、本発明によ
る実施例は従来技術と比較して同一性能であれば
制御記憶のハードウエア量は半分となり、同一制
御記憶量であれば性能が倍となる。なお、上記説
明では零フラグと負フラグとの例を示したが、起
り得ない組合せを有する複数のフラグであれば、
何であつても良いことは勿論である。
As can be understood from the above description, compared to the prior art, the embodiment according to the present invention requires half the amount of hardware for control storage if the performance is the same, and doubles the performance if the amount of control storage is the same. Note that in the above explanation, an example of a zero flag and a negative flag was shown, but if there are multiple flags that have an impossible combination,
Of course, it can be anything.

(発明の効果) 本発明には以上説明したように、発生し得ない
条件を含む条件判定を行う場合には同時に例外検
出を行い、例外が検出された場合には上記条件判
定を発生し得ない条件にこれを変更するように構
成することにより、制御記憶の使用効率を高める
と共に良好な性能の例外検出を行うことができる
という効果がある。
(Effects of the Invention) As explained above, the present invention includes detecting an exception at the same time when making a condition judgment including a condition that cannot occur, and detecting an exception when the above condition judgment cannot occur. By changing this to a condition in which there is no exception, it is possible to improve the usage efficiency of the control memory and to perform exception detection with good performance.

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

第1図は、従来技術により例外検出方式を実現
するための構成例のブロツク図である。第2図
は、本発明による例外検出方式を実現するための
実施例のブロツク図である。 100……中央処理装置、200……制御記
憶、210,220,300,330……レジス
タ、230……加算器、240,340……セレ
クタ、310……論理演算回路、320……デー
タチエツク回路、331〜333……フラグ、3
50……フラグ変更回路。
FIG. 1 is a block diagram of an example of a configuration for realizing an exception detection method according to the prior art. FIG. 2 is a block diagram of an embodiment for implementing the exception detection method according to the present invention. 100... Central processing unit, 200... Control memory, 210, 220, 300, 330... Register, 230... Adder, 240, 340... Selector, 310... Logical operation circuit, 320... Data check circuit , 331-333...Flag, 3
50...Flag change circuit.

Claims (1)

【特許請求の範囲】[Claims] 1 マイクロプログラム制御方式により実現する
例外検出方式において、例外検出ならびに条件判
定を必要とするデータを格納するための作業用レ
ジスタと、前記データの論理演算を実行するため
の論理演算回路と、前記論理演算の結果を表示す
るための複数のフラグレジスタと、前記データの
例外検出を行うためのデータチエツク回路と、前
記例外が検出された場合に前記複数のフラグレジ
スタの本来は有り得ない組み合わせに変更するた
めのフラグ変更回路と、前記複数のフラグレジス
タの表示にしたがつて条件付き分岐の分岐モード
を選択するためのフラグセレクタとを具備し、前
記データチエツク回路により例外が検出されたと
き、前記フラグ変更回路により前記フラグセレク
タの分岐方向を強制的に変更するよう構成した例
外検出方式。
1. In an exception detection method realized by a microprogram control method, a working register for storing data that requires exception detection and condition determination, a logic operation circuit for performing a logic operation on the data, and the logic A plurality of flag registers for displaying the result of an operation, a data check circuit for detecting an exception in the data, and a combination of the plurality of flag registers that is originally impossible when the exception is detected. and a flag selector for selecting a branch mode of a conditional branch according to the display of the plurality of flag registers, and when an exception is detected by the data check circuit, the flag change circuit An exception detection method configured to forcibly change the branch direction of the flag selector using a change circuit.
JP58062772A 1983-04-08 1983-04-08 Exception detecting system Granted JPS59188745A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58062772A JPS59188745A (en) 1983-04-08 1983-04-08 Exception detecting system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58062772A JPS59188745A (en) 1983-04-08 1983-04-08 Exception detecting system

Publications (2)

Publication Number Publication Date
JPS59188745A JPS59188745A (en) 1984-10-26
JPH0441377B2 true JPH0441377B2 (en) 1992-07-08

Family

ID=13210001

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58062772A Granted JPS59188745A (en) 1983-04-08 1983-04-08 Exception detecting system

Country Status (1)

Country Link
JP (1) JPS59188745A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS57114946A (en) * 1981-01-07 1982-07-17 Hitachi Ltd Microprogram controller
JPS57159348A (en) * 1981-03-27 1982-10-01 Fujitsu Ltd Microprogram control system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS57114946A (en) * 1981-01-07 1982-07-17 Hitachi Ltd Microprogram controller
JPS57159348A (en) * 1981-03-27 1982-10-01 Fujitsu Ltd Microprogram control system

Also Published As

Publication number Publication date
JPS59188745A (en) 1984-10-26

Similar Documents

Publication Publication Date Title
KR960001948B1 (en) Programmable memory control method and apparatus with error adjustment and test function
EP0155211A2 (en) System for by-pass control in pipeline operation of computer
JPH031699B2 (en)
US3982231A (en) Prefixing in a multiprocessing system
US5142673A (en) Bus monitor with dual port memory for storing selectable trigger patterns
US4878189A (en) Microcomputer having Z-flag capable of detecting coincidence at high speed
CA1308490C (en) Operation apparatus
JPH0441377B2 (en)
US4301514A (en) Data processor for processing at one time data including X bytes and Y bits
JP2812292B2 (en) Image processing device
JPH03288228A (en) Information processor
JP3245488B2 (en) List vector processing device
JPH04184535A (en) Parallel arithmetic units
JP3523407B2 (en) Information processing equipment
JPH04241051A (en) Cache device
JPS63231553A (en) Partial writing system
JPS60209837A (en) Microprogram controller
JPS61282933A (en) Digital signal processor
JPS6113345A (en) Tagged data processing device
JPH06100965B2 (en) Micro program controller
JPS61204754A (en) Data transfer device
JPS5860354A (en) Multiplying device
JPS62151982A (en) Information processor
JPH01316826A (en) Register file address circuit
JPS61283933A (en) Control system for microprogram