JPH0323937B2 - - Google Patents

Info

Publication number
JPH0323937B2
JPH0323937B2 JP55098210A JP9821080A JPH0323937B2 JP H0323937 B2 JPH0323937 B2 JP H0323937B2 JP 55098210 A JP55098210 A JP 55098210A JP 9821080 A JP9821080 A JP 9821080A JP H0323937 B2 JPH0323937 B2 JP H0323937B2
Authority
JP
Japan
Prior art keywords
floating point
point data
signal
exponent
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
JP55098210A
Other languages
Japanese (ja)
Other versions
JPS5723147A (en
Inventor
Shigemi Uemoto
Shigeru Nagasawa
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP9821080A priority Critical patent/JPS5723147A/en
Publication of JPS5723147A publication Critical patent/JPS5723147A/en
Publication of JPH0323937B2 publication Critical patent/JPH0323937B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F7/00Methods or arrangements for processing data by operating upon the order or content of the data handled
    • G06F7/02Comparing digital values
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60JWINDOWS, WINDSCREENS, NON-FIXED ROOFS, DOORS, OR SIMILAR DEVICES FOR VEHICLES; REMOVABLE EXTERNAL PROTECTIVE COVERINGS SPECIALLY ADAPTED FOR VEHICLES
    • B60J10/00Sealing arrangements
    • B60J10/90Sealing arrangements specially adapted for non-fixed roofs, e.g. foldable roofs or removable hard-tops

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Mechanical Engineering (AREA)
  • Computational Mathematics (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • General Engineering & Computer Science (AREA)

Description

【発明の詳細な説明】 本発明は、桁合わせ処理回路、特に2つの浮動
小数点データの仮部数についての桁合わせを行な
う桁合わせ処理回路において、上記浮動小数点デ
ータが第1の表現態様で表現されている場合と第
2の表現態様で表現されている場合とのいずれに
おいても、その表現法指示信号を与えるだけで、
所望の桁合わせを行ない得るようにした桁合わせ
処理回路に関するものである。
DETAILED DESCRIPTION OF THE INVENTION The present invention provides a digit alignment processing circuit, particularly a digit alignment processing circuit that performs digit alignment for the mantissas of two floating point data, in which the floating point data is expressed in a first representation mode. In both cases, when it is expressed in the second expression mode, just by giving the expression instruction signal,
The present invention relates to a digit alignment processing circuit capable of performing desired digit alignment.

浮動小数点データは、例えば第1図図示の如
く、指数部EXPと仮数部Mとで表現され、更に
仮数部Mの符号ビツトSMと指数部EXPの符号ビ
ツトSEとが与えられている。このような2つの
浮動小数点データについて例えば加減算する場合
に、夫々のデータの指数部の内容EXP1とEXP2
とにもとづいて、仮部数の内容M1とM2との桁合
わせを行なうことが必要となる。
Floating point data, for example, as shown in FIG. 1, is expressed by an exponent part EXP and a mantissa part M, and is further provided with a sign bit SM of the mantissa part M and a sign bit SE of the exponent part EXP. For example, when adding or subtracting two such floating point data, the contents of the exponent part of each data EXP1 and EXP2
Based on this, it is necessary to align the digits of the contents M1 and M2 of the provisional number.

このような桁合わせを必要とするものである
が、浮動小数点データ自体の表現態様に2種類が
あり、従来、第1の表現態様の浮動小数点データ
を取扱う桁合わせ処理回路と、第2の表現態様の
浮動小数点データを取扱う桁合わせ処理回路とを
別々に必要としていた。
Although such digit alignment is required, there are two types of representation modes for floating point data itself. Conventionally, a digit alignment processing circuit that handles floating point data in the first expression mode, and a digit alignment processing circuit that handles floating point data in the first expression mode, and A separate digit alignment processing circuit was required to handle the floating point data.

指数部の内容EXP1(#1表現法)の場合に指
数値は、実際の値に「64」を加えた論理的な値で
表現されており、 EXP=16(2 6・SE+7i=2 2 7−i ・b i−64) で表現され、指数部の内容EXP2(#2表現法)
の場合に指数値は、2の捕数化されたもので表現
されており EXP=16(−2 6・SE+7i=2 2 7−i・b i) で表現される。両者表現法において指数部のSE
ビツトの取扱いに差異がある。なおiはビツト位
置「1」ないし「7」のいずれかの値をとる。
Contents of the exponent part In the case of EXP1 (#1 representation method), the exponent value is expressed as a logical value that adds "64" to the actual value, EXP = 16 (2 6 SE + 7i= 2 2 7-i ・b i-64) The content of the exponent part is EXP2 (#2 representation method)
In this case, the exponent value is expressed as a catch of 2, and is expressed as EXP=16(-2 6·SE+ 7i=2 2 7−i·b i). SE of the exponent in both representation methods
There are differences in the handling of bits. Note that i takes the value of any one of bit positions "1" to "7".

即ち、第2図A,Bは浮動小数点データの表現
態様を説明する説明図であり、第2図Aは仮数部
について、また第2図Bは指数部について夫々説
明している。第2図Aを参照すると判る如く、第
1の表現態様(#1表現法)の場合、仮数部の内
容が、()「0、0……0」の場合仮数部の値は
零を示し、()「0、10……0」の場合正の絶対
値の最小値を示し、()「0、1……1」の場合
正の絶対値の最大値を示し、()「1、0……
0」の場合には仮数部の値として存在せず、()
「1、10……0」の場合負の絶対値の最小値を示
し、()「1、1……1」の場合負の絶対値の最
大値を示している。これに対し、第2の表現態様
(#2表現法)の場合には第2図Aから判る如く
第1の表現態様のそれぞれにくらべて異なつてい
る。
That is, FIGS. 2A and 2B are explanatory diagrams for explaining the representation mode of floating point data, with FIG. 2A explaining the mantissa part and FIG. 2B explaining the exponent part, respectively. As can be seen from FIG. 2A, in the case of the first expression mode (#1 expression method), if the content of the mantissa is () "0, 0...0", the value of the mantissa indicates zero. , () "0, 10...0" indicates the minimum positive absolute value, () "0, 1...1" indicates the maximum positive absolute value, () "1, 0...
0", it does not exist as a mantissa value, and ()
"1, 10...0" indicates the minimum negative absolute value, and () "1, 1...1" indicates the maximum negative absolute value. On the other hand, as can be seen from FIG. 2A, the second expression mode (#2 expression method) is different from each of the first expression modes.

更に第2図Bを参照すると判る如く、第1の表
現態様(#1表現法)の場合、指数部の内容が、
()「0000000」の場合16-64を意味し、()
「0111111」の場合16-1を意味し、()「1000000」
の場合160を意味し、()「1111111」の場合
16+63を意味している。これに対し、第2の表現
態様(#2表現法)の場合には第2図Bから判る
如く第1の表現態様のそれにくらべて異なつてい
る。このために、従来、いずれの表現態様の浮動
小数点データかに応じて夫々桁合わせ処理回路が
別々に用意されざるを得なかつた。
Furthermore, as can be seen from FIG. 2B, in the case of the first expression mode (#1 expression method), the contents of the exponent part are
() "0000000" means 16 -64 , ()
"0111111" means 16 -1 , () "1000000"
If 16 means 0 , if () "1111111"
It means 16 +63 . On the other hand, as can be seen from FIG. 2B, the second expression mode (#2 expression method) is different from that of the first expression mode. For this reason, conventionally, separate digit alignment processing circuits had to be prepared depending on the representation mode of floating point data.

本発明は上記の点を解決すべく単一の桁合わせ
処理回路によつて桁合わせ処理を行ない得るよう
にすることを目的としている。そしてそのため、
本発明の桁合わせ処理回路は、 浮動小数点データの表現態様として 仮数部の符号をSM 仮数部の数値の総和をΣM 指数部の最上位ビツトをSE 最上位ビツトを除く指数部の数値総和をΣEと
夫々定義したとき、 指数値が EXP=16(2 6・SE+7i=2 2 7−i ・b i−64) でかつ仮数値が 仮数値=(−1)SM・(63i=8 27-i・bi) で表現される第1の表現態様と、 指数値が EXP=16(−2 6・SE+7i=2 2 7−i ・b i) でかつ仮数値が 仮数値=(−SM+63i=8 27-i・bi) で表現される第2の表現態様とのいずれか一方の
表現態様の2つの浮動小数点データ(OP1)と
(OP2)とが入力され、当該2つのデータ指数部
の内容にもとづいて指数差を求め、該指数差にも
とづいて一方のデータの仮数部の内容をシフト
し、上記2つの浮動小数点データの桁合わせを行
なう桁合わせ処理回路において、 第1の浮動小数点データ(OP1)の指数部の内
容(EXP1)から第2の浮動小数点データ
(OP2)の指数部の内容(EXP2)の差を演算す
る第1の加算回路部と、 第2の浮動小数点データ(OP2)の指数点の内
容(EXP2)から第1の浮動小数点データ
(OP1)の指数部の内容(EXP1)の差を演算す
る第2の加算回路部と、 上記第1の加算回路部と上記第2の加算回路部
とに夫々供給されて上記表現態様を示し、当該両
者の加算回路部に対して当該表現態様に対応した
処理を実行せしめる表現法指示信号と、 上記第2の加算回路部からの出力に対応して第
1の浮動小数点データ(OP1)の仮数部の内容
(M1)に体するシフト信号を発する第2の信号変
換回路部と、 上記第1の加算回路部からの出力に対応して第
2の浮動小数点データ(OP2)の仮数部の内容
(M2)に対するシフト信号を発する第1の信号変
換回路部と、 上記第1の信号変換回路部からのシフト信号に
対応して上記第2の浮動小数点データ(OP2)の
仮数部の内容(M2)をシフトする第2のアライ
ン回路と、 上記第2の信号変換回路部からのシフト信号に
対応して上記第1の浮動小数点データ(OP1)の
仮数部の内容(M1)をシフトする第1のアライ
ン回路と、 上記第1のアライン回路と上記第2のアライン
回路とに夫々供給されて、当該夫々のアライン回
路における動作態様を指示するデータ・コントロ
ール信号と、 上記表現法指示信号が現に入力されたデータに
対応して外部指示信号として供給され、かつ上記
加算回路部が上記表現法指示信号によつて上記差
を求める処理モードが選択されるよう構成され表
現態様を異にする浮動小数点データについて処理
可能にしたことを特徴としている。以下図面を参
照しつつ説明する。
SUMMARY OF THE INVENTION In order to solve the above-mentioned problems, it is an object of the present invention to enable a single digit alignment processing circuit to perform digit alignment processing. And for that reason,
The digit alignment processing circuit of the present invention uses the sign of the mantissa as SM, the sum of the numbers in the mantissa as ΣM, the most significant bit of the exponent as SE, and the sum of the numbers in the exponent excluding the most significant bit as ΣE. When defined respectively, the exponent value is EXP=16 (2 6・SE+ 7i=2 2 7−i ・b i−64) and the mantissa value is SM・( 63i =8 2 7-i・b i ) and the exponent value is EXP=16 (-2 6・SE+ 7i=2 2 7-i・b i) and the mantissa value Two floating point data (OP1) and (OP2) in one of the expression modes with the second expression mode expressed as mantissa value = (-SM+ 63i=8 2 7-i・b i ) is input, calculate the exponent difference based on the contents of the exponent parts of the two data, shift the contents of the mantissa part of one data based on the exponent difference, and align the digits of the two floating point data. In the digit alignment processing circuit, a first addition is performed to calculate the difference between the content of the exponent part (EXP1) of the first floating point data (OP1) and the content of the exponent part (EXP2) of the second floating point data (OP2). a circuit section; and a second addition circuit section that calculates the difference between the contents of the exponent point (EXP2) of the second floating point data (OP2) and the contents of the exponent part (EXP1) of the first floating point data (OP1). and an expression method that is supplied to each of the first addition circuit section and the second addition circuit section to indicate the above expression mode, and causes both of the addition circuit sections to execute processing corresponding to the expression mode. a second signal conversion circuit section that generates an instruction signal and a shift signal corresponding to the content (M1) of the mantissa part of the first floating point data (OP1) in response to the output from the second addition circuit section; , a first signal conversion circuit section that generates a shift signal for the content (M2) of the mantissa part of the second floating point data (OP2) in response to the output from the first addition circuit section; a second align circuit that shifts the content (M2) of the mantissa part of the second floating point data (OP2) in response to a shift signal from the signal conversion circuit section; a first align circuit that shifts the content (M1) of the mantissa part of the first floating point data (OP1) in response to a shift signal; and a first align circuit and a second align circuit, respectively. a data control signal that instructs the operation mode in each of the align circuits; and the expression method instruction signal is supplied as an external instruction signal corresponding to the currently input data; The present invention is characterized in that the processing mode for determining the difference is selected by the representation method instruction signal, and that floating point data having different representation modes can be processed. This will be explained below with reference to the drawings.

第3図は本発明の一実施例構成、第4図は第3
図図示のDATACONTROL信号に対応するアラ
イン回路の処理を説明する説明図、第5図は第3
図図示のOP1シフト信号またはOP2シフト信号に
よるシフト態様を説明する説明図、第6図は第3
図図示の第1の加算回路部の一実施例構成、第7
図は第3図図示の信号変換回路部7の一実施例構
成、第8図A,Bは夫々第3図図示の第2のアラ
イン回路2(ALiGN2)の実施例構成、第9図は
第6図ないし第8図に示されるゲート回路による
処理を説明する説明図を示す。
Figure 3 shows the configuration of one embodiment of the present invention, and Figure 4 shows the configuration of the third embodiment.
An explanatory diagram explaining the processing of the align circuit corresponding to the DATACONTROL signal shown in the figure.
An explanatory diagram explaining the shift mode by the illustrated OP1 shift signal or OP2 shift signal, FIG.
An embodiment of the configuration of the first adder circuit shown in FIG.
The diagram shows an example configuration of the signal conversion circuit section 7 shown in FIG. 3, FIGS. 8A and 8B show an example configuration of the second align circuit 2 (ALiGN2) shown in FIG. An explanatory diagram illustrating processing by the gate circuit shown in FIGS. 6 to 8 is shown.

本発明の一実施例を示す第3図において、図中
の符号OP1は第1の浮動小数点データ、OP2は第
2の浮動小数点データ、1は第1のアライン回路
であつて第1の浮動小数点データOP1の仮数部の
内容M1をシフトするもの、2は第2のアライン
回路であつて第2の浮動小数点データOP2の仮数
部の内容M2をシフトするもの、3,4は夫々出
力レジスタ、5は第1の加算回路部であつて第1
の浮動小数点データOP1の指数部の内容EXP1か
ら第2の浮動小数点データOP2の指数部の内容
EXP2の差を演算するもの、6は第2の加算回路
部であつて第2の浮動小数点データOP2の指数部
の内容EXP2から第1の浮動小数点データOP1の
指数部の内容EXP1の差を演算するもの、7,8
は夫々信号変換回路部、「表現指示」は表現法指
示信号、「OP1シフト」は係数部の内容M1に対す
るシフト指示信号、「OP2シフト」は仮数部の内
容M2に対するシフト指示信号、
DATACONTROLはアライン回路1,2に対す
る制御信号であつて第4図を参照して後述する如
く4ビツトの信号で与えられるものを夫々表わし
ている。
In FIG. 3 showing an embodiment of the present invention, reference numeral OP1 in the figure represents first floating point data, OP2 represents second floating point data, and 1 represents a first align circuit which represents first floating point data. 2 is a second align circuit that shifts the mantissa content M2 of the second floating point data OP2; 3 and 4 are output registers; 5 is the first adder circuit section and the first
The contents of the exponent part of the floating point data OP1 from EXP1 to the contents of the exponent part of the second floating point data OP2
6 is a second addition circuit that calculates the difference between EXP2 and calculates the difference between the content EXP2 of the exponent part of the second floating point data OP2 and the content EXP1 of the exponent part of the first floating point data OP1. things to do, 7, 8
are respectively signal conversion circuit parts, "expression instruction" is a representation method instruction signal, "OP1 shift" is a shift instruction signal for the content M1 of the coefficient part, "OP2 shift" is a shift instruction signal for the content M2 of the mantissa part,
DATACONTROL represents a control signal for the align circuits 1 and 2, which is given as a 4-bit signal as will be described later with reference to FIG.

2つの浮動小数点データOP1とOP2とが与えら
れたとき、夫々の指数部の内容EXP1とEXP2と
が加算回路部5と6とに供給される。そして、加
算回路部5は EXP1−EXP2 を演算し、また加算回路部6は EXP2−EXP1 を演算する。このとき、表現法指示信号が与えら
れ、2つの浮動小数点データOP1とOP2とが夫々
第1の表現態様(#1表現法)で与えられている
場合には、上記EXP1とEXP2とは第2図B図示
の#1表現法に対応した値をとるものとして演算
される。また2つの浮動小数点データOP1とOP2
とが夫々第2の表現態様(#2表現法)で与えら
れている場合には、上記EXP1とEXP2とは第2
図B図示の#2表現法に対応した値をとるものと
して演算される。上述の如く#1表現法の場合と
#2表現法の場合とでSEビツトの取扱いに差異
があり、SEビツトを含む指数差演算においてい
ずれの指数値が大きいかを判定するために、両者
を論理比較するか符号付(2の捕数)数値として
比較するかの制御を行わせるようにしている。
When two floating point data OP1 and OP2 are given, the contents EXP1 and EXP2 of the respective exponent parts are supplied to adder circuits 5 and 6. The adder circuit section 5 calculates EXP1-EXP2, and the adder circuit section 6 calculates EXP2-EXP1. At this time, when the representation method instruction signal is given and the two floating point data OP1 and OP2 are given in the first representation mode (#1 representation method), the above EXP1 and EXP2 are It is calculated as taking a value corresponding to the #1 expression method shown in Figure B. Also two floating point data OP1 and OP2
are respectively given in the second expression mode (#2 expression method), the above EXP1 and EXP2 are given in the second expression mode (#2 expression method).
It is calculated as taking a value corresponding to the #2 expression method shown in Figure B. As mentioned above, there is a difference in the handling of SE bits between the #1 representation method and the #2 representation method, and in order to determine which exponent value is larger in an exponent difference calculation that includes SE bits, both are used. Control is performed as to whether to compare logically or as signed (capture of 2) numerical values.

第1および第2の加算回路5,6の出力は第2
図B図示の場合一般に7ビツトの値となるが、信
号変換回路7,8によつて4ビツトの信号に変換
され、図示OP2シフト信号とOP1シフト信号とを
夫々アライン回路1,2に供給する。
The outputs of the first and second adder circuits 5 and 6 are
In the case shown in Figure B, it is generally a 7-bit value, but it is converted into a 4-bit signal by signal conversion circuits 7 and 8, and the illustrated OP2 shift signal and OP1 shift signal are supplied to align circuits 1 and 2, respectively. .

各アライン回路1,2には、図示の如く、第4
図を参照して後述するDATACONTROL信号が
供給され、かつ夫々対応する浮動小数点データの
仮数部の内容とその符号ビツトとが供給される。
そして、所望のシフトが夫々対応する仮数部の内
容について行なわれた上で、出力レジスタ3,4
にセツトされる。
Each align circuit 1, 2 has a fourth
A DATACONTROL signal, which will be described later with reference to the figures, is supplied, as well as the content of the mantissa part of the corresponding floating point data and its sign bit.
Then, after the desired shifts have been performed on the contents of the corresponding mantissa parts, the output registers 3 and 4 are
is set to

第4図は、第3図図示のDATACONTROL信
号に対応するアライン回路の処理を説明する説明
図を示している。DATACONTROL信号は4ビ
ツトの信号で与えられ、 () ALiGNビツト () SiGNEDビツト () UNSiGNEDビツト () SHORTビツト をそなえている。ALiGNビツトが与えられた場
合には、上記OP1シフト信号またはOP2シフト信
号に対応したシフト量に応じたシフトを行なうこ
とが指示される。SiGNEDビツトとUNSiGNED
ビツトとが「0、0」の場合には、与えられた仮
数部の内容に対して特別の加工を行なわないこと
が指示される。同様に「0、1」の場合には、シ
フトされた仮数部の内容についてシフト量分だけ
左端に「0……0」が拡張される。同様に「1、
0」の場合には、シフトされた仮数部の内容につ
いてシフト量分だけ左端に符号ビツト(SM)の
内容が「0……0」または「1……1」として拡
張される。更にSHORTビツトが与えられた場
合、浮動小数点データO1およびOP2が一般に64
ビツトで与えられるものであるが、それらのデー
タが32ビツトで与えられているものであることを
指示し、各アライン回路1,2に入力された仮数
部の内容M1、M2の第32ビツト目ないし第63ビツ
ト目に「00……0」を附加することが指示され
る。なお、#1表現法の場合の仮数部は符号と真
値(絶対値)表現の小数とであり、 仮数値=(−1)SM・(63i=8 27-i・bi) で表現され、#2表現法の場合の仮数部は2の捕
数表現の小数であり、 仮数値=(−SM+63i=8 27-i・bi) で表現される。したがつて、仮数部の右方向シフ
ト動作(桁合わせ)によつて#1表現法(絶対
値)ではシフトした量だけ左端にゼロが拡張さ
れ、#2表現法(2の捕数)ではシフトした量だ
けその符号ビツト(0又は1)が拡張される。
FIG. 4 shows an explanatory diagram illustrating the processing of the align circuit corresponding to the DATACONTROL signal shown in FIG. 3. The DATACONTROL signal is given as a 4-bit signal, and includes () ALiGN bit () SiGNED bit () UNSiGNED bit () SHORT bit. When the ALiGN bit is applied, it is instructed to perform a shift according to the shift amount corresponding to the OP1 shift signal or OP2 shift signal. SiGNED bits and UNSiGNED
If the bits are "0, 0", it is instructed that no special processing be performed on the contents of the given mantissa. Similarly, in the case of "0, 1", "0...0" is extended to the left end by the shift amount for the contents of the shifted mantissa part. Similarly, “1,
In the case of "0", the content of the sign bit (SM) is extended to the left end by the amount of shift with respect to the content of the shifted mantissa part as "0...0" or "1...1". Additionally, if the SHORT bit is given, floating point data O1 and OP2 will typically be 64
The 32nd bit of the mantissa input to each align circuit 1 and 2 indicates that the data is given in 32 bits. It is instructed to add "00...0" to the 63rd bit. In addition, the mantissa part in the case of the #1 representation method is a sign and a decimal number expressed as a true value (absolute value), and the mantissa value = (-1) SM・( 63i=8 2 7-i・b i ) The mantissa part in the case of the # 2 representation method is a decimal number in the catch representation of 2, and is expressed as follows . Therefore, by shifting the mantissa to the right (digit alignment), in #1 representation (absolute value), zero is extended to the left end by the shifted amount, and in #2 representation (capture of 2), the zero is extended to the left by the shifted amount. The sign bit (0 or 1) is extended by the amount.

第5図は、第3図図示のOP1シフト信号または
OP2シフト信号によるシフト態様を説明する説明
図である。そして、 A EXP1>EXP2であつて、その差が値「15」
を超えている場合、OP1シフト信号として値
「0」が与えられ、OP2シフト信号として値
「15」が与えられる。
Figure 5 shows the OP1 shift signal shown in Figure 3 or
FIG. 3 is an explanatory diagram illustrating a shift mode using an OP2 shift signal. Then, A EXP1>EXP2, and the difference is the value "15"
If it exceeds , the value "0" is given as the OP1 shift signal, and the value "15" is given as the OP2 shift signal.

B EXP1>EXP2であつて、の差が値「1」以
上でありかつ値「15」以下である場合、OP1シ
フト信号として値「0」が与えられ、OP2シフ
ト信号として上記差に相当する値が与えられ
る。
B If EXP1>EXP2 and the difference is greater than or equal to the value "1" and less than or equal to the value "15", the value "0" is given as the OP1 shift signal, and the value corresponding to the above difference is given as the OP2 shift signal. is given.

(C) EXP1=EXP2の場合、OP1シフト信号と
OP2シフト信号とに夫々値「0」が与えられ
る。
(C) When EXP1=EXP2, the OP1 shift signal and
The value "0" is given to the OP2 shift signal and the OP2 shift signal, respectively.

(D) EXP1<EXP2であつて、その差が「1」以
上でありかつ値「15」以下である場合、OP1シ
フト信号として上記差に相当する値が与えら
れ、OP2シフト信号として値「0」が与えられ
る。
(D) If EXP1<EXP2 and the difference is greater than or equal to "1" and less than or equal to the value "15", the value corresponding to the above difference is given as the OP1 shift signal, and the value "0" is given as the OP2 shift signal. ' is given.

(E) EXP1<EXP2であつて、その差が値「15」
を超えている場合、OP1シフト信号として値
「15」が与えられ、OP2シフト信号として値
「0」が与えられる。
(E) EXP1 < EXP2, and the difference is the value “15”
If it exceeds , the value "15" is given as the OP1 shift signal, and the value "0" is given as the OP2 shift signal.

なおシフト信号として値「15」を与えた場合シ
フト量が最大値に打切られる形となる。
Note that if the value "15" is given as the shift signal, the shift amount will be truncated to the maximum value.

第6図は第3図図示の第1の加算回路部5の一
実施例構成を示している。即ちEXP1−EXP2動
作を行う加算器を説明している。本来ここで行わ
れる演算は両指数部の減算操作のみ適用されるの
でEXP2の1の捕数を作成する論理ゲートが省略
され、+iビツトの替わりに−iビツトを入力す
るようにすれば(又はその逆を用いてもよい)通
常の加算回路で減算が達成出来る。図中の符号9
はハーフ・サム生成部/ジエネレート信号生成
部/プロパゲート信号生成部を表し、ビツト1か
らビツト7までの加算器の基本項、プロパゲート
項P、ジエネレート項G、ハーフ・サム項Hの発
生を示している。
FIG. 6 shows an embodiment of the configuration of the first adder circuit section 5 shown in FIG. That is, an adder that performs EXP1-EXP2 operations is described. Originally, the operation performed here applies only the subtraction operation of both exponent parts, so the logic gate that creates the catch of 1 of EXP2 is omitted, and if -i bits are input instead of +i bits (or The subtraction can be accomplished with a conventional adder circuit (the reverse may also be used). Code 9 in the diagram
represents the half-sum generation section/generate signal generation section/propagate signal generation section, and generates the basic term of the adder from bit 1 to bit 7, propagation term P, generate term G, and half-sum term H. It shows.

10はグループ・キヤリ生成部であつて、加算
器でのビツト4からのキヤリーの発生を検出する
部分を示している。11は最大シフト量検出部を
表し、指数差が15以上を検出する論理を示してお
り、第5図で説明された (EXP1−EXP2)>15 を検出することを示している。
Reference numeral 10 denotes a group carry generation section, which detects the occurrence of a carry from bit 4 in the adder. Reference numeral 11 represents a maximum shift amount detection section, which shows the logic for detecting an index difference of 15 or more, and indicates that (EXP1-EXP2)>15 as explained in FIG. 5 is detected.

12は差値チエツク回路を表し、表現法指示信
号(MODE1、MODE2)とともに構成される指
示差を検出する。即ち、OP1の指数(EXP1)が
OP2の指数(EXP2)に等しいか大きければ加算
回路部AD1(第3図図示符号5)の出力が正しい
指数差を生成しており変換1(第3図図示符号7)
を通つてALIGN2のシフト動作を指示し、OP1の
指数(EXP1)が小さければ加算回路部AD2(第
3図図示の符号6)の出力が正しい両者の指数差
を出力している。従つて差値チエツク回路12の
出力信号は第3図中の加算回路部5から信号変換
回路部8へ又は加算回路部6から信号変換回路部
7へ接続される抑止信号と同一である。
Reference numeral 12 represents a difference value check circuit, which detects an instruction difference constituted together with expression method instruction signals (MODE1, MODE2). In other words, the exponent of OP1 (EXP1) is
If it is equal to or larger than the exponent (EXP2) of OP2, the output of the adder circuit AD1 (number 5 in Figure 3) is generating the correct exponent difference, and conversion 1 (number 7 in Figure 3)
If the exponent (EXP1) of OP1 is small, the output of the adder circuit AD2 (numeral 6 in FIG. 3) outputs the correct difference between the two exponents. Therefore, the output signal of the difference value check circuit 12 is the same as the inhibit signal connected from the adder circuit section 5 to the signal converter circuit section 8 or from the adder circuit section 6 to the signal converter circuit section 7 in FIG.

第7図は第3図図示の信号変換回路部7の一実
施例構成を示している。即ち第3図図示のAD1、
AD2とALIGN1、ALIGN2との間にあつて両加
算出力を変換して4つのシフト信号SA0、SA1、
SA2、SA3を出力し、仮数部シフト回路へシフト
量を指示するものである。信号変換回路部7と信
号変換回路部8とは一時にはいずれか一方しか動
作しない。これは第7図中の最も上にある信号+
OP1OP2によつて制御されており、第3図中の
抑止信号と同じである。
FIG. 7 shows an embodiment of the configuration of the signal conversion circuit section 7 shown in FIG. That is, AD1 shown in Figure 3,
Between AD2 and ALIGN1, ALIGN2, both addition outputs are converted and four shift signals SA0, SA1,
It outputs SA2 and SA3 and instructs the mantissa shift circuit to shift the amount. Only one of the signal conversion circuit section 7 and the signal conversion circuit section 8 operates at a time. This is the topmost signal in Figure 7 +
It is controlled by OP1OP2 and is the same as the inhibit signal in FIG.

各アライン回路1,2へ送出されるシフト量信
号SA0、SA1、SA2、SA3は各々シフト量の位と
して32、16、8、4を持つ。従つて第5図のシフ
ト量を15に固定する事はSA0ないしSA3をすべて
‘1'にする事であり、この時のシフト量は(32+
16+8+4=60)になり仮数部のすべての桁はシ
フトされる事になる。
The shift amount signals SA0, SA1, SA2, and SA3 sent to each align circuit 1 and 2 have 32, 16, 8, and 4 as the digit of the shift amount, respectively. Therefore, fixing the shift amount to 15 in Fig. 5 means setting all SA0 to SA3 to '1', and the shift amount at this time is (32 +
16+8+4=60), and all digits of the mantissa are shifted.

第8図と同様の回路はALIIGN1用にコピーさ
れておりその時の入力信号は加算回路部6より供
給されていて第6図図示の差値チエツク回路1か
ら2の−OPOP2の信号により変換が抑止され
ることになる。
A circuit similar to that shown in Fig. 8 is copied for ALIIGN1, and the input signal at that time is supplied from the adder circuit section 6, and conversion is inhibited by the -OPOP2 signal of difference value check circuits 1 and 2 shown in Fig. 6. will be done.

第8図A,Bは夫々第3図図示のアライン回路
の一実施例を示す。即ち、実際のALIGN1/
ALIGN2の回路を説明したものである。
8A and 8B each show an embodiment of the align circuit shown in FIG. 3. FIG. That is, the actual ALIGN1/
This explains the ALIGN2 circuit.

13はシフト量デコード回路部を表し、信号変
換回路部7より出力されたSA0ないしSA3をデコ
ードするデコード回路であり、SA2はSA3と共に
またSA0はSA1と共にデコードされPR1(SH0、
SH4、SH8、SH12)を作成し、シフト量0、4、
8、12ビツトを指示する、そしてSEC(SH0、
SH16、SH32、SH48)は各々シフト量0、16、
32、48ビツトを指示している。
Reference numeral 13 represents a shift amount decoding circuit section, which is a decoding circuit that decodes SA0 to SA3 outputted from the signal conversion circuit section 7. SA2 is decoded together with SA3, SA0 is decoded together with SA1, and PR1 (SH0,
SH4, SH8, SH12) and shift amounts 0, 4,
8. Indicates 12 bits, and SEC(SH0,
SH16, SH32, SH48) are shift amounts 0, 16, respectively.
Indicates 32 or 48 bits.

15はSIGNED/UNSIGND指示による符号
制御に関する回路であり、 14は仮数部ビツト0ないし7を出力する回路
を示している。
15 is a circuit related to sign control based on the SIGNED/UNSIGND instruction, and 14 is a circuit that outputs mantissa bits 0 to 7.

第8図B図示の16,17は実際のALIGN回
路を示しておりPR1 BIT00ないし63が第1段目
のシフト回路(PR1 SH0、SH4、SH8、SH12)
を示し、SEC BIT00ないし63は第2段目のシフ
ト回路(−SEC SH0、SH0、SH16、SH32、
SH48)を示している。これらの回路は、
ALIGN1とALIGN2との各々に設けられている。
16 and 17 in Figure 8B indicate the actual ALIGN circuit, and PR1 BIT00 to 63 are the first stage shift circuits (PR1 SH0, SH4, SH8, SH12)
SEC BIT00 to 63 indicate the second stage shift circuit (-SEC SH0, SH0, SH16, SH32,
SH48) is shown. These circuits are
It is provided for each of ALIGN1 and ALIGN2.

なお第9図は、第6図ないし第8図に示される
ゲート回路による処理を説明する説明図を示して
いる。図中18は入力A、B、C、Dに対応し
て、出力Xとして X=・=+ を出力する。また19は入力A、B、C、Dに対
応して、出力Xとして X=(A+B)・(+) +(+)・(C+D) を出力する。更に20は入力A、B、C、Dに対
応して、出力X、Y、Zとして夫々 X=・ Y=・ Z=(A+B)・(C+D) を出力する。
Note that FIG. 9 shows an explanatory diagram for explaining the processing by the gate circuit shown in FIGS. 6 to 8. In the figure, 18 corresponds to inputs A, B, C, and D, and outputs X=.=+ as output X. Further, 19 outputs the following as output X in response to inputs A, B, C, and D: X=(A+B).(+) +(+).(C+D). Further, 20 outputs X=.Y=.Z=(A+B).(C+D) as outputs X, Y, and Z in response to inputs A, B, C, and D, respectively.

以上説明した如く、本発明によれば、与えられ
た浮動小数点データOP1とOP2とが夫々上述の第
1の表現態様と第2の表現態様とのいずれをとつ
ていても、単一の桁合わせ処理回路によつて、所
望の桁合わせを行なうことが可能となる。
As explained above, according to the present invention, regardless of whether the given floating point data OP1 and OP2 take either of the above-mentioned first expression mode or second expression mode, a single digit The alignment processing circuit makes it possible to perform desired digit alignment.

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

第1図は浮動小数点データを説明する説明図、
第2図A,Bは浮動小数点データの表現態様を説
明する説明図、第3図は本発明の一実施例構成、
第4図は第3図図示のDATA CONTROL信号
に対応するアライン回路の処理を説明する説明
図、第5図は第3図図示のOP1シフト信号または
OP2シフト信号によるシフト態様を説明する説明
図、第6図は第3図図示の第1の加算回路部の一
実施例構成、第7図は第3図図示の信号変換回路
部7の一実施例構成、第8図A,Bは夫々第3図
図示の第2のアライン回路2の一実施例構成、第
9図は第6図ないし第8図に示されるゲート回路
による処理を説明する説明図を示す。 図中、1,2は夫々アライン回路、3,4は
夫々出力レジスタ、5,6は夫々加算回路部、
7,8は夫々信号変換回路部を表わす。
Figure 1 is an explanatory diagram explaining floating point data.
2A and 2B are explanatory diagrams illustrating the representation mode of floating point data, and FIG. 3 shows the configuration of an embodiment of the present invention.
FIG. 4 is an explanatory diagram explaining the processing of the align circuit corresponding to the DATA CONTROL signal shown in FIG. 3, and FIG.
An explanatory diagram illustrating the shift mode by the OP2 shift signal, FIG. 6 is an embodiment of the configuration of the first addition circuit section shown in FIG. 3, and FIG. 7 is an implementation of the signal conversion circuit section 7 shown in FIG. 3. Example configuration, FIGS. 8A and 8B each show an example configuration of the second align circuit 2 shown in FIG. 3, and FIG. 9 is an explanation explaining the processing by the gate circuit shown in FIGS. 6 to 8. Show the diagram. In the figure, 1 and 2 are align circuits, 3 and 4 are output registers, 5 and 6 are adder circuits,
7 and 8 represent signal conversion circuit sections, respectively.

Claims (1)

【特許請求の範囲】 1 浮動小数点データの表現態様として 仮数部の符号をSM 仮数部の数値の総和をΣM 指数部の最上位ビツトをSE 最上位ビツトを除く指数部の数値の総和をΣE
と夫々定義したとき、 指数値が EXP=16(2 6・SE+7i=2 2 7−i ・b i−64) でかつ仮数値が 仮数値=(−1)SM・(63i=8 27-i・bi) で表現される第1の表現態様と、 指数値が EXP=16(−2 6・SE+7i=2 2 7−i・b i) でかつ仮数値が 仮数値=(−SM+63i=8 27-i・bi) で表現される第2の表現態様とのいずれか一方の
表現態様の2つの浮動小数点データ(OP1)と
(OP2)とが入力され、当該2つのデータの指数
部の内容にもとづいて指数差を求め、該指数差に
もとづいて一方のデータの仮数部の内容をシフト
し、上記2つの浮動小数点データの桁合わせを行
なう桁合わせ処理回路において、 第1の浮動小数点データ(OP1)の指数部の内
容(EXP1)から第2の浮動小数点データ
(OP2)の指数部の内容(EXP2)の差を演算す
る第1の加算回路部と、 第2の浮動小数点データ(OP2)の指数部の内
容(EXP2)から第1の浮動小数点データ
(OP1)の指数部の内容(EXP1)の差を演算す
る第2の加算回路部と、 上記第1の加算回路部と上記第2の加算回路部
とに夫々供給されて上記表現態様を指示し、当該
両者の加算回路部に対して当該表現態様に対応し
た処理を実行せしめる表現法指示信号と、 上記第2の加算回路部からの出力に対応して第
1の浮動小数点データ(OP1)の仮数部の内容
(M1)に対するシフト信号を発する第2の信号変
換回路部と、 上記第1の加算回路部からの出力に対応して第
2の浮動小数点データ(OP2)の仮数部の内容
(M2)に対するシフト信号を発する第1の信号変
換回路部と、 上記第1の信号変換回路部からのシフト信号に
対応して上記第2の浮動小数点データ(OP2)の
仮数部の内容(M2)をシフトする第2のアライ
ン回路と、 上記第2の信号変換回路部からのシフト信号に
対応して上記第1の浮動小数点データ(OP1)の
仮数部の内容(M1)をシフトする第1のアライ
ン回路と、 上記第1のアライン回路と上記第2のアライン
回路とに夫々供給されて、当該夫々のアライン回
路における動作態様を指示するデータ・コントロ
ール信号と、 上記表現法指示信号が現に入力されたデータに
対応して外部指示信号として供給され、かつ上記
加算回路部が上記表現法指示信号によつて上記差
を求める処理モードが選択されるよう構成され表
現態様を異にする浮動小数点データについて処理
可能にしたことを特徴とする桁合わせ処理回路。
[Claims] 1. As a representation of floating point data: The sign of the mantissa part is SM The sum of the numbers in the mantissa part is ΣM The most significant bit of the exponent part is SE The sum of the numbers in the exponent part excluding the most significant bit is ΣE
When defined respectively, the exponent value is EXP=16 (2 6・SE+ 7i=2 2 7−i ・b i−64) and the mantissa value is SM・( 63i The first expression form is expressed as Two floating point data (OP1) and (OP2) in one of the expression modes with the second expression mode expressed as mantissa value = (-SM+ 63i=8 2 7-i・b i ) is input, calculate the exponent difference based on the content of the exponent part of the two data, shift the content of the mantissa part of one data based on the exponent difference, and align the digits of the two floating point data. In the digit alignment processing circuit that performs digit alignment, a first circuit that calculates the difference between the content of the exponent part (EXP1) of the first floating point data (OP1) and the content of the exponent part (EXP2) of the second floating point data (OP2) is used. an addition circuit unit; and a second addition circuit that calculates the difference between the contents (EXP1) of the exponent part of the first floating point data (OP1) and the contents (EXP2) of the exponent part of the second floating point data (OP2). and is supplied to the first addition circuit section and the second addition circuit section to instruct the expression mode, and causes the addition circuit sections of both to execute processing corresponding to the expression mode. a representation method instruction signal; and a second signal conversion circuit section that generates a shift signal for the content (M1) of the mantissa part of the first floating point data (OP1) in response to the output from the second addition circuit section; , a first signal conversion circuit section that generates a shift signal for the content (M2) of the mantissa part of the second floating point data (OP2) in response to the output from the first addition circuit section; a second align circuit that shifts the content (M2) of the mantissa part of the second floating point data (OP2) in response to a shift signal from the signal conversion circuit section; a first align circuit that shifts the content (M1) of the mantissa part of the first floating point data (OP1) in response to a shift signal; and a first align circuit and a second align circuit, respectively. a data control signal that instructs the operation mode in each of the align circuits; and the expression method instruction signal is supplied as an external instruction signal corresponding to the currently input data; A digit alignment processing circuit characterized in that the processing mode for determining the difference is selected by an expression method instruction signal, and is capable of processing floating point data having different expression modes.
JP9821080A 1980-07-18 1980-07-18 Digit matching processing circuit Granted JPS5723147A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9821080A JPS5723147A (en) 1980-07-18 1980-07-18 Digit matching processing circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9821080A JPS5723147A (en) 1980-07-18 1980-07-18 Digit matching processing circuit

Publications (2)

Publication Number Publication Date
JPS5723147A JPS5723147A (en) 1982-02-06
JPH0323937B2 true JPH0323937B2 (en) 1991-04-02

Family

ID=14213612

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9821080A Granted JPS5723147A (en) 1980-07-18 1980-07-18 Digit matching processing circuit

Country Status (1)

Country Link
JP (1) JPS5723147A (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60181833A (en) * 1984-02-28 1985-09-17 Nec Corp Digit matching circuit for adder of floating decimal point
JPS6126136A (en) * 1984-07-16 1986-02-05 Nec Corp Digit justifying circuit of floating point adder
JPS6198442A (en) * 1984-10-19 1986-05-16 Nec Corp Arithmetic unit

Also Published As

Publication number Publication date
JPS5723147A (en) 1982-02-06

Similar Documents

Publication Publication Date Title
EP0820005B1 (en) Method and apparatus for computing floating point data
US5027308A (en) Circuit for adding/subtracting two floating point operands
US5010508A (en) Prenormalization for a floating-point adder
US5469377A (en) Floating point computing device for simplifying procedures accompanying addition or subtraction by detecting whether all of the bits of the digits of the mantissa are 0 or 1
JPH04167125A (en) Floating point adder device
JP3178746B2 (en) Format converter for floating point numbers
JPH0474743B2 (en)
US5111421A (en) System for performing addition and subtraction of signed magnitude floating point binary numbers
US5272654A (en) System for converting a floating point signed magnitude binary number to a two&#39;s complement binary number
US6205462B1 (en) Digital multiply-accumulate circuit that can operate on both integer and floating point numbers simultaneously
JP2689414B2 (en) Floating point representation converter
EP0234495B1 (en) Arithmetic circuit capable of executing floating point operations and fixed point operations
US4800516A (en) High speed floating-point unit
US5337265A (en) Apparatus for executing add/sub operations between IEEE standard floating-point numbers
JPH0343645B2 (en)
JPH0323937B2 (en)
Vassiliadis et al. Brief communication Condition code predictor for fixed-point arithmetic units
JP2801472B2 (en) Floating point arithmetic unit
JPS61131123A (en) Floating point arithmetic unit
JP2555577B2 (en) Arithmetic unit
JPS63158626A (en) Arithmetic processing unit
JP3295949B2 (en) Floating-point operation method and device
JPS5960637A (en) Arithmetic device for floating decimal point
JP3124286B2 (en) Floating point arithmetic unit
JP2890412B2 (en) Code conversion circuit