JPH0383126A - Floating-point multiplier - Google Patents

Floating-point multiplier

Info

Publication number
JPH0383126A
JPH0383126A JP21997489A JP21997489A JPH0383126A JP H0383126 A JPH0383126 A JP H0383126A JP 21997489 A JP21997489 A JP 21997489A JP 21997489 A JP21997489 A JP 21997489A JP H0383126 A JPH0383126 A JP H0383126A
Authority
JP
Japan
Prior art keywords
circuit
point
fixed
floating
carry signal
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
JP21997489A
Other languages
Japanese (ja)
Inventor
Tomio Sato
富夫 佐藤
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 JP21997489A priority Critical patent/JPH0383126A/en
Publication of JPH0383126A publication Critical patent/JPH0383126A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To reduce the circuit scale to increase the arithmetic processing speed by providing an OR circuit which operates OR between the carry signal of a fixed-point operation circuit and that of a rounding processing control circuit and incrementing the exponential part based on the output signal of the OR circuit. CONSTITUTION:In a floating-point multiplier, an OR circuit 43 which operates OR between a carry signal OF1 of a fixed-point operation circuit 10 and a carry signal OF2 of a rounding processing control circuit 17 is provided to increment the exponential part based on the output signal of the OR circuit 43. Thus, the normalization processing of the operation result of floating-point multiplication is performed with the simple circuit constitution.

Description

【発明の詳細な説明】 〔概要) 本発明はマイクロプロセッサなどの情報処理装置の演算
回路に係り、特に浮動小数点乗算器に関し、 回路規模が小さく、演算処理速度を向上させる浮動小数
点乗算器を提供することを目的とし、固定小数点演算を
行う固定小数点演算回路と、丸め処理を行う丸め処理制
御回路と、を備えた浮動小数点乗算器において、前記固
定小数点演算回路のキャリー信号および前記丸め処理制
御回路のキャリー信号の論理和をとるOR回路を備え、
前記OR回路の出力信号に基づいて指数部のインクリメ
ントを行うように構成する。
[Detailed Description of the Invention] [Summary] The present invention relates to an arithmetic circuit of an information processing device such as a microprocessor, and particularly relates to a floating point multiplier, and provides a floating point multiplier that has a small circuit scale and improves arithmetic processing speed. In a floating-point multiplier, the floating-point multiplier includes a fixed-point arithmetic circuit that performs fixed-point arithmetic operations, and a rounding control circuit that performs rounding processing, wherein the carry signal of the fixed-point arithmetic circuit and the rounding control circuit Equipped with an OR circuit that takes the logical sum of the carry signals of
The exponent part is incremented based on the output signal of the OR circuit.

〔産業上の利用分野〕[Industrial application field]

本発明はマイクロプロセッサなどの情報処理装置の演算
回路に係り、特に浮動小数点乗算器に関する。
The present invention relates to an arithmetic circuit for an information processing device such as a microprocessor, and more particularly to a floating point multiplier.

浮動小数点演算は、固定小数点演算に比べ、ダイナミッ
クレンジが広く精度も高いため、高度な演算要求に対応
することができる。より低コストの浮動小数点演算器の
実現のために演算回路の小形化が必要である。
Floating-point arithmetic has a wider dynamic range and higher accuracy than fixed-point arithmetic, so it can meet advanced arithmetic demands. In order to realize a lower cost floating point arithmetic unit, it is necessary to downsize the arithmetic circuit.

〔従来の技術〕[Conventional technology]

第1図に従来の浮動小数点乗算器のブロック図を示す。 FIG. 1 shows a block diagram of a conventional floating point multiplier.

浮動小数点乗算器に入力される乗数Aおよび被乗数Bは
1EEE754−1985の規格(以下、IEEE規格
と呼ぶ。)の正規化数であり、以下のフォーマットをし
ている。
The multiplier A and the multiplicand B input to the floating-point multiplier are normalized numbers according to the 1EEE754-1985 standard (hereinafter referred to as the IEEE standard), and have the following format.

A = (1) ilx m1x2 el−biasB
 = (−1) ’2Xm2 x2 e2−biasこ
こで、 Sl、S2:符号(0・正、1:負) ml 、m2  :仮数(1≦ml m2< 2 、二
進数)e11e2+指数 bit+ :バイアス である。
A = (1) ilx m1x2 el-biasB
= (-1) '2 be.

次に、動作を説明する。Next, the operation will be explained.

乗数Aおよび被乗数Bの符号xi、 s2はEOR(排
他的OR)回路30に入力され、その演算結果は符号デ
ータSNとして出力される。乗数Aおよび被乗数Bの指
数部el、e2は第1加算回路20に入力され加算され
、さらに第2加算回路21によりbi++の補正を施さ
れ、すなわち(−b口りが加算され、指数データTEと
して出力される。乗数Aおよび被乗数Bの仮数Kmm2
は固定小数点乗算回路10により演算され、その結果が
固定小数点乗算データTMIとしてシフタ16に出力さ
れる。ここで固定小数点乗算データTMIは、 1≦TMI<4 の範囲に属するため、固定小数点乗算データTMIは2
以上になる場合があり、このままでは、IEEE規格の
正規化数にならない可能性がある。そこで、固定小数点
乗算データTMIの2の1乗のビットをキャリーフラグ
として用い、キャリー信号OFIを出力し、キャリー信
号OFIが1の場合にはシフタ16による仮数部の右シ
フトし、インクリメンタ22により指数部のインクリメ
ントを行う。すなわち、仮数部を2で割り、指数部に1
を加える。例えば、正規化処理前の固定小数点乗算デー
タTMIの値が、 TM 1 = (10,01+)2X 2であったとす
れば、固定小数点乗算データTMI正規化処理後の正規
化固定小数点乗算データTM2の値は、 T M 2 = (1,0011)  X 2 ’とな
る。
The codes xi and s2 of the multiplier A and the multiplicand B are input to an EOR (exclusive OR) circuit 30, and the result of the operation is output as code data SN. The exponent parts el and e2 of the multiplier A and the multiplicand B are input to the first addition circuit 20 and added together, and then subjected to bi++ correction by the second addition circuit 21, that is, the (-b part is added), and the exponent data TE The mantissa Kmm2 of multiplier A and multiplicand B is output as
is calculated by the fixed-point multiplication circuit 10, and the result is output to the shifter 16 as fixed-point multiplication data TMI. Here, the fixed-point multiplication data TMI belongs to the range 1≦TMI<4, so the fixed-point multiplication data TMI is 2
If this continues, there is a possibility that the number will not be the normalized number according to the IEEE standard. Therefore, a bit of the first power of 2 of the fixed-point multiplication data TMI is used as a carry flag, and a carry signal OFI is output. When the carry signal OFI is 1, the mantissa is shifted to the right by the shifter 16, and the incrementer 22 Increments the exponent part. In other words, divide the mantissa by 2 and add 1 to the exponent.
Add. For example, if the value of fixed-point multiplication data TMI before normalization processing is TM 1 = (10,01+)2X 2, then the value of fixed-point multiplication data TMI after normalization processing is TM2. The value is T M 2 = (1,0011) X 2 '.

シフタ16により出力される正規化固定小数点乗算デー
タTM2は被演算数の2倍のビット数を持っている。例
えば、被演算数のビット数がそれぞれ16ビツトであれ
ば、正規化固定小数点乗算データTM2のビット数は3
2ビツトである。したがって、これを被演算数と同じビ
ット数の数で近似する必要がある。このため、丸め処理
と呼ばれる近似処理が行われる。丸め処理は、正規化固
定小数点乗算データTM2のLSB側の半分のビット(
例えば前述の例の場合、LSB側の16ビツト)、符号
データSNおよび丸めモードを決定する制御信号RMを
丸め処理制御回路17に入力し、丸め処理信号RDを発
生する。正規化固定小数点乗算データTM2のMSB側
の残り半分のビット(例えば前述の例の場合、MSB側
の16ビツト)は、インクリメンタ18に入力され、丸
め処理信号RDによりインクリメントされるか否かが決
まる。このときインクリメンタ18の出力データすなわ
ち、固定小数点乗算データTM3が(10,000) 
2になることがあり、IEEE規格の正規化数にならな
い可能性がある。そこで、固定小数点乗算データTM3
の2の1乗のビットをキャリーフラグとして用いキャリ
ー信号OF2を出力する。キャリー信号OF2が1の場
合には、シフタ19により仮数部の右シフトするととと
もにインクリメンタ23の出力データをマルチプレクサ
24により選択し指数部のインクリメントを行って正規
化する。
The normalized fixed-point multiplication data TM2 output by the shifter 16 has twice the number of bits as the operand. For example, if the number of bits of each operand is 16 bits, the number of bits of normalized fixed-point multiplication data TM2 is 3.
It is 2 bits. Therefore, it is necessary to approximate this with a number having the same number of bits as the operand. For this reason, an approximation process called rounding process is performed. The rounding process is performed using the half bits on the LSB side of the normalized fixed-point multiplication data TM2 (
For example, in the case of the above example, the 16 bits on the LSB side), the code data SN, and the control signal RM for determining the rounding mode are input to the rounding process control circuit 17 to generate the rounding process signal RD. The remaining half bits on the MSB side of the normalized fixed-point multiplication data TM2 (for example, 16 bits on the MSB side in the above example) are input to the incrementer 18, and whether or not to be incremented is determined by the rounding signal RD. It is decided. At this time, the output data of the incrementer 18, that is, the fixed-point multiplication data TM3 is (10,000)
2, and may not be the normalized number of the IEEE standard. Therefore, fixed-point multiplication data TM3
A carry signal OF2 is output using the bit of 2 to the 1st power as a carry flag. When the carry signal OF2 is 1, the shifter 19 shifts the mantissa part to the right, and the output data of the incrementer 23 is selected by the multiplexer 24, and the exponent part is incremented and normalized.

最後に、指数部を例外処理回路40へ入力し、IEEE
規格に定める例外が発生しているか否かを判断し、例外
が発生している場合には、定数発生回路41とセレクタ
42により対応するビットパタ−ンを出力する。
Finally, the exponent part is input to the exception handling circuit 40, and the IEEE
It is determined whether or not an exception defined in the standard has occurred, and if an exception has occurred, the constant generation circuit 41 and selector 42 output a corresponding bit pattern.

以上のようにして、乗算数Aおよび被乗算数Bの浮動小
数点乗算が行われる。
As described above, floating point multiplication of the multiplier A and the multiplicand B is performed.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

従来では、LMの任意の乗算数Aおよび非乗算数Bが入
力された場合、キャリー信号OFIおよびキャリー信号
OF2が同時に1になる場合はなく、インクリメンタ2
2およびインクリメンタ23が同時に動作することはな
かった。したがって、機能に対して、回路が冗長であり
、回路規模が不必要に大きくなるという問題点があった
。また、これに伴い、演算処理速度が低下するという問
題点があった。
Conventionally, when an arbitrary multiplication number A and non-multiplication number B of LM are input, the carry signal OFI and the carry signal OF2 do not become 1 at the same time, and the incrementer 2
2 and incrementer 23 never operated at the same time. Therefore, there is a problem that the circuit is redundant with respect to the function, and the circuit scale becomes unnecessarily large. Additionally, there is a problem in that the arithmetic processing speed decreases.

そこで、本発明は、回路規模が小さく、演算処理速度を
向上させる浮動小数点乗算器を提供することを目的とす
る。
SUMMARY OF THE INVENTION Therefore, an object of the present invention is to provide a floating point multiplier that has a small circuit scale and improves arithmetic processing speed.

〔課題を解決するための手段〕[Means to solve the problem]

上記課題を解決するため、本発明は、固定小数点演算を
行う固定小数点演算回路(10)と、丸め処理を行う丸
め処理制御回路(17)と、を備えた浮動小数点乗算器
において、前記固定小数点演算回路(10)のキャリー
信号(OF1)および前記丸め処理制御回路(17)の
キャリー信号(OF2)の論理和をとるOR回路(43
)を備え、前記OR回路(43)の出力信号に基づいて
指数部のインクリメントを行うように構成する。
In order to solve the above problems, the present invention provides a floating-point multiplier including a fixed-point arithmetic circuit (10) that performs fixed-point arithmetic and a rounding control circuit (17) that performs rounding. an OR circuit (43) that takes the logical sum of the carry signal (OF1) of the arithmetic circuit (10) and the carry signal (OF2) of the rounding control circuit (17);
), and is configured to increment the exponent part based on the output signal of the OR circuit (43).

〔作用〕[Effect]

本発明によれば、固定小数点演算回路のキャリー信号お
よび丸め処理制御回路のキャリー信号の論理和をとるO
R回路の出力信号に基づいて指数部演算結果のインクリ
メントを行うことにより、間単な回路構成で浮動小数点
乗算の演算結果の正規化処理を行える。
According to the present invention, O
By incrementing the exponent part calculation result based on the output signal of the R circuit, the floating point multiplication result can be normalized with a simple circuit configuration.

〔実施例〕〔Example〕

次に、第1図を参照して本発明の実施例について詳細に
説明する。第1図において第2図の従来例と同一の部分
には同一の符号を付し、詳細な説明は省略する。
Next, an embodiment of the present invention will be described in detail with reference to FIG. In FIG. 1, the same parts as in the conventional example shown in FIG. 2 are given the same reference numerals, and detailed explanations will be omitted.

第2図の実施例と異なる点は、インクリメンタ22を省
略し、固定小数点演算回路のキャリー信号OFIおよび
インクリメンタ■8のキャリー信号OF 2の論理和を
とり、マルチプレクサ24に出力するOR回路43を備
えた点である。
The difference from the embodiment shown in FIG. This is a point that has the following features.

1組の・任意の乗算数Aおよび非乗算数Bが入力された
場合、キャリー信号OFIおよびキャリー信号OF2が
同時に1になる場合はない。したがって、上紐の任意の
乗算数Aおよび非乗算数Bの入力に対して演算結果の正
規化処理が行われるのは1度だけである。すなわち、キ
ャリー信号OF↓およびキャリー信号OF2の出力され
る組み合わせは第2図に示すように3通りであり、いず
れかのキャリー信号が1になれば指数部のインクリメン
トを行えば良い。そこで、これらキャリー信号OFIお
よびキャリー信号OF2の論理和をOR回路43により
求める。この出力結果によりインクリメントを行ったデ
ータまたはインクリメントを行わないデータのいずれか
をマルチプレクサ24により選択することにより指数部
データのインクリメントを行う。
When a set of arbitrary multipliers A and non-multipliers B are input, the carry signal OFI and the carry signal OF2 will never become 1 at the same time. Therefore, the normalization process of the calculation result is performed only once for the input of any multiplication number A and non-multiplication number B of the upper string. That is, there are three combinations of output of the carry signal OF↓ and the carry signal OF2 as shown in FIG. 2, and if any of the carry signals becomes 1, the exponent part can be incremented. Therefore, the OR circuit 43 calculates the logical sum of the carry signal OFI and the carry signal OF2. Based on this output result, the multiplexer 24 selects either the incremented data or the non-incremented data, thereby incrementing the exponent part data.

〔発明の効果〕〔Effect of the invention〕

本発明は、以上のように構成したので、浮動小数点乗算
回路の回路構成が簡単にできるという効果を奏する。ま
た、回路構成が簡単であるため、処理速度が向上すると
いう効果を奏する。
Since the present invention is configured as described above, it has the advantage that the circuit configuration of the floating point multiplication circuit can be simplified. Furthermore, since the circuit configuration is simple, the processing speed is improved.

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

第1図は本発明の実施例のブロック図、第2図はキャリ
ー信号の状態説明図、 第3図は従来例のブロック図である。 10・・・固定小数点乗算回路 16・・・シフタ 17・・・丸め処理制御回路 18・・・インクリメンタ 19・・・シック 20・・・加算回路 21・・・加算回路 22・・・インクリメンタ 23・・・インクリメンタ 24・・・マルチプレクサ 30・・・EOR回路 40・・・例外処理回路 41・・・定数発生回路 42・・・セレクタ 43・・・OR回路 SN・・・符号データ OFI・・・キャリー信号 OF2・・・キャリー信号 RD・・・丸め処理信号 RM・・・制御信号
FIG. 1 is a block diagram of an embodiment of the present invention, FIG. 2 is a diagram explaining the state of a carry signal, and FIG. 3 is a block diagram of a conventional example. 10...Fixed point multiplication circuit 16...Shifter 17...Rounding control circuit 18...Incrementer 19...Thick 20...Addition circuit 21...Addition circuit 22...Incrementer 23... Incrementer 24... Multiplexer 30... EOR circuit 40... Exception processing circuit 41... Constant generation circuit 42... Selector 43... OR circuit SN... Code data OFI. ...Carry signal OF2...Carry signal RD...Rounding signal RM...Control signal

Claims (1)

【特許請求の範囲】 固定小数点演算を行う固定小数点演算回路 (10)と、丸め処理を行う丸め処理制御回路(17)
と、を備えた浮動小数点乗算器において、前記固定小数
点演算回路(10)のキャリー信号(OF1)および前
記丸め処理制御回路のキャリー信号(OF2)の論理和
をとるOR回路(43)を備え、前記OR回路(43)
の出力信号に基づいて指数部のインクリメントを行うこ
とを特徴とする浮動小数点乗算器。
[Claims] A fixed-point arithmetic circuit (10) that performs fixed-point arithmetic, and a rounding control circuit (17) that performs rounding.
A floating point multiplier comprising: an OR circuit (43) for calculating the logical sum of a carry signal (OF1) of the fixed point arithmetic circuit (10) and a carry signal (OF2) of the rounding control circuit; The OR circuit (43)
A floating point multiplier characterized in that an exponent part is incremented based on an output signal of the floating point multiplier.
JP21997489A 1989-08-25 1989-08-25 Floating-point multiplier Pending JPH0383126A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP21997489A JPH0383126A (en) 1989-08-25 1989-08-25 Floating-point multiplier

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP21997489A JPH0383126A (en) 1989-08-25 1989-08-25 Floating-point multiplier

Publications (1)

Publication Number Publication Date
JPH0383126A true JPH0383126A (en) 1991-04-09

Family

ID=16743946

Family Applications (1)

Application Number Title Priority Date Filing Date
JP21997489A Pending JPH0383126A (en) 1989-08-25 1989-08-25 Floating-point multiplier

Country Status (1)

Country Link
JP (1) JPH0383126A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008048784A (en) * 2006-08-22 2008-03-06 Bizen Hatsujo Kk Armrest device of vehicle
JP2014041474A (en) * 2012-08-22 2014-03-06 Fujitsu Ltd Multiplication device and multiplication method
CN105128232A (en) * 2015-10-08 2015-12-09 山东豪迈机械科技股份有限公司 Hydraulic vulcanizing machine and hydraulic vulcanizing machine set

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008048784A (en) * 2006-08-22 2008-03-06 Bizen Hatsujo Kk Armrest device of vehicle
JP2014041474A (en) * 2012-08-22 2014-03-06 Fujitsu Ltd Multiplication device and multiplication method
CN105128232A (en) * 2015-10-08 2015-12-09 山东豪迈机械科技股份有限公司 Hydraulic vulcanizing machine and hydraulic vulcanizing machine set

Similar Documents

Publication Publication Date Title
US4941120A (en) Floating point normalization and rounding prediction circuit
EP0351242B1 (en) Floating point arithmetic units
EP0136834B1 (en) A digital circuit performing an arithmetic operation with an overflow
US6925480B2 (en) Microarchitecture of an arithmetic unit
JPH02138620A (en) Calculation of numerical quantity and numerical data processor
US4866652A (en) Floating point unit using combined multiply and ALU functions
JP3178746B2 (en) Format converter for floating point numbers
US5111421A (en) System for performing addition and subtraction of signed magnitude floating point binary numbers
JPH0544046B2 (en)
US5548545A (en) Floating point exception prediction for compound operations and variable precision using an intermediate exponent bus
US5341320A (en) Method for rapidly processing floating-point operations which involve exceptions
EP0416308A2 (en) Rectangular array signed digit multiplier
US6205462B1 (en) Digital multiply-accumulate circuit that can operate on both integer and floating point numbers simultaneously
US4110831A (en) Method and means for tracking digit significance in arithmetic operations executed on decimal computers
JP2511527B2 (en) Floating point arithmetic unit
JPH0383126A (en) Floating-point multiplier
US5432727A (en) Apparatus for computing a sticky bit for a floating point arithmetic unit
US5661674A (en) Divide to integer
US6615228B1 (en) Selection based rounding system and method for floating point operations
US7003540B2 (en) Floating point multiplier for delimited operands
JP3187402B2 (en) Floating point data addition / subtraction circuit
JPH0251732A (en) Floating point computing element
JPS63158626A (en) Arithmetic processing unit
JP4428778B2 (en) Arithmetic device, arithmetic method, and computing device
JP2801472B2 (en) Floating point arithmetic unit