JPS62295136A - Floating point arithmetic circuit - Google Patents

Floating point arithmetic circuit

Info

Publication number
JPS62295136A
JPS62295136A JP61137630A JP13763086A JPS62295136A JP S62295136 A JPS62295136 A JP S62295136A JP 61137630 A JP61137630 A JP 61137630A JP 13763086 A JP13763086 A JP 13763086A JP S62295136 A JPS62295136 A JP S62295136A
Authority
JP
Japan
Prior art keywords
exponent
mantissa
selector
normalized
floating point
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
JP61137630A
Other languages
Japanese (ja)
Inventor
Hideaki Kurihara
秀明 栗原
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 JP61137630A priority Critical patent/JPS62295136A/en
Publication of JPS62295136A publication Critical patent/JPS62295136A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To save the quantity of hardware or the consuming power of a floating decimal point arithmetic circuit by carrying out the positioning and the normalization of a mantissa part by one positioning means and performing the difference of an exponent part and the carry/carry down after the normalization by one arithmetic means. CONSTITUTION:The exponent parts of inputs A, B obtain the difference between the exponent parts through an exponent part selection means 5 by the exponent part arithmetic means 1 and selects a larger exponent part. According to the difference, a control means 3 controls the positioning means 2 to set the digit of the mantissa parts. Then, the operation of the mantissa parts is carried out by the arithmetic means 4 and when the result is a normalizing number, an operated exponent part is outputted as it is. When it is not the normalizing number, the control means 3 obtains the quantity of shift for the normalization, controls the exponent part selection means 5 according thereto to apply the larger exponent part and the obtained quantity of normalizing shift to the exponent part arithmetic means 1 to adjust the exponent part of the carry/carry down.

Description

【発明の詳細な説明】 3、発明の詳細な説明 〔概 要〕 本発明は、正規化浮動小数点数の加減算を行う演算回路
において、仮数部の桁合わせ及び正規化を一つのシフタ
で行い、指数部の差と正規化後の桁上げを一つの加減算
回路(ALU)で行うことにより回路を小型化したもの
である。
[Detailed Description of the Invention] 3. Detailed Description of the Invention [Summary] The present invention provides an arithmetic circuit that performs addition and subtraction of normalized floating point numbers, in which digit alignment and normalization of the mantissa part are performed using one shifter. The circuit is miniaturized by performing the difference in the exponent part and the carry after normalization using a single add/subtract circuit (ALU).

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

本発明は、浮動小数点数演算回路に関し、特に正規化浮
動小数点数の加減算を行う演算回路の改良に関するもの
である。
The present invention relates to a floating-point number arithmetic circuit, and particularly to an improvement in an arithmetic circuit that performs addition and subtraction of normalized floating-point numbers.

浮動小数点演算は、小数点の位置を自動的に判定でき、
その数値語が数の範囲を十分広くとれる。
Floating point operations can automatically determine the position of the decimal point,
The number word can cover a sufficiently wide range of numbers.

従って、高いfJX精度を保つことができるとともにプ
ログラミングがし易(なる特徴があり、これを利用して
音声帯域圧縮等におけるDSP(ディジタル信号処理)
の演算回路への応用が種々試みられている。
Therefore, high fJX accuracy can be maintained and programming is easy (DSP (digital signal processing)
Various attempts have been made to apply this to arithmetic circuits.

〔従来の技術〕[Conventional technology]

従来の浮動小数点′pl演算回路の構成が第3図に示さ
れており、111.112、及び113はセレクタ(S
EL)−114及び115はシフタ(SFT) 、11
6は仮数部加減算回路(ALU)、11’7は仮数部出
力レジスタ(M A N R)・118は正規化シフト
検出回路(NSD) 、119及び120は指数部加減
算回路(ALU)、そして121は符号判定回路(SN
J)、である。
The configuration of a conventional floating point 'pl arithmetic circuit is shown in FIG.
EL)-114 and 115 are shifters (SFT), 11
6 is a mantissa addition/subtraction circuit (ALU), 11'7 is a mantissa output register (M A N R), 118 is a normalization shift detection circuit (NSD), 119 and 120 are exponent addition/subtraction circuits (ALU), and 121 is the sign judgment circuit (SN
J).

ここで、2進数をとった場合の浮動小数点数とはN−3
−m・2mで表されるものであり、Sは正負の符号、m
は数の大きさを表す仮数、eは位取りを示す指数、をそ
れぞれ示している。この浮動小数点方式の数値語は第4
図に示されるものである。
Here, a floating point number in binary is N-3
-m・2m, where S is a positive or negative sign, m
represents the mantissa representing the magnitude of the number, and e represents the exponent representing the scale. The numeric word in this floating point system is the fourth
As shown in the figure.

このような従来の浮動小数点数演算回路において、まず
演算モードで加算又は減算が命令され2つの浮動小数点
数をA=S−ml・2″″、及びB=S−m2・2″′
として浮動小数点数AとBの加減動作を説明すると、ま
ず指数部力U減算回路11っで浮動小数点数Aの指数e
lと浮動小数点数Bの指数e2との差を求めた後、この
差に応じてシフタ114で浮動小数点数AとBの仮数部
m1、m2の桁合わせを大きい方に合わせて行う。この
場合、セレクタ111及び112には浮動小数点数A及
びB双方が入力されており、指数部加減算回路119か
らの指数部の大小を示す信号に応じて大きい方をセレク
タ111の出力に小さい方をセレクタ112の出力に発
生するように制御している。
In such a conventional floating point arithmetic circuit, addition or subtraction is first commanded in the arithmetic mode, and two floating point numbers are converted into A=S-ml·2'''' and B=S-m2·2'''.
To explain the operation of adding and subtracting floating point numbers A and B as
After finding the difference between l and the exponent e2 of the floating point number B, the shifter 114 adjusts the digits of the mantissa parts m1 and m2 of the floating point numbers A and B to match the larger one in accordance with this difference. In this case, both floating point numbers A and B are input to the selectors 111 and 112, and depending on the signal indicating the magnitude of the exponent part from the exponent part addition/subtraction circuit 119, the larger one is sent to the output of the selector 111, and the smaller one is sent to the output of the selector 111. It is controlled so that the signal is generated at the output of the selector 112.

そして演算モードに従い、符号判定回路121が仮数部
加減算回路116を加算か減算かに設定し、仮数部加減
算回路116で仮数部m1とm2の加減算を行う、この
加減算結果は正規化シフト量検出回路118で正規化の
ためのシフト量が計算されシフタ115により仮数部加
減算回路116からの仮数部演算値を正規化しレジスタ
117に送る。ここで正規化とは、仮数部の小数点以上
の最小桁が0にならないように小数点のシフトをさせシ
フト量に応じて指数部を加減する動作をいう。
Then, according to the calculation mode, the sign determination circuit 121 sets the mantissa addition/subtraction circuit 116 to addition or subtraction, and the mantissa addition/subtraction circuit 116 adds and subtracts the mantissa parts m1 and m2.The result of this addition/subtraction is sent to the normalized shift amount detection circuit. A shift amount for normalization is calculated in step 118 , and a shifter 115 normalizes the mantissa operation value from the mantissa addition/subtraction circuit 116 and sends it to the register 117 . Normalization here refers to an operation in which the decimal point is shifted so that the minimum digit above the decimal point in the mantissa does not become 0, and the exponent part is added or subtracted according to the shift amount.

一方、指数部加減算回路119では浮動小数点数AとB
の指数部e1とelのうち大きい方を示す信号をセレク
タ113に出力してel又はelを選択する。この選択
された指数部は指数部加減算回路120において正規化
シフト量検出回路118から出力される正規化シフ14
が加算されて指数部の値を出力する。最終的に、符号判
定回路!21からの符号信号が付加されて加減算結果が
出力される。
On the other hand, in the exponent addition/subtraction circuit 119, floating point numbers A and B
A signal indicating the larger of exponent parts e1 and el is output to the selector 113 to select el or el. This selected exponent part is output from the normalization shift amount detection circuit 118 in the exponent part addition/subtraction circuit 120.
are added and output the value of the exponent part. Finally, the sign judgment circuit! The code signal from 21 is added and the addition/subtraction results are output.

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

このように従来の浮動小数点数演算回路では、仮数部の
桁合わせ動作と正規化動作に別々の桁合わせ用シフタを
使用しているとともに、指数部演算では差の計算と正規
化後の演算に別々の加減算回路を使用しており、ハード
ウェアが非常に大きくなるという問題点があった。
In this way, conventional floating-point arithmetic circuits use separate digit shifters for mantissa digit alignment and normalization operations, and use separate digit shifters for exponent part calculations for difference calculations and post-normalization operations. The problem was that separate addition and subtraction circuits were used, making the hardware extremely large.

従って、本発明の目的は、ハードウェアのできるだけ小
規模な浮動小数点数演算回路を提供することである。
Therefore, an object of the present invention is to provide a floating-point arithmetic circuit with as small a hardware as possible.

〔問題点を解決するための手段〕[Means for solving problems]

第1図は本発明による正規化浮動小数点数の加減算を行
う演算回路の原理ブロック図を示すもので、1は浮動小
数点数A及びBの指数部同士の差を求めるとともに大き
い指数部を選択する指数部演算手段、2は浮動小数点数
A及びBの仮数部同士の桁合わせを行う桁合わせ手段、
3は指数部演算手段1で求めた指数部同士の差に応じて
桁合わせ手段2を制御する制御手段、4はその桁合わせ
された仮数部同士の演算を行う仮数部演算手段、5は仮
数部演算手段4で求められた仮数部同士の演算値が正規
化されていないときだけ、制御手段3により求められた
正規化シフト量に応じて指数部演算手段1に与える指数
部を選択する指数部選択手段、であり、桁合わせ手段2
は、制御手段3からの正規化シフト量に応じて仮数部演
算手段4の演算値を正規化するものであり、制御手段3
は更に、仮数部演算手段4の演算値が正規化されている
とき指数部演算手段1で選択された大きい方の指数部を
出力するものである。
FIG. 1 shows a principle block diagram of an arithmetic circuit that performs addition and subtraction of normalized floating point numbers according to the present invention. 1 calculates the difference between the exponent parts of floating point numbers A and B, and selects the larger exponent part. exponent calculation means; 2 is digit alignment means for aligning the mantissa parts of floating point numbers A and B;
3 is a control means for controlling the digit adjustment means 2 according to the difference between the exponent parts obtained by the exponent part calculation means 1; 4 is a mantissa calculation means for calculating the mantissa parts whose digits have been adjusted; 5 is a mantissa An exponent that selects the exponent part to be given to the exponent part calculation means 1 according to the normalized shift amount obtained by the control means 3 only when the calculated values of the mantissa parts obtained by the part calculation means 4 are not normalized. part selection means, and digit alignment means 2
is for normalizing the calculated value of the mantissa calculation means 4 according to the normalized shift amount from the control means 3, and the control means 3
Further, when the calculated value of the mantissa calculation means 4 is normalized, the larger exponent part selected by the exponent part calculation means 1 is outputted.

〔作 用〕 第1図において、入力A、Bの指数部は、指数部選択手
段5を素通りした後、指数部演算手段1で指数部同士の
差を求めるとともに大きい指数部を選択する。求められ
た指数部同士の差に応じて制御手段3は桁合わせ手段2
を制御して仮数部同士の桁を合わせる。そして仮数部同
士の演算が仮数部演算手段4で行われる。この仮数部演
算の結果が正規化数であれば演算された仮数部がそのま
ま出力されるとともに指数部演算手段1で得られた大き
い方の指数部をそのまま出力するが、正規化数でない場
合には制御手段3は正規化のためのシフト量を求め、こ
れに応して指数部選択手段5を制御し指数部の大きい方
と、求めた正規化シフト量とを指数部演算手段1に与え
、指数部演算手段1は指数部同士の演算と同様に演算し
て桁上げ7桁下げの指数部調整を行い、制御手段3の制
御によりその演算値を指数部として出力する。
[Operation] In FIG. 1, after the exponent parts of inputs A and B pass through the exponent part selection means 5, the exponent part calculation means 1 calculates the difference between the exponent parts and selects the larger exponent part. The control means 3 controls the digit adjustment means 2 according to the difference between the obtained exponent parts.
is controlled to match the digits of the mantissa parts. The mantissa parts are then calculated by the mantissa calculation means 4. If the result of this mantissa calculation is a normalized number, the calculated mantissa is output as is, and the larger exponent obtained by exponent calculation means 1 is output as is. However, if the result is not a normalized number, The control means 3 determines the shift amount for normalization, controls the exponent part selection means 5 accordingly, and supplies the larger exponent part and the determined normalized shift amount to the exponent part calculation means 1. The exponent part calculation means 1 performs calculations in the same manner as the calculations between exponent parts to adjust the exponent part by carrying up and down by 7 digits, and outputs the calculated value as an exponent part under the control of the control means 3.

〔実施例〕〔Example〕

第2図は、第1図に概念的に示した本発明の浮動小数点
数演算回路の実施例を示す回路図であり、指数部演算手
段1は、浮動小数点数の指数部の差を演算する指数部加
減算回路(ALU)11と、制御手段3のセレクタ制御
回路(SLCN)32により制御されて大きい方の指数
部を出力するセレクタ(SEL>12と、セレクタ12
の出力を保持するレジスタ(EXPR)13と、で構成
されている0桁合わせ手段2は1.各々浮動小数点数を
入力し、制御手段3のセレクタ制御回路32によって制
御されて絶対値の大きい方を出力するセレクタ(SEL
)21と、絶対値の小さい方を出力するセレクタ(SE
L)22と、このセレクタ22の出力仮数をシフトする
シフタ(SFT)23と、で構成されており、セレクタ
21は仮数部演算手段4の仮数部加−$i算回路(AL
U)41から出力される仮数部演算値が正規化されてい
ないとき、制御手段3のセレクタ制御回路32の制御下
で零値を入力して仮数部加減算回路41に送るものであ
り、セレクタ22は仮数部演算値が正規化されていない
とき、制御手段3のセレクタ制御回路32の制御下で仮
数部演算値をシフタ23に送るものである。制御手段3
のセレクタ制御回路32は全てのセレクタを制御するも
のであり、制御手段3はこれに加えて、仮数部演算値が
正規化数でないとき正規化すべきシフト量を検出する正
規化シフト量検出回路(NSC)33と、セレクタ制御
回路32によって制御されて指数部加減算回路11の指
数部出力又は前記正規化シフト量を選択してシフタ23
に与えるセレクタ(SEL)31と、で構成されている
。指数部選択手段5は、浮動小数点数及び正規化シフト
量検出回路33の出力を入力するセレクタ(SEL)5
1.52であって、このうち一方のセレクタが、セレク
タ制御回路32の制御下で大きい指数部を出力し他方の
セレクタが正規化シフト量を出力するものである。尚、
符号判定回路121は第3図で説明したものと同様であ
る。
FIG. 2 is a circuit diagram showing an embodiment of the floating point arithmetic circuit of the present invention conceptually shown in FIG. An exponent part addition/subtraction circuit (ALU) 11, a selector (SEL>12) which outputs the larger exponent part under the control of the selector control circuit (SLCN) 32 of the control means 3, and a selector 12.
A register (EXPR) 13 that holds the output of 1. A selector (SEL) inputs each floating point number and outputs the one with the larger absolute value under control by the selector control circuit 32 of the control means 3.
) 21 and a selector (SE
L) 22 and a shifter (SFT) 23 that shifts the output mantissa of this selector 22.
U) When the mantissa calculation value outputted from 41 is not normalized, a zero value is input under the control of the selector control circuit 32 of the control means 3 and sent to the mantissa addition/subtraction circuit 41. is for sending the mantissa computed value to the shifter 23 under the control of the selector control circuit 32 of the control means 3 when the mantissa computed value is not normalized. Control means 3
The selector control circuit 32 controls all the selectors, and in addition to this, the control means 3 includes a normalized shift amount detection circuit ( NSC) 33 and selector control circuit 32 to select the exponent part output of the exponent part addition/subtraction circuit 11 or the normalized shift amount to the shifter 23.
It is composed of a selector (SEL) 31 which is given to The exponent selection means 5 includes a selector (SEL) 5 that inputs the floating point number and the output of the normalized shift amount detection circuit 33.
1.52, one of the selectors outputs a large exponent part under the control of the selector control circuit 32, and the other selector outputs the normalized shift amount. still,
The sign determination circuit 121 is similar to that described in FIG.

次に、第2図の実施例における加減算動作を第3図の場
合に用いたのと同様の浮動小数点数A及びBを用いて説
明する。
Next, addition and subtraction operations in the embodiment of FIG. 2 will be explained using floating point numbers A and B similar to those used in the case of FIG.

浮動小数点数A及びBはまずセレクタ51及び52を素
通りして指数部加減算回路11に入力される。指数部加
減算回路11では両者の指数部e1と82との差を求め
てセレクタ31に送るとともに両者の大小関係を示す信
号をセレクタ制御回路32に送る。これを受けてセレク
タ制御回路32は浮動小数点数A及びBのうち絶対値の
大きい方(指数部の大きい方)をセレクタ21に通し小
さい方をセレクタ22に通すよう制御する。またセレク
タ制御回路32はセレクタ31を制?■して指数部加減
算回路11で求めた指数部の差をシフタ23に送って指
数部の小さい方の浮動小数点数の仮数部をシフタ23に
よって指数部の大きい方の浮動小数点数の仮数部に桁合
わせする。この後、仮数部加減算回路41で仮数部の加
減算(加算か減算かは演算モードで指示される)が行わ
れる。
Floating point numbers A and B first pass through selectors 51 and 52 and are input to exponent addition/subtraction circuit 11 . The exponent addition/subtraction circuit 11 calculates the difference between the exponent parts e1 and 82 and sends it to the selector 31, and also sends a signal indicating the magnitude relationship between the two to the selector control circuit 32. In response to this, the selector control circuit 32 controls the floating point numbers A and B to pass the one with the larger absolute value (the one with the larger exponent part) through the selector 21 and the smaller one through the selector 22. Also, does the selector control circuit 32 control the selector 31? ■The difference between the exponent parts obtained by the exponent addition/subtraction circuit 11 is sent to the shifter 23, and the mantissa part of the floating point number with the smaller exponent part is converted into the mantissa part of the floating point number with the larger exponent part by the shifter 23. Align the digits. Thereafter, the mantissa addition/subtraction circuit 41 performs addition/subtraction of the mantissa (addition or subtraction is specified by the calculation mode).

この仮数部の加減算結果が正規化された数であれば、こ
れを受けたセレクタ制御回路32がセレクタ12を制御
して浮動小数点数A及びBの指数部e1、e2の大きい
方をレジスタ13に出力させるとともに仮数部加減算回
路41の出力をレジスタ42に送る。
If the result of addition/subtraction of the mantissa parts is a normalized number, the selector control circuit 32 that receives this controls the selector 12 and stores the larger of the exponent parts e1 and e2 of the floating point numbers A and B in the register 13. At the same time, the output of the mantissa addition/subtraction circuit 41 is sent to the register 42.

他方、仮数部の加減算結果が正規化されていない数であ
れば、正規化シフト量検出加減算33が正規化すべきシ
フト量を検出してセレクタ31とセレクタ51.52に
送る。セレクタ制御回路32は正規化シフト量検出回路
33からの信号を受けてセレクタ31を制御してその正
規化シフ)1をシフタ23に送るとともに、セレクタ5
1.52を制御して、すでに得ら枕た指数部の大小関係
に基づき大きい方の指数部を通し他方に正規化シフト量
を通す。
On the other hand, if the result of addition/subtraction of the mantissa part is a non-normalized number, the normalized shift amount detection addition/subtraction 33 detects the shift amount to be normalized and sends it to the selector 31 and selectors 51 and 52. The selector control circuit 32 receives a signal from the normalized shift amount detection circuit 33, controls the selector 31, sends the normalized shift) 1 to the shifter 23, and also sends the normalized shift) 1 to the shifter 23.
1.52 and passes the normalized shift amount through the larger exponent part to the other based on the magnitude relationship of the already obtained exponent parts.

従って、仮数部加減算回路41から出力された仮数はセ
レクタ制御回路32の制御下でセレクタ22を通りシフ
タ23で正規化されて再び仮数部加減算回路41に入力
される。このときにはセレクタ制御回路32の制御によ
りセレクタ21は「000・・・0」を入力して仮数部
加減算回路、t 1に送る。従って、仮数部加減算回路
41の出力は正規化された形で出力される。
Therefore, the mantissa outputted from the mantissa addition/subtraction circuit 41 passes through the selector 22 under the control of the selector control circuit 32, is normalized by the shifter 23, and is input to the mantissa addition/subtraction circuit 41 again. At this time, under the control of the selector control circuit 32, the selector 21 inputs "000...0" and sends it to the mantissa addition/subtraction circuit, t1. Therefore, the output of the mantissa addition/subtraction circuit 41 is output in a normalized form.

また、指数部加減算回路11は大きい方の指数部と正規
化すべきシフト量とを入力することにより桁上げ(又は
桁下げ)の指数部調整が行われることになる。そしてこ
の場合にはセレクタ制御回路32がセレクタ12を制御
して指数部加減算回路11の出力をレジスタ13に送る
Further, the exponent part addition/subtraction circuit 11 performs exponent part adjustment for carry (or carry down) by inputting the larger exponent part and the shift amount to be normalized. In this case, the selector control circuit 32 controls the selector 12 and sends the output of the exponent addition/subtraction circuit 11 to the register 13.

このようにして1つの仮数部加減算回路で仮数部演算と
仮数部の正規化演算とを行い、1つの指数部加減算回路
で指数部演算調整を行っている。
In this way, one mantissa addition/subtraction circuit performs mantissa calculation and mantissa normalization operation, and one exponent addition/subtraction circuit performs exponent calculation adjustment.

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

以上のように、本発明の浮動小数点数演算回路によれば
、仮数部の桁合わせ及び正規化を一つの桁合わせ手段で
行い、指数部の差と正規化後の桁上げ7桁下げを一つの
演算手段で行っているのでハードウェア量を削減でき、
消費電力を少なくすることができる効果がある。
As described above, according to the floating point arithmetic circuit of the present invention, digit alignment and normalization of the mantissa part are performed by one digit alignment means, and the difference in the exponent part and the carry up and down 7 digits after normalization are carried out in one unit. Since the calculation is performed using two calculation means, the amount of hardware can be reduced.
This has the effect of reducing power consumption.

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

第1図は本発明に係る浮動小数点数演算回路の原理図、 第2図は本発明に係る浮動小数点数演算回路の実施例を
示すハードウェアブロック図、第3図は従来の浮動小数
点数演算回路を示すブロック図、 第4図は浮動小数点数の数値語を示す図、である。 第1図及び第2図において、 1は指数部演算手段、 2は桁合わせ手段、 3は制御手段、 4は仮数部演算手段、 5は指数部選択手段、 11は指数部加減算回路、 12.21.22.31.51,52はセレクタ、13
.42はレジスタ、 23はシフタ、 32はセレクタ制御回路、 33は正規化シフト量検出回路、 41は仮数部加減算回路、である。 尚、図中、同一符号は同−又は相当部分を示す。 特許出願人   富士通株式会社 代理人弁理士  森 1) 寛(外1名)浮動小数点数
入力 ′第1図 第3図
Fig. 1 is a principle diagram of a floating point arithmetic circuit according to the present invention, Fig. 2 is a hardware block diagram showing an embodiment of a floating point arithmetic circuit according to the present invention, and Fig. 3 is a conventional floating point arithmetic circuit. FIG. 4 is a block diagram showing the circuit. FIG. 4 is a diagram showing numerical words of floating point numbers. 1 and 2, 1 is an exponent calculation means, 2 is a digit adjustment means, 3 is a control means, 4 is a mantissa calculation means, 5 is an exponent selection means, 11 is an exponent addition/subtraction circuit, 12. 21.22.31.51, 52 are selectors, 13
.. 42 is a register, 23 is a shifter, 32 is a selector control circuit, 33 is a normalized shift amount detection circuit, and 41 is a mantissa addition/subtraction circuit. In the drawings, the same reference numerals indicate the same or corresponding parts. Patent applicant: Fujitsu Ltd. Representative Patent Attorney Mori 1) Hiroshi (one other person) Floating point number input' Figure 1 Figure 3

Claims (5)

【特許請求の範囲】[Claims] (1)正規化浮動小数点数の加減算を行う演算回路にお
いて、 前記浮動小数点数の指数部同士の差を求めるとともに大
きい方の指数部を選択する指数部演算手段(1)と、 前記浮動小数点数の仮数部同士の桁合わせを行う桁合わ
せ手段(2)と、 前記指数部同士の差に応じて前記桁合わせ手段を制御す
る制御手段(3)と、 前記桁合わせされた仮数部同士の演算を行う仮数部演算
手段(4)と、 前記仮数部演算手段(4)の演算値が正規化されていな
いときだけ、前記制御手段(3)により求められた正規
化シフト量に応じて前記指数部演算手段(1)に与える
指数部を選択する指数部選択手段(5)と、 を備え、前記桁合わせ手段(2)は、前記制御手段(3
)からの正規化シフト量に応じて前記仮数部演算手段(
4)の演算値を正規化するものであり、前記制御手段(
3)は、前記仮数部演算手段(4)の演算値が正規化さ
れているとき前記選択された大きい方の指数部を出力す
るものであるることを特徴とする浮動小数点数演算回路
(1) In an arithmetic circuit that performs addition and subtraction of normalized floating point numbers, exponent part calculation means (1) calculates the difference between exponent parts of the floating point numbers and selects the larger exponent part, and the floating point number digit matching means (2) for digit matching between the mantissa parts; control means (3) for controlling the digit matching means according to the difference between the exponent parts; and calculation for the mantissa parts whose digits have been aligned. a mantissa calculation means (4) for performing the above-mentioned mantissa calculation means (4); and only when the calculation value of the mantissa calculation means (4) is not normalized, the exponent is adjusted according to the normalized shift amount determined by the control means (3). exponent part selection means (5) for selecting an exponent part to be given to part calculation means (1);
) according to the normalized shift amount from the mantissa calculation means (
4) is used to normalize the calculated value, and the control means (
3) A floating point arithmetic circuit which outputs the selected larger exponent part when the calculated value of the mantissa part arithmetic means (4) is normalized.
(2)前記指数部演算手段(1)が、前記浮動小数点数
の指数部の差を演算する指数部加減算回路(11)と、
前記制御手段(3)により制御されて大きい方の指数部
を出力する第1のセレクタ(12)と、該セレクタ(1
2)の出力を保持するレジスタ(13)と、で構成され
ている特許請求の範囲第1項に記載の浮動小数点数演算
回路。
(2) the exponent part calculation means (1) comprises an exponent part addition/subtraction circuit (11) for calculating a difference between the exponent parts of the floating point numbers;
a first selector (12) that is controlled by the control means (3) and outputs the larger exponent;
2) A floating point arithmetic circuit according to claim 1, comprising: a register (13) for holding the output of (2);
(3)前記桁合わせ手段(2)が、各々前記浮動小数点
数を入力し、前記制御手段(3)によって制御されて絶
対値の大きい方を出力する第2のセレクタ(21)と、
絶対値の小さい方を出力する第3のセレクタ(22)と
、該第3のセレクタ(22)の出力仮数部をシフトする
シフタ(23)と、で構成され、前記第2のセレクタ(
21)は前記仮数部演算値が正規化されていないとき、
前記制御手段(3)の制御下で零値を入力して前記仮数
部演算手段(4)に送るものであり、前記第3のセレク
タ(22)は前記仮数部演算値が正規化されていないと
き、前記制御手段(3)の制御下で前記仮数部演算値を
前記シフタ(23)に送るものである特許請求の範囲第
1項又は第2項に記載の浮動小数点数演算回路。
(3) a second selector (21) into which the digit alignment means (2) inputs each of the floating point numbers and outputs the one with a larger absolute value under the control of the control means (3);
It is composed of a third selector (22) that outputs the smaller absolute value, and a shifter (23) that shifts the output mantissa part of the third selector (22).
21) is when the mantissa calculation value is not normalized,
Under the control of the control means (3), a zero value is input and sent to the mantissa calculation means (4), and the third selector (22) is configured such that the mantissa calculation value is not normalized. 3. The floating point arithmetic circuit according to claim 1, wherein the mantissa operation value is sent to the shifter (23) under the control of the control means (3).
(4)前記制御手段(3)が、前記仮数部演算値が正規
化数のとき前記第1のセレクタ(12)を制御するセレ
クタ制御回路(32)と、前記仮数部演算値が正規化数
でないとき正規化すべきシフト量を検出する正規化シフ
ト量検出回路(33)と、前記セレクタ制御回路(32
)によって制御されて前記指数部加減算回路(11)の
指数部出力又は前記正規化シフト量を選択して前記シフ
タ(23)に与える第4のセレクタ(31)と、で構成
され、前記セレクタ制御回路(32)は前記第2及び第
3のセレクタ(21)及び(22)を制御するものであ
る特許請求の範囲第3項に記載の浮動小数点数演算回路
(4) The control means (3) includes a selector control circuit (32) that controls the first selector (12) when the mantissa calculation value is a normalized number; a normalized shift amount detection circuit (33) that detects the shift amount to be normalized when the shift amount is not normalized, and the selector control circuit (32).
), the fourth selector (31) selects the exponent output of the exponent addition/subtraction circuit (11) or the normalized shift amount and supplies it to the shifter (23); 4. The floating point arithmetic circuit according to claim 3, wherein the circuit (32) controls the second and third selectors (21) and (22).
(5)前記指数部選択手段(5)が、前記浮動小数点数
及び前記正規化シフト量検出回路(33)の出力を入力
する第5及び第6のセレクタ(51、52)であって、
このうち一方のセレクタが、前記セレクタ制御回路(3
2)の制御下で大きい指数部を出力し他方のセレクタが
前記正規化シフト量を出力するものである特許請求の範
囲第4項に記載の浮動小数点数演算回路。
(5) The exponent part selection means (5) is fifth and sixth selectors (51, 52) that input the floating point number and the output of the normalized shift amount detection circuit (33),
One of the selectors is connected to the selector control circuit (3).
5. The floating point arithmetic circuit according to claim 4, wherein the selector outputs a large exponent part under the control of item 2), and the other selector outputs the normalized shift amount.
JP61137630A 1986-06-13 1986-06-13 Floating point arithmetic circuit Pending JPS62295136A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61137630A JPS62295136A (en) 1986-06-13 1986-06-13 Floating point arithmetic circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61137630A JPS62295136A (en) 1986-06-13 1986-06-13 Floating point arithmetic circuit

Publications (1)

Publication Number Publication Date
JPS62295136A true JPS62295136A (en) 1987-12-22

Family

ID=15203144

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61137630A Pending JPS62295136A (en) 1986-06-13 1986-06-13 Floating point arithmetic circuit

Country Status (1)

Country Link
JP (1) JPS62295136A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03142625A (en) * 1989-10-24 1991-06-18 Bipolar Integrated Technol Inc Integrated floating point alu architecture
WO2013190690A1 (en) * 2012-06-21 2013-12-27 三菱電機株式会社 Encoding device, decoding device, encoding method, encoding program, decoding method, and decoding program

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03142625A (en) * 1989-10-24 1991-06-18 Bipolar Integrated Technol Inc Integrated floating point alu architecture
WO2013190690A1 (en) * 2012-06-21 2013-12-27 三菱電機株式会社 Encoding device, decoding device, encoding method, encoding program, decoding method, and decoding program
JP5619326B2 (en) * 2012-06-21 2014-11-05 三菱電機株式会社 Encoding device, decoding device, encoding method, encoding program, decoding method, and decoding program
US8947274B2 (en) 2012-06-21 2015-02-03 Mitsubishi Electric Corporation Encoding apparatus, decoding apparatus, encoding method, encoding program, decoding method, and decoding program

Similar Documents

Publication Publication Date Title
US5111421A (en) System for performing addition and subtraction of signed magnitude floating point binary numbers
JPS61237133A (en) Arithmetic circuit
JPH069028B2 (en) Arithmetic unit
US6205462B1 (en) Digital multiply-accumulate circuit that can operate on both integer and floating point numbers simultaneously
JPH01302425A (en) Floating decimal point adder/subtracter circuit
JPS62295136A (en) Floating point arithmetic circuit
US11366638B1 (en) Floating point multiply-add, accumulate unit with combined alignment circuits
JP2507183B2 (en) Floating point addition / subtraction unit
JP2555577B2 (en) Arithmetic unit
JPH07146777A (en) Arithmetic unit
US11429349B1 (en) Floating point multiply-add, accumulate unit with carry-save accumulator
JP2902041B2 (en) Floating point arithmetic unit
JPS63158626A (en) Arithmetic processing unit
JP3124286B2 (en) Floating point arithmetic unit
JPS5960637A (en) Arithmetic device for floating decimal point
JPH0225924A (en) Floating point arithmetic processor
JPH0251732A (en) Floating point computing element
JPH01162928A (en) Floating point adder
JP4428778B2 (en) Arithmetic device, arithmetic method, and computing device
JPH0383126A (en) Floating-point multiplier
JPH0323937B2 (en)
JPS63173123A (en) Digit aligning circuit
JPH03269621A (en) Arithmetic processor
JPS62168228A (en) Product/sum arithmetic unit with floating point function
JPS61182134A (en) Adding device