JPH0635670A - Floating point adder - Google Patents

Floating point adder

Info

Publication number
JPH0635670A
JPH0635670A JP18848192A JP18848192A JPH0635670A JP H0635670 A JPH0635670 A JP H0635670A JP 18848192 A JP18848192 A JP 18848192A JP 18848192 A JP18848192 A JP 18848192A JP H0635670 A JPH0635670 A JP H0635670A
Authority
JP
Japan
Prior art keywords
mantissa
shift
digit
operand
exponent
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.)
Withdrawn
Application number
JP18848192A
Other languages
Japanese (ja)
Inventor
Kazuhiro Suzuki
和浩 鈴木
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 JP18848192A priority Critical patent/JPH0635670A/en
Publication of JPH0635670A publication Critical patent/JPH0635670A/en
Withdrawn legal-status Critical Current

Links

Abstract

(57)【要約】 【目的】 仮数が2の補数で表現された浮動小数点数の
加算回路に関し、シフトアウトする負の仮数を有する浮
動小数点数に対しても演算時間を増加させずに正しい加
算結果が得られるようにすることを目的とする。 【構成】 両オペランドの指数の大小を比較して一方の
オペランドの仮数に対する桁シフト数と共通指数とを求
める指数比較部1と、桁シフト数と、該一方のオペラン
ドの仮数から仮数桁シフト時のシフトアウトの有無を検
出するシフトアウト検出部2と、仮数桁シフト数だけ該
一方の仮数に対して桁シフトを行うシフタ3、4と、シ
フトアウト検出部2がシフトアウトを検出したら、該一
方のオペランドの桁シフト後の値を0とする仮数制御部
5、6と、仮数制御部5、6の出力データを加算する加
算器7とを有し、共通指数化のために仮数シフトを行う
際にシフトアウトを検出した場合には、シフトアウトが
生じた仮数を0にしてから仮数加算を行うようにした構
成である。
(57) [Abstract] [Purpose] A floating-point number adder circuit in which the mantissa is represented by a two's complement, and correct addition without increasing the operation time even for a floating-point number having a negative mantissa to be shifted out. The purpose is to get results. [Structure] An exponent comparison unit 1 that compares the exponents of both operands to obtain a digit shift number and a common exponent for the mantissa of one operand, a digit shift number, and a mantissa digit shift from the mantissa of the one operand. Shift-out detection unit 2 that detects the presence or absence of shift-out, shifters 3 and 4 that perform digit shift for the one mantissa by the mantissa digit shift number, and shift-out detection unit 2 detects shift-out, It has mantissa control units 5 and 6 for setting the value after one digit shift of one operand to 0, and an adder 7 for adding output data of the mantissa control units 5 and 6, and performs mantissa shift for common exponentiation. When a shift-out is detected during the operation, the mantissa in which the shift-out has occurred is set to 0, and then the mantissa addition is performed.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、仮数が2の補数で表現
された浮動小数点数の加算回路に関し、特に負の仮数が
共通指数化によってシフトアウトした場合にも正しい演
算結果が得られるようにした浮動小数点数加算回路に関
する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an adder circuit for floating-point numbers in which a mantissa is represented by a two's complement, and particularly, a correct operation result can be obtained even when a negative mantissa is shifted out by common exponentiation. To a floating point number adder circuit.

【0002】[0002]

【従来の技術】浮動小数点数を対象として演算を行う場
合、通常、仮数を絶対値表現した2進データを用いてい
る。しかし、加算演算を行う場合には、加算器を減算に
も共通に使用できるようにするため、加算器の入力にお
いて、絶対値表現を2の補数表現に変換して加算を行う
ことが多い。
2. Description of the Related Art When an operation is performed on a floating point number, binary data in which a mantissa is represented by an absolute value is usually used. However, when performing an addition operation, in order to commonly use the adder for subtraction, the absolute value expression is often converted into a two's complement expression at the input of the adder to perform the addition.

【0003】図4に、例えば16ビット幅で仮数データ
が2の補数表現のデータを示す。本発明が対象とする浮
動小数点数加算回路はこのようなデータの加算を行うも
のである。
FIG. 4 shows data having a 16-bit width and mantissa data represented by 2's complement. The floating point number adder circuit to which the present invention is directed is to add such data.

【0004】図5は従来の2の補数表現浮動小数点数加
算回路の構成図である。図において、21は指数比較部、
22はAシフタ、23はBシフタ、24は加算器である。オペ
ランドA[15:0]( この表記は最下位ビット0から最上
位ビット15までの16ビット幅の2進数Aを示す。以
下同様)と、オペランドB[15:0]の加算を行う場合、
指数比較部21は指数A[15:11 ]と指数B[15:11 ]を
用いてA[15:11 ]−B[15:11 ]を計算して両指数の
大小判定を行う。指数比較部21は、指数の差、即ちA
[15:11 ]−B[15:11 ]を求めこの値が負の場合に
は、差の絶対値をAシフタ22に、また正の場合にはBシ
フタ23へ指数の差を制御信号として出力するとともに、
大きい方の指数を共通指数X[15,11 ]として出力す
る。仮数A[10:0]と仮数B[10:0]は、それぞれAシ
フタ 22 、Bシフタ23に入力しており、指数比較部21か
らの制御信号により、小さい指数の方の仮数が指数の差
分だけ右シフトされて共通指数化が行われる。共通指数
化された仮数は加算器24により加算され、その結果に共
通指数X[15,11 ]を付加して加算結果X[15,11 ]が
得られる。
FIG. 5 is a block diagram of a conventional 2's complement representation floating point number adder circuit. In the figure, 21 is an index comparison unit,
22 is an A shifter, 23 is a B shifter, and 24 is an adder. Operand A [15: 0] (This notation indicates a 16-bit wide binary number A from the least significant bit 0 to the most significant bit 15. The same applies hereinafter) and operand B [15: 0],
The exponent comparison unit 21 calculates A [15:11] -B [15:11] using the exponents A [15:11] and the exponents B [15:11] to judge the magnitude of both exponents. The index comparison unit 21 determines the difference between the indexes, that is, A
[15:11] -B [15:11] is calculated. If this value is negative, the absolute value of the difference is sent to the A shifter 22, and if it is positive, to the B shifter 23. While outputting
The larger index is output as the common index X [15,11]. The mantissa A [10: 0] and the mantissa B [10: 0] are input to the A shifter 22 and the B shifter 23, respectively, and the control signal from the exponent comparison unit 21 causes the mantissa of the smaller exponent to be the exponent. A common index is formed by shifting the difference to the right. The mantissas converted into the common exponent are added by the adder 24, and the common exponent X [15,11] is added to the result to obtain the addition result X [15,11].

【0005】[0005]

【発明が解決しようとする課題】上述の如く、浮動小数
点数の加算を行う場合、指数を共通化するため、指数が
小さい方のオペランドの仮数を桁移動するためシフタに
よって右シフトする。
As described above, when the floating point numbers are added, the exponent is shared, and the mantissa of the operand with the smaller exponent is shifted to the right by the shifter.

【0006】この右シフトは入力データをシフト数だけ
右側へビット位置をずらし、空いたビット位置を入力デ
ータの最上位ビットの値で補うことによって行う。両オ
ペランドの指数の差が大きく、シフト数がシフトされる
仮数データの存在ビット位置より大きいとシフトされる
側のデータは最下位桁より右側に行き、全てのビットが
0となるシフトアウトが生じる。
This right shift is performed by shifting the bit position of the input data to the right by the shift number and compensating the vacant bit position with the value of the most significant bit of the input data. If the difference between the exponents of both operands is large and the shift number is larger than the existing bit position of the mantissa data to be shifted, the data on the shifted side goes to the right of the least significant digit, and shift-out occurs in which all bits are 0. .

【0007】ところが、シフトされる側の仮数が2の補
数表現の負数の場合に、シフトアウトが生じると計算結
果に誤差が生じる。図6の計算例により、これを説明す
る。
However, when the mantissa on the shifted side is a negative number in the two's complement representation, an error occurs in the calculation result if shift-out occurs. This will be described with reference to the calculation example of FIG.

【0008】図6の従来の加算例の図の(a)は入力
A、Bが両方とも正数の場合の加算例で、共通指数化の
ために入力Aの仮数を10桁シフトすると、仮数の符号
ビットの次のビットの“1”はシフトアウトして0とな
るので、加算結果は入力Bと同じ値になる。
FIG. 6 (a) of the conventional addition example shown in FIG. 6 is an addition example in which both inputs A and B are positive numbers. When the mantissa of input A is shifted by 10 digits for common exponentiation, the mantissa is changed. "1" of the bit next to the sign bit of is shifted out to 0, and the addition result has the same value as the input B.

【0009】図6(b)は、入力Bが図(a)と同じ
値、入力Aが図(a)と絶対値が同じで負数の場合の計
算例である。この場合も、本来は入力Aには(a)と同
様にシフトアウトが生じて、共通指数化後のオペランド
Aの仮数は0になる必要があるが、実際にはバレルシフ
タの性質上、何ビットシフトしても仮数部の全ビットが
1となり、負の最小値になったままである。従って、加
算結果はオペランドAから最小値を引いた数となり、加
算結果に誤差を生じるという問題が生ずる。
FIG. 6B shows a calculation example in the case where the input B has the same value as that in FIG. 6A and the input A has the same absolute value as that in FIG. In this case as well, originally, the shift-out occurs in the input A as in the case of (a), and the mantissa of the operand A after the common exponentiation needs to be 0, but in reality, due to the nature of the barrel shifter, how many bits Even if it shifts, all the bits of the mantissa become 1, and the negative minimum value remains. Therefore, the addition result is the number obtained by subtracting the minimum value from the operand A, which causes a problem that an error occurs in the addition result.

【0010】この演算誤差を除くためには、入力を絶対
値表現のまま右シフトを行ってから、2の補数表現に変
換して加算すれば良いが、この場合には入力データが絶
対値表現に限定され、また、バレルシフタと加算器との
間で絶対値表現→2の補数表現に変換する必要があり、
この変換時間分だけ演算時間に余分にかかってしまうと
う問題が生じる。
In order to eliminate this calculation error, the input may be right-shifted in the absolute value representation, converted into a two's complement representation and added. In this case, the input data is represented in the absolute value representation. It is necessary to convert the absolute value expression to the two's complement expression between the barrel shifter and the adder,
There arises a problem that the calculation time is additionally required for the conversion time.

【0011】本発明は上記課題に鑑み創出されたもの
で、2の補数表現でかつシフトアウトする負の仮数を有
する浮動小数点数に対しても、演算時間を増加させずに
正しい加算結果が得られるようにすることを目的とす
る。
The present invention has been made in view of the above problems, and a correct addition result can be obtained without increasing the operation time even for a floating-point number having a 2's complement representation and a negative mantissa to be shifted out. The purpose is to be able to.

【0012】[0012]

【課題を解決するための手段】図1は、本発明の浮動小
数点数加算回路の原理構成図である。上記問題点は、図
1に示す如く、2の補数表現の仮数をもつ浮動小数点数
の加算回路であって、両オペランドの指数の大小を比較
して一方のオペランドの仮数に対する桁シフト数と共通
指数とを求める指数比較部1と、該桁シフト数と、該一
方のオペランドの仮数から仮数桁シフト時のシフトアウ
トの有無を検出するシフトアウト検出部2と、仮数桁シ
フト数だけ該一方の仮数に対して桁シフトを行うシフタ
3、4と、シフトアウト検出部2がシフトアウトを検出
したら、該一方のオペランドの桁シフト後の値を0とす
る仮数制御部5、6と、仮数制御部5、6の出力データ
を加算する加算器7と、を有し、共通指数化のために仮
数シフトを行う際にシフトアウトを検出した場合には、
シフトアウトが生じた仮数を0にしてから仮数加算を行
うようにしたことを特徴とする本発明の浮動小数点数加
算回路により解決される。
FIG. 1 is a block diagram showing the principle of the floating point number adding circuit according to the present invention. The above-mentioned problem is, as shown in FIG. 1, an addition circuit for a floating-point number having a mantissa represented by two's complement, and comparing the magnitudes of exponents of both operands with a digit shift number for the mantissa of one operand. An exponent comparison unit 1 that obtains an exponent, the digit shift number, a shift-out detection unit 2 that detects the presence or absence of shift-out at the time of mantissa digit shift from the mantissa of the one operand, and the mantissa digit shift number When the shifters 3 and 4 that shift the digits to the mantissa and the shift-out detection unit 2 detect the shift-out, the mantissa control units 5 and 6 that set the value after the digit shift of the one operand to 0, and the mantissa control And an adder 7 for adding the output data of the units 5 and 6, and when a shift-out is detected when performing the mantissa shift for common exponentiation,
The floating-point number adding circuit of the present invention is characterized in that the mantissa resulting from the shift-out is set to 0 before the mantissa addition is performed.

【0013】[0013]

【作用】オペランドの一方の仮数に桁シフトによってシ
フトアウトが生じた場合には、バレルシフタの出力の如
何にかかわらず、仮数制御部によって強制的に0とされ
たオペランドが加算器に入力する。従って、一方のオペ
ランドがシフトアウトが生じる負の仮数であっても、正
しい演算結果が得られる。また、絶対値表現→2の補数
表現の変換を加算器の前で行う必要がないので、加算回
路に2の補数表現のデータを直接入力することができる
ので、2の補数表現のデータを取り扱う演算装置に直接
適用することが可能となり、また変換時間分だけ演算時
間を短縮することができる。
When one of the mantissas of the operand is shifted out by digit shift, the operand forcibly set to 0 by the mantissa controller is input to the adder regardless of the output of the barrel shifter. Therefore, even if one of the operands is a negative mantissa that causes shift-out, a correct operation result can be obtained. Further, since it is not necessary to convert the absolute value representation to the two's complement representation in front of the adder, the data of the two's complement representation can be directly input to the adder circuit, so that the data of the two's complement representation is handled. It can be directly applied to the arithmetic device, and the arithmetic time can be shortened by the conversion time.

【0014】[0014]

【実施例】以下添付図により本発明の実施例を説明す
る。図2は本発明の実施例の構成図、図3は本発明の実
施例による加算例を示す図である。
Embodiments of the present invention will be described below with reference to the accompanying drawings. FIG. 2 is a configuration diagram of an embodiment of the present invention, and FIG. 3 is a diagram showing an addition example according to the embodiment of the present invention.

【0015】図2の加算回路は、2の補数で表現される
仮数を持つ16ビット幅の浮動小数点数であるオペランド
A,Bを加算して、同一フォーマットの加算結果Xを出
力するものである。オペランドおよび演算結果のデータ
フォーマットは、図4で前述したように上位5ビット
[15:11 ]が指数、下位11ビット[10:0]が2の補数表
現の仮数を表す。仮数の最上位ビット[10]は符号ビッ
トで、正数では“0”、負数では“1”の値をとる。
The adder circuit of FIG. 2 adds operands A and B, which are 16-bit wide floating point numbers having a mantissa represented by a two's complement, and outputs an addition result X having the same format. . In the data format of the operand and the operation result, as described above with reference to FIG. 4, the upper 5 bits [15:11] represent the exponent and the lower 11 bits [10: 0] represent the mantissa in the two's complement representation. The most significant bit [10] of the mantissa is a sign bit, and takes a value of "0" for positive numbers and "1" for negative numbers.

【0016】図2において、11は指数比較部、12はシフ
トアウト検出部、13はバレルシフタA、14はバレルシフ
タB、15、16は図1の仮数制御部に相当するANDゲー
ト、17は11ビット加算器である。
In FIG. 2, 11 is an exponent comparison unit, 12 is a shift-out detection unit, 13 is a barrel shifter A, 14 is a barrel shifter B, 15 and 16 are AND gates corresponding to the mantissa control unit of FIG. 1, and 17 is 11 bits. It is an adder.

【0017】指数比較部11は、両オペランドの指数を比
較し、大きい方の指数を共通指数X[15:11 ]として出
力するとともに、小さい方の指数を持つオペランドのシ
フト数を出力する。
The exponent comparing unit 11 compares the exponents of both operands, outputs the larger exponent as the common exponent X [15:11], and outputs the shift number of the operand having the smaller exponent.

【0018】両シフタ13,14には、指数比較部からの指
数の差である6ビットのシフト数データが制御信号とし
て加えられ入力する仮数データをシフト数に応じて右シ
フトする。
To both shifters 13 and 14, 6-bit shift number data, which is the difference between the exponents from the exponent comparing section, is added as a control signal, and the input mantissa data is right-shifted according to the shift number.

【0019】シフトアウト検出部12は、両オペランドの
仮数の符号ビットを除く10ビットが入力しており、指数
比較部11からのシフト数データとシフト側の仮数の値と
を比較してシフト後の仮数データを0にする必要がある
シフトアウトが生じたかどうかを検出し、シフトアウト
が生じたら、そのオペランド側のANDゲートに制御信
号の“0”を出力する。
The shift-out detector 12 receives 10 bits excluding the sign bit of the mantissa of both operands, compares the shift number data from the exponent comparator 11 with the value of the mantissa on the shift side, and after shift It is detected whether or not a shift-out in which the mantissa data of is required to be 0 occurs, and when the shift-out occurs, the control signal "0" is output to the AND gate on the operand side.

【0020】図6(b)と入力データと同一数値を用い
た図2の演算例により、各部の動作を説明する。指数比
較部11は、両オペランドの指数A[15:11 ]と指数B
[15:11 ]指数ビットを入力し、A[15:11 ]−B[1
5:11 ]の計算を行うことによって、指数の大小を判定
し、大きい方の指数を共通指数X[15:11 ]を出力す
る。この場合には、Aの指数が2、Bの指数が12なの
で、12の2進数データが共通指数X[15:11 ]として出
力する。また指数の差は−10なので、Aシフタ12に制御
信号としてシフト数10を出力し、Bシフタ13には0を出
力する。。指数の差が正の場合にBシフタにシフト数を
出力し、Aシフタ12には0を出力する。
The operation of each unit will be described with reference to FIG. 6B and the calculation example of FIG. 2 using the same numerical values as the input data. The exponent comparison unit 11 calculates the exponent A [15:11] and the exponent B of both operands.
Input the [15:11] exponent bit and enter A [15:11] -B [1
5:11], the magnitude of the exponent is determined, and the larger exponent is output as the common exponent X [15:11]. In this case, since the index of A is 2 and the index of B is 12, binary data of 12 is output as the common index X [15:11]. Since the difference between the exponents is -10, the shift number 10 is output to the A shifter 12 as a control signal, and 0 is output to the B shifter 13. . When the difference between the exponents is positive, the shift number is output to the B shifter, and 0 is output to the A shifter 12.

【0021】Aシフタ13によって、オペランドAの仮数
が10ビット右側へ桁シフトされるが、オペランドAの
仮数は2の補数表現で負数であるため、Aシフタの出力
データは0にならずに全ビット“1”となる。
The mantissa of the operand A is shifted to the right by 10 bits by the A shifter 13. However, since the mantissa of the operand A is a negative number in the two's complement representation, the output data of the A shifter does not become 0, but all the output data. It becomes bit "1".

【0022】シフトアウト検出部12は、オペランドAの
仮数の下位ビットの“0”連続が9ビットであることか
らシフトアウトが起きないシフト数( シフト可能数) が
9であると認識し、このシフト可能数9と指数比較部11
からのシフト数10とを比べてシフトアウト検出信号の
“0”をA側のANDゲート15に出力し、桁シフトしな
いB側のANDゲート16には“1”を出力する。A側の
ANDゲート15はAシフタ13から入力するシフト後のデ
ータを全て“0”にして加算器17のA入力に、またB側
のANDゲート16は、Bシフタ14から入力するシフト無
しの仮数B[15:11 ]をそのまま通過させて加算器17の
B入力に、それぞれ供給する。
The shift-out detection unit 12 recognizes that the number of shifts (shiftable number) at which shift-out does not occur is 9 because the low-order bits "0" of the mantissa of the operand A are 9 bits. Number of shifts 9 and index comparison unit 11
The shift-out detection signal "0" is output to the A-side AND gate 15, and the shift-out detection signal is output to the B-side AND gate 16 that does not shift the digit by "1". The AND gate 15 on the A side sets all the shifted data input from the A shifter 13 to "0" and inputs it to the A input of the adder 17, while the AND gate 16 on the B side inputs the B shifter 14 without shifting. The mantissa B [15:11] is passed through as it is and supplied to the B input of the adder 17, respectively.

【0023】加算器17はA入力とB入力との加算を行
い、加算結果を仮数とし、共通指数が付加された演算結
果が加算回路の出力X[15:0]として出力される。以上
の如く、オペランドAの負の仮数の10ビット右シフト
で正しいシフトアウト結果が得られずAシフタ出力の全
ビットが“1”になっても、加算器17には正しいシフト
アウト結果である全ビット“0”のデータが入力するの
で、正しい演算結果が得られることがわかる。
The adder 17 adds the A input and the B input, uses the addition result as a mantissa, and outputs the operation result with the common exponent added as the output X [15: 0] of the addition circuit. As described above, even if the correct shift-out result is not obtained by the 10-bit right shift of the negative mantissa of the operand A and all the bits of the A shifter output become "1", the adder 17 obtains the correct shift-out result. It is understood that the correct operation result can be obtained because the data of all bits "0" is input.

【0024】[0024]

【発明の効果】以上説明した如く、本発明によれば、2
の補数表現による浮動小数点数加算回路において、共通
指数化のための仮数の右シフトによりシフトアウトが生
じた場合には、仮数を0にして加算するので、入力デー
タによらず常に正確な加算が行えるという効果がある。
As described above, according to the present invention, 2
In the floating-point number adder circuit using the complement expression of, when shift-out occurs due to the right shift of the mantissa for common exponentiation, the mantissa is set to 0 and the addition is performed, so that accurate addition is always performed regardless of the input data. The effect is that it can be done.

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

【図1】 本発明の浮動小数点数加算回路の原理構成図FIG. 1 is a principle configuration diagram of a floating point number addition circuit of the present invention.

【図2】 本発明の実施例の構成図FIG. 2 is a configuration diagram of an embodiment of the present invention.

【図3】 本発明の実施例による計算例を示す図FIG. 3 is a diagram showing a calculation example according to an embodiment of the present invention.

【図4】 入出力データフォーマット[Figure 4] Input / output data format

【図5】 従来の2の補数表現浮動小数点数加算回路の
構成図
FIG. 5 is a configuration diagram of a conventional 2's complement representation floating point number addition circuit.

【図6】 従来の計算例を示す図FIG. 6 is a diagram showing a conventional calculation example.

【符号の説明】[Explanation of symbols]

1,11…指数比較部、2,12…シフトアウト検出部、3,13…
Aシフタ、4,14…Bシフタ、5,6 …仮数制御部、15、16
…ANDゲート,7,17…加算器
1,11 ... Index comparison section, 2,12 ... Shift-out detection section, 3,13 ...
A shifter, 4, 14 ... B shifter, 5, 6 ... Mantissa control unit, 15, 16
… AND gate, 7,17… Adder

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 2の補数表現の仮数をもつ浮動小数点数
の加算回路であって、 両オペランドの指数の大小を比較して一方のオペランド
の仮数に対する桁シフト数と共通指数とを求める指数比
較部(1) と、 該桁シフト数と、該一方のオペランドの仮数から仮数桁
シフト時のシフトアウトの有無を検出するシフトアウト
検出部(2) と、 仮数桁シフト数だけ該一方の仮数に対して桁シフトを行
うシフタ(3,4) と、 シフトアウト検出部がシフトアウトを検出したら、該一
方のオペランドの桁シフト後の値を0とする仮数制御部
(5,6) と、 仮数制御部(5、6)の出力データを加算する加算器(7)
と、を有し、 共通指数化のために仮数シフトを行う際にシフトアウト
を検出した場合には、シフトアウトが生じた仮数を0に
してから仮数加算を行うようにしたことを特徴とする浮
動小数点数加算回路。
1. An adder circuit for a floating point number having a mantissa represented by two's complement, wherein exponent comparison is performed by comparing magnitudes of exponents of both operands to obtain a digit shift number and a common exponent for the mantissa of one operand. Part (1), the digit shift number, and a shift-out detection part (2) that detects the presence or absence of shift-out during mantissa digit shift from the mantissa of the one operand; A shifter (3,4) that shifts digits to the other side, and a mantissa control unit that sets the value after digit shift of one of the operands to 0 when the shift-out detection unit detects shift-out
An adder (7) for adding the output data of the mantissa control unit (5, 6) to (5, 6)
And, when a shift-out is detected when mantissa shift is performed for common exponentiation, the mantissa in which the shift-out has occurred is set to 0 before the mantissa addition is performed. Floating point adder circuit.
JP18848192A 1992-07-16 1992-07-16 Floating point adder Withdrawn JPH0635670A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP18848192A JPH0635670A (en) 1992-07-16 1992-07-16 Floating point adder

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP18848192A JPH0635670A (en) 1992-07-16 1992-07-16 Floating point adder

Publications (1)

Publication Number Publication Date
JPH0635670A true JPH0635670A (en) 1994-02-10

Family

ID=16224491

Family Applications (1)

Application Number Title Priority Date Filing Date
JP18848192A Withdrawn JPH0635670A (en) 1992-07-16 1992-07-16 Floating point adder

Country Status (1)

Country Link
JP (1) JPH0635670A (en)

Similar Documents

Publication Publication Date Title
EP0483864A2 (en) Hardware arrangement for floating-point addition and subtraction
US10019231B2 (en) Apparatus and method for fixed point to floating point conversion and negative power of two detector
EP0381403B1 (en) Pipelined floating point adder for digital computer
EP0359809B1 (en) Apparatus and method for floating point normalization prediction
JP3178746B2 (en) Format converter for floating point numbers
US6205462B1 (en) Digital multiply-accumulate circuit that can operate on both integer and floating point numbers simultaneously
JP4500358B2 (en) Arithmetic processing apparatus and arithmetic processing method
JP2008152360A (en) 3-input floating-point adder / subtracter
US7401107B2 (en) Data processing apparatus and method for converting a fixed point number to a floating point number
US6571264B1 (en) Floating-point arithmetic device
KR102459011B1 (en) Leading zero anticipation
JP2558669B2 (en) Floating point arithmetic unit
US5513362A (en) Method of and apparatus for normalization of a floating point binary number
JPH1091396A (en) Floating-point number detection device and circuit
JPH0511980A (en) Overflow detecting method and circuit
JP2517064B2 (en) Denormalized number processing method
JP2723707B2 (en) Normalization circuit
JP2801472B2 (en) Floating point arithmetic unit
JPS63158626A (en) Arithmetic processing unit
JPH03217938A (en) floating point rounding normalizer
JPH05204606A (en) Floating point arithmetic system and unit
JPS5960637A (en) Arithmetic device for floating decimal point
JPH02115926A (en) floating point normalization rounder
JPH0323937B2 (en)
JP3124286B2 (en) Floating point arithmetic unit

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 19991005