JPH0557614B2 - - Google Patents

Info

Publication number
JPH0557614B2
JPH0557614B2 JP60298422A JP29842285A JPH0557614B2 JP H0557614 B2 JPH0557614 B2 JP H0557614B2 JP 60298422 A JP60298422 A JP 60298422A JP 29842285 A JP29842285 A JP 29842285A JP H0557614 B2 JPH0557614 B2 JP H0557614B2
Authority
JP
Japan
Prior art keywords
flag
calculation
type information
control
arithmetic
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
JP60298422A
Other languages
Japanese (ja)
Other versions
JPS62157944A (en
Inventor
Koji Iida
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 JP29842285A priority Critical patent/JPS62157944A/en
Publication of JPS62157944A publication Critical patent/JPS62157944A/en
Publication of JPH0557614B2 publication Critical patent/JPH0557614B2/ja
Granted legal-status Critical Current

Links

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は情報処理装置におけるマイクロプログ
ラム制御装置に関し、特に異なるマクロ命令に対
し同一のマイクロ命令列を使用することができる
マイクロプログラム制御装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a microprogram control device in an information processing device, and particularly to a microprogram control device that can use the same microinstruction sequence for different macroinstructions.

〔従来の技術〕[Conventional technology]

一般に、マイクロプログラム制御方式を採用す
る情報処理装置においては、一つのマクロ命令が
与えられると複数個のマイクロ命令から構成され
る一連のマイクロ命令列が制御記憶装置から読出
されて実行される。
Generally, in an information processing device that employs a microprogram control system, when one macroinstruction is given, a series of microinstructions made up of a plurality of microinstructions is read out from a control storage device and executed.

例えば、オペランド0とオペランド1とを加算
し、その加算結果を演算器の出力レジスタに格納
するマクロ命令には、従来、例えば次のようなマ
イクロ命令列が含まれる。
For example, a macroinstruction that adds operand 0 and operand 1 and stores the addition result in an output register of an arithmetic unit conventionally includes, for example, the following microinstruction sequence.

PA=OPR0 PB=OPR1 ADD(RA,RB) OPR0=ALU 但し、RA,PBはレジスタ、ALUは演算器の
出力レジスタである。
PA=OPR0 PB=OPR1 ADD (RA, RB) OPR0=ALU However, RA and PB are registers, and ALU is the output register of the arithmetic unit.

また、オペランド0からオペランド1を減算
し、その減算結果を演算器の出力レジスタに格納
するマイクロ命令には、従来、例えば次のような
マイクロ命令列が含まれる。
Further, a microinstruction for subtracting operand 1 from operand 0 and storing the subtraction result in an output register of an arithmetic unit conventionally includes, for example, the following microinstruction sequence.

RA=OPR0 RB=OPR1 SUB(RA,RB) OPR0=ALU このように、従来のマイクロプログラム制御装
置においては、演算種別が異なる毎にそれ専用の
マイクロ命令列を用意しておく必要がある。
RA=OPR0 RB=OPR1 SUB (RA, RB) OPR0=ALU As described above, in the conventional microprogram control device, it is necessary to prepare a dedicated microinstruction sequence for each different type of operation.

また、演算の結果を演算フラグに反映する処理
も、従来は各マクロ命令に対応するマイクロ命令
列中に含めたフラグ更新用のマイクロ命令の実行
によつて演算フラグをセツトするか或いはリセツ
トすることにより行なわれ、演算種別が相違する
場合と同様にそれ専用マイクロ命令列を制御記憶
装置に用意しておく必要がある。
Furthermore, the process of reflecting the result of an operation on the operation flag has conventionally been carried out by setting or resetting the operation flag by executing a microinstruction for updating the flag included in the microinstruction sequence corresponding to each macroinstruction. As in the case where the type of operation is different, it is necessary to prepare a dedicated microinstruction sequence in the control storage device.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

従つて、マイクロ命令列を格納するマイクロ
ROM等の制御記憶装置には、各マクロ命令に対
応したマイクロ命令列を別個、独立に記憶してお
く必要が生じ、制御記憶装置の容量が増加すると
いう欠点があつた。
Therefore, the micro-instruction string
A control storage device such as a ROM has the disadvantage that it becomes necessary to separately and independently store a microinstruction sequence corresponding to each macroinstruction, which increases the capacity of the control storage device.

もし、演算種別が相違しても同一のマイクロ命
令列が使用できるようになれば、それだけ制御記
憶装置の容量の減少化が可能となつて経済的、ス
ペース的にも大変有効であり、更に、各マクロ命
令に対するマイクロプロシジヤの共通ルーチンか
を実現することも可能となる。
If it were possible to use the same microinstruction sequence even when the types of operations differ, it would be possible to reduce the capacity of the control storage device, which would be very effective in terms of economy and space. It is also possible to implement a common microprocedure routine for each macroinstruction.

しかしながら、演算種別が異なれば演算後のフ
ラグ更新動作も相違する。そのため単に演算実行
用のマイクロ命令列のみ共通化したとしても、フ
ラグ更新用マイクロ命令列を演算種別毎に用意す
る必要がある。つまり、マイクロ命令列を完全に
共通化することができない。
However, if the calculation type is different, the flag updating operation after the calculation is also different. Therefore, even if only the microinstruction sequences for executing operations are made common, it is necessary to prepare a microinstruction sequence for flag updating for each type of operation. In other words, it is not possible to completely standardize the microinstruction sequence.

そこで、本願発明の目的は、演算種別等が異な
るマイクロ命令であつても同一のマイクロ命令列
が使用可能なマイクロプログラム制御装置におい
て、マイクロ命令によるセツト、リセツトによら
ずフラグの更新を実行することにより、フラグ更
新ルーチンをも共通化することを目的とする。
Therefore, an object of the present invention is to update a flag without using a set or reset using a microinstruction in a microprogram control device in which the same microinstruction sequence can be used even if the microinstructions have different operation types. The purpose is to standardize flag update routines.

〔問題点を解決するための手段〕[Means for solving problems]

演算種別情報を保持する演算保持手段を有し、
該演算保持手段に保持された演算種別情報に応じ
た演算制御を演算制御手段に行なわせる情報処理
手段におけるマイクロプログラム制御装置におい
て、マクロ命令をデコードしてマイクロ命令に含
まれる演算種別情報と同一形式の演算種別情報を
生成するデコード手段と、該デコード手段で得ら
れた演算種別情報を保持する間接演算保持手段
と、該間接演算保持手段に保持された演算種別情
報と、マクロ命令に応じて制御記憶装置から読出
されたマイクロ命令に含まれる演算種別情報のう
ちの何れか一方の演算種別情報を、該マイクロ命
令の内容に応じて選択して前記演算保持手段に出
力する選択手段とを備えると共に、前記演算制御
手段は、前記演算保持手段中の演算種別情報によ
り決定されるフラグ制御信号を生成する構成と
し、且つ、 演算フラグの要因となる全てのステータスと変
更すべき演算フラグの内容とを入力とし、前記フ
ラグ制御信号の内容に基づいて複数の前記入力の
何れかを選択して演算フラグの更新を行なうフラ
グ選択情報を、各演算フラグ毎に設ける。
It has a calculation holding means for holding calculation type information,
In the microprogram control device in the information processing means that causes the arithmetic control means to perform arithmetic control according to the arithmetic type information held in the arithmetic holding means, the macro instruction is decoded to have the same format as the arithmetic type information included in the micro instruction. decoding means for generating operation type information, indirect operation holding means for holding the operation type information obtained by the decoding means, control according to the operation type information held in the indirect operation holding means, and a macro instruction. and selecting means for selecting one of the operation type information included in the microinstruction read from the storage device according to the content of the microinstruction and outputting the selected one to the operation holding means; , the arithmetic control means is configured to generate a flag control signal determined by the arithmetic type information in the arithmetic holding means, and the arithmetic control means generates a flag control signal determined by the arithmetic type information in the arithmetic holding means; Flag selection information for updating the calculation flag by selecting one of the plurality of inputs based on the content of the flag control signal is provided for each calculation flag.

〔作用〕[Effect]

複数のマクロ命令、例えば加算のマクロ命令と
減算のマクロ命令とで同一のマイクロ命令列を使
用する場合、マイクロ命令列としては、例えば次
のようなものを制御記憶装置に格納しておく。
When the same microinstruction sequence is used for a plurality of macroinstructions, for example, an addition macroinstruction and a subtraction macroinstruction, the following microinstruction sequence is stored in the control storage device.

PA=OPR0 PB=OPR1 ALU(RA,RB) OPR0=ALU 但し、ALU(RA,RB)は間接演算指定のマイ
クロ命令である。
PA=OPR0 PB=OPR1 ALU (RA, RB) OPR0=ALU However, ALU (RA, RB) is a microinstruction that specifies indirect operation.

例えば加算のマイクロ命令がデコードされる
と、加算である旨の演算種別情報が間接演算保持
手段に保持され、制御記憶装置から上記マイクロ
命令列が読出され、その間接演算指定により選択
手段は間接演算保持手段に保持された演算種別情
報を演算保持手段に出力する。従つて、演算制御
手段では加算の演算制御が実行される。また、例
えば減算のマクロ命令がデコードされると、間接
演算手段には減算である旨の演算種別情報が保持
され、制御記憶装置から上記マイクロ命令列と同
一のマイクロ命令列が読出され、その間接演算指
定により選択手段は間接演算保持手段に保持され
た減算の種別情報を演算保持手段に出力する。従
つて、この場合は演算制御手段での減算の演算制
御が実行されることになる。
For example, when an addition micro-instruction is decoded, the operation type information indicating that it is an addition is held in the indirect operation holding means, the micro-instruction sequence is read from the control storage device, and the selection means selects an indirect operation based on the indirect operation specification. The calculation type information held in the holding means is output to the calculation holding means. Therefore, the calculation control means performs calculation control of addition. For example, when a subtraction macro instruction is decoded, the indirect operation means holds operation type information indicating that it is subtraction, and the same micro instruction sequence as the above micro instruction sequence is read from the control storage device, and the indirect operation means stores the operation type information indicating that it is subtraction. In response to the operation designation, the selection means outputs the subtraction type information held in the indirect operation holding means to the operation holding means. Therefore, in this case, the arithmetic control of the subtraction is executed by the arithmetic control means.

なお、マイクロ命令列中に間接演算指定がな
く、従来と同様なADD(RA,RB)等の演算指定
情報が含まれている場合には、選択手段は制御記
憶装置から読出されたそのような演算指定情報を
演算保持手段に保持する。
Note that if there is no indirect operation specification in the microinstruction sequence and the same operation specification information as conventional ADD (RA, RB) is included, the selection means selects such information read from the control storage device. Calculation designation information is held in calculation holding means.

また、演算制御手段は、演算保持手段中の演算
種別情報に基づいてフラグ制御信号を生成し、各
フラグ選択手段はそのフラグ制御信号の内容に応
じて演算フラグの要因となる全てのステータスと
変更すべき演算フラグの内容とのうちから一つの
入力を選択し、対応する演算フラグの更新を行な
う。
Further, the arithmetic control means generates a flag control signal based on the operation type information in the arithmetic holding means, and each flag selection means selects all the statuses and changes that cause the arithmetic flag according to the contents of the flag control signal. One input is selected from among the contents of the computation flags to be executed, and the corresponding computation flag is updated.

〔実施例〕〔Example〕

次に本発明の実施例について図面を参照して説
明する。
Next, embodiments of the present invention will be described with reference to the drawings.

第1図は本発明の実施例の概略説明図であり、
マイクロ命令列のうちの演算ルーチン部分と、演
算フラグ更新ルーチン部分の双方の共通化を可能
とした実施例を示す。この実施例の装置は、間接
演算保持手段1と、選択手段2と、演算保持手段
3と、演算制御手段4と、N個のフラグ選択手段
5,6とから構成されている。
FIG. 1 is a schematic explanatory diagram of an embodiment of the present invention,
An embodiment will be described in which both the arithmetic routine part and the arithmetic flag update routine part of the microinstruction sequence can be made common. The apparatus of this embodiment is comprised of indirect calculation holding means 1, selection means 2, calculation holding means 3, calculation control means 4, and N flag selection means 5 and 6.

第1図において、間接演算手段1はマクロ命令
をデコードする図示しないデコード部より与えら
れる演算種別情報を保持するものであり、演算保
持手段3は演算制御手段4が図示しない演算器へ
の演算制御信号14やフラグ制御信号15を発生
するために必要な演算情報を保持するものであ
る。選択手段2は、マイクロ命令列を記憶する図
示しない制御記憶装置から読出されたマイクロ命
令をデコードすることによつて、間接演算保持手
段1に保持された演算種別情報とマイクロ命令中
の演算種別情報とのうちから演算保持手段3へ入
力すべき演算種別情報を選択信号12,13を用
いて選択するものである。また、各フラグ選択手
段5,6は、フラグ制御信号15の内容に応じて
それぞれに入力されている複数の入力信号16〜
21の内からフラグ更新に必要な信号を選択して
フラグ入力信号22,23を生成するものであ
る。
In FIG. 1, indirect calculation means 1 holds calculation type information given by a decoding section (not shown) that decodes macro instructions, and calculation holding means 3 is used to control calculations by calculation control means 4 to a calculation unit (not shown). It holds calculation information necessary for generating the signal 14 and flag control signal 15. The selection means 2 decodes the microinstruction read from the control storage device (not shown) that stores the microinstruction sequence, thereby decoding the operation type information held in the indirect operation holding means 1 and the operation type information in the microinstruction. The calculation type information to be input to the calculation holding means 3 is selected from among the selection signals 12 and 13. Further, each of the flag selection means 5 and 6 receives a plurality of input signals 16 to 16 inputted thereto according to the contents of the flag control signal 15.
The flag input signals 22 and 23 are generated by selecting a signal necessary for flag update from among the signals 21 and 21.

第2図は第1図に示した構成のうち、マイクロ
命令列のうちの演算ルーチン部分の共通化を行な
う部分の実施例のブロツク図であり、30は第1
図の間接演算保持手段1を構成する間接演算レジ
スタ、31は第1図の選択手段2を構成する演算
デコーダ、32は第1図の演算保持手段3を構成
する演算レジスタ、33はストローブ信号Aを伝
える信号線、34はストローブ信号Bを伝える信
号線、35はマイクロ命令中の演算種別情報を伝
えるマイクロ命令バス(例えば5ビツトのバス)、
36はマクロ命令をデコードするデコード部、3
7は制御記憶装置、38はマイクロプログラム・
カウンタ、39はカウンタ更新器40はデコー
ダ、41はデイレイ、42はフラグストローブ、
43は演算マイクロ指令である。
FIG. 2 is a block diagram of an embodiment of a part of the configuration shown in FIG. 1, in which the arithmetic routine part of the microinstruction sequence is shared;
31 is an arithmetic decoder that constitutes the selection means 2 of FIG. 1; 32 is an arithmetic register that constitutes the arithmetic holding means 3 of FIG. 1; 33 is a strobe signal A 34 is a signal line that transmits the strobe signal B; 35 is a microinstruction bus (for example, a 5-bit bus) that transmits operation type information in the microinstruction;
36 is a decoding unit that decodes macro instructions;
7 is a control storage device, 38 is a microprogram
39 is a counter updater, 40 is a decoder, 41 is a delay, 42 is a flag strobe,
43 is an arithmetic microcommand.

制御記憶装置37には所定のマイクロ命令列が
記憶されており、例えば本実施例では、そのp番
地以下に次のようなマイクロ命令列が格納されて
いる。
A predetermined microinstruction sequence is stored in the control storage device 37. For example, in this embodiment, the following microinstruction sequence is stored below address p.

PA=OPR0 PB=OPR1 ALU(RA,RB) OPR0=ALUF ここで、ALU(RA,RB)は間接演算指定のマ
イクロ命令、OPR0=ALUFはオペランドOPR0
とオペランドORP1とに対し間接演算指定で指定
された操作を施した結果を演算器の出力レジスタ
ALUに格納すると共に、演算フラグの更新を指
示するマイクロ命令である。
PA=OPR0 PB=OPR1 ALU (RA, RB) OPR0=ALUF Here, ALU (RA, RB) is a microinstruction with indirect operation specification, OPR0=ALUF is the operand OPR0
The result of performing the operation specified by the indirect operation specification on and operand ORP1 is stored in the output register of the arithmetic unit.
This is a microinstruction that instructs to store in the ALU and update the operation flag.

上記間接演算指定の実現方法としては、従来の
演算マイクロ命令の空きコードに間接演算指定を
割当てることで可能である。例えば演算マイクロ
命令を構成する複数ビツトのうちの5ビツトがマ
イクロ命令バス35に取出される場合、例えば第
3図に示すような内容とすれば良い。第3図にお
いて、aは演算マイクロ指定、mmmmmはマイ
クロ命令バス35のビツトであり、「10XXXX」
で算術・論理・十進演算のオペレーシヨンが指定
され、「110XXX」でシフト演算が指定され、
「111XXX」で間接演算が指定され、
「0XXXXX」がノンオペレーシヨンであること
を示す。また、第3図の右端に示す選択手段(演
算デコーダ)出力信号は、各コードに対応してス
トローブ信号A,Bのうち何れを出力するかを示
したもので、間接演算が指定されたときにストロ
ーブ信号Aが出力されることを示す。
The above-mentioned indirect operation designation can be implemented by assigning the indirect operation designation to a vacant code of a conventional operation microinstruction. For example, when five bits out of a plurality of bits constituting an arithmetic microinstruction are taken out to the microinstruction bus 35, the contents may be as shown in FIG. 3, for example. In Figure 3, a is the operation micro specification, mmmmm is the bit of the micro instruction bus 35, and is "10XXXX".
Arithmetic, logical, and decimal operations are specified in ``110XXX'', and shift operations are specified in ``110XXX''.
Indirect operation is specified with "111XXX",
“0XXXXX” indicates non-operation. Furthermore, the selection means (arithmetic decoder) output signal shown at the right end of Fig. 3 indicates which strobe signal A or B is output corresponding to each code, and when indirect calculation is specified. This indicates that strobe signal A is output.

さて、第2図において、制御記憶装置37に記
憶された上記間接演算指定を含むマイクロ命令列
を使用するマクロ命令として、加算命令と減算命
令があるものとした場合の第2図の動作を以下説
明する。
Now, in FIG. 2, the operation of FIG. 2 when it is assumed that there are an addition instruction and a subtraction instruction as macro instructions that use the microinstruction sequence containing the above-mentioned indirect operation specification stored in the control storage device 37 is as follows. explain.

例えば加算命令のマクロ命令がフエツチされて
デコード部36でデコードされると、デコード部
36から加算である旨の演算種別情報がデイレイ
41に出力されて命令開始信号によつて間接演算
レジスタ30にラツチされる。また、デコード部
36は、マイクロプログラム・カウンタ38に対
し制御記憶装置37のp番地をセツトする。これ
により、制御記憶装置37から前記間接演算指定
を含むマイクロ命令列が読出される。
For example, when a macro instruction of an addition instruction is fetched and decoded by the decoding section 36, operation type information indicating that it is an addition is output from the decoding section 36 to the delay 41, and is latched to the indirect operation register 30 by an instruction start signal. be done. The decoder 36 also sets address p of the control storage device 37 for the microprogram counter 38. As a result, the microinstruction sequence including the indirect operation designation is read from the control storage device 37.

この読出されたマイクロ命令列の実行が進み、
演算マイクロ命令ALU(RA,RB)が実行される
タイミングになると、今の例では間接演算指定を
含む演算マイクロ命令の場合であるので、制御記
憶装置37から読出された演算種別情報をデコー
ドする演算デコーダ31からストローブ信号Aが
発生され、間接演算レジスタ30にラツチされた
演算種別情報すなわち加算である旨の演算種別情
報が演算レジスタ32に転送される。従つて、こ
の演算レジスタ32の格納情報に従つて動作する
第1図の演算制御手段4は加算の演算制御を実行
する。
The execution of this read microinstruction sequence progresses,
When the timing for executing the arithmetic micro-instruction ALU (RA, RB) comes, since in this example the arithmetic micro-instruction includes an indirect operation specification, the arithmetic micro-instruction ALU (RA, RB) is executed to decode the arithmetic type information read from the control storage device 37. A strobe signal A is generated from the decoder 31, and the operation type information latched in the indirect operation register 30, that is, the operation type information indicating addition, is transferred to the operation register 32. Therefore, the arithmetic control means 4 of FIG. 1, which operates according to the information stored in the arithmetic register 32, executes the arithmetic control of addition.

次に、減算のマクロ命令がフエツチされ、デコ
ード部36でデコードされると、デコード部36
から減算である旨の演算種別情報がデイレイ41
に出力されて命令開始信号によつて間接演算レジ
スタ30にラツチされる。また、デコード部36
は、マイクロプログラム・カウンタ38に対し制
御記憶装置37のp番地をセツトする。即ち、加
算の場合と同一のマイクロ命令列の先頭アドレス
を指示させる。これにより、制御記憶装置37か
らは前記間接演算指定を含むマイクロ命令列と同
一のマイクロ命令が読出される。そして、マイク
ロ命令列の実行が進み、演算マイクロ命令が実行
されるタイミングになると、この例でも間接演算
指定を含む演算マイクロ命令の場合であるので、
制御記憶装置37から読出された演算種別情報を
デコードする演算デコーダ31からストローブ信
号Aが発生され、間接演算レジスタ30にラツチ
された演算種別情報すなわち減算である旨の演算
種別情報が演算レジスタ32に転送され、第1図
の演算制御手段4は減算の演算制御を実行する。
即ち、同一のマイクロ命令列を使用して異なるマ
クロ命令の実行が可能となる。
Next, when the subtraction macro instruction is fetched and decoded by the decoding section 36, the decoding section 36
The operation type information indicating that it is a subtraction from is delayed 41.
and is latched into the indirect operation register 30 by the instruction start signal. In addition, the decoding section 36
sets address p of control storage 37 for microprogram counter 38. That is, the start address of the same microinstruction sequence as in the case of addition is specified. As a result, the same microinstruction as the microinstruction sequence including the indirect operation designation is read from the control storage device 37. Then, as the execution of the microinstruction sequence progresses, when the time comes to execute the arithmetic microinstruction, this example also applies to the arithmetic microinstruction that includes an indirect operation specification, so
A strobe signal A is generated from the arithmetic decoder 31 that decodes the arithmetic type information read from the control storage device 37, and the arithmetic type information latched in the indirect arithmetic register 30, that is, the arithmetic type information indicating that it is subtraction, is transferred to the arithmetic register 32. The arithmetic control means 4 shown in FIG. 1 executes subtraction arithmetic control.
That is, it is possible to execute different macro instructions using the same micro instruction sequence.

ところで、幾種類かの演算を組合わせたマイク
ロ命令列を実行する場合には、間接演算レジスタ
30は一時には唯一の演算種別情報しか保持でき
ないので、マイクロ命令中に含まれる演算指定情
報によつて演算指定を行なう必要がある。第2図
の構成によれば、制御記憶装置37から読出され
た演算マイクロ命令中に間接演算指定がなけれ
ば、演算デコーダ31はストローブ信号Aの代わ
りにストローブ信号Bを出力するので、マイクロ
命令バス35の演算種別情報が演算レジスタ32
に転送され、マイクロ命令列中で指定した演算種
別による制御も可能となる。
By the way, when executing a microinstruction sequence that combines several types of operations, the indirect operation register 30 can only hold information on one type of operation at a time, so the operation specification information included in the microinstruction It is necessary to specify the calculation. According to the configuration shown in FIG. 2, if there is no indirect calculation specification in the calculation microinstruction read from the control storage device 37, the calculation decoder 31 outputs the strobe signal B instead of the strobe signal A, so that the microinstruction bus 35 calculation type information is stored in the calculation register 32.
It is also possible to control the operation type specified in the microinstruction sequence.

第4図は第1図に示した構成のうち、マイクロ
命令のうちの演算フラグ更新処理を同一のマイク
ロ命令例えば前記したALUFによつて行なわせる
実施例のブロツク図であり、更新される演算フラ
グとして、Cフラグ、Oフラグ、Zフラグの3種
のフラグを測定している。なお、Cフラグセレク
タ50、Oフラグセレクタ51、Zフラグセレク
タ52は第1図のフラグ選択手段5,6の一つに
対応しており、53はフラグレジスタ、54〜5
6はデイレイ、57〜59はゲート回路、15は
第1図の演算制御手段4から出力されるフラグ制
御信号、42は第2図のデコーダ40から取出さ
れるフラグストローブ、C+、SFT−C+、
DCY+はCフラグの更新に必要なステータス、
C−flagはCフラグ自身の内容、C−flag−INは
Cフラグの更新情報、O+、SFT OV+はOフ
ラグの更新に必要なステータス、O−flagはOフ
ラグ自身の内容、O−flag−INはOフラグの更
新情報、Z+、NE+はZフラグの更新に必要な
ステータス、Z−flagはZフラグ自身の内容、Z
−flag−INはZフラグの更新情報である。
FIG. 4 is a block diagram of an embodiment of the configuration shown in FIG. 1 in which the operation flag updating process of the microinstructions is performed by the same microinstruction, for example, the above-mentioned ALUF, and the operation flags to be updated are Three types of flags are measured: C flag, O flag, and Z flag. Note that the C flag selector 50, the O flag selector 51, and the Z flag selector 52 correspond to one of the flag selection means 5 and 6 shown in FIG.
6 is a delay, 57 to 59 are gate circuits, 15 is a flag control signal output from the arithmetic control means 4 in FIG. 1, 42 is a flag strobe taken out from the decoder 40 in FIG. 2, C+, SFT-C+,
DCY+ is the status required to update the C flag,
C-flag is the content of the C flag itself, C-flag-IN is the update information of the C flag, O+, SFT OV+ is the status necessary for updating the O flag, O-flag is the content of the O flag itself, O-flag- IN is the update information of the O flag, Z+, NE+ is the status necessary for updating the Z flag, Z-flag is the content of the Z flag itself, Z
-flag-IN is Z flag update information.

第4図において、各フラグC,O,Zはフラグ
レジスタ53中に位置し、入力側にはゲート回路
57〜59を介してフラグセレクタ50〜52が
あり、各フラグセレクタ50〜52には更新に必
要なステータスと、対象とするフラグ自身の内容
と、フラグ制御信号15が入力される、フラグ制
御信号15は、第1図の演算制御手段4において
演算保持手段3(第2図の演算レジスタ30)と
保持情報に基づいて生成される。第5図に、演算
レジスタ30に保持された5ビツトの演算種別情
報に対応するオペレーシヨンの種類と、演算制御
手段4が発生するフラグ制御信号の内容との対応
関係の一例を示す。
In FIG. 4, each flag C, O, and Z are located in a flag register 53, and flag selectors 50 to 52 are provided on the input side via gate circuits 57 to 59, and each flag selector 50 to 52 has an update function. The flag control signal 15 is inputted with the status necessary for the flag itself, the contents of the target flag itself, and the flag control signal 15. 30) and the retained information. FIG. 5 shows an example of the correspondence between the type of operation corresponding to the 5-bit operation type information held in the operation register 30 and the content of the flag control signal generated by the operation control means 4.

第4図において、演算制御手段4で発生された
フラグ制御信号15は、各フラグセレクタ50〜
52における入力ステータスのセレクト条件にな
つており、各演算において更新時にフラグを変化
させるステータスの組合わせを定義する働きをす
る。フラグ制御信号15の内容に対応して各フラ
グセレクタ50〜52からどのような内容のフラ
グ更新情報C−flag−IN,O−flag−IN,Z−
flag−INが生成されるかを第6図に示す。なお、
第6図の受端にオペレーシヨンタイプを並記す
る。
In FIG. 4, the flag control signal 15 generated by the arithmetic control means 4 is transmitted to each flag selector 50 to
52, and serves to define the combination of statuses that cause the flags to change at the time of update in each calculation. What kind of flag update information C-flag-IN, O-flag-IN, Z- is sent from each flag selector 50 to 52 in accordance with the content of the flag control signal 15?
FIG. 6 shows how flag-IN is generated. In addition,
The operation type is also written at the receiving end in FIG.

演算が実行されて演算制御手段4からフラグ制
御信号15が出力されると、各フラグセレクタ5
0〜52ではそのフラグ制御信号15の内容に応
じたステータス或いはフラグ自身の内容が選択さ
れ、マイクロ命令によりフラグストローブ42が
発生すると、ゲート回路57〜59が開かれて各
フラグセレクタ50〜52の出力により各フラグ
が更新される。
When the calculation is executed and the flag control signal 15 is output from the calculation control means 4, each flag selector 5
0 to 52, the status according to the content of the flag control signal 15 or the content of the flag itself is selected, and when the flag strobe 42 is generated by a microinstruction, the gate circuits 57 to 59 are opened and the flag selectors 50 to 52 are selected. Each flag is updated by the output.

フラグ更新ルーチンを共通化するとき留意すべ
き点は、このフラグストローブ42は必ず発生す
るので、各フラグは演算を実行するごとに更新さ
れることである。しかし、論理演算の場合にはC
−flagとO−flagは変化してはならない等、更新
してはいけないフラグも存在する。本実施例にお
いて、第6図に示すように各フラグセレクタの選
択信号の一つにフラグ自身の内容を含めているの
はこの為であり、更新しないフラグに対して現在
のフラグの値をもつて更新することにより、実質
的に更新していないものと等しくなる。このよう
にして、従来のマイクロ命令によるセツト、リセ
ツトによらずフラグの更新を実行することによ
り、フラグ更新ルーチンの共通化が可能となる。
When standardizing the flag update routine, it should be noted that since the flag strobe 42 always occurs, each flag is updated each time an operation is executed. However, in the case of logical operations, C
There are also flags that should not be updated, such as -flag and O-flag that should not change. This is why, in this embodiment, the content of the flag itself is included in one of the selection signals of each flag selector as shown in FIG. By updating it, it becomes essentially the same as not updating it. In this way, the flag update routine can be made common by updating the flags without using conventional micro-instructions for setting or resetting.

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

以上説明したように、本発明によれば、演算制
御手段が演算保持手段中の演算種別情報に基づい
てフラグ制御信号を生成するようにし且つそのフ
ラグ制御信号に応じて演算フラグの更新を行うフ
ラグ選択手段を設けることによつて、異なるマク
ロ命令に対し同一のマイクロ命令によつてフラグ
の更新を行わせることができる効果がある。従つ
て、本発明はマイクロプログラム制御に適用すれ
ば、制御記憶装置の容量の減少が可能となる利点
がある。なお、本発明は、各マクロ命令のマイク
ロ命令列を共通化する場合等に広く応用が可能で
ある。
As explained above, according to the present invention, the arithmetic control means generates a flag control signal based on the arithmetic type information in the arithmetic holding means, and the arithmetic flag is updated in accordance with the flag control signal. By providing the selection means, there is an effect that flags can be updated by the same microinstruction for different macroinstructions. Therefore, when the present invention is applied to microprogram control, there is an advantage that the capacity of the control storage device can be reduced. Note that the present invention can be widely applied to cases where a microinstruction sequence of each macroinstruction is shared.

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

第1図は本発明の実施例の概略説明図、第2図
は第1図に示した構成のうち、マイクロ命令列の
うちの演算ルーチン部分の共通化を行なう部分の
実施例の要部ブロツク図、第3図は間接演算指定
動作の説明図、第4図は第1図に示した構成のう
ち、マイクロ命令列のうちの演算フラグ更新ルー
チン部分の共通化を行なう部分の実施例の要部ブ
ロツク図、第5図は演算制御手段4のフラグ制御
信号生成処理の説明図および、第6図はフラグセ
レクタ50〜52の動作説明図である。 図において、1は間接演算保持手段、2は選択
手段、3は演算保持手段、4は演算制御手段、
5,6はフラグ選択手段、12,13は選択信
号、14は演算制御信号、15はフラグ制御信
号、16〜21は入力信号、22,23はフラグ
入力信号、30は間接演算レジスタ、31は演算
デコーダ、32は演算レジスタ、33はストロー
ブ信号Aを伝える信号線、34はストローブ信号
Bを伝える信号線、50〜52はフラグセレク
タ、53はフラグレジスタである。
FIG. 1 is a schematic explanatory diagram of an embodiment of the present invention, and FIG. 2 is a main block diagram of an embodiment of a portion of the configuration shown in FIG. 1 in which the arithmetic routine part of the microinstruction sequence is shared. 3 is an explanatory diagram of the indirect operation specification operation, and FIG. 4 is a summary of an embodiment of the portion of the configuration shown in FIG. 1 in which the operation flag update routine portion of the microinstruction sequence is shared. FIG. 5 is an explanatory diagram of the flag control signal generation process of the arithmetic control means 4, and FIG. 6 is an explanatory diagram of the operation of the flag selectors 50 to 52. In the figure, 1 is indirect calculation holding means, 2 is selection means, 3 is calculation holding means, 4 is calculation control means,
5 and 6 are flag selection means, 12 and 13 are selection signals, 14 is an operation control signal, 15 is a flag control signal, 16 to 21 are input signals, 22 and 23 are flag input signals, 30 is an indirect operation register, and 31 is an 32 is an arithmetic register; 33 is a signal line for transmitting strobe signal A; 34 is a signal line for transmitting strobe signal B; 50 to 52 are flag selectors; 53 is a flag register.

Claims (1)

【特許請求の範囲】 1 演算種別情報を保持する演算保持手段を有
し、該演算保持手段に保持された演算種別情報に
応じた演算制御を演算制御手段に行なわせる情報
処理手段におけるマイクロプログラム制御装置に
おいて、 マクロ命令をデコードしてマイクロ命令に含ま
れる演算種別情報と同一形式の演算種別情報を生
成するデコード手段と、 該デコード手段で得られた演算種別情報を保持
する間接演算保持手段と、 該間接演算保持手段に保持された演算種別情報
と、マクロ命令に応じて制御記憶装置から読出さ
れたマイクロ命令に含まれる演算種別情報のうち
の何れか一方の演算種別情報を、該マイクロ命令
の内容に応じて選択して前期演算保持手段に出力
する選択手段とを備えると共に、 前記演算制御手段は、前記演算保持手段中の演
算種別情報により決定されるフラグ制御信号を生
成する構成とし、且つ、 演算フラグの要因となる全てのステータスと変
更すべき演算フラグの内容とを入力とし、前記フ
ラグ制御信号の内容に基づいて複数の前記入力の
何れかの選択して演算フラグの更新を行なうフラ
グ選択手段を、各演算フラグ毎に具備したことを
特徴とするマイクロプログラム制御装置。
[Scope of Claims] 1. Microprogram control in an information processing means that has a calculation holding means for holding calculation type information and causes the calculation control means to perform calculation control according to the calculation type information held in the calculation holding means. In the apparatus, decoding means decodes the macro instruction to generate operation type information in the same format as operation type information included in the micro instruction, indirect operation holding means holding the operation type information obtained by the decoding means, Either the operation type information held in the indirect operation holding means or the operation type information included in the microinstruction read from the control storage device in response to the macroinstruction is stored in the microinstruction. a selection means for selecting and outputting the selection to the former calculation holding means according to the content; and the calculation control means is configured to generate a flag control signal determined by calculation type information in the calculation holding means; , a flag that takes as input all the statuses that are factors of the calculation flag and the contents of the calculation flag to be changed, and updates the calculation flag by selecting one of the plurality of inputs based on the contents of the flag control signal. A microprogram control device characterized in that a selection means is provided for each calculation flag.
JP29842285A 1985-12-31 1985-12-31 Microprogram control device Granted JPS62157944A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP29842285A JPS62157944A (en) 1985-12-31 1985-12-31 Microprogram control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP29842285A JPS62157944A (en) 1985-12-31 1985-12-31 Microprogram control device

Publications (2)

Publication Number Publication Date
JPS62157944A JPS62157944A (en) 1987-07-13
JPH0557614B2 true JPH0557614B2 (en) 1993-08-24

Family

ID=17859500

Family Applications (1)

Application Number Title Priority Date Filing Date
JP29842285A Granted JPS62157944A (en) 1985-12-31 1985-12-31 Microprogram control device

Country Status (1)

Country Link
JP (1) JPS62157944A (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0231228A (en) * 1988-07-21 1990-02-01 Toshiba Corp Information processor
JP3055139B2 (en) * 1989-05-31 2000-06-26 日本電気株式会社 Micro program control method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5015454A (en) * 1973-06-07 1975-02-18
JPS538034A (en) * 1976-06-30 1978-01-25 Toshiba Corp Electronic computer
JPS5750050A (en) * 1980-09-09 1982-03-24 Toshiba Corp Microprogram control type electronic computer

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5015454A (en) * 1973-06-07 1975-02-18
JPS538034A (en) * 1976-06-30 1978-01-25 Toshiba Corp Electronic computer
JPS5750050A (en) * 1980-09-09 1982-03-24 Toshiba Corp Microprogram control type electronic computer

Also Published As

Publication number Publication date
JPS62157944A (en) 1987-07-13

Similar Documents

Publication Publication Date Title
US4179731A (en) Microprogrammed control system
US5129068A (en) Operand address calculation in a pipeline processor by decomposing the operand specifier into sequential step codes
US4131943A (en) Microprogrammed computer employing a decode read only memory (DROM) and a microinstruction read only memory (ROM)
JPH03147021A (en) Instruction designation system and instruction execution system
US4539635A (en) Pipelined digital processor arranged for conditional operation
JPS6239780B2 (en)
JPS62197830A (en) Data processing system
US4945511A (en) Improved pipelined processor with two stage decoder for exchanging register values for similar operand instructions
US4763246A (en) Microprogram control
EP0378415A2 (en) Multiple instruction dispatch mechanism
JPH05150979A (en) Immediate operand expansion system
JPH031231A (en) Microprogram controller
JPH0557614B2 (en)
US4799151A (en) Microprogram control circuit
JPH0222413B2 (en)
JPS6217773B2 (en)
JPS6057435A (en) Microprocessor
JP2583506B2 (en) Data processing device
JPH0833820B2 (en) Micro program controller
JPS6226485B2 (en)
JPS60157635A (en) Microprogram controller
JPS59501998A (en) Multiple control storage in a pipelined microcontroller to handle nested subroutines
JP2825315B2 (en) Information processing device
JPS6389930A (en) Microprogram controller
JPS6375833A (en) Information processor