JPH07104777B2 - Floating point adder / subtractor - Google Patents

Floating point adder / subtractor

Info

Publication number
JPH07104777B2
JPH07104777B2 JP2042273A JP4227390A JPH07104777B2 JP H07104777 B2 JPH07104777 B2 JP H07104777B2 JP 2042273 A JP2042273 A JP 2042273A JP 4227390 A JP4227390 A JP 4227390A JP H07104777 B2 JPH07104777 B2 JP H07104777B2
Authority
JP
Japan
Prior art keywords
bit
operand
bits
rounding
mantissa
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
JP2042273A
Other languages
Japanese (ja)
Other versions
JPH03245225A (en
Inventor
拓 中野
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP2042273A priority Critical patent/JPH07104777B2/en
Priority to US07/659,198 priority patent/US5128889A/en
Publication of JPH03245225A publication Critical patent/JPH03245225A/en
Publication of JPH07104777B2 publication Critical patent/JPH07104777B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime 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/38Methods or arrangements for performing computations using exclusively denominational number representation, e.g. using binary, ternary, decimal representation
    • G06F7/48Methods or arrangements for performing computations using exclusively denominational number representation, e.g. using binary, ternary, decimal representation using non-contact-making devices, e.g. tube, solid state device; using unspecified devices
    • G06F7/499Denomination or exception handling, e.g. rounding or overflow
    • G06F7/49942Significance control
    • G06F7/49947Rounding
    • G06F7/49952Sticky bit

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、データ処理装置における加減算装置に係り、
とくに演算結果の丸めを行うのに好適な浮動小数加減算
装置に関する。
TECHNICAL FIELD The present invention relates to an adder / subtractor in a data processing device,
In particular, the present invention relates to a floating point adder / subtractor suitable for rounding operation results.

[従来の技術] 従来、丸めビットよりも下位のすべてのビットの論理和
に依存して丸めを行う浮動小数点加減算装置の例とし
て、特開昭61−213927号公報が知られている。
[Prior Art] Conventionally, Japanese Patent Laid-Open No. 61-213927 is known as an example of a floating-point addition / subtraction device that performs rounding depending on the logical sum of all bits lower than the rounding bit.

この例では、装置の内部において仮数部のビット長を数
値表現型式よりも長く取り(例えば67ビット)、丸めを
行なうときに丸めビットよりも下位のすべてのビットの
論理和を求めており、IEEE task P754の標準形式を採用
したときの丸めビットよりも下位のビット長は、単精度
で41ビット、倍精度で11ビット、拡張精度で1ビットと
なっている。
In this example, the bit length of the mantissa part is set longer than the numerical expression type (eg, 67 bits) inside the device, and when rounding is performed, the logical sum of all bits lower than the rounding bit is calculated. When the standard format of task P754 is adopted, the bit length lower than the rounding bit is 41 bits for single precision, 11 bits for double precision, and 1 bit for extended precision.

[発明が解決しようとする課題] しかしながら、前記した従来の浮動小数点加減算装置で
は、第2図に示すIEEE標準形式の倍精度、拡張精度では
指数どうしの大きさを同一にする仮数の桁合わせにおい
て右シフトにより失われるビットのすべての論理和演算
のために時間がかかり、右シフトに長時間を要するとい
う課題を有していた。
[Problems to be Solved by the Invention] However, in the above-mentioned conventional floating-point addition / subtraction device, in the digit alignment of mantissas in which the exponents have the same magnitude in double precision and extended precision of the IEEE standard format shown in FIG. There has been a problem that it takes a long time to perform an OR operation of all bits lost by right shift, and it takes a long time to right shift.

一方、単精度では丸めビットよりも下位の41ビットの論
理和演算のために時間がかかり、丸め処理に長時間を要
するという課題も有していた。
On the other hand, in single precision, there is a problem that it takes time to perform an OR operation of 41 bits lower than the rounding bit, and it takes a long time for the rounding process.

本発明は前記従来技術の課題を解決するため、、内部の
演算器のビット幅に直接依存することなく、丸めビット
よりも下位のすべてのビットの論理和を予測して高速な
丸め処理を可能とする浮動小数点加減算装置を提供する
ことを目的とする。
In order to solve the above-described problems of the prior art, the present invention enables high-speed rounding processing by predicting the logical sum of all bits lower than the rounding bit without directly depending on the bit width of the internal arithmetic unit. It is an object of the present invention to provide a floating point adder / subtractor.

[課題を解決するための手段] 前記目的を達成するため、本発明の浮動小数点加減算装
置は、符号、指数部、仮数部からなる同一数値表現形式
の被演算数、演算数を入力して、被演算数、演算数と同
一数値表現形式の加減算結果を出力する浮動小数点加減
算装置にして、中間的な仮数部の演算結果に対して、丸
めビットよりも下位のすべてのビットの論理和に依存し
て丸めを行う浮動小数点加減算装置において、中間的な
仮数部の演算結果の丸めビットよりも下位のすべてのビ
ットの論理和を予測するため、被演算数と演算数の各々
の仮数部に対して、最下位ビットからの“0"の連続する
ビット長を検出する手段を設けるとともに、前記2つの
“0"の連続するビット長のなかから指数が小さい数に対
応する“0"の連続するビット長を選択する選択手段と、
前記選択手段の出力する“0"の連続するビット長と、指
数の大きさを合わせるために指数の小さい方に対応する
仮数の右シフトを行うときに失われるビット長との大小
比較手段を設けたことを特徴とする。
[Means for Solving the Problem] In order to achieve the above-mentioned object, the floating-point addition / subtraction device of the present invention inputs the operands and the operands of the same numerical expression format consisting of a sign, an exponent part, and a mantissa part, A floating-point adder / subtractor that outputs an addition / subtraction result in the same numerical expression format as the operand and the operation number, and depends on the logical sum of all bits below the rounding bit for the intermediate mantissa operation result In a floating-point adder / subtractor that performs rounding, the logical sum of all bits lower than the rounding bits of the intermediate mantissa operation result is predicted, so that the mantissa of each of the operand and the operand is calculated. And a means for detecting a continuous bit length of "0" from the least significant bit is provided, and a continuous "0" corresponding to a number having a smaller exponent from the continuous bit lengths of the two "0" s. Select to select the bit length Alternatives,
There is provided a magnitude comparison means for comparing the consecutive bit lengths of "0" output by the selection means and the bit length lost when the mantissa corresponding to the smaller exponent is right-shifted to match the exponent size. It is characterized by that.

[作用] 前記した本発明の構成によれば、指数の小さい方に対応
する仮数の最下位ビットからの“0"の連続するビット長
が、指数の大きさを合わせるために指数の小さい方に対
応する仮数の右シフトを行うときに失われるビット長よ
りも小さいとき、値が“1"、それ以外の場合には値が
“0"となるスピルトビットを導入し、丸めビットの下位
にスピトルビットを付加して演算することにより、丸め
ビットよりも下位のすべてのビットの論理和であるステ
ィッキービットを予測することができる。
[Operation] According to the above-described configuration of the present invention, the continuous bit length of "0" from the least significant bit of the mantissa corresponding to the smaller exponent is set to the smaller exponent to match the exponent size. Introduces a spill bit with a value of "1" if it is less than the bit length lost when performing a right shift of the corresponding mantissa, and a value of "0" otherwise. By adding and calculating, the sticky bit which is the logical sum of all bits lower than the rounding bit can be predicted.

[実施例] 以下、本発明の一実施例を図を用いて詳細に説明する。
なお本発明は下記の実施例に限定されるものではない。
[Embodiment] An embodiment of the present invention will be described in detail below with reference to the drawings.
The present invention is not limited to the following examples.

第1図は本発明による浮動小数点加減算装置の全体構成
を示している。
FIG. 1 shows the overall configuration of a floating point addition / subtraction device according to the present invention.

第1図において、1は装置全体の制御を司る制御回路、
2は浮動小数点レジスタであり、1ワード64ビットの浮
動小数点データを32個格納することができ、2つの読み
だしポートと、1つの書き込みポートを有している。3
は被演算数レジスタ、4は演算数レジスタ、5は絶対値
減算器、6と7はリーディングビット付加回路、8と9
は最下位ビットからの“0"の連続するビット長を検出す
る溯行ゼロ検出回路、10、11、12、13、14は2対1マル
チプレクサ、15は反転回路、16は2対1マルチプレク
サ、17はプレシフタ、18は大小比較回路、19は絶対値加
算器、20は反転回路、21は2対1マルチプレクサ、22は
MSBから先行する“0"の連続するビット長を検出する先
行ゼロ検出回路、23は加減算器、24はポストシフタ、25
は丸めデータ生成回路、26は丸め加算器、27は定数加算
器、28は2対1マルチプレクサである。
In FIG. 1, reference numeral 1 is a control circuit for controlling the entire apparatus,
Reference numeral 2 denotes a floating point register, which can store 32 pieces of floating point data of 1 bit 64 bits, and has two read ports and one write port. Three
Is an operand register, 4 is an arithmetic register, 5 is an absolute value subtractor, 6 and 7 are leading bit addition circuits, and 8 and 9
Is a zero-detection circuit for detecting consecutive bit lengths of "0" from the least significant bit, 10, 11, 12, 13, 14 are 2: 1 multiplexers, 15 are inverting circuits, 16 are 2: 1 multiplexers, 17 Is a preshifter, 18 is a magnitude comparison circuit, 19 is an absolute value adder, 20 is an inverting circuit, 21 is a 2: 1 multiplexer, 22 is
Leading zero detection circuit that detects consecutive bit length of leading “0” from MSB, 23 is adder / subtractor, 24 is post shifter, 25
Is a rounding data generation circuit, 26 is a rounding adder, 27 is a constant adder, and 28 is a 2: 1 multiplexer.

本浮動小数点加減算装置で取り扱う浮動小数点データの
数値表現形式は第2図に示すようにIEEE Task p754の倍
精度形式を採用している。
The numerical representation format of the floating point data handled by this floating point adder / subtractor is the double precision format of IEEE Task p754 as shown in FIG.

まず、浮動小数点レジスタ2より、被演算数と演算数が
読みだされ、それぞれ、被演算数レジスタ3、演算数レ
ジスタ4にセットされる。制御回路1では命令が加算ま
たは減算のいずれかと被演算数と演算数の符号より、加
減算装置全体が実質的に加算を実行するのか減算を実行
するのかを判定する。絶対値減算器5では、被演算数レ
ジスタ3と演算数レジスタ4の出力する被演算数と演算
数の指数部を入力して差を求めて、さらに絶対値化した
値を出力するとともに、被演算数の指数と演算数の指数
の大小比較結果を出力する。
First, the operand and the operand are read from the floating point register 2 and set in the operand register 3 and the operand register 4, respectively. In the control circuit 1, it is determined whether the instruction is an addition or a subtraction, the operand and the sign of the operation number, and whether the addition / subtraction device as a whole substantially performs addition or subtraction. The absolute value subtracter 5 inputs the operands output from the operand register 3 and the operand register 4 and the exponent part of the operands to find the difference, and outputs the absolute value and outputs the absolute value. Outputs the comparison result of the exponent of the operand and the exponent of the operand.

一方、被演算数レジスタ3と演算数レジスタ4から出力
される被演算数と演算数の仮数部は、リーディングビッ
ト付加回路6、7で、リーディングビットが付加される
とともに、溯行ゼロ検出回路8、9により被演算数と演
算数の仮数部の最下位ビットからの“0"の連続するビッ
ト長が検出される。マルチプレクサ10、11、12では、絶
対値減算器5の出力する指数大小比較結果が被演算数の
方が大きいか等しいときは、被演算数の符号、指数、リ
ーディングビットが付加された仮数を、またそれ以外の
場合には演算数の符号、指数、リーディングビットが付
加された仮数をそれぞれ選択してして出力する。マルチ
プレクサ13、14では、絶対値減算器5の出力する指数大
小比較結果が被演算数の方が大きいか等しいときは、演
算数のリーディングビットが付加された仮数、演算数の
溯行ゼロビット長を、またそれ以外の場合には被演算数
のリーディングビットが付加された仮数、被演算数の溯
行ゼロビット長を、それぞれ選択して出力する。反転回
路15ではマルチプレクサ12の出力を入力して各ビットを
反転して出力し、マルチプレクサ16により、実質加算の
ときはマルチプレクサ12の出力にさらに下位に3ビット
の“0"が付加されたものが選択され、実質減算のときは
反転回路15の出力にさらに下位に3ビットの“1"が付加
されたものが選択される。プレシフタ17ではマルチプレ
クサ13の出力する指数が小さい方に対応するリーディン
グビットを含む仮数を絶対値減算器5から送られる指数
の差の絶対値の数だけ右にシフトする。プレシフタ17で
は、仮数部のビット長を下位に2ビット拡張して右シフ
トを行い、シフト数が2より大きいときはシフタよりあ
ふれたビットは失われる。大小比較回路18では、マルチ
プレクサ14の出力する指数が小さい方に対応する溯行ゼ
ロビット長に“2"を加えた値と絶対値減算器5から送ら
れる指数どうしの差の絶対値の大小比較を行い、指数ど
うしの差の絶対値の方が大きい場合にはスピルトビット
を“1"、それ以外の場合にはスピルトビットを“0"とし
て出力する。
On the other hand, in the mantissa part of the operand and the operand output from the operand register 3 and the operand register 4, the leading bit is added by the leading bit adding circuits 6 and 7, and the trailing zero detection circuit 8 is added. 9 detects the bit length in which "0" continues from the least significant bit of the mantissa of the operand and the operand. In the multiplexers 10, 11, and 12, when the exponent magnitude comparison result output from the absolute value subtractor 5 is larger or equal to the operand, the mantissa to which the sign of the operand, the exponent, and the leading bit are added, In other cases, the sign, exponent, and mantissa to which the leading bit is added are selected and output. In the multiplexers 13 and 14, when the exponent magnitude comparison result output from the absolute value subtracter 5 is larger or equal to the operand, the mantissa to which the leading bit of the operand is added, the trailing zero bit length of the operand, In other cases, the mantissa to which the leading bit of the operand is added and the trailing zero bit length of the operand are selected and output. The inverting circuit 15 inputs the output of the multiplexer 12 and inverts and outputs each bit. The multiplexer 16 adds three bits of “0” to the lower order of the output of the multiplexer 12 in the case of actual addition. In the actual subtraction, the output of the inverting circuit 15 to which 3 bits of "1" are further added is selected. The preshifter 17 shifts the mantissa including the leading bit corresponding to the smaller exponent output from the multiplexer 13 to the right by the number of absolute values of the exponent difference sent from the absolute value subtractor 5. In the pre-shifter 17, the bit length of the mantissa part is extended to the lower two bits and right shift is performed. When the shift number is larger than 2, the bits overflowing from the shifter are lost. The magnitude comparison circuit 18 compares the absolute value of the difference between the exponents sent from the absolute value subtracter 5 with the value obtained by adding “2” to the zero bit length of the trace corresponding to the one with the smaller exponent output from the multiplexer 14. , If the absolute value of the difference between the exponents is larger, the spill bit is output as "1", otherwise the spill bit is output as "0".

次に、絶対値加算器19ではマルチプレクサ16の出力を第
1の入力とし、プレシフタ17の出力の下位に大小比較回
路18の出力するスピルトビットを付加したものを第2の
入力とし、さらに図示はしていないが、制御回路1より
初期キャリとして実質加算時は“0"が、実質減算時は
“1"が送られて2の補数加算を実行した後、加算結果を
絶対値化して、第3図に示す中間的な演算結果を出力す
る。反転回路20ではマルチプレクサ10の出力を反転し、
マルチプレクサ21では制御回路1より送られる実質減算
を示す情報と絶対値加算器19より送られてくる絶対値を
取る前の加算結果の符号により(図示せず)、実質減算
および絶対値を取る前の符号が正の場合に反転回路20の
出力を、それ以外の場合にはマルチプレクサ10の出力を
選択して出力する。先行ゼロ検出回路22では、第3図に
示すビット56(21・・・ビットの位を示す、以下同
じ)、ビット55(2・・・)の値が“01"となるように
絶対値加算器19の出力をシフトするためのシフト数を求
める。このとき、右シフトとして1、左シフトとして1
から54のシフト数があり、また、スティッキービットは
シフトの対象としない。加減算器23はマルチプレクサ11
の出力する指数に対して右シフトのときはシフト数を加
算し、左シフトのときはシフト数を減算し、シフトしな
いときはゼロを加算して出力する。ポストシフタ24で
は、先行ゼロ検出回路22の出力に対応して絶対値加算器
19の出力のシフトを行う。このとき、右1ビットシフト
のときは、ビット1(2-54)、ビット0(スティッキー
ビット)の論理和を改めてビット0とし、左シフトの場
合には、ビット0は何も変更することなく左シフトによ
り空きが生じたビットにはゼロを補う。
Next, in the absolute value adder 19, the output of the multiplexer 16 is used as the first input, and the output of the preshifter 17 to which the spill bit output from the magnitude comparison circuit 18 is added is used as the second input. However, the control circuit 1 sends "0" as the initial carry at the time of substantial addition and "1" at the time of actual subtraction to execute the two's complement addition, then the addition result is converted to an absolute value, and the third value is added. The intermediate calculation result shown in the figure is output. The inverting circuit 20 inverts the output of the multiplexer 10,
Before the actual subtraction and the absolute value are taken, the multiplexer 21 uses the information indicating the actual subtraction sent from the control circuit 1 and the sign of the addition result before the absolute value sent from the absolute value adder 19 (not shown). When the sign of is positive, the output of the inverting circuit 20 is selected, and in other cases, the output of the multiplexer 10 is selected and output. In leading zero detection circuit 22, a third bit 56 shown in FIG. (Indicating 2 1 ... position of bits, the same below), bit 55 value of (2 ...) is "01" and so as an absolute value The shift number for shifting the output of the adder 19 is obtained. At this time, 1 for right shift and 1 for left shift
There are 54 to 54 shifts, and sticky bits are not subject to shift. The adder / subtractor 23 is the multiplexer 11
When the right shift is performed, the shift number is added to the exponent output by, the shift number is subtracted when the left shift is performed, and zero is added when the shift is not performed, and the exponent is output. In the post shifter 24, the absolute value adder corresponding to the output of the leading zero detection circuit 22
Shift 19 outputs. At this time, in the case of right 1 bit shift, the logical sum of bit 1 (2 -54 ) and bit 0 (sticky bit) is changed to bit 0, and in the case of left shift, bit 0 does not change anything. Zeros are added to the bits that have become vacant due to the left shift.

次に丸めデータ生成回路25では、マルチプレクサ21の出
力する符号とポストシフタ24の出力の中からビット3
(2-52)のLSB、ビット2(-53)のガードビット、ビッ
ト1(2-54)のラウンドビット、ビット0のスティッキ
ービットを入力するとともに、制御回路1より丸めモー
ドビットを入力し(図示せず)、第4図(a)(b)
(c)(d)に示す丸め処理が行われるように丸め加算
器26へのキャリを生成し、出力する。定数加算器27で
は、加減算器23の出力する指数に定数“1"を加えて出力
する。丸め加算器26でビット56(21)への桁上げがある
場合にはマルチプレクサ28で、定数加算器27の出力を、
またそれ以外の場合には加減算器23の出力を最終的な演
算結果の指数部として選択する。最終的な演算結果の仮
数部としてはリーディングビットを除いて丸め加算器26
のビット54からビット3の52ビットを出力する。ビット
56(21)への桁上げがある場合も、上記選択で支障がな
い理由は該当する桁上げ後のビット55からビット3の53
ビットはすべてゼロであり、ビット55からビット4を選
んでも結果的には上記の選択と同一になるからである。
Next, in the rounding data generation circuit 25, bit 3 is selected from the code output from the multiplexer 21 and the output from the post shifter 24.
Input the LSB of (2 -52 ), the guard bit of bit 2 ( -53 ), the round bit of bit 1 (2 -54 ), the sticky bit of bit 0, and the rounding mode bit from the control circuit 1 ( (Not shown), FIG. 4 (a) (b)
Carries to the rounding adder 26 are generated and output so that the rounding processing shown in (c) and (d) is performed. The constant adder 27 adds the constant “1” to the exponent output from the adder / subtractor 23 and outputs the result. In the rounding adder 26 bits 56 (2 1) multiplexer 28 when there is a carry to the output of the constant adder 27,
In other cases, the output of the adder / subtractor 23 is selected as the exponent part of the final calculation result. The mantissa part of the final operation result is rounding adder 26 excluding leading bits.
It outputs 52 bits from bit 54 to bit 3 of. bit
Even if there is a carry to 56 (2 1 ), the reason why there is no problem in the above selection is that the corresponding carry after bit 55 to bit 3 53
This is because the bits are all zero, and selecting bit 4 from bit 55 will result in the same selection as above.

最後に、以上のようにして求められた最終的な演算結果
が浮動小数点レジスタ2に書き込まれ、浮動小数点加
算、または浮動小数点減算が終了する。
Finally, the final operation result obtained as described above is written in the floating point register 2, and the floating point addition or floating point subtraction is completed.

本実施例では、IEEE標準の浮動小数点データの倍精度数
値形式だけを取り扱ったが、他の数値形式の場合におい
ても中間的な仮数部の演算結果に対して丸めビットより
も下位のすべてのビットの論理和を予測するのに本発明
は適用できる。
In this embodiment, only the double-precision numeric format of the IEEE standard floating-point data is handled. However, in the case of other numeric formats as well, all bits lower than the rounding bit for the intermediate mantissa operation result The present invention can be applied to predict the logical sum of

[発明の効果] 本発明によれば、丸めビットよりも下位のすべてのビッ
トの論理和に依存して丸め処理を行う浮動小数点加減算
装置に対して、中間的な仮数部の積の丸めビットよりも
下位のすべてのビットの論理和をとるかわりに、被演算
数、演算数の仮数部から上記論理和を予測できるため、
丸め処理を高速に実行できるという優れた効果を達成す
ることができる。
[Effect of the Invention] According to the present invention, a floating-point addition / subtraction device that performs rounding processing depending on the logical sum of all bits lower than the rounding bit, Also, instead of taking the logical sum of all the lower bits, the logical sum can be predicted from the operand and the mantissa part of the arithmetic number.
An excellent effect that the rounding process can be executed at high speed can be achieved.

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

第1図は本発明による浮動小数点加減算装置の全体構成
を示すブロック図、第2図はIEEE標準の浮動小数点デー
タ数値表現形式を示す図、第3図は本発明の一実施例の
浮動小数点加減算装置による中間的な仮数部の演算結果
を示す図、第4図(a)(b)(c)(d)は従来の丸
め処理を示す図である。 1……制御回路、2……浮動小数点レジスタ、3……被
演算数レジスタ、4……演算数レジスタ、5……絶対値
減算器、6,7……リーディングビット付加回路、8,9……
溯行ゼロ検出回路、10,11,12,13,14,16,21,28……マル
チプレクサ、15,20……反転回路、17……プレシフタ、1
8……大小比較回路、19……絶対値加算器、22……先行
ゼロ検出回路、23……加減算器、24……ポストシフタ、
25……溯行ゼロレジスタ、26……丸め加算器、27……定
数加算器。
FIG. 1 is a block diagram showing the overall configuration of a floating point addition / subtraction device according to the present invention, FIG. 2 is a diagram showing an IEEE standard floating point data numerical representation format, and FIG. 3 is a floating point addition / subtraction of one embodiment of the present invention. FIGS. 4A, 4B, 4C, and 4D are diagrams showing a conventional rounding process, which are diagrams showing intermediate mantissa part calculation results by the apparatus. 1 ... Control circuit, 2 ... Floating point register, 3 ... Operand number register, 4 ... Operand number register, 5 ... Absolute value subtractor, 6,7 ... Leading bit addition circuit, 8,9 ... …
Depressing zero detection circuit, 10,11,12,13,14,16,21,28 …… Multiplexer, 15,20 …… Inversion circuit, 17 …… Preshifter, 1
8 …… size comparison circuit, 19 …… absolute value adder, 22 …… leading zero detection circuit, 23 …… adder / subtractor, 24 …… post shifter,
25 …… Synchronous zero register, 26 …… Rounding adder, 27 …… Constant adder.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】符号、指数部、仮数部からなる同一数値表
現形式の被演算数、演算数を入力して、被演算数、演算
数と同一数値表現形式の加減算結果を出力する浮動小数
点加減算装置であって、かつ中間的な仮数部の演算結果
に対して、丸めビットよりも下位のすべてのビットの論
理和に依存して丸めを行う浮動小数点加減算装置におい
て、中間的な仮数部の演算結果の丸めビットよりも下位
のすべてのビットの論理和を予測するため、被演算数と
演算数の各々の仮数部に対して、最下位ビットからの
“0"の連続するビット長を検出する手段を設けるととも
に、前記2つの“0"の連続するビット長のなかから指数
が小さい数に対応する“0"の連続するビット長を選択す
る選択手段と、前記選択手段の出力する“0"の連続する
ビット長と、指数の大きさを合わせるために指数の小さ
い方に対応する仮数の右シフトを行うときに失われるビ
ット長との大小比較手段を設けたことを特徴とする浮動
小数点加減算装置。
1. Floating-point addition / subtraction for inputting an operand and an operand in the same numerical expression format consisting of a sign, an exponent, and a mantissa, and outputting an addition / subtraction result in the same numerical expression as the operand and the operand. An intermediate mantissa operation in a floating-point addition / subtraction device that is a device and performs rounding on the intermediate mantissa operation result depending on the logical sum of all bits lower than the rounding bits. In order to predict the logical sum of all bits lower than the rounding bit of the result, detect the consecutive bit length of "0" from the least significant bit for each mantissa part of the operand and the operand. Means for selecting, from the two consecutive bit lengths of "0", a selecting means for selecting a consecutive bit length of "0" corresponding to a number having a small exponent, and "0" output by the selecting means. Of consecutive bits and the large exponent Floating point addition and subtraction apparatus characterized in that a magnitude comparison means with the bit length to be lost when shifting right mantissa corresponding to the smaller index to match the of.
JP2042273A 1990-02-22 1990-02-22 Floating point adder / subtractor Expired - Lifetime JPH07104777B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2042273A JPH07104777B2 (en) 1990-02-22 1990-02-22 Floating point adder / subtractor
US07/659,198 US5128889A (en) 1990-02-22 1991-02-22 Floating-point arithmetic apparatus with compensation for mantissa truncation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2042273A JPH07104777B2 (en) 1990-02-22 1990-02-22 Floating point adder / subtractor

Publications (2)

Publication Number Publication Date
JPH03245225A JPH03245225A (en) 1991-10-31
JPH07104777B2 true JPH07104777B2 (en) 1995-11-13

Family

ID=12631432

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2042273A Expired - Lifetime JPH07104777B2 (en) 1990-02-22 1990-02-22 Floating point adder / subtractor

Country Status (1)

Country Link
JP (1) JPH07104777B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09204295A (en) * 1996-01-29 1997-08-05 Kofu Nippon Denki Kk Sticky bit detecting circuit
GB201111035D0 (en) * 2011-06-29 2011-08-10 Advanced Risc Mach Ltd Floating point adder

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63298435A (en) * 1987-05-28 1988-12-06 Matsushita Electric Ind Co Ltd Arithmetic unit for floating point

Also Published As

Publication number Publication date
JPH03245225A (en) 1991-10-31

Similar Documents

Publication Publication Date Title
JP2662196B2 (en) Calculation result normalization method and apparatus
JP3076046B2 (en) Exception detection circuit
US6381624B1 (en) Faster multiply/accumulator
US5128889A (en) Floating-point arithmetic apparatus with compensation for mantissa truncation
US5222037A (en) Floating-point processor for performing an arithmetic operation on fixed-point part data with high speed rounding of a result
US5184318A (en) Rectangular array signed digit multiplier
US3814925A (en) Dual output adder and method of addition for concurrently forming the differences a{31 b and b{31 a
JPH0542011B2 (en)
JP2008152360A (en) Floating-point adder/subtractor of three-term input
US5144576A (en) Signed digit multiplier
GB1579100A (en) Digital arithmetic method and means
US5831884A (en) Apparatus for performing arithmetic operation of floating point numbers capable of improving speed of operation by performing canceling prediction operation in parallel
JPH0479015B2 (en)
JP2511527B2 (en) Floating point arithmetic unit
KR100331846B1 (en) floating addition
JPH07104777B2 (en) Floating point adder / subtractor
JP2695178B2 (en) Arithmetic circuit
EP0328779A2 (en) Apparatus for branch prediction for computer instructions
He et al. Multiply-add fused float point unit with on-fly denormalized number processing
JP2752698B2 (en) Floating point addition / subtraction circuit
JP3257278B2 (en) Normalizer using redundant shift number prediction and shift error correction
JP2512230B2 (en) Processor
JP4428778B2 (en) Arithmetic device, arithmetic method, and computing device
JPS61224036A (en) Arithmetic unit
JPH03245226A (en) Floating decimal-point multiplier