JPS63223922A - Setting system for arithmetic condition of central processing unit - Google Patents

Setting system for arithmetic condition of central processing unit

Info

Publication number
JPS63223922A
JPS63223922A JP5816387A JP5816387A JPS63223922A JP S63223922 A JPS63223922 A JP S63223922A JP 5816387 A JP5816387 A JP 5816387A JP 5816387 A JP5816387 A JP 5816387A JP S63223922 A JPS63223922 A JP S63223922A
Authority
JP
Japan
Prior art keywords
condition
data
microprogram
arithmetic
register file
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.)
Pending
Application number
JP5816387A
Other languages
Japanese (ja)
Inventor
Yoshio Igai
猪飼 誉夫
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP5816387A priority Critical patent/JPS63223922A/en
Publication of JPS63223922A publication Critical patent/JPS63223922A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To freely set an arithmetic condition, and to obtain a microprogram high in density by determining a condition by inputting a microprogram and an information data, and an external signal supplied from other part than a register file. CONSTITUTION:In a register file 1, a microprogram and a data are stored, and a microprogram data is replenished through a bus line from an external storage device. A control part 8 sends out an operation object data to an arithmetic mechanism 6 through an input latch register 2. Also, each information from the microprogram and an arithmetic input data is separated by registers 2, 2, and used as a size, a code, etc. between a condition code and an input data, and fed to a condition determining device 4 through a comparator 3. Moreover, to the determining device 4, a machine instruction or an external input signal F of the microprogram, etc. is supplied from the outside. An operation determining device 5 specifies an arithmetic condition in accordance with the determined condition. In such a way, the microprogram having high density can be obtained.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明はコンピュータの中央演算処理装置における各
種条件演算を実現する演算条件設定方式%式% 〔従来の技術〕 第3図に従来の中央演算処理装置(CP U)における
演算器での条件演算実現方式の一例を示す。
[Detailed Description of the Invention] [Industrial Field of Application] This invention relates to an arithmetic condition setting method for realizing various conditional arithmetic operations in a central processing unit of a computer. [Prior Art] FIG. An example of a method for realizing conditional calculations in a calculation unit in a processing unit (CPU) is shown.

図において、1は内部に複数のレジスタを持つレジスタ
ファイル、2は入力ランチレジスタ、3は比較器、4は
コンディション決定器、5は演算決定器、6は演算機構
、7は出カラフチレジスタ、8は制御部である。
In the figure, 1 is a register file with multiple registers inside, 2 is an input launch register, 3 is a comparator, 4 is a condition determiner, 5 is an operation determiner, 6 is an operation mechanism, 7 is an output side register, 8 is a control section.

レジスタファイル1にはマイクロプログラムやデータが
多数記憶され、これらデータ等が入力ラッチレジスタ2
.2に読み出されると、図示外の外部記憶装置からパス
ライン10を介して、次のデータ等が補充される。制御
部8は制御信号a〜eを上記レジスタファイル1等の各
部へ逐次出力し、全体の処理手順が正常に実行されるよ
うにゲート等のタイミング制御を行う。
Register file 1 stores a large number of microprograms and data, and these data are input to input latch register 2.
.. 2, the next data etc. are replenished from an external storage device (not shown) via the pass line 10. The control section 8 sequentially outputs control signals a to e to each section such as the register file 1, and performs timing control of gates and the like so that the entire processing procedure is executed normally.

次に動作について説明する。第3図のレジスタファイル
1にセットされたデータより演算対象データは人力ラッ
チレジスタ2を経由して演算機構6に入り、そこで演算
決定器5により定められた条件演算を対象データについ
て行い、結果を出力ラッチレジスタフにセットする。こ
こでmK決定器5による演S21条件の決定方式を以下
に示す。
Next, the operation will be explained. The data to be calculated from the data set in the register file 1 in FIG. Set the output latch register blank. Here, the method for determining the performance S21 conditions by the mK determiner 5 will be described below.

分離され、夫々コンディションコード及び入力データ間
の大小、符号等となって比較器3を介してコンディショ
ン決定器4に与えられる。コンディション決定器4では
これらコンディシコンコード及び諸情報をI帥読してコ
ンディション(真/偽)を定め、結果を/′A算決算器
定器5力する。演算決定器5はこの与えられたコンディ
ションに従い演算条件を演算機構6に対して指示する。
The data are separated and given to the condition determiner 4 via the comparator 3 as a condition code and the magnitude, sign, etc. between the input data. The condition determiner 4 reads these condition code and various information multiple times to determine the condition (true/false), and outputs the result to the /'A calculation calculator 5. The computation determiner 5 instructs the computation condition to the computation mechanism 6 according to the given condition.

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

従来の条件演算実現方式では、前記のようにコンディジ
甘ンの判定要素がレジスタファイルからの内部データの
みであるため、演算人力データからの情報及びマイクロ
プログラムからのコンディションコードによる条件によ
ってのみ演算条件の選択が可能となっていた。このため
、これらコンディションコード等とは異なった条件で演
算を選択させることはできず、この場合には別個の演算
条件にして新たに演算のみ異なったマイクロプログラム
を作らざるをえなかった。
In the conventional method for realizing conditional calculations, as mentioned above, the determining factor for conditionality is only the internal data from the register file. Choice was possible. Therefore, it is not possible to select an operation based on conditions different from these condition codes, and in this case, it is necessary to create a new microprogram with different operation conditions using separate operation conditions.

この発明は上記のような問題点を解決するためになされ
たもので、演算条件が自由に設定できてマイクロプログ
ラムを高密度化させ、これにともない、マイクロプログ
ラムの高信頼度化がはかれる演算条件設定方式を得るこ
とを目的としている。
This invention was made in order to solve the above-mentioned problems, and the calculation conditions can be freely set to increase the density of the microprogram, thereby increasing the reliability of the microprogram. The purpose is to obtain a setting method.

゛〔問題点を解決するための手段〕 この発明においては、レジスタファイルlから演算対象
データを演算機構6に取り込む段階(ステップS+)と
、レジスタファイルlからのマイクロプログラムや情報
データを演算対象データから分離し比較する段階(ステ
ップS2)と、これらマイクロプログラムと情報デー、
夕及びレジスタファイル以外から与えられる外部入力信
号Fが与えられてコンディションを決定する段階(ステ
ップS3)と、このコンディションに従い演算機構6に
対して演算条件を指示する段階(ステップS4)とを備
えた。
[Means for Solving the Problems] In the present invention, there are a step (step S+) in which data to be computed from the register file l is taken into the computing mechanism 6, and a step in which the data to be computed from the register file l is transferred to the data to be computed. a step of separating and comparing the microprograms and information data (step S2);
a step of determining a condition by receiving an external input signal F from a source other than the register file and a register file (step S3); and a step of instructing the calculation mechanism 6 to calculate the calculation conditions according to the condition (step S4). .

〔作用〕[Effect]

内蔵のマイクロプログラムや情報データに、外部のフリ
ップフロップ回路等からの外部入力信号Fを追加してコ
ンディションを決定(ステップS3)するようにし名(
部入力信号Fの状態に従い各種の演算条件が自由に設定
できる。かくて、演算機構6では外部条件に制御された
条件演算が実行される。
The external input signal F from an external flip-flop circuit, etc. is added to the built-in microprogram and information data to determine the condition (step S3).
Various calculation conditions can be freely set according to the state of the input signal F. Thus, the calculation mechanism 6 executes conditional calculations controlled by external conditions.

〔実施例〕〔Example〕

以下、この発明の一実施例を図面を参照して説明する。 An embodiment of the present invention will be described below with reference to the drawings.

第1図は、本発明の条件演算実現方式が実施される中央
演算処理袋v!1(CPIJ)の全体構成を示す図であ
る。図において、■は内部に複数のレジスタを持つレジ
スタファイル、2は人力ラッチレジスタ、3は比較器、
4はコンディション決定器、5は演算決定器、6は演算
機構、7は出力ラッチレジスタ、8は制御部である。
FIG. 1 shows the central processing bag v! in which the conditional calculation implementation method of the present invention is implemented. 1 (CPIJ) is a diagram showing the overall configuration of CPIJ. In the figure, ■ is a register file with multiple registers inside, 2 is a manual latch register, 3 is a comparator,
4 is a condition determiner, 5 is an arithmetic determiner, 6 is an arithmetic mechanism, 7 is an output latch register, and 8 is a control section.

レジスタファイルlにはマイクロプログラムやデータが
多数記tQされ、これらデータ等が人力ラソチレジスタ
2,2に読み出されると、図示外の外部記憶装置からパ
スライン10を介して、次のデータ等が補充される。制
御部8は制御信号a〜eを上記レジスタファイル1等の
各部へ逐次出力し、全体の処理手順が正常に実行される
ようにゲート等のタイミング制御を行う。而してFは、
外部に設けられフリップフロップにより構成されたレジ
スタからの外部入力信号であり、この外部入力信号Fは
コンディション決定器4へ与えられている。
A large number of microprograms and data are stored in the register file 1, and when these data are read into the human-powered registers 2, 2, the next data, etc. are replenished from an external storage device (not shown) via the path line 10. Ru. The control section 8 sequentially outputs control signals a to e to each section such as the register file 1, and performs timing control of gates and the like so that the entire processing procedure is executed normally. Therefore, F is
This external input signal F is an external input signal from a register provided externally and constituted by a flip-flop.

次に動作について第2図のフローチャートに従って説明
する。第1αセジスタフアイル1にセットされたデータ
より演Si’:対象データは、ステップS+で人カラフ
チレジスタ2を経由して演ヤニ機構6に入り、そこで演
算決定器5により定められた条件演算を対象データにつ
いて行い、結果を出カラフチレジスタ7にセットする。
Next, the operation will be explained according to the flowchart shown in FIG. Based on the data set in the first α-segister file 1, the target data is input to the processing mechanism 6 via the human side register 2 in step S+, where the conditional calculation determined by the calculation determiner 5 is performed. is performed on the target data, and the result is set in the output edge register 7.

ここで演算決定器5による演算条件の決定方式を以下に
示す。
Here, the method for determining the calculation conditions by the calculation determiner 5 will be described below.

れ、夫々コンディションコード及び人力データ間の大小
、符号等となって比較器3を介してコンディション決定
器4に与えられる。又コンディション決定器4には外部
から1フイールドのマシン命令、又は1フイールドのマ
イクロプログラム等の外部入力信号I?が与えられる。
Then, the magnitude, sign, etc. between the condition code and the manual data are provided to the condition determiner 4 via the comparator 3. The condition determiner 4 also receives an external input signal I?, such as a one-field machine command or a one-field microprogram, from the outside. is given.

次にステップS3では、コンディション決定器4はこれ
らコンディションコードと諸情報及び外部入力信号Fか
らコンディション(真/偽)を定め結果を演算決定器5
に出力する。ステップS44こて、演算決定器5はこの
コンディションに従い演算条件を演算機構6に対して指
示する。このようにして、外部フリップフロップのレジ
スタの状態により外部入力信号Fがコンディションを決
定し、これにより演算決定器5は演算条件を特定する。
Next, in step S3, the condition determiner 4 determines the condition (true/false) from these condition codes, various information, and external input signal F, and sends the result to the calculation determiner 5.
Output to. In step S44, the arithmetic determining device 5 instructs the arithmetic mechanism 6 to calculate the arithmetic conditions according to this condition. In this way, the external input signal F determines the condition based on the state of the register of the external flip-flop, and the operation determiner 5 specifies the operation condition based on this.

従って、外部フリップフロップのレジスタの状態が上記
と逆の場合は、条件演算の逆の演算が演算機構で実行さ
れる。
Therefore, when the state of the register of the external flip-flop is opposite to the above, the operation mechanism inversely performs the operation of the conditional operation.

なお、上記実施例では、条件演算を行う演算機構を中心
とした論理ブロック図を用いて説明したが、他の構成で
も可能であり、要点としては演算条件データにより演算
内容を変更できるものであれば、今回と同じ考えで外部
人力を追加すれば同〔発明の効果〕 以上説明してきたように、この発明によれば、レジスタ
ファイルから演算対象データを演算機構に取り込む段階
と、レジスタファイルからのマイクロプログラムや情報
デ=りを演算対象データから分離し比較する段階と、こ
れらマイクロプログラムと情報データ及びレジスタファ
イル以外から与えられる外部入力信号が与えられてコン
ディションを決定する段階と、このコンディションに従
い演算機構に対して演算条件を指示する段階とを備えた
ので、各種演算条件がソフト的に自由に設定できるよう
になり、マイクロプログラムの高密度化が可能となった
Although the above embodiment has been explained using a logical block diagram centered on the calculation mechanism that performs conditional calculations, other configurations are also possible, and the main point is that the calculation contents can be changed by the calculation condition data. For example, if external human power is added based on the same idea as this time, the same effect will be achieved.As explained above, according to this invention, the steps of importing the data to be calculated from the register file into the calculation mechanism and the step of importing the data from the register file are completed. A stage of separating and comparing the microprogram and information data from the data to be operated on, a stage of determining the condition by receiving external input signals from sources other than these microprograms, information data, and register files, and performing the operation according to this condition. Since the system is equipped with a stage for instructing the mechanism to perform calculation conditions, various calculation conditions can be freely set using software, making it possible to increase the density of microprograms.

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

第1図は本発明の演算条件設定方式が適用される中央演
算処理装置のブロック図、第2図は本発明の詳細な説明
するためのフローチャートであり、第3図は従来の方式
が実施されるブロック図である。 ■・・・レジスタファイル、2・・・人力ラッチレジス
タ、3・・・比較器、4・・・コンディション決定器、
5・・・演算決定器、6・・・演算機構、7・・・出力
ラッチレジスタ、8・・・制御部、9・・・外部入力信
号。
FIG. 1 is a block diagram of a central processing unit to which the calculation condition setting method of the present invention is applied, FIG. 2 is a flowchart for explaining the present invention in detail, and FIG. 3 is a block diagram of a central processing unit to which the calculation condition setting method of the present invention is applied. FIG. ■...Register file, 2...Manual latch register, 3...Comparator, 4...Condition determiner,
5... Arithmetic determiner, 6... Arithmetic mechanism, 7... Output latch register, 8... Control unit, 9... External input signal.

Claims (1)

【特許請求の範囲】[Claims] レジスタファイルから演算対象データを演算機構に取り
込む段階と、前記レジスタファイルからのマイクロプロ
グラムや情報データを前記演算対象データから分離し比
較する段階と、これらマイクロプログラムと情報データ
及び前記レジスタファイル以外から与えられる外部入力
信号が与えられてコンデイションを決定する段階と、こ
のコンデイションに従い前記演算機構に対して演算条件
を指示する段階とからなる中央演算処理装置の演算条件
設定方式。
A step of loading data to be operated on from the register file into the arithmetic mechanism, a step of separating and comparing the microprogram and information data from the register file from the data to be operated on, and a step of separating and comparing the microprogram and information data from the register file, and inputting these microprograms and information data from sources other than the register file. A calculation condition setting method for a central processing unit, comprising a step of determining a condition by receiving an external input signal, and a step of instructing the calculation mechanism to specify the calculation condition in accordance with the condition.
JP5816387A 1987-03-13 1987-03-13 Setting system for arithmetic condition of central processing unit Pending JPS63223922A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5816387A JPS63223922A (en) 1987-03-13 1987-03-13 Setting system for arithmetic condition of central processing unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5816387A JPS63223922A (en) 1987-03-13 1987-03-13 Setting system for arithmetic condition of central processing unit

Publications (1)

Publication Number Publication Date
JPS63223922A true JPS63223922A (en) 1988-09-19

Family

ID=13076324

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5816387A Pending JPS63223922A (en) 1987-03-13 1987-03-13 Setting system for arithmetic condition of central processing unit

Country Status (1)

Country Link
JP (1) JPS63223922A (en)

Similar Documents

Publication Publication Date Title
US5168571A (en) System for aligning bytes of variable multi-bytes length operand based on alu byte length and a number of unprocessed byte data
US4229801A (en) Floating point processor having concurrent exponent/mantissa operation
JPS6351287B2 (en)
JPH02140831A (en) Data processor
US4247891A (en) Leading zero count formation
US4773035A (en) Pipelined data processing system utilizing ideal floating point execution condition detection
US5390306A (en) Pipeline processing system and microprocessor using the system
US5506800A (en) Self-checking complementary adder unit
JPH02125330A (en) Data processor
US3937941A (en) Method and apparatus for packed BCD sign arithmetic employing a two's complement binary adder
GB2410097A (en) Constant generation in floating point processing
JPS63223922A (en) Setting system for arithmetic condition of central processing unit
US6393452B1 (en) Method and apparatus for performing load bypasses in a floating-point unit
US4288850A (en) Apparatus for identification and removal of a sign signal character superimposed
JP2000081966A (en) Arithmetic unit
JPS6051734B2 (en) Microprogram control method
JP2826927B2 (en) Arithmetic processing device and processing method
JP2583614B2 (en) Vector arithmetic unit
JPS59229659A (en) Data processing method
JPS63219031A (en) High speed floating point computing element
JPH02148140A (en) Conditional branch control system for information processor
JPS6028014B2 (en) microprocessor
JPS6188337A (en) Microprogram controller
JPH02105936A (en) Data processor
JPS6113345A (en) Processor of tagged data