JP2699658B2 - Square root arithmetic unit - Google Patents

Square root arithmetic unit

Info

Publication number
JP2699658B2
JP2699658B2 JP41101590A JP41101590A JP2699658B2 JP 2699658 B2 JP2699658 B2 JP 2699658B2 JP 41101590 A JP41101590 A JP 41101590A JP 41101590 A JP41101590 A JP 41101590A JP 2699658 B2 JP2699658 B2 JP 2699658B2
Authority
JP
Japan
Prior art keywords
operand
unit
square root
output
conversion table
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 - Fee Related
Application number
JP41101590A
Other languages
Japanese (ja)
Other versions
JPH04216127A (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.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP41101590A priority Critical patent/JP2699658B2/en
Publication of JPH04216127A publication Critical patent/JPH04216127A/en
Application granted granted Critical
Publication of JP2699658B2 publication Critical patent/JP2699658B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Complex Calculations (AREA)

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は平方根演算装置に関し、
特に正規化浮動小数点数の平方根の演算を行う平方根演
算装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a square root arithmetic unit,
In particular, the present invention relates to a square root operation device that performs a square root operation of a normalized floating-point number.

【0002】[0002]

【従来の技術】従来、この種の平方根演算装置では、2
のべき乗数(ここでは、kを正整数とするときの2k
意味する)であるN(24 である16を代表例とする)
を基数とする正規化浮動小数点数が被演算数である場合
に、以下に示すような考え方に基づき演算が行われてい
た。
2. Description of the Related Art Conventionally, this type of square root arithmetic unit has two
The exponent (here, 2 k means the time of a k a positive integer) N a (16 a 2 4 a typical example)
When the normalized floating-point number having the radix as the radix is the operand, the calculation has been performed based on the following concept.

【0003】被演算数の仮数をmとし、被演算数の偶数
の指数を2n(nは整数)とし、被演算数の奇数の指数
を2n+1とすると、浮動小数点数である被演算数の平
方根は次のように表すことができる。 (m×N2n1/2 =m1/2 ×Nn (m×N2n+11/2 =(m1/2 ×Nn )×N1/2
The mantissa of the operand is m, and the even number of the operand is
Is 2n (n is an integer), and the odd exponent of the operand
Is 2n + 1, the plane of the operand, which is a floating-point number, is
The root can be expressed as: (MxN2n)1/2= M1/2× Nn  (MxN2n + 1)1/2= (M1/2× Nn) × N1/2

【0004】したがって、被演算数の指数が偶数
の場合には、被演算数の平方根の仮数は被演算数の仮数
の平方根になり、被演算数の平方根の指数は被演算数の
指数の2分の1になる。
Accordingly, when the exponent of the operand is even, the mantissa of the square root of the operand is the square root of the mantissa of the operand, and the exponent of the square root of the operand is 2 of the exponent of the operand. It's a fraction.

【0005】また、被演算数の指数が奇数の場合には、
指数が偶数の場合の演算結果にN1/2 (Nが16の場合
には4)を乗じた値になる。
[0005] When the exponent of the operand is odd,
It is a value obtained by multiplying the calculation result when the exponent is an even number by N 1/2 (4 when N is 16).

【0006】図2は、以上のような考え方に基づく従来
の平方根演算装置の一例の構成を示すブロック図であ
る。
FIG. 2 is a block diagram showing a configuration of an example of a conventional square root operation device based on the above concept.

【0007】変換表記憶部20は、被演算数の仮数mか
らその平方根m1/2 を求めるための変換表をあらかじめ
記憶しており、信号線201(被演算数仮数部入力信号
線)から被演算数の仮数を入力し、その平方根を出力す
る。
The conversion table storage unit 20 previously stores a conversion table for obtaining the square root m 1/2 from the mantissa m of the operand, and stores the conversion table from the signal line 201 (operand mantissa input signal line). Inputs the mantissa of the operand and outputs the square root.

【0008】除算部21は、信号線202(被演算数指
数部入力信号線)から被演算数の指数を入力し、その2
分の1を整数演算で求めて出力する。
The division unit 21 receives the exponent of the operand from the signal line 202 (operand exponent part input signal line), and
One-half is obtained by integer operation and output.

【0009】浮動小数点数乗算部22は、変換表記憶部
20の出力の仮数と除算部21の出力の指数とを合わせ
た浮動小数点数(変換表記憶部20の出力を仮数とし除
算部21の出力を指数とする浮動小数点数。以下、「あ
る仮数とある指数とを合わせた浮動小数点数」という表
現は同様の意味を示す)を信号線203から入力し、そ
の浮動小数点数にN1/2 (Nが16の場合には4)を乗
じた演算結果を信号線204に出力する。なお、浮動小
数点数乗算部22は演算結果を正規化するための正規化
手段を有しており、信号線204には正規化された演算
結果を出力する(このような正規化手段は、平方根演算
装置から演算結果が出力された後に設けることも可能で
ある)。
The floating-point number multiplying unit 22 is a floating-point number obtained by adding the mantissa of the output of the conversion table storage unit 20 and the exponent of the output of the division unit 21 (the output of the conversion table storage unit 20 is used as the mantissa and the A floating-point number whose output is an exponent. Hereinafter, the expression “a floating-point number combining a certain mantissa and a certain exponent” has the same meaning) is input from a signal line 203, and the floating-point number is represented by N 1 / The calculation result obtained by multiplying 2 (4 when N is 16) is output to the signal line 204. Note that the floating-point number multiplying unit 22 has a normalizing means for normalizing the operation result, and outputs the normalized operation result to the signal line 204 (such a normalizing means is a square root. It can be provided after the calculation result is output from the calculation device.)

【0010】演算結果選択部23は、信号線202上の
被演算数の指数が偶数の場合には信号線203上の演算
結果を選択して信号線205(演算結果出力信号線)に
出力し、信号線202上の被演算数の指数が奇数の場合
には信号線204上の演算結果を選択して信号線205
に出力する。
When the exponent of the operand on the signal line 202 is an even number, the operation result selector 23 selects the operation result on the signal line 203 and outputs it to the signal line 205 (operation result output signal line). If the exponent of the operand on the signal line 202 is an odd number, the operation result on the signal line 204 is selected and the signal line 205 is selected.
Output to

【0011】[0011]

【発明が解決しようとする課題】上述した従来の平方根
演算装置では、浮動小数点数の演算を行う浮動小数点数
乗算部が必要になるので、回路規模が大きく複雑にな
り、信号の伝播遅延時間が大きくなるという欠点があ
る。
In the above-mentioned conventional square root arithmetic unit, a floating point number multiplying unit for calculating a floating point number is required, so that the circuit scale is large and complicated, and the signal propagation delay time is increased. There is a disadvantage that it becomes larger.

【0012】本発明の目的は、上述の点に鑑み、2のべ
き乗数であるN(16を代表例とする)を基数とする正
規化浮動小数点数の平方根の演算を行う場合に、回路規
模を縮小することができ、信号の伝播遅延時間を小さく
することができる平方根演算装置を提供することにあ
る。
SUMMARY OF THE INVENTION In view of the above, an object of the present invention is to reduce the circuit scale when calculating the square root of a normalized floating-point number having a base of N which is a power of 2 (typically 16). It is an object of the present invention to provide a square root operation device which can reduce the signal propagation delay time.

【0013】[0013]

【課題を解決するための手段】本発明の平方根演算装置
は、16を基数とする正規化浮動小数点数の平方根の演
算を行う平方根演算装置において、被演算数の仮数を入
力しその値の平方根を出力するための変換表を記憶する
第1の変換表記憶部と、被演算数の仮数を入力しその値
を16で除した値の平方根を出力するための変換表を記
憶する第2の変換表記憶部と、被演算数の指数を2で除
した値を求めて出力する除算部と、この除算部の出力に
1を加えて出力する加算部と、被演算数の指数が偶数で
ある場合に前記第1の変換表記憶部の出力の仮数部と前
記除算部の出力の指数部とを合わせた正規化浮動小数点
数を演算結果として出力し被演算数の指数が奇数である
場合に前記第2の変換表記憶部の出力の仮数部と前記加
算部の出力の指数部とを合わせた正規化浮動小数点数を
演算結果として出力する演算結果選択部とを有する。
A square root arithmetic unit according to the present invention is a square root arithmetic unit for calculating a square root of a normalized floating-point number having a radix of 16 and inputs a mantissa of an operand and inputs a square root of the value. And a second conversion table storing a conversion table for inputting the mantissa of the operand and outputting the square root of a value obtained by dividing the value by 16 A conversion table storage unit, a division unit that obtains and outputs a value obtained by dividing the exponent of the operand by 2, an adder unit that adds 1 to the output of the division unit and outputs the result, and an exponent of the operand that is even In some cases, a normalized floating-point number obtained by combining the mantissa part of the output of the first conversion table storage unit and the exponent part of the output of the division unit is output as an operation result, and the exponent of the operand is odd. The mantissa part of the output of the second conversion table storage unit and the exponent of the output of the addition unit And a calculation selecting section that outputs the combined normalized floating-point number bets as the operation result.

【0014】また、本発明の平方根演算装置は、2のべ
き乗数であるNを基数とする正規化浮動小数点数の平方
根の演算を行う平方根演算装置において、被演算数の仮
数を入力しその値の平方根を出力するための変換表を記
憶する第1の変換表記憶部と、被演算数の仮数を入力し
その値をNで除した値の平方根を出力するための変換表
を記憶する第2の変換表記憶部と、被演算数の指数を2
で除した値を求めて出力する除算部と、この除算部の出
力に1を加えて出力する加算部と、被演算数の指数が偶
数である場合に前記第1の変換表記憶部の出力の仮数部
と前記除算部の出力の指数部とを合わせた正規化浮動小
数点数を演算結果として出力し被演算数の指数が奇数で
ある場合に前記第2の変換表記憶部の出力の仮数部と前
記加算部の出力の指数部とを合わせた正規化浮動小数点
数を演算結果として出力する演算結果選択部とを有す
る。
A square root arithmetic unit according to the present invention is a square root arithmetic unit for calculating a square root of a normalized floating-point number having a radix of 2 as a power of N. A first conversion table storage unit for storing a conversion table for outputting a square root of, and a conversion table for storing a square root of a value obtained by inputting the mantissa of the operand and dividing the value by N. 2 conversion table storage unit and the exponent of the operand
A dividing unit for obtaining and outputting a value obtained by dividing by 1, an adding unit for adding 1 to the output of the dividing unit and outputting the result, and an output of the first conversion table storing unit when the exponent of the operand is an even number. A normalized floating point number obtained by combining the mantissa part of the above and the exponent part of the output of the division unit is output as an operation result, and when the exponent of the operand is odd, the mantissa of the output of the second conversion table storage unit And a calculation result selection unit that outputs a normalized floating-point number obtained by combining the unit and the exponent part of the output of the addition unit as a calculation result.

【0015】[0015]

【作用】本発明の平方根演算装置では、第1の変換表記
憶部が被演算数の仮数を入力しその値の平方根を出力す
るための変換表を記憶し、第2の変換表記憶部が被演算
数の仮数を入力しその値を16で除した値の平方根を出
力するための変換表を記憶し、除算部が被演算数の指数
を2で除した値を求めて出力し、加算部が除算部の出力
に1を加えて出力し、演算結果選択部が被演算数の指数
が偶数である場合に第1の変換表記憶部の出力の仮数部
と除算部の出力の指数部とを合わせた正規化浮動小数点
数を演算結果として出力し被演算数の指数が奇数である
場合に第2の変換表記憶部の出力の仮数部と加算部の出
力の指数部とを合わせた正規化浮動小数点数を演算結果
として出力する。
In the square root calculator of the present invention, the first conversion table storage unit stores a conversion table for inputting the mantissa of the operand and outputting the square root of the value, and the second conversion table storage unit stores the conversion table. A conversion table for inputting the mantissa of the operand and outputting the square root of the value obtained by dividing the value by 16 is stored. The dividing unit obtains the value obtained by dividing the exponent of the operand by 2 and outputs the value. When the exponent of the operand is an even number, the mantissa part of the output of the first conversion table and the exponent part of the output of the division part are output. Is output as an operation result, and when the exponent of the operand is an odd number, the mantissa part of the output of the second conversion table storage unit and the exponent part of the output of the addition unit are combined. Outputs a normalized floating-point number as an operation result.

【0016】また、本発明の平方根演算装置では、第1
の変換表記憶部が被演算数の仮数を入力しその値の平方
根を出力するための変換表を記憶し、第2の変換表記憶
部が被演算数の仮数を入力しその値をNで除した値の平
方根を出力するための変換表を記憶し、除算部が被演算
数の指数を2で除した値を求めて出力し、加算部が除算
部の出力に1を加えて出力し、演算結果選択部が被演算
数の指数が偶数である場合に第1の変換表記憶部の出力
の仮数部と除算部の出力の指数部とを合わせた正規化浮
動小数点数を演算結果として出力し被演算数の指数が奇
数である場合に第2の変換表記憶部の出力の仮数部と加
算部の出力の指数部とを合わせた正規化浮動小数点数を
演算結果として出力する。
Further, in the square root computing device of the present invention, the first
The conversion table storage unit stores a conversion table for inputting the mantissa of the operand and outputting the square root of the value, and the second conversion table storage unit inputs the mantissa of the operand and sets the value to N. A conversion table for outputting the square root of the divided value is stored. The dividing unit calculates and outputs a value obtained by dividing the exponent of the operand by 2, and the adding unit adds 1 to the output of the dividing unit and outputs the result. When the exponent of the operand is an even number in the operation result selection unit, a normalized floating point number obtained by combining the mantissa part of the output of the first conversion table storage unit and the exponent part of the output of the division unit is used as the operation result. When the exponent of the operand to be output is odd, a normalized floating-point number obtained by combining the mantissa part of the output of the second conversion table storage unit and the exponent part of the output of the adder unit is output as the operation result.

【0017】[0017]

【実施例】次に、本発明について図面を参照して詳細に
説明する。
Next, the present invention will be described in detail with reference to the drawings.

【0018】図1は、本発明の平方根演算装置の一実施
例の構成を示すブロック図である。本実施例の平方根演
算装置は、2のべき乗数であるN(24 である16を代
表例とする)を基数とする正規化浮動小数点数が被演算
数である平方根演算を行う装置であり、変換表記憶部1
0(第1の変換表記憶部)と、変換表記憶部11(第2
の変換表記憶部)と、除算部12と、加算部13と、演
算結果選択部14と、信号線101〜105とを含んで
構成されている。
FIG. 1 is a block diagram showing the configuration of an embodiment of the square root arithmetic unit according to the present invention. Square root arithmetic unit of the present embodiment is an apparatus normalized floating-point number to the second is a power number N (a 2 4 a is 16 representative example) and radix performs square root operation is operand , Conversion table storage unit 1
0 (first conversion table storage unit) and conversion table storage unit 11 (second conversion table storage unit).
, A division unit 12, an addition unit 13, an operation result selection unit 14, and signal lines 101 to 105.

【0019】本実施例を含む本発明の平方根演算装置で
は、以下に示すような考え方に基づき演算が行われてい
る。
In the square root calculator of the present invention including the present embodiment, calculation is performed based on the following concept.

【0020】被演算数の仮数をmとし、被演算数の偶数
の指数を2n(nは整数)とし、奇数の指数を2n+1
とすると、Nを基数とする浮動小数点数である被演算数
(m×N2n)または(m×N2n+1)の平方根は次のよう
に表すことができる。 (m×N2n1/2 =m1/2 ×Nn (m×N2n+11/2 =(m/N)1/2 ×Nn+1
The mantissa of the operand is m, and the even number of the operand is
Is an exponent of 2n (n is an integer), and an odd exponent is 2n + 1
Where the operand is a floating-point number in base N
(MxN2n) Or (mxN2n + 1The square root of
Can be expressed as (MxN2n)1/2= M1/2× Nn  (MxN2n + 1)1/2= (M / N)1/2× Nn + 1

【0021】したがって、被演算数の指数が偶数
の場合には、被演算数の平方根の仮数は被演算数の仮数
の平方根になり、被演算数の平方根の指数は被演算数の
指数の2分の1になる。
Therefore, when the exponent of the operand is even, the mantissa of the square root of the operand is the square root of the mantissa of the operand, and the exponent of the square root of the operand is 2 of the exponent of the operand. It's a fraction.

【0022】また、被演算数の指数が奇数の場合には、
被演算数の平方根の仮数は被演算数の仮数を基数で割っ
た値の平方根になり、被演算数の平方根の指数は被演算
数の指数の2分の1に1を加えた値になる。
When the exponent of the operand is odd,
The mantissa of the square root of the operand is the square root of the value obtained by dividing the mantissa of the operand by the radix, and the exponent of the square root of the operand is a value obtained by adding one to one half of the exponent of the operand. .

【0023】図1に示す本実施例の平方根演算装置は、
以上のような考え方に基づいて構成されている。
The square root calculator of this embodiment shown in FIG.
It is configured based on the above concept.

【0024】次に、このように構成された本実施例の平
方根演算装置の動作について説明する。
Next, the operation of the thus configured square root calculator of this embodiment will be described.

【0025】変換表記憶部10は、被演算数の仮数mか
らその仮数mの平方根m1/2 を求めるための変換表をあ
らかじめ記憶しており、信号線101(被演算数仮数部
入力信号線)から被演算数の仮数mを入力し、m
1/2 (被演算数の指数が偶数の場合に演算結果の仮数と
なる値)を出力する。
The conversion table storage unit 10 previously stores a conversion table for obtaining the square root m 1/2 of the mantissa m from the mantissa m of the operand, and stores the signal line 101 (operand mantissa input signal Input the mantissa m of the operand from
Outputs 1/2 (the value that becomes the mantissa of the operation result when the exponent of the operand is even).

【0026】変換表記憶部11は、被演算数の仮数mか
らその仮数mをN(16が基数である場合には16)で
除した値の平方根(m/N)1/2 を求めるための変換表
をあらかじめ記憶しており、信号線101から被演算数
の仮数mを入力し、(m/N)1/2 (被演算数の指数が
奇数の場合に演算結果の仮数となる値)を出力する。
The conversion table storage unit 11 calculates the square root (m / N) 1/2 of the value obtained by dividing the mantissa m of the operand by N (16 when 16 is a radix). Is stored in advance, and the mantissa m of the operand is input from the signal line 101, and (m / N) 1/2 (the value that becomes the mantissa of the operation result when the exponent of the operand is an odd number) ) Is output.

【0027】除算部12は、信号線102(被演算数指
数部入力信号線)から被演算数の指数を入力し、その指
数の2分の1を整数演算で求めて出力する。
The division unit 12 inputs the exponent of the operand from the signal line 102 (operand exponent part input signal line), and obtains and outputs one half of the exponent by integer operation.

【0028】加算部13は、整数演算で除算部12の出
力に1を加えて出力する。
The adder 13 adds 1 to the output of the divider 12 by an integer operation and outputs the result.

【0029】演算結果選択部14は、信号線102上の
被演算数の指数が偶数の場合には、変換表記憶部10の
出力の仮数と除算部12の出力の指数とを合わせた浮動
小数点数を信号線103から入力し、その浮動小数点数
を演算結果として信号線105(演算結果出力信号線)
に出力する。
When the exponent of the operand on the signal line 102 is an even number, the operation result selecting unit 14 calculates a floating-point number obtained by combining the mantissa of the output of the conversion table storage unit 10 and the exponent of the output of the division unit 12. The number is input from a signal line 103, and the floating-point number is used as an operation result as a signal line 105 (operation result output signal line).
Output to

【0030】また、演算結果選択部14は、信号線10
2上の被演算数の指数が奇数の場合には、変換表記憶部
11の出力の仮数と加算部13の出力の指数とを合わせ
た浮動小数点数を信号線104から入力し、その浮動小
数点数を演算結果として信号線105に出力する。
The operation result selector 14 is connected to the signal line 10.
When the exponent of the operand on 2 is odd, a floating-point number obtained by adding the mantissa of the output of the conversion table storage unit 11 and the exponent of the output of the adding unit 13 is input from the signal line 104, and the floating-point The number is output to the signal line 105 as a calculation result.

【0031】ここで、入力の仮数mが「(1/N)≦m
<1」に適合するように正規化されているならば、変換
表記憶部10および11に記憶されている変換後の値
m′(演算結果の仮数であるm1/2 または(m/N)
1/2 )は次の式を満たすので、信号線105上の演算結
果は正規化されたものとなる。 変換表記憶部10 (1/N)<(1/N)1/2 ≦m′<11/2 =1 例えば、N=16の場合には以下のようになる。 (1/16)<(1/4)≦m′<1 変換表記憶部11 (1/N)=((1/N)/N)1/2 ≦m′<(1/
N)1/2 <1 例えば、N=16の場合には以下のようになる。 (1/16)≦m′<(1/4)<1
Here, the input mantissa m is “(1 / N) ≦ m
If normalized so as to conform to <1 ”, the converted value m ′ stored in the conversion table storage units 10 and 11 (m1 / 2 or (m / N )
1/2 ) satisfies the following equation, so that the operation result on the signal line 105 is normalized. Conversion table storage unit 10 (1 / N) <(1 / N) 1/2 ≦ m ′ <1 1/2 = 1 For example, when N = 16, the following is performed. (1/16) <(1/4) ≦ m ′ <1 Conversion table storage unit 11 (1 / N) = ((1 / N) / N) 1/2 ≦ m ′ <(1 /
N) 1/2 <1 For example, when N = 16, the following is obtained. (1/16) ≦ m ′ <(1/4) <1

【0032】[0032]

【発明の効果】以上説明したように本発明は、2のべき
乗数であるN(16を代表例とする)を基数とする正規
化浮動小数点数の平方根の演算を行う場合に、仮数部の
演算については1回の変換表の索引のみで可能とし、指
数部の演算についても2を除数とする除算および1の加
算(いずれも整数演算である)だけによって可能とする
ことにより、浮動小数点数の演算を行うための回路(従
来技術における浮動小数点数乗算部のような回路)が不
要になり、回路規模を縮小することができ、信号の伝播
遅延時間を小さくすることができるという効果がある。
As described above, the present invention provides a method for calculating the square root of a normalized floating-point number based on a power of 2 N (typically 16) as a radix. Floating point numbers can be calculated only by one conversion table index, and exponents can be calculated only by dividing by 2 and adding 1 (both are integer operations). (A circuit such as a floating-point number multiplication unit in the prior art) for performing the above operation is not required, so that the circuit scale can be reduced and the signal propagation delay time can be reduced. .

【0033】また、本発明の平方根演算装置による演算
結果は常に正規化された値になるので、演算結果を正規
化するための正規化手段を設ける必要がなくなるという
効果もある。
Further, since the operation result by the square root operation device of the present invention is always a normalized value, there is also an effect that it is not necessary to provide a normalizing means for normalizing the operation result.

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

【図1】本発明の一実施例の構成を示すブロック図であ
る。
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention.

【図2】従来の平方根演算装置の一例の構成を示すブロ
ック図である。
FIG. 2 is a block diagram illustrating a configuration of an example of a conventional square root calculation device.

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

10,11 変換表記憶部、 12 除算部 13 加算部 14 演算結果選択部 101〜105 信号線 10, 11 Conversion table storage unit, 12 Division unit 13, Addition unit 14, Operation result selection unit 101-105 Signal line

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 16を基数とする正規化浮動小数点数の
平方根の演算を行う平方根演算装置において、被演算数
の仮数を入力しその値の平方根を出力するための変換表
を記憶する第1の変換表記憶部と、被演算数の仮数を入
力しその値を16で除した値の平方根を出力するための
変換表を記憶する第2の変換表記憶部と、被演算数の指
数を2で除した値を求めて出力する除算部と、この除算
部の出力に1を加えて出力する加算部と、被演算数の指
数が偶数である場合に前記第1の変換表記憶部の出力の
仮数部と前記除算部の出力の指数部とを合わせた正規化
浮動小数点数を演算結果として出力し、被演算数の指数
が奇数である場合に前記第2の変換表記憶部の出力の仮
数部と前記加算部の出力の指数部とを合わせた正規化浮
動小数点数を演算結果として出力する演算結果選択部と
を有することを特徴とする平方根演算装置。
1. A square root arithmetic unit for calculating a square root of a normalized floating-point number having a radix of 16 and storing a conversion table for inputting a mantissa of an operand and outputting a square root of the value. And a second conversion table storage unit for storing a conversion table for inputting the mantissa of the operand and outputting the square root of a value obtained by dividing the value by 16; A division unit for obtaining and outputting a value obtained by dividing by 2, an addition unit for adding 1 to the output of the division unit and outputting the result, and a first conversion table storage unit when the operand of the operand is an even number. A normalized floating-point number obtained by combining the mantissa part of the output and the exponent part of the output of the division unit is output as an operation result. Calculates a normalized floating-point number combining the mantissa part of And a calculation result selection unit for outputting the result as a result.
【請求項2】 2のべき乗数であるNを基数とする正規
化浮動小数点数の平方根の演算を行う平方根演算装置に
おいて、被演算数の仮数を入力しその値の平方根を出力
するための変換表を記憶する第1の変換表記憶部と、被
演算数の仮数を入力しその値をNで除した値の平方根を
出力するための変換表を記憶する第2の変換表記憶部
と、被演算数の指数を2で除した値を求めて出力する除
算部と、この除算部の出力に1を加えて出力する加算部
と、被演算数の指数が偶数である場合に前記第1の変換
表記憶部の出力の仮数部と前記除算部の出力の指数部と
を合わせた正規化浮動小数点数を演算結果として出力
し、被演算数の指数が奇数である場合に前記第2の変換
表記憶部の出力の仮数部と前記加算部の出力の指数部と
を合わせた正規化浮動小数点数を演算結果として出力す
る演算結果選択部とを有することを特徴とする平方根演
算装置。
2. A square root arithmetic unit for calculating a square root of a normalized floating-point number having a radix of N as a power of 2 in a conversion unit for inputting a mantissa of an operand and outputting a square root of the value. A first conversion table storage unit for storing a table, a second conversion table storage unit for storing a conversion table for inputting a mantissa of an operand and outputting a square root of a value obtained by dividing the value by N; A dividing unit for calculating and outputting a value obtained by dividing an exponent of the operand by 2; an adding unit for adding 1 to the output of the dividing unit and outputting the result; and a first unit when the exponent of the operand is even. And outputs a normalized floating-point number obtained by adding the mantissa part of the output of the conversion table storage unit and the exponent part of the output of the division unit as an operation result. When the exponent of the operand is an odd number, the second Normalized floating-point combining the mantissa part of the output of the conversion table storage unit and the exponent part of the output of the addition unit A calculation result selection unit for outputting a number of points as a calculation result.
JP41101590A 1990-12-17 1990-12-17 Square root arithmetic unit Expired - Fee Related JP2699658B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP41101590A JP2699658B2 (en) 1990-12-17 1990-12-17 Square root arithmetic unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP41101590A JP2699658B2 (en) 1990-12-17 1990-12-17 Square root arithmetic unit

Publications (2)

Publication Number Publication Date
JPH04216127A JPH04216127A (en) 1992-08-06
JP2699658B2 true JP2699658B2 (en) 1998-01-19

Family

ID=18520089

Family Applications (1)

Application Number Title Priority Date Filing Date
JP41101590A Expired - Fee Related JP2699658B2 (en) 1990-12-17 1990-12-17 Square root arithmetic unit

Country Status (1)

Country Link
JP (1) JP2699658B2 (en)

Also Published As

Publication number Publication date
JPH04216127A (en) 1992-08-06

Similar Documents

Publication Publication Date Title
US6055555A (en) Interface for performing parallel arithmetic and round operations
US7395304B2 (en) Method and apparatus for performing single-cycle addition or subtraction and comparison in redundant form arithmetic
USRE39385E1 (en) Method and apparatus for performing mathematical functions using polynomial approximation and a rectangular aspect ratio multiplier
US5212661A (en) Apparatus for performing floating point arithmetic operation and rounding the result thereof
JPH0612229A (en) Multiplication and accumulation circuit
JPS6347874A (en) Arithmetic unit
JP4274633B2 (en) Power arithmetic unit
JPH05134851A (en) Multiplying circuit output system
JPS60140422A (en) Arithmetic processing unit
US20230086090A1 (en) Methods and Apparatus for Quotient Digit Recoding in a High-Performance Arithmetic Unit
JP6646350B2 (en) Model calculation unit for calculating a function model based on data using data of various numerical formats, and control device
JP2699658B2 (en) Square root arithmetic unit
JPH01290035A (en) Rounding method and apparatus for high speed multiplier
JPH086766A (en) Sine and cosine arithmetic device
JPS62197868A (en) Linear approximation conversion circuit for pipeline construction
JPH08504046A (en) Device for converting a floating point binary number to a logarithm in binary form and vice versa
KR20010067226A (en) Interpolation method and apparatus
JP2797773B2 (en) Reciprocal arithmetic unit
JP2518532B2 (en) Subtractor shift type divider
JPH0831024B2 (en) Arithmetic processor
JPH04235629A (en) Square root arithmetic unit
JP3517162B2 (en) Division and square root arithmetic unit
JPH0251732A (en) Floating point computing element
JPS63254525A (en) Dividing device
JPH0322025A (en) Exponential function arithmetic unit

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees