JPH0233173B2 - - Google Patents

Info

Publication number
JPH0233173B2
JPH0233173B2 JP57205729A JP20572982A JPH0233173B2 JP H0233173 B2 JPH0233173 B2 JP H0233173B2 JP 57205729 A JP57205729 A JP 57205729A JP 20572982 A JP20572982 A JP 20572982A JP H0233173 B2 JPH0233173 B2 JP H0233173B2
Authority
JP
Japan
Prior art keywords
data
instruction
arithmetic
state variable
state
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
JP57205729A
Other languages
Japanese (ja)
Other versions
JPS5995646A (en
Inventor
Mitsuo Oochi
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 JP57205729A priority Critical patent/JPS5995646A/en
Publication of JPS5995646A publication Critical patent/JPS5995646A/en
Publication of JPH0233173B2 publication Critical patent/JPH0233173B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/30Arrangements for executing machine instructions, e.g. instruction decode
    • G06F9/30003Arrangements for executing specific machine instructions
    • G06F9/30007Arrangements for executing specific machine instructions to perform operations on data operands
    • G06F9/3001Arithmetic instructions

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computational Mathematics (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Executing Machine-Instructions (AREA)

Description

【発明の詳細な説明】 本発明は、特に、情報処理装置における演算の
制御を行なう演算制御装置に関する。
DETAILED DESCRIPTION OF THE INVENTION The present invention particularly relates to an arithmetic control device that controls arithmetic operations in an information processing device.

一般に、情報処理装置のプロセツサは記憶装置
からフエツチした命令コードに従つて演算を実行
する。演算をほどこすデータが正数であるか負数
であるか、あるいはオーバーフローした数である
か否か等いわゆるデータの状態に関係なく演算が
行なわれるのが普通である。データの状態によつ
て処理を変えたい場合は、まずデータの状態を調
べる命令を実行し、その状態によつて分岐する条
件分岐命令を実行する。この条件分岐によつて処
理の分岐を実現している。
Generally, a processor of an information processing device executes operations according to instruction codes fetched from a storage device. Generally, operations are performed regardless of the state of the data, such as whether the data to be operated on is a positive number, a negative number, or an overflow number. If you want to change the process depending on the state of the data, first execute an instruction to check the state of the data, and then execute a conditional branch instruction that branches depending on the state. This conditional branch realizes processing branching.

例えば、「A+|B|」を実行する場合、あら
かじめBの正負を判定しておきBが正なら「A+
B」、Bが負ならば「A−B」を実行するルーチ
ンに分岐する必要がある。
For example, when executing "A+|B|", first determine whether B is positive or negative, and if B is positive, "A+
If B is negative, it is necessary to branch to a routine that executes A-B.

また、例えば、「記憶装置から読み出された演
算データAが定数“T”と等しければ、定数
“S”を加算し等しくなければ演算データAをそ
のまま出力する」例について以下に説明する。
Further, for example, an example in which "if the calculation data A read from the storage device is equal to the constant "T", the constant "S" is added thereto; if they are not equal, the calculation data A is output as is" will be described below.

この場合、まず、記憶装置から、演算データA
を入力レジスタにロードするLoad命令を実行す
る。
In this case, first, the calculation data A
Execute the Load instruction to load into the input register.

次いで、この演算データAを定数“T”と比較
するCOMPARE命令を実行する。
Next, a COMPARE instruction is executed to compare the calculated data A with the constant "T".

次に、比較結果が一致していなければジヤンプ
する条件分岐命令を実行する。
Next, a conditional branch instruction is executed to jump if the comparison results do not match.

最後に、分岐しない場合は演算データAに定数
“S”を加算するADD命令を実行する。
Finally, if there is no branching, an ADD instruction is executed to add the constant "S" to the operation data A.

このように、上述の例では、実行に4つの命令
を必要とする。
Thus, the above example requires four instructions to execute.

従来の演算制御方式では、データ自体の状態を
示す情報はないが、演算後の状態を表わすフラグ
(例えばサインフラグ、キヤリー・フラグ、パリ
テイー・フラグ等)を備えており、このフラグを
参照して条件分岐を実行している。しかし、この
フラグは通常、命令が実行されるたびに前の状態
に依存しないで設定しなおされる。従つてこのフ
ラグを参照する命令は所望する命令によつてフラ
グが設定された後、別の命令によつてフラグが変
更されないうちに実行されなければならない。
In conventional arithmetic control methods, there is no information indicating the state of the data itself, but there are flags (for example, sign flag, carry flag, parity flag, etc.) that indicate the state after computation, and these flags can be referred to. A conditional branch is being executed. However, this flag is typically reset each time the instruction is executed, independent of the previous state. Therefore, an instruction that refers to this flag must be executed after the flag is set by the desired instruction and before the flag is changed by another instruction.

このように、従来の演算制御方式はデータの状
態によつて処理が異なる場合は、実際にデータに
対して施こす処理に対して、状態判断およびそれ
を参照する条件分岐に要するオーバーヘツドに占
める割合がかなり大きくなつてしまうという欠点
を有していた。
In this way, in conventional arithmetic control methods, when processing differs depending on the state of the data, the overhead required for state judgment and conditional branching that refers to it occupies more than the processing that is actually performed on the data. It has the disadvantage that the ratio becomes quite large.

本発明の目的は、条件分岐に要するオーバーヘ
ツドを軽減できる演算制御装置を提供することに
ある。
An object of the present invention is to provide an arithmetic and control device that can reduce the overhead required for conditional branching.

本発明の演算制御装置は、演算データおよび当
該データに付随した状態変数を含むデータを記憶
する記憶手段と、実行すべき命令の命令コードと
演算すべきデータの前記状態変数とから前記演算
すべきデータの前記演算データに対する演算処理
を指定する命令デコード手段と、この手段によつ
て指定された演算処理にもとづき前記演算すべき
データの前記演算データに対し演算処理を実行す
る演算器と、この演算器の演算状態に応答して前
記演算器からの演算結果に付随させるべき状態変
数を生成する生成手段と、前記演算結果と当該結
果に付随した前記状態変数を前記記憶手段に記憶
する手段とを備えることを特徴とする。すなわ
ち、本発明の演算制御装置は、命令コードと複製
の被演算データによつて演算が行なわれる情報処
理装置において、演算データに演算制御のための
フラグ群、すなわち状態変数を付加したフラグ群
付きデータを記憶する記憶装置を備え、命令コー
ドと記憶装置より読み出したフラグ群とによつて
演算器で行なう処理を決定し、演算処理後、演算
結果に応じて修飾されたフラグ群を演算出力デー
タに付加して記憶装置に書き込むように構成され
る。
The arithmetic control device of the present invention includes a storage means for storing data including arithmetic data and a state variable associated with the data, and an instruction code of an instruction to be executed and the state variable of the data to be operated. an instruction decoding means for specifying an arithmetic process for the arithmetic data of data; an arithmetic unit for executing an arithmetic process for the arithmetic data of the data to be operated based on the arithmetic process specified by the means; generating means for generating a state variable to be attached to the operation result from the operation unit in response to the operation state of the operation unit; and means for storing the operation result and the state variable attached to the result in the storage means. It is characterized by being prepared. That is, the arithmetic control device of the present invention is an information processing device in which a computation is performed using an instruction code and duplicated data to be operated on, in which a group of flags for arithmetic control, that is, a group of flags with state variables added to the computed data, is provided. Equipped with a storage device for storing data, the processing to be performed by the arithmetic unit is determined based on the instruction code and a group of flags read from the storage device, and after the arithmetic processing, the group of flags modified according to the calculation result is converted into the calculation output data. is configured to be appended to and written to the storage device.

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

第1図は本発明の一実施例を示すブロツク図
で、状態変数を1ビツトとした演算制御装置の概
略ブロツク図であり、第2図a,bは前記演算制
御装置における演算器の入力条件と演算の関係の
一例を示す演算説明図、第3図は前記演算制御装
置における状態変数生成回路の動作条件を説明す
るための状態変数説明図である。
FIG. 1 is a block diagram showing one embodiment of the present invention, and is a schematic block diagram of an arithmetic and control device in which the state variable is one bit, and FIG. FIG. 3 is a state variable explanatory diagram for explaining the operating conditions of the state variable generation circuit in the arithmetic and control device.

なお、第1図に示す実施例では命令は命令コー
ドと状態変数出力を生成するための状態変数指定
コードとを含んでいる。
In the embodiment shown in FIG. 1, the instruction includes an instruction code and a state variable designation code for generating a state variable output.

第1図に示す演算制御装置は、2項演算を行な
うための演算器1と、命令デコーダ2と、状態変
数生成回路3と、記憶装置14と、命令レジスタ
4と入力レジスタ5,6と、出力バツフア7と、
アドレス生成回路8とマルチプレクサ9と、制御
信号線10〜13と、バス100〜117とを含
んで構成される。
The arithmetic control device shown in FIG. 1 includes an arithmetic unit 1 for performing binary operations, an instruction decoder 2, a state variable generation circuit 3, a storage device 14, an instruction register 4, input registers 5 and 6, Output buffer 7 and
It is configured to include an address generation circuit 8, a multiplexer 9, control signal lines 10-13, and buses 100-117.

第2図aは、命令コードOPCと2つの入力の
状態変数CA,CBの排他的論理和(JUMP命令に
関しては入力レジスタ5の状態変数)の結果によ
つて、実行される演算が定まることを示してい
る。第2図bは第2図aによつて定まつた演算が
実行された結果演算器1から出力される演算結果
Xを示している。
In Figure 2a, the operation to be executed is determined by the result of the exclusive OR of the instruction code OPC and the two input state variables C A and C B (for the JUMP instruction, the state variable of input register 5). It is shown that. FIG. 2b shows the calculation result X output from the calculation unit 1 after the calculation determined in FIG. 2a is executed.

また、第3図は状態変数指定コードSCと演算
結果Xの状態によつて生成される状態変数出力
CXが決まることを示している。
Also, Figure 3 shows the state variable output generated by the state variable specification code SC and the state of the calculation result X.
This shows that C X is determined.

以下に、第1図に示す演算制御装置の動作につ
いて、説明する。
The operation of the arithmetic and control device shown in FIG. 1 will be explained below.

命令が実行されると、まず命令レジスタ4、入
力レジスタ5および6に記憶装置14から読み出
されてデータバス114にのせられたデータがバ
ス101,102,103を介してラツチされ
る。
When an instruction is executed, data read from the storage device 14 and placed on the data bus 114 is first latched into the instruction register 4, input registers 5 and 6 via the buses 101, 102, and 103.

すなわち、命令レジスタ4には命令コード
OPCと状態変数指定コードSCとを含む命令が格
納され、入力レジスタ5および6にはそれぞれ状
態変数CA,CBと演算データA,Bが格納される。
この状態変数CA,CBは演算データA,Bととも
に対になつて記憶装置14(あるいは他のレジス
タ)から読みだされる。
In other words, the instruction code is stored in instruction register 4.
An instruction including OPC and a state variable designation code SC is stored, and input registers 5 and 6 store state variables C A and C B and operation data A and B, respectively.
The state variables C A and C B are read out from the storage device 14 (or other registers) in pairs with the calculation data A and B.

命令コードOPCと2つの状態変数CA,CBは、
それぞれバス104,105,106を介して命
令デコーダ2に入力される。この3種のパラメー
タは第2図aに示した条件で演算器1に対する処
理命令およびアドレス生成回路8に対する制御を
決定する。
The instruction code OPC and two state variables C A and C B are:
The commands are input to the instruction decoder 2 via buses 104, 105, and 106, respectively. These three types of parameters determine the processing instructions for the arithmetic unit 1 and the control for the address generation circuit 8 under the conditions shown in FIG. 2a.

まず、演算器1では第2図aに示した条件で決
定した処理命令を受けて、バス107,108を
介して入力された演算データA,Bに対して演算
を行ない第2図bに従つてバス110および11
1に演算結果Xを出力する。状態変数生成回路3
はこの演算結果Xと、演算器1から出力されるオ
ーバーフロー信号Vおよびバス109を介して入
力される状態変数指定コードSCによつて、出力
すべき状態変数CXを生成する。生成条件は第3
図に示すとおりである。バス111に出力された
演算結果XはCOMP命令以外はマルチプレクサ
9を介して出力バツフア7によつてデータバス1
14にドライブされる。COMP命令のときはバ
ス116上の演算データAが出力バツフア7に入
力される。このマルチプレクサ9の切替信号は命
令デコーダ2で生成される。
First, the arithmetic unit 1 receives a processing instruction determined under the conditions shown in FIG. Tsute bus 110 and 11
The calculation result X is output to 1. State variable generation circuit 3
generates a state variable C X to be output based on the calculation result X, the overflow signal V output from the arithmetic unit 1, and the state variable designation code SC input via the bus 109. The generation condition is the third
As shown in the figure. The operation result
Driven by 14. In the case of a COMP instruction, the operation data A on the bus 116 is input to the output buffer 7. This switching signal for multiplexer 9 is generated by instruction decoder 2.

一方、命令デコーダ2から出力された制御信号
11はアドレス生成回路8に入力され、プログラ
ムカウンタを制御する。すなわち、制御信号11
によつて演算終了後、プログラムカウンタをイン
クリメントするかあるいは分岐先アドレスに設定
するかが決定される。
On the other hand, the control signal 11 output from the instruction decoder 2 is input to the address generation circuit 8 and controls the program counter. That is, the control signal 11
After the operation is completed, it is determined whether the program counter is incremented or set to the branch destination address.

以上の動作を簡単な2つの例を用いて説明す
る。
The above operation will be explained using two simple examples.

第1の例として、「記憶装置から読みだされた
演算データAが“T”であれば“S”を加える」
という演算を取り上げる。命令は第2図aに掲げ
たものを使用する。
As a first example, “If the calculation data A read from the storage device is “T”, add “S””
Let's take up the operation. The instructions listed in Figure 2a shall be used.

まず、LOAD命令を実行し、記憶装置14か
ら演算データAを読み出し、データバスを介して
入力レジスタ5に、また“T”を入力レジスタ6
にラツチする。なお、このときの状態変数CA
CBは“1”、“0”のいずれであつてもよい。
First, execute the LOAD instruction, read out the operation data A from the storage device 14, and input "T" into the input register 5 via the data bus.
latch on. In addition, the state variables C A at this time,
C B may be either "1" or "0".

次にCOMPARE命令によつて、入力レジスタ
5に格納されている演算データAと入力レジスタ
6に格納されている“T”とを比較する。
COMPARE命令の動作は、演算器で入力レジス
タ5と入力レジスタ6の内容の減算を行なうが、
出力バツフア7にはマルチプレクサ9を介して入
力レジスタ5の内容(バス117)とモデイフア
イされた状態変数(信号線112)を出力し、次い
で入力レジスタ5に再ラツチするものである。こ
のとき、状態変数指定コードSCを“101”に指定
しておく。すなわち、COMPARE命令を実行し
て得られた演算結果Xが“0”に等しければ状態
変数出力CXを“0”に、等しくなければ“1”
とし、結果を入力レジスタ5に再ラツチする。結
果的には入力レジスタ5の状態変数だけが変更さ
れる。
Next, the COMPARE instruction compares the operation data A stored in the input register 5 with "T" stored in the input register 6.
The operation of the COMPARE instruction is to subtract the contents of input register 5 and input register 6 in the arithmetic unit.
The contents of the input register 5 (bus 117) and the modified state variable (signal line 112) are outputted to the output buffer 7 via the multiplexer 9, and then relatched to the input register 5. At this time, the state variable specification code SC is specified as "101". In other words, if the operation result X obtained by executing the COMPARE instruction is equal to "0", the state variable output C X is set to "0", otherwise it is set to "1".
and relatches the result to input register 5. As a result, only the state variables of input register 5 are changed.

続いてADD命令を実行する。入力レジスタ6
には状態変数CBとして“0”を、演算データB
として“S”を入力する。このADD命令は2つ
の入力の状態変数CA,CBを比較し、等しければ
加算を実行し、等しくなければNOPを実行する
ものである。すなわち、、COMPARE命令の実行
で求めた状態変数CAが“0”であれば演算結果
XとしてT+Sを出力し、“1”であれば入力レ
ジスタ5の値をそのまま出力することになる。
Next, execute the ADD instruction. Input register 6
"0" is set as the state variable C B , and the calculation data B
Enter "S" as This ADD instruction compares two input state variables C A and C B , and if they are equal, performs addition, and if they are not equal, performs NOP. That is, if the state variable C A obtained by executing the COMPARE instruction is "0", T+S is output as the operation result X, and if it is "1", the value of the input register 5 is output as is.

このように、第1の例の場合、本発明を適用す
れば3つの命令の実行で充分である。
Thus, in the case of the first example, execution of three instructions is sufficient if the present invention is applied.

上述した第1の例では、演算データAの値によ
つて、ADDかNOPかの一方を実行するため一時
的に処理が分岐するが、実行後は再び同じシーケ
ンスを実行していくことになる。これは演算と
NOPを組み合わせた他の命令(JUMPを除く)
に関して同様であり、従来の条件分岐命令による
分岐という操作が不要となつた。
In the first example mentioned above, the process temporarily branches to execute either ADD or NOP depending on the value of calculation data A, but after execution, the same sequence will be executed again. . This is an operation
Other instructions combined with NOP (except JUMP)
The same is true for this, and the conventional branch operation using a conditional branch instruction is no longer necessary.

ところで、演算データAと“1”との比較があ
らかじめ実行されており比較結果が状態変数CA
として記憶装置14にすでに格納されている場合
(記憶装置14の各番地には、演算データと状態
変数が一対となつて格納されており、同時にアド
レツシングされる)には、LOADして直ちに
ADD命令を実行することができる。すなわち、
演算データの状態が状態変数としてメモリに保存
されているので、COMPARE命令が不要となつ
たわけである。状態変数は、COMPARE命令に
限らず全ての演算が実行される際に再生成される
ので、何らかの演算を行なつた結果、生成された
状態変数をデータとともに記憶装置に格納してお
けば、その状態をいつでも引きだして他の演算に
使用することができる。従来、これは演算後の状
態として一時的に保存されていたのみであつた。
By the way, the comparison between the calculation data A and "1" has been performed in advance, and the comparison result is the state variable C A
If the data has already been stored in the storage device 14 as (each address in the storage device 14 stores a pair of calculation data and a state variable, and is addressed at the same time), the data will be loaded immediately.
ADD command can be executed. That is,
Since the state of the computed data is stored in memory as a state variable, the COMPARE instruction is no longer necessary. State variables are regenerated when all operations are executed, not just the COMPARE instruction, so if you store the state variables generated as a result of some operation in the storage device along with the data, you can save them. The state can be retrieved at any time and used for other operations. Conventionally, this was only temporarily stored as the state after the calculation.

次に、条件分岐命令の動作について説明する。 Next, the operation of a conditional branch instruction will be explained.

第2図a,bに示したように、分岐するか否か
は入力レジスタ5の状態変数CAの値によつて決
定する。すなわち、命令デコーダ2に入力された
命令コードOPCおよび状態変数CAによつて、分
岐の成功、不成功を表わす信号が生成され制御信
号11としてアドレス生成回路8に出力される。
これを受けて、アドレス生成回路8では、プログ
ラム・カウンタの値を制御する。
As shown in FIGS. 2a and 2b, whether or not to branch is determined by the value of the state variable C A of the input register 5. That is, a signal indicating success or failure of the branch is generated based on the instruction code OPC and state variable CA input to the instruction decoder 2, and is output as the control signal 11 to the address generation circuit 8.
In response to this, the address generation circuit 8 controls the value of the program counter.

次に、第2例として「加算した結果、オーバー
フローしたら“Z”番地に分岐する」の場合につ
いて説明する。
Next, as a second example, the case of "branching to address "Z" if an overflow occurs as a result of addition" will be described.

まず、状態変数指定コードSCを“111”に指定
したADD命令を実行する。このときの状態変数
出力CXおよび演算結果Xは出力バツフア7より
バス113,114,102を介して入力レジス
タ5にラツチされる。
First, execute the ADD instruction with the state variable specification code SC set to "111". At this time, the state variable output C

次に、条件分岐命令“JUMP(OPC=0110)”
の命令コードと入力レジスタ5に格納されている
状態変数CAの値によつて分岐の成功・不成功を
決定する。この場合「演算」→「条件分岐」とい
うシーケンスは従来の方法と本質的に変わらな
い。しかし、前述した第1例と同様に演算結果X
と状態変数出力CXを演算データおよび状態変数
として記憶装置14に格納した場合、その後その
データをいつでもLOADしてその直後に条件分
岐を実行することができる。これは従来の方法で
は不可能だつたことである。
Next, the conditional branch instruction “JUMP (OPC=0110)”
The success or failure of the branch is determined by the instruction code of and the value of the state variable C A stored in the input register 5. In this case, the sequence of "operation" → "conditional branch" is essentially the same as the conventional method. However, as in the first example described above, the calculation result
When the data and state variable output C This was not possible with conventional methods.

以上、本発明の一実施例を説明したが、状態変
数を複数のビツトとし、状態変数指定コードを拡
張すればさらに多様な条件演算を行なうことが可
能になるのは明白である。データの状態によつて
処理が異なるような場合には、本発明によつて条
件分岐が省略でき、それに伴なう条件判断子の設
定も軽減され、処理時間の短縮が可能となり、こ
れによつて情報処理装置の性能を大幅に改善する
ことができる。
Although one embodiment of the present invention has been described above, it is clear that by using a plurality of bits as a state variable and expanding the state variable specification code, it becomes possible to perform even more diverse conditional operations. In cases where processing differs depending on the state of data, the present invention makes it possible to omit conditional branching, reduce the setting of conditional determiners, and shorten processing time. Therefore, the performance of the information processing device can be significantly improved.

本発明の演算制御装置は、状態変数生成回路を
追加することにより、生成された状態変数を演算
データと対にして記憶装置に書き込んでおき演算
時に命令コードと状態変数に従つて演算データを
演算させることができるため、1つの命令で条件
分岐動作と演算動作を一体化して処理できるの
で、条件分岐に要するオーバーヘツドを軽減でき
るという効果がある。
By adding a state variable generation circuit, the arithmetic control device of the present invention writes the generated state variables as a pair with the calculation data in the storage device, and calculates the calculation data according to the instruction code and the state variable during calculation. Since the conditional branching operation and the arithmetic operation can be integrated and processed with one instruction, the overhead required for the conditional branching can be reduced.

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

第1図は本発明の一実施例を示すブロツク図、
第2図a,bは第1図に示す演算器の動作を説明
するための演算説明図、第3図は第1図に示す状
態変数生成回路の動作を説明するための状態変数
説明図である。 1……演算器、2……命令デコーダ、3……状
態変数生成回路、4……命令レジスタ、5,6…
…入力レジスタ、7……出力バツフア、8……ア
ドレス生成回路、9……マルチプレクサ、10〜
12……制御信号、14……記憶装置、100〜
117……バス、OPC……命令コード、SC……
状態変数指定コード、A,B……演算データ、X
……演算結果、CA,CB……状態変数、CX……状
態変数出力。
FIG. 1 is a block diagram showing one embodiment of the present invention;
Figures 2a and b are operation explanatory diagrams for explaining the operation of the arithmetic unit shown in Figure 1, and Figure 3 is a state variable explanatory diagram for explaining the operation of the state variable generation circuit shown in Figure 1. be. 1... Arithmetic unit, 2... Instruction decoder, 3... State variable generation circuit, 4... Instruction register, 5, 6...
...Input register, 7...Output buffer, 8...Address generation circuit, 9...Multiplexer, 10-
12...Control signal, 14...Storage device, 100~
117...bus, OPC...instruction code, SC...
State variable specification code, A, B...calculation data, X
...Arithmetic results, C A , C B ...state variables, C X ...state variable outputs.

Claims (1)

【特許請求の範囲】 1 演算データおよび当該データに付随した状態
変数を含むデータを記憶する記憶手段と、実行す
べき命令の命令コードと演算すべきデータの前記
状態変数とから前記演算すべきデータの前記演算
データに対する演算処理を指定する命令デコード
手段と、この手段によつて指定された演算処理に
もとづき前記演算すべきデータの前記演算データ
に対し演算処理を実行する演算器と、この演算器
の演算状態に応答して前記演算器からの演算結果
に付随させるべき状態変数を生成する生成手段
と、前記演算結果と当該結果に付随した前記状態
変数を前記記憶手段に記憶する手段とを備えるこ
とを特徴とする演算制御装置。 2 前記実行すべき命令は状態変数指定コードを
さらに含み、前記生成手段は前記演算器の演算状
態とともに前記状態変数指定コードに応答して前
記付随させるべき状態変数を生成することを特徴
とする特許請求の範囲第1項記載の演算制御回
路。
[Scope of Claims] 1. Storage means for storing data including operation data and state variables associated with the data, and the data to be calculated from the instruction code of the instruction to be executed and the state variables of the data to be calculated. an instruction decoding means for specifying an arithmetic process on the arithmetic data of the data to be operated on, an arithmetic unit that executes an arithmetic process on the arithmetic data of the data to be operated based on the arithmetic process specified by the means, and this arithmetic unit. generating means for generating a state variable to be attached to the operation result from the arithmetic unit in response to the operation state of the operation unit; and means for storing the operation result and the state variable attached to the result in the storage means. An arithmetic control device characterized by: 2. The patent to be characterized in that the instruction to be executed further includes a state variable designation code, and the generating means generates the state variable to be attached in response to the state variable designation code as well as the calculation state of the arithmetic unit. An arithmetic control circuit according to claim 1.
JP57205729A 1982-11-24 1982-11-24 Arithmetic control system Granted JPS5995646A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP57205729A JPS5995646A (en) 1982-11-24 1982-11-24 Arithmetic control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP57205729A JPS5995646A (en) 1982-11-24 1982-11-24 Arithmetic control system

Publications (2)

Publication Number Publication Date
JPS5995646A JPS5995646A (en) 1984-06-01
JPH0233173B2 true JPH0233173B2 (en) 1990-07-25

Family

ID=16511706

Family Applications (1)

Application Number Title Priority Date Filing Date
JP57205729A Granted JPS5995646A (en) 1982-11-24 1982-11-24 Arithmetic control system

Country Status (1)

Country Link
JP (1) JPS5995646A (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6155731A (en) * 1984-08-28 1986-03-20 Fujitsu Ltd Processor provided with condition code discriminating function
JPS61122747A (en) * 1984-11-14 1986-06-10 インタ−ナショナル ビジネス マシ−ンズ コ−ポレ−ション Data processor
JPH1049368A (en) * 1996-07-30 1998-02-20 Mitsubishi Electric Corp Microporcessor having condition execution instruction

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS55166739A (en) * 1979-06-14 1980-12-26 Mitsubishi Electric Corp Data processor

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS55166739A (en) * 1979-06-14 1980-12-26 Mitsubishi Electric Corp Data processor

Also Published As

Publication number Publication date
JPS5995646A (en) 1984-06-01

Similar Documents

Publication Publication Date Title
JP2539199B2 (en) Digital processor controller
JPH10161871A (en) Processor
EP0240606A2 (en) Pipe-line processing system and microprocessor using the system
JPH0233173B2 (en)
JPH0830971B2 (en) Programmable controller
JPH0831033B2 (en) Data processing device
JP2525492B2 (en) Programmable controller
US5854919A (en) Processor and its operation processing method for processing operation having bit width exceeding data width of bit storage unit
JPS60164842A (en) Instruction prefetching device
JP3525582B2 (en) Bit operation circuit
JP3124361B2 (en) Memory data loading device
JP2583614B2 (en) Vector arithmetic unit
JPS62271003A (en) Programmable controller
JPH05250156A (en) Risc processor
JPS59223846A (en) Arithmetic processor
JPH0226252B2 (en)
JPS63298633A (en) Instruction fetching control system in pipeline processor
JPH10320380A (en) Vector processor
JPH05100901A (en) Microcomputer
JPS6278630A (en) Information processor
JPH03164945A (en) Data processor
JPS6212545B2 (en)
JPH01236327A (en) Interruption mask control method
JPS6333175B2 (en)
JPH05120080A (en) Firmware execution history storage system