JPH0659862A - Multiplier - Google Patents
MultiplierInfo
- Publication number
- JPH0659862A JPH0659862A JP20832092A JP20832092A JPH0659862A JP H0659862 A JPH0659862 A JP H0659862A JP 20832092 A JP20832092 A JP 20832092A JP 20832092 A JP20832092 A JP 20832092A JP H0659862 A JPH0659862 A JP H0659862A
- Authority
- JP
- Japan
- Prior art keywords
- data
- output
- precision
- input
- floating
- 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
Links
Abstract
(57)【要約】
【目的】 乗算器に関し、ゲート数の削減並びにデータ
の遅延時間の短縮化を実現する乗算器を提供することを
目的とする。
【構成】 浮動小数点単精度並びに倍精度データの乗算
を行う乗算器であって、入力が倍精度データの乗数及び
被乗数の指数部データである時にはそのまま出力し、入
力が単精度データの時にはその桁数を倍精度データの桁
数に揃えて出力するデータ変換手段600 と、データ変換
手段600 の出力を入力して両者を加算して出力する第1
の加算手段800 と、第1の加算手段の出力の下位の所定
桁数のデータを入力して、入力が倍精度データの時には
そのまま出力し、入力が単精度データの時には一定桁数
のデータを補正して出力する補正手段900 と、倍精度デ
ータの演算時には、第1の加算手段の出力の上位の所定
桁数のデータと入力データを基準値で規格化するための
値との加算/減算処理をして出力する第2の加算手段10
0 とで構成する。
(57) [Summary] [Object] It is an object of the present invention to provide a multiplier that can reduce the number of gates and the delay time of data. [Composition] A multiplier for multiplying floating-point single-precision and double-precision data, which is output as it is when the input is exponent data of the multiplier and multiplicand of the double-precision data, and the digit when the input is single-precision data. A data conversion means 600 that outputs the data by aligning the number with the number of digits of double precision data, and an output that inputs the output of the data conversion means 600 and adds the both to output.
When the input is double precision data, it is output as it is, and when the input is single precision data, a fixed number of digits is input. Addition / subtraction of the correction means 900 for correcting and outputting, and the value of the predetermined upper digit number of the output of the first addition means and the value for normalizing the input data with the reference value when the double precision data is calculated. Second adding means 10 for processing and outputting
It consists of 0 and.
Description
【0001】[0001]
【産業上の利用分野】本発明はIEEE準拠の浮動小数点単
精度、並びに倍精度データの乗算が可能な乗算器に関す
るものである。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a multiplier capable of multiplying IEEE compliant floating point single precision and double precision data.
【0002】[0002]
【従来の技術】図8は一例の浮動小数点単精度データフ
ォーマットを示す図である。図9は一例の浮動小数点倍
精度データフォーマットを示す図である。2. Description of the Related Art FIG. 8 is a diagram showing an example of a floating point single precision data format. FIG. 9 is a diagram showing an example floating-point double-precision data format.
【0003】図10は従来例の指数部データの演算処理回
路の構成を示すブロック図である。初めにIEEE準拠の浮
動小数点単精度データ並びに倍精度データのフォーマッ
トについて図8及び図9を用いて説明する。図8、図9
において、S1 、S1'、S 2 、S2'、S3、S3'は1ビ
ットからなり正の時には"0" 、負の時には"1" で示す符
号を表す。e1 、e1'、e2 、e2'、e3、e3'は指数
部データを表し、単精度(e1 、e1'、e2 、e2')の
時は8ビットからなり倍精度(e3、e3')の時には11
ビットからなる。又、f1 、f1'、f2 、f2'、f3、
f3'は仮数部データを表し、単精度(f1 、f1'、
f2 、f2')の時には23ビットからなり倍精度(f3、
f3')の時には52ビットからなる。又、図8において、
0〜31ビットは下位側の、32〜63ビットは上位側の浮動
小数点単精度データフォーマットを表す。図9では0〜
63ビットで1組の浮動小数点倍精度データフォーマット
を表す。FIG. 10 shows a calculation processing time of exponential part data in the conventional example.
It is a block diagram which shows the structure of a road. First, IEEE-compliant floating
Format of moving point single precision data and double precision data
This will be described with reference to FIGS. 8 and 9. 8 and 9
At S1, S1', S 2, S2', S3, S3'Is 1
A mark consisting of a dot and indicated by "0" for positive and "1" for negative
Represents an issue. e1, E1', E2, E2', E3, E3'Is the index
Represents partial data, single precision (e1, E1', E2, E2')of
Time consists of 8 bits and double precision (e3, E3') When 11
It consists of bits. Also, f1, F1', F2, F2', F3,
f3'Represents mantissa data, single precision (f1, F1',
f2, F2') Consists of 23 bits and double precision (f3,
f3') Consists of 52 bits. Also, in FIG.
0 to 31 bits are lower floating bits, 32 to 63 bits are upper floating bits
Represents the decimal point single precision data format. In Figure 9, 0
63-bit floating point double precision data format
Represents
【0004】次に、これらのデータを式で表現すると、 (−1)S ×2e-127 ×(1.f) ・・・浮動小数点
単精度データ (−1)S ×2e-1023×(1.f) ・・・浮動小数点
倍精度データ 上述した式の乗数及び被乗数の指数部データをそれぞれ
図10に示すデータセレクタ1及びデータセレクタ2に加
える。ここでは指数部データの演算処理についてのみ説
明するため、データセレクタ1及び2ではそれぞれ、浮
動小数点単精度演算の場合、上位側の8桁の指数部デー
タe1 、e1'を選択して出力する。加算器(以下ADD
と称する)3でこれら出力の加算(e1 +e1')を行
い、出力を減算器(以下SUBと称する)5に加える。Next, when these data are expressed by equations, (-1) S x 2 e-127 x (1.f) ... floating point single precision data (-1) S x 2 e-1023 x (1.f) Floating-point double precision data The exponent data of the multiplier and the multiplicand of the above equation are added to the data selector 1 and the data selector 2 shown in FIG. 10, respectively. Since only the arithmetic processing of the exponent part data is described here, the data selectors 1 and 2 respectively select and output the upper 8-digit exponent part data e 1 and e 1 ′ in the case of the floating point single precision operation. To do. Adder (hereinafter ADD
3), these outputs are added (e 1 + e 1 ′), and the output is added to a subtracter (hereinafter referred to as SUB) 5.
【0005】一方、データセレクタ1及び2にはデータ
はe1 −127 、e1'−127 の形で入力されるため、AD
D3での加算結果から127 (この値をバイアス値と呼
ぶ)を引く必要がある。このため、バイアス値セレクタ
4で、単精度の場合予め設定した127 に対応する2進数
データを選択して出力しSUB5に加える。SUB5
で、ADD3から入力した加算結果から127 を引いて出
力する。On the other hand, since the data selector 1 and 2 data e 1 -127, which is input in the form of e 1 '-127, AD
It is necessary to subtract 127 (this value is called a bias value) from the addition result in D3. For this reason, the bias value selector 4 selects and outputs binary number data corresponding to 127 preset in the case of single precision, and outputs the binary number data to the SUB5. SUB5
Then, 127 is subtracted from the addition result input from ADD3 and output.
【0006】又、浮動小数点倍精度演算の場合、データ
セレクタ1及び2で、11桁の指数部データe3 、e3'を
選択して出力する。ADD3でこれら出力の加算(e3
+e 3')を行い、出力をSUB5に加える。一方、バイ
アス値セレクタ4で、倍精度の場合予め設定した1023
(バイアス値)に対応する2進数データを選択して出力
してSUB5に加え、SUB5で、ADD3から入力し
た加算結果から1023を引いて出力する。このようにして
指数部データの演算処理を行っていた。In the case of floating point double precision arithmetic, data
11 digit exponent data e with selectors 1 and 23, E3'
Select and output. Add these outputs with ADD3 (e3
+ E 3') And add the output to SUB5. On the other hand, buy
1023 preset for double precision with ass selector 4
Select and output binary data corresponding to (bias value)
In addition to SUB5, input from ADD3 with SUB5
1023 is subtracted from the addition result and output. In this way
The calculation processing of the exponent part data was performed.
【0007】[0007]
【発明が解決しようとする課題】しかしながら従来の回
路構成においては、浮動小数点単精度データと、倍精度
データの演算処理を同一の加算器(ADD)を用いて行
っているため、倍精度データの桁数(11桁)で加算でき
る加算器と、バイアス値が減算できる減算器(SUB)
が必要であった。このため、2段の多数ビット(11、13
ビット)の加算器とセレクタを用いた構成によると、ゲ
ート数並びにデータの遅延時間が増えるという問題点が
あった。However, in the conventional circuit configuration, since the arithmetic processing of the floating point single precision data and the double precision data is performed using the same adder (ADD), the double precision data Adder that can add in the number of digits (11 digits) and subtracter that can subtract the bias value (SUB)
Was needed. For this reason, two stages of multiple bits (11, 13
According to the configuration using the (bit) adder and the selector, there is a problem that the number of gates and the data delay time increase.
【0008】したがって本発明の目的は、ゲート数の削
減並びにデータの遅延時間の短縮化を実現する乗算器を
提供することにある。Therefore, an object of the present invention is to provide a multiplier that can reduce the number of gates and the delay time of data.
【0009】[0009]
【課題を解決するための手段】上記問題点は図1に示す
回路の構成によって解決される。即ち図1において、60
0 は、入力が浮動小数点倍精度データの乗数及び被乗数
の指数部データである時にはそのまま出力し、入力が浮
動小数点単精度データの乗数及び被乗数の指数部データ
である時にはその桁数を浮動小数点倍精度データの乗数
及び被乗数の指数部データの桁数に揃えて出力するデー
タ変換手段である。The above problems can be solved by the circuit configuration shown in FIG. That is, in FIG. 1, 60
0 is output as it is when the input is the exponent data of the floating-point double-precision data and the multiplicand, and when the input is the exponent data of the floating-point single-precision data and the multiplicand, the number of digits is multiplied by the floating-point number. It is a data conversion unit that outputs the data by aligning it with the number of digits of the exponent part data of the precision data and the multiplicand.
【0010】800 は、データ変換手段600 の出力を入力
して両者を加算して出力する第1の加算手段である。90
0 は、第1の加算手段の出力の下位の所定桁数のデータ
を入力して、入力が浮動小数点倍精度データの指数部デ
ータである時にはそのまま出力し、入力が浮動小数点単
精度データの指数部データである時には一定桁数のデー
タを補正して出力する補正手段である。Reference numeral 800 is a first adding means for inputting the output of the data converting means 600, adding the two, and outputting them. 90
0 inputs the data of a predetermined lower digit of the output of the first adding means and outputs it as it is when the input is the exponent part data of the floating point double precision data, and outputs the exponent of the floating point single precision data. When it is partial data, it is a correction means for correcting and outputting a certain number of digits of data.
【0011】100 は、浮動小数点倍精度データの演算時
には、第1の加算手段の出力の上位の所定桁数のデータ
と入力データを基準値で規格化するための値との加算/
減算処理をして出力する第2の加算手段である。Reference numeral 100 denotes a summation / addition of a predetermined number of high-order data of the output of the first addition means and a value for standardizing the input data with a reference value during the calculation of the floating-point double-precision data.
It is a second addition means for performing subtraction processing and outputting.
【0012】[0012]
【作用】図1において、データ変換手段600 で、入力が
浮動小数点倍精度データの乗数及び被乗数の指数部デー
タである時にはそのまま出力し、入力が浮動小数点単精
度データの乗数及び被乗数の指数部データである時には
その桁数を浮動小数点倍精度データの乗数及び被乗数の
指数部データの桁数に揃えて出力する。In FIG. 1, when the input is the exponent part data of the multiplier and multiplicand of the floating point double precision data, it is output as it is, and the input is the exponent part data of the floating point single precision data and the multiplicand. , The number of digits is aligned with the number of digits of the exponent part data of the multiplicand and the multiplicand of the floating-point double-precision data and output.
【0013】次に第1の加算手段800 で、データ変換手
段600 の出力を入力して乗数及び被乗数の指数部データ
を加算して出力する。浮動小数点単精度データの演算時
には、補正手段900 で第1の加算手段の出力データのう
ち一定桁数のデータを補正して出力する。Next, the first adding means 800 inputs the output of the data converting means 600, adds the exponent data of the multiplier and the multiplicand, and outputs the result. When the floating point single precision data is calculated, the correcting means 900 corrects and outputs a fixed number of digits of the output data of the first adding means.
【0014】又、浮動小数点倍精度データの演算時に
は、第2の加算手段で第1の加算手段の出力の上位の所
定桁数のデータと入力データを基準値で規格化するため
の値との加算/減算処理をして出力する。Further, at the time of calculation of the floating point double precision data, the second addition means combines the data of a predetermined number of upper digits of the output of the first addition means and the value for standardizing the input data with the reference value. Add / subtract and output.
【0015】この結果、データ変換手段600 で、浮動小
数点単精度データの演算時はその指数部データの桁数を
浮動小数点倍精度データの指数部データの桁数に揃えて
出力するため、回路構成が容易になりゲート数を削減す
ることができる。As a result, when the floating point single precision data is calculated by the data converting means 600, the digit number of the exponent part data is aligned with the digit number of the exponent part data of the floating point double precision data and output. It becomes easier and the number of gates can be reduced.
【0016】又、浮動小数点倍精度データの演算時に
は、第2の加算手段で第1の加算手段の出力の上位の所
定桁数のデータと入力データを基準値で規格化するため
の値との加算/減算処理をして出力するようにしたた
め、回路を小型化することが可能となる。このため、ゲ
ート数、データの遅延時間の削減が可能となる。Further, at the time of calculation of the floating point double precision data, the data of a predetermined number of upper digits of the output of the first adding means and the value for standardizing the input data with the reference value by the second adding means. Since the addition / subtraction processing is performed and the output is performed, the circuit can be downsized. Therefore, the number of gates and the data delay time can be reduced.
【0017】[0017]
【実施例】図2は本発明の実施例の指数部データの演算
処理回路の構成を示すブロック図である。FIG. 2 is a block diagram showing the configuration of an arithmetic processing circuit for exponent part data according to an embodiment of the present invention.
【0018】図3は実施例のデータコンバータ回路の動
作説明図である。図4は実施例の加算器(ADD)の動
作説明図である。図5は図4の式を簡略化して表した図
である。FIG. 3 is a diagram for explaining the operation of the data converter circuit of the embodiment. FIG. 4 is an operation explanatory diagram of the adder (ADD) of the embodiment. FIG. 5 is a diagram showing the expression of FIG. 4 in a simplified manner.
【0019】図6は図5を基に構成した回路図である。
図7は実施例の補正回路のデータ処理方法を示す図であ
る。全図を通じて同一符号は同一対象物を示す。FIG. 6 is a circuit diagram based on FIG.
FIG. 7 is a diagram showing a data processing method of the correction circuit of the embodiment. The same reference numerals denote the same objects throughout the drawings.
【0020】図2において、6及び7はそれぞれ、乗
数、被乗数のデータフォーマットを揃えるデータコンバ
ート回路、8はデータの加算並びにバイアス値の2の補
数値の一部を加算する加算器(ADD)、9は単精度演
算時の補正回路、10は倍精度演算時にバイアス値の2の
補数値の一部を加算する加算器(ADD)である。In FIG. 2, 6 and 7 are data conversion circuits for aligning the data formats of the multiplier and the multiplicand, respectively, 8 is an adder (ADD) for adding data and a part of the 2's complement value of the bias value, Reference numeral 9 is a correction circuit for single precision calculation, and 10 is an adder (ADD) for adding a part of the 2's complement value of the bias value during double precision calculation.
【0021】データコンバート回路6及び7において、
浮動小数点単精度データを入力した場合、その桁数を倍
精度データの桁数に揃えてから同じバイアス値(=102
3)を引くようにする。実際には、単精度データに2つ
のバイアス値の差分(1023−127)である"896" (これは
2進数で“1110000000”で表示される)を加
える処理をする。In the data conversion circuits 6 and 7,
When inputting floating-point single precision data, align the number of digits with the number of digits of double precision data, and then set the same bias value (= 102
3) Try to pull. Actually, a process of adding "896" (which is represented by a binary number "1110000000"), which is the difference (1023-127) between the two bias values, to the single precision data.
【0022】具体的には、8ビットからなる単精度デー
タの指数部データを例えばe7 e6e5 e4 e3 e2 e
1 e0 として、図3(1) に示すように最上位ビット(M
SB、e7 )=0の時には“e7 111”という値を下
位7ビット(e6 〜e0 )の上位に付加して出力し、図
3(2) に示すようにMSB=1の時には“e7 000”
という値を指数部データの下位7ビット(e6 〜e0 )
の上位に付加して出力する。浮動小数点倍精度データの
場合、11桁のデータを例えばe10〜e0 とすると、図3
(3) に示すようにデータコンバート回路6及び7では何
も処理せず出力する。Specifically, the exponent part data of 8-bit single precision data is, for example, e 7 e 6 e 5 e 4 e 3 e 2 e
As 1 e 0 , the most significant bit (M
When SB, e 7 ) = 0, the value “e 7 111” is added to the upper 7 bits of the lower 7 bits (e 6 to e 0 ) and output. When MSB = 1 as shown in FIG. 3 (2). "e 7 000"
Lower 7 bits of the exponent section data a value of (e 6 ~e 0)
Is added to the upper part of and output. In the case of floating-point double-precision data, assuming that 11-digit data is e 10 to e 0 , for example, as shown in FIG.
As shown in (3), the data conversion circuits 6 and 7 output without processing.
【0023】上記データコンバート回路6及び7の出力
をADD8に加え両者の加算を行う。データコンバート
回路6及び7の出力をそれぞれe10〜e0 、e10’〜e
0 ’とすると、11ビット+11ビットの加算結果は最大で
12ビットになる。この値は符号が付いていないが、バイ
アス値の減算を考える時には符号が必要なので、最上位
側に正の符号を示す“0”を付加する。この結果、図4
に示す(0)e11''〜e0'' が求められる。また、バイ
アス値である1023の減算は1023の2の補数値を加算する
ことで実現できる。The outputs of the data conversion circuits 6 and 7 are added to the ADD 8 and both are added. The outputs of the data conversion circuits 6 and 7 are respectively e 10 to e 0 and e 10 'to e.
When set to 0 ', the maximum addition result of 11 bits + 11 bits is
Will be 12 bits. Although this value has no sign, a sign is required when considering subtraction of the bias value, so "0" indicating a positive sign is added to the most significant side. As a result,
Are shown (0) e 11 '' ~e 0 '' is obtained. The subtraction of the bias value 1023 can be realized by adding the 2's complement value of 1023.
【0024】図5は図4に示す演算処理推移の式を簡略
化して表したものである。図5(A)の演算は図2のAD
D8で行い、(B) の演算は図2のADD10で行う。図6
は図5の式を基に構成した回路図である。同図(a) は図
2のADD8を表し、(b) は図2のADD10を表す。入
出力データは図5のデータ名と一致している。図5(A)
で最下位ビットに"1" を加える動作は、図6(a) におい
て、キャリーイン(CI)端子に"1" を入力することで
実現している。FIG. 5 is a simplified representation of the equation of the arithmetic processing transition shown in FIG. The calculation of FIG. 5A is the AD of FIG.
D8 is performed, and the operation of (B) is performed by ADD10 in FIG. Figure 6
FIG. 6 is a circuit diagram constructed based on the equation of FIG. 2A shows the ADD 8 of FIG. 2, and FIG. 2B shows the ADD 10 of FIG. The input / output data matches the data name in FIG. Figure 5 (A)
The operation of adding "1" to the least significant bit is realized by inputting "1" to the carry-in (CI) terminal in FIG. 6 (a).
【0025】又、(B) の演算は、図6(a) のX11(最上
位ビット)の端子より出力されたデータ(図5の
e10'')とキャリーアウト(CO)端子より出力された
データ(図5のe11'')をそれぞれ、(b) のA1 、A2
に入力する。更にA3 には"0"を入力する。又、(b) の
加算器のもう一方の入力データであるB1 、B2 、B3
には"1" を入力し、(b) のキャリーイン(CI)端子に
は"0" を入力する。このようにして(a) からe0'''〜e
9'''を出力し、(b) からはe10''' 〜e12''' を出力す
る。In the operation (B), the data (e 10 ″ in FIG. 5) output from the X11 (most significant bit) terminal in FIG. 6A and the carry out (CO) terminal are output. Data (e 11 ″ in FIG. 5), respectively, for A 1 and A 2 in (b)
To enter. In addition to the A 3 to enter a "0". Also, the other input data of the adder of (b) B 1 , B 2 , B 3
"1" is input to and the carry-in (CI) terminal of (b) is input "0". Thus, from (a) to e 0 '''~ e
'Outputs, (b) e 10 from' 9 '' to output a 'to e 12' ''.
【0026】図7は補正回路9における処理方法を示し
ている。浮動小数点倍精度演算時にはデータコンバート
回路6及び7でフォーマット変換を行わなかったので、
データの補正処理は必要なく、e12''' 〜e0'''をその
まま出力する。(ただし、e10''' 〜e0'''を指数デー
タとして使用する)。FIG. 7 shows a processing method in the correction circuit 9. Since the format conversion was not performed in the data conversion circuits 6 and 7 during the floating point double precision calculation,
Data correction processing is not necessary, and e 12 ′ ″ to e 0 ′ ″ are output as they are. (However, e 10 ′ ″ to e 0 ′ ″ are used as exponential data).
【0027】単精度演算時にはデータコンバート回路6
及び7で乗数及び被乗数にそれぞれ896 を加えたため89
6 が二重に加算されており、このため896 を引く必要が
あり、図7のe12''' 〜e0'''から896 を引く処理を補
正回路9で行う。本回路では、896 を引く処理を896 の
2の補数値を加える処理で代替しているが、単精度デー
タの有効桁が8ビットなので、上位3ビットの"1" は無
効となり、この値は加えない。Data conversion circuit 6 for single precision calculation
89 because 896 was added to the multiplier and the multiplicand in 7 and 7, respectively.
Since 6 is doubly added, it is necessary to subtract 896, and the correction circuit 9 performs the process of subtracting 896 from e 12 ′ ″ to e 0 ′ ″ in FIG. 7. In this circuit, the process of subtracting 896 is replaced by the process of adding 2's complement value of 896. However, since the significant digit of single precision data is 8 bits, the upper 3 bits "1" becomes invalid and this value is Do not add.
【0028】又、オーバーフロー並びにアンダーフロー
判定はe8'''とe9'''を使って行うので、補正は8、
9、10ビットのみ行えばよい。Since the overflow and underflow judgments are made using e 8 '"and e 9 '", the correction is 8,
Only 9 and 10 bits need to be performed.
【0029】[0029]
【表1】 [Table 1]
【0030】表1は、単精度演算時における補正回路に
入力前と出力後のデータ(補正関連ビット)を表してい
る。これを実現するためには加算器ではなく、ランダム
ロジックを用いた構成とする。Table 1 shows data (correction-related bits) before and after being input to the correction circuit during single-precision calculation. In order to realize this, a configuration using a random logic is used instead of an adder.
【0031】このようにして単精度演算データは
e7'''' 、e6'''〜e0'''を指数部として出力する。こ
の結果、データコンバート回路6及び7で、浮動小数点
単精度データの演算時にはその指数部データの桁数を倍
精度データの桁数に揃えて出力するが、その際指数部デ
ータの最上位ビット(MSB、e7)の値により指数部デ
ータに付加する固定データを決定するため、回路構成が
容易になりゲート数を削減することが可能となる。In this way, the single-precision operation data outputs e 7 ″ ″ and e 6 ″ ″ to e 0 ″ ″ as exponents. As a result, when the floating-point single precision data is calculated in the data conversion circuits 6 and 7, the number of digits of the exponent part data is aligned with the number of digits of the double precision data and is output. Since the fixed data to be added to the exponent part data is determined by the value of MSB, e 7 ), the circuit configuration is simplified and the number of gates can be reduced.
【0032】又、浮動小数点倍精度データの演算時に
は、加算器(ADD)10で、ADD8の出力の上位2ビ
ットにバイアス値(1023) の2の補数値の一部を加算す
るようにしたため、回路を小型化できる。このため、従
来の回路に具備されていたデータセレクタを設けず、又
多数ビットの加算器を2段で構成することがないため、
ゲート数、データの遅延時間の削減が可能となる。In addition, when the floating point double precision data is calculated, the adder (ADD) 10 adds a part of the 2's complement value of the bias value (1023) to the upper 2 bits of the output of the ADD 8. The circuit can be miniaturized. Therefore, the data selector included in the conventional circuit is not provided and the multi-bit adder is not configured in two stages.
The number of gates and data delay time can be reduced.
【0033】[0033]
【発明の効果】以上説明したように本発明によれば、従
来の回路に具備されていたデータセレクタを設けず、又
多数ビットの加算器を2段で構成することがないため、
ゲート数、データの遅延時間の削減が可能となるという
効果を持つ。As described above, according to the present invention, the data selector included in the conventional circuit is not provided and the multi-bit adder is not configured in two stages.
This has the effect of reducing the number of gates and data delay time.
【図1】は本発明の原理図、FIG. 1 is a principle diagram of the present invention,
【図2】は本発明の実施例の指数部データの演算処理回
路の構成を示すブロック図FIG. 2 is a block diagram showing a configuration of an arithmetic processing circuit for exponent part data according to an embodiment of the present invention.
【図3】は実施例のデータコンバータ回路の動作説明
図、FIG. 3 is an operation explanatory view of the data converter circuit of the embodiment,
【図4】は実施例の加算器(ADD)の動作説明図、FIG. 4 is an operation explanatory diagram of an adder (ADD) of the embodiment,
【図5】は図4の式を簡略化して表した図、5 is a simplified diagram of the equation of FIG. 4,
【図6】は図5を基に構成した回路図、6 is a circuit diagram based on FIG. 5,
【図7】は実施例の補正回路のデータ処理方法を示す
図、FIG. 7 is a diagram showing a data processing method of the correction circuit of the embodiment,
【図8】は一例の浮動小数点単精度データフォーマット
を示す図、FIG. 8 is a diagram showing an example of floating point single precision data format;
【図9】は一例の浮動小数点倍精度データフォーマット
を示す図、FIG. 9 is a diagram showing an example floating-point double-precision data format,
【図10】は従来例の指数部データの演算処理回路の構
成を示すブロック図である。FIG. 10 is a block diagram showing a configuration of an arithmetic processing circuit for exponent part data of a conventional example.
100 は第2の加算手段、 600 はデータ変換手段、 800 は第1の加算手段、 900 は補正手段 を示す。 100 is the second adding means, 600 is the data converting means, 800 is the first adding means, and 900 is the correcting means.
Claims (1)
乗算を行う乗算器であって、 入力が該浮動小数点倍精度データの乗数及び被乗数の指
数部データである時にはそのまま出力し、入力が該浮動
小数点単精度データの乗数及び被乗数の指数部データで
ある時にはその桁数を該浮動小数点倍精度データの乗数
及び被乗数の指数部データの桁数に揃えて出力するデー
タ変換手段(600) と、 該データ変換手段(600) の出力を入力して両者を加算し
て出力する第1の加算手段(800) と、 該第1の加算手段の出力の下位の所定桁数のデータを入
力して、該入力が該浮動小数点倍精度データの指数部デ
ータである時にはそのまま出力し、該入力が該浮動小数
点単精度データの指数部データである時には一定桁数の
データを補正して出力する補正手段(900) と、 該浮動小数点倍精度データの演算時には、該第1の加算
手段の出力の上位の所定桁数のデータと入力データを基
準値で規格化するための値との加算/減算処理をして出
力する第2の加算手段(100) とを有することを特徴とす
る乗算器。1. A multiplier for multiplying floating-point single-precision and double-precision data, which is output as it is when the input is exponent data of the multiplier and multiplicand of the floating-point double-precision data, and the input is the floating-point data. When it is exponent part data of the multiplier and multiplicand of the decimal point single precision data, the number of digits thereof is aligned with the number of digits of the exponent part data of the multiplier and multiplicand of the floating point double precision data, and the data conversion means (600), A first adding means (800) for inputting the output of the data converting means (600) and adding and outputting the both, and a predetermined number of lower digits of data of the output of the first adding means are inputted, When the input is exponent part data of the floating point double precision data, it is output as it is, and when the input is exponent part data of the floating point single precision data, a correction means for correcting and outputting a fixed number of digits of data ( 900), When calculating the floating-point double-precision data, an addition / subtraction process is performed between the data of a predetermined upper digit number of the output of the first adding means and a value for normalizing the input data with a reference value, and the result is output. A multiplier having two adding means (100).
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP20832092A JPH0659862A (en) | 1992-08-05 | 1992-08-05 | Multiplier |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP20832092A JPH0659862A (en) | 1992-08-05 | 1992-08-05 | Multiplier |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0659862A true JPH0659862A (en) | 1994-03-04 |
Family
ID=16554312
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP20832092A Withdrawn JPH0659862A (en) | 1992-08-05 | 1992-08-05 | Multiplier |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0659862A (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR101009095B1 (en) * | 2007-12-07 | 2011-01-18 | 엔비디아 코포레이션 | Graphic processor with versatile double precision function unit |
| WO2025052380A1 (en) * | 2023-09-04 | 2025-03-13 | Neologic Ltd. | An efficient binary multiplier with reduced area and power consumption |
-
1992
- 1992-08-05 JP JP20832092A patent/JPH0659862A/en not_active Withdrawn
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR101009095B1 (en) * | 2007-12-07 | 2011-01-18 | 엔비디아 코포레이션 | Graphic processor with versatile double precision function unit |
| WO2025052380A1 (en) * | 2023-09-04 | 2025-03-13 | Neologic Ltd. | An efficient binary multiplier with reduced area and power consumption |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US6820107B1 (en) | Square root extraction circuit and floating-point square root extraction device | |
| EP0472139B1 (en) | A floating-point processor | |
| US7188133B2 (en) | Floating point number storage method and floating point arithmetic device | |
| JP3845009B2 (en) | Product-sum operation apparatus and product-sum operation method | |
| US20200183650A1 (en) | Radix-1000 decimal floating-point numbers and arithmetic units using a skewed representation of the fraction | |
| JP2689414B2 (en) | Floating point representation converter | |
| JP2608165B2 (en) | Method and apparatus for multiplying a real-time two's complement code in a digital signal processing system | |
| JPH0659862A (en) | Multiplier | |
| JP2558669B2 (en) | Floating point arithmetic unit | |
| JP2645422B2 (en) | Floating point processor | |
| JP2010102431A (en) | Floating decimal point arithmetic circuit, floating decimal point arithmetic method, and servo-controlled system | |
| JP3137131B2 (en) | Floating point multiplier and multiplication method | |
| JP4163967B2 (en) | Floating point arithmetic unit | |
| JP2795253B2 (en) | Divider | |
| JP3187402B2 (en) | Floating point data addition / subtraction circuit | |
| JP2537876B2 (en) | Rounding circuit | |
| JPH06195206A (en) | Divider | |
| JPH0778724B2 (en) | Divider | |
| JP3124286B2 (en) | Floating point arithmetic unit | |
| JP2002344316A (en) | Nonlinear quantization apparatus, nonlinear quantization method, and nonlinear quantization program | |
| JP2993119B2 (en) | Floating point arithmetic unit | |
| JPS5960637A (en) | Arithmetic device for floating decimal point | |
| JPH0527949A (en) | Exponent arithmetic circuit in floating point multiplication | |
| JPH0814790B2 (en) | Processor | |
| JPH0644048A (en) | Floating point arithmetic unit and method |
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 |