JPS6286434A - Division system - Google Patents

Division system

Info

Publication number
JPS6286434A
JPS6286434A JP60226812A JP22681285A JPS6286434A JP S6286434 A JPS6286434 A JP S6286434A JP 60226812 A JP60226812 A JP 60226812A JP 22681285 A JP22681285 A JP 22681285A JP S6286434 A JPS6286434 A JP S6286434A
Authority
JP
Japan
Prior art keywords
dividend
updated
divisor
update
exponent part
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.)
Granted
Application number
JP60226812A
Other languages
Japanese (ja)
Other versions
JPH0419571B2 (en
Inventor
Masao Iida
飯田 政雄
Toshio Jiyufuku
寿福 利夫
Akira Nomura
野村 彰
Giichi Mori
森 義一
Masaki Kobayashi
正樹 小林
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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP60226812A priority Critical patent/JPS6286434A/en
Publication of JPS6286434A publication Critical patent/JPS6286434A/en
Publication of JPH0419571B2 publication Critical patent/JPH0419571B2/ja
Granted legal-status Critical Current

Links

Abstract

PURPOSE:To reduce an operating time by applying updating operation sequentially by the number of times obtained by the 3rd step sequentially and using an updated dividend obtained finally as a quotient to reduce the number of arithmetic steps. CONSTITUTION:In the 3rd step, based on the data word length of a mantissa part of a divider (B0) or a dividend (A0), the number of times (m) of the updating operation executed in the next 4th step. In the 4th step, m-time of updating operation is applied sequentially to the dividend (A0'') revised by the 2nd step and the updated dividend (Am=Am-1.Sm-1+Am-1) obtained finally is used as a quotient. Among the m-time updating operation executed in the 4th step, the 1st updating operation a product (A0''S0) obtained by multiplying the (A0'') updated at the 2nd step by the initial value (S0) of the convergent coefficient, and the result is added with the dividend (A0''), then the sum (A0''S0+A0'') is obtained, then it is used as the 1st updated dividend. Thus, the division processing is quickened by the remarkable reduction in the number of arithmetic steps and the further reduction of the operating time.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は除算方式に関し、更に詳細には、浮動小数点演
算形式の乗算回路及びη−術演算回路を備えた除算装置
における収束型除算方式に関する。
Detailed Description of the Invention (Industrial Application Field) The present invention relates to a division method, and more particularly, to a convergent division method in a division device equipped with a floating-point arithmetic multiplication circuit and an η-arithmetic operation circuit. .

(従来の技術) コンピュータによる除算方式として収束型除算方式があ
る。この方式は乗算的除算方式に分類され、乗算と論理
が共有できかつ高速化が可能であるので大形コンピュー
タにおいても採用されている。その原理は簡単に述べる
と、被除数と除数を小数の分子と分母とみなし、分数の
分母が1に近づく1で分子と分母に同じ収束係数を乗じ
ていき、最終的な分子を、求める商とするものである。
(Prior Art) There is a convergent division method as a division method by a computer. This method is classified as a multiplicative division method, and is also used in large-scale computers because it can share the logic with multiplication and can increase speed. Simply stated, the dividend and divisor are considered to be the numerator and denominator of a decimal number, and the numerator and denominator are multiplied by the same convergence coefficient by 1, where the denominator of the fraction approaches 1, and the final numerator is the desired quotient. It is something to do.

この方式は例えばカイ ワンプ(Kaj Wang)著
、堀越彌他訳「コンピータの高速演算方式」近代科学社
(+8和55年9月1日)p、251〜254 K示さ
れている。
This method is shown, for example, in ``High-speed Computing Method for Computers'' by Kaj Wang, translated by Yasushi Horikoshi et al., Kindai Kagakusha (September 1, 1995), p. 251-254K.

一ヒ記文献に示されている従来の収束型除算方式につい
て第3図の演算ブロック図を用いて説明する。ここでは
、正規化されている正の数N。とり。
The conventional convergent division method shown in the above document will be explained using the calculation block diagram shown in FIG. Here, a positive number N that is being normalized. bird.

とをそれぞれ被除数及び除数として除数値Qxを求める
ものとする。No、Doは例えば2進数表現では0.5
≦No<1.o5≦Doく1となる。QX +No、D
oの関係は式(1)で表される。
Let us calculate the divisor value Qx with and as the dividend and divisor, respectively. For example, No and Do are 0.5 in binary representation.
≦No<1. o5≦Doku1. QX +No, D
The relationship between o is expressed by equation (1).

Qx = No/Do・(1) 先ず、収束係数の初期値R6を次の式(2)より求める
(ステップΦp)。
Qx = No/Do.(1) First, the initial value R6 of the convergence coefficient is obtained from the following equation (2) (step Φp).

R=1−D。R=1-D.

O・・・(2) 次に、初期値R6を用いて被除数N。と除数り。の第1
回目の更新を行なう(ステップ■、O)。こことで被除
数及び除数の更新の基本式をそれぞれ(3)式及び(4
)式に示す。なお、N、は第1回目の更新の被除数、D
iは第i回目の更新の除数、Riけ第i回目の更新の収
束係数、i=o 、 I 、・・・とする。
O...(2) Next, the dividend N is calculated using the initial value R6. and the divisor. the first of
The second update is performed (steps ■, O). Here, the basic formulas for updating the dividend and divisor are equations (3) and (4), respectively.
) is shown in the formula. Note that N is the dividend of the first update, and D
Let i be the divisor of the i-th update, Ri multiplied by the convergence coefficient of the i-th update, and i=o, I, .

NH−R4十 N1 →N1+1          
      ・・・(3)Di”Rj +Df→DN+
        ・・・(4)今i = Oであるので
、第1回目の更新の被除数N1及び除数D1が(3)式
及び(4)式に基づいて求められる。すなわちN。−R
o十N。よりN1が、Do−Ro十DoよりDlがそれ
ぞれ積和演算により求められる。
NH-R40 N1 →N1+1
...(3) Di"Rj +Df→DN+
(4) Since i = O now, the dividend N1 and divisor D1 of the first update are found based on equations (3) and (4). That is, N. -R
o ten N. N1 is obtained from Do-Ro+Do, and Dl is obtained by sum-of-products calculation.

次に、収束係数の第1回目の更新を行なう(ステップ[
相])。ここで収束係数の更新の基本式を(5)式に示
す。
Next, perform the first update of the convergence coefficient (step [
phase]). Here, the basic equation for updating the convergence coefficient is shown in equation (5).

1 −  I)j++  →Ri+i        
            °−(5)第1回目の更新の
被除数N1.除数D1.収束係数R1が求すると、これ
らの値を用いて(3) 、 (4) 、 (5)の各式
に基づき第2回目の更新の被除数N2 +除数D2.収
束係数R2を求める(ステップ■→[相]→O→[相]
→■)。そしてこのような被除数及び除数の更新演算と
収束係数の更新演算を、除数の更新値Di+1が該積和
演算に用いる乗算装置の精度内でDi+1→1となるま
ですなわち〔(1)式の分母更新値〕→1となるまで続
け(ステップ@→@→O−+[相]→■のルーチン)、
Di−t−1→1となったときの〔(1)式の分子更新
値〕を商とすることにより除算を完了させていた(ステ
ップ@)。
1 − I)j++ →Ri+i
°−(5) First update dividend N1. Divisor D1. Once the convergence coefficient R1 is determined, using these values, the second update dividend N2 + divisor D2. Find the convergence coefficient R2 (step ■ → [phase] → O → [phase]
→■). Then, such updating calculations of the dividend and divisor and updating calculations of the convergence coefficient are performed until the updated value Di+1 of the divisor becomes Di+1 → 1 within the precision of the multiplication device used for the product-sum calculation, that is, [the denominator of equation (1)] Update value] → Continue until it becomes 1 (step @ → @ → O- + [phase] → ■ routine),
The division is completed by using [the updated value of the numerator in equation (1)] when Di-t-1→1 as the quotient (step @).

(発明が解決しようとする問題点) しかしながら、以上述べた従来の収束型除算方式では、
除数の更新値Di+1が定数1に等しいか否かの判定を
行なう場合に、演算装置の精度が有限であるため、Di
+1 ”” 1+ΔQ(ΔQは判定誤差)に基づいて判
定を行なっていた。ところが判定誤差ΔQは入力データ
によって異なシ、更新演算回数iが一定しないという問
題点があった。また、最終的に求める商は、被除数の更
新値に相当するのに対して、更新演算が被除数、除数及
び収束係数という3種類もあり、演算ステップが増大し
、演算時間が増えるという欠点があった。
(Problem to be solved by the invention) However, in the conventional convergent division method described above,
When determining whether the updated value Di+1 of the divisor is equal to the constant 1, since the accuracy of the arithmetic device is finite, Di
Judgment was made based on +1 "" 1+ΔQ (ΔQ is the judgment error). However, there are problems in that the judgment error ΔQ varies depending on the input data, and the number of update operations i is not constant. Furthermore, while the final quotient corresponds to the updated value of the dividend, there are three types of update operations: the dividend, the divisor, and the convergence coefficient, which has the drawback of increasing the number of calculation steps and the calculation time. Ta.

従って、本発明は以上述べた従来の収束型除算方式にお
ける演算回数が一定しないという問題点と、演算ステッ
プ数が多いという欠点を除去し、入力のデータ幅から定
まる最小限の演算ステップ数で除算を行なう収束型除算
方式を提供することを目的とする。
Therefore, the present invention eliminates the problem that the number of operations is not constant and the disadvantage that the number of operation steps is large in the conventional convergent division method described above, and divides by the minimum number of operation steps determined from the input data width. The purpose of this paper is to provide a convergent division method that performs the following.

(問題点を解決するだめの手段) 本発明は、浮動小数点表示のデータの乗算を行なう乗算
回路と、浮動小数点表示のデータの加減算を行なう算術
演算回路とを備え、浮動小数点表示された除数(BO)
及び被除数(AO)を用いて除算を行なう除算装置にお
ける除算方式に係るもので、前記従来技術の問題点を解
決するために、次の4つのステップを具備するように構
成した。
(Means for Solving the Problem) The present invention includes a multiplication circuit that multiplies floating point data and an arithmetic operation circuit that adds and subtracts floating point data. BO)
This invention relates to a division method in a division device that performs division using a dividend (AO) and a dividend (AO), and is configured to include the following four steps in order to solve the problems of the prior art.

第1のステップでは、被除数(AO)の指数部から除数
(BO)の指数部を減算して、被除数(AO)の指数部
のみを更新した被除数(Ao′)を求めるとともに、除
数(Bo)の指数部のみをリセット更新した除数(BO
’)を求める。
In the first step, the exponent part of the divisor (BO) is subtracted from the exponent part of the dividend (AO) to obtain the dividend (Ao') in which only the exponent part of the dividend (AO) has been updated. The divisor (BO
').

第2のステップでは、該指数部のみを更新した被除数(
AO’)K定数(例えば4/3)を乗算して更新被除数
(A、1/ )を求め、該指数部のみを更新した除数(
go’)VC定数(例えば4/3)を乗算した後、さら
に他の定数(例えば1)から減算を行なったもの(1,
−−HB。′)を収束係数の初期値(XO)とする。
In the second step, the dividend (
AO') K constant (for example, 4/3) is multiplied to obtain the updated dividend (A, 1/), and the divisor (A, 1/) with only the exponent part updated is
go') Multiplyed by a VC constant (for example 4/3) and then subtracted from another constant (for example 1) (1,
--HB. ') is the initial value (XO) of the convergence coefficient.

第3のステップでは、除数(BO)まだは被除数(AO
)の仮数部のデータ語長に基づいて、次の第4のステッ
プで実行される更新演算の回数(m)を求める。
In the third step, the divisor (BO) is still the dividend (AO
), the number of update operations (m) to be executed in the next fourth step is determined based on the data word length of the mantissa part.

第4のステップでは、前記第2のステップで更新した被
除数(Ao/l )に対してm回の更新演算が逐次節さ
れ、最終的に得られた更新被除数(Am=Arn−4’
5m−1+Am−+ )を商とする。コノ第4のステッ
プで行なわれるm回の更新演算のうち、第1回目の更新
演算は、前記第2のステップで更新した被除数(AO”
)と収束係数の初期値(So)との乗算による積(Ao
″So)と、該更新被除数(AO”)とを加算した和(
Ao″So+Ao″)を第1回目の更新被除数(A1)
とする。
In the fourth step, m update operations are sequentially performed on the dividend (Ao/l) updated in the second step, and the updated dividend (Am=Arn-4') is finally obtained.
5m-1+Am-+) is the quotient. Of the m update operations performed in the fourth step, the first update operation is the dividend (AO”) updated in the second step.
) by the initial value of the convergence coefficient (So) (Ao
``So)'' and the updated dividend (AO'') (
Ao″So+Ao″) is the first updated dividend (A1)
shall be.

第2回目以降は、例えば、第1番目の更新演算では、直
前回の更新演算より求めた更新被除数(Ai−i)と直
前回の収束係数(Si−+)を自乗した収束係数(5i
−1=si−2)との乗算による( A1−+・Sl−
+ )と、直前回の更新演算より求めた更新被除数(A
i−1)とを加算した和(Ai−+・5i−1十A4−
+)を新たな更新被除数(At)として求める。
From the second time onwards, for example, in the first update calculation, the convergence coefficient (5i
-1=si-2) (A1-+・Sl-
+ ) and the updated dividend (A
i-1) and the sum (Ai-+・5i-10A4-
+) as the new updated dividend (At).

(作用) 第1のステップの処理により、指数部の処理を終了させ
ているので、以後は、浮動小数点データでの計算処理で
はあるが、従来の固定小数点処理が仮数部処理に適用で
きる。
(Operation) Since the processing of the exponent part is completed by the processing of the first step, conventional fixed-point processing can be applied to the mantissa processing from now on, although the calculation processing is performed using floating-point data.

第2のステップでは、被除数と除数の仮数部値域を原点
対称と々るように変数変換を行なっておシ、収束演算回
数が必要最低限におさえられる。
In the second step, variable conversion is performed so that the mantissa ranges of the dividend and divisor are symmetrical about the origin, and the number of convergence operations can be kept to the minimum necessary.

第3のステップでは、第2ステツプで更新された被除数
に対して逐次行なわれる更新演算の回数が求められるが
、この回数が除数または被除数の仮数部データ語長より
求めることができるので、従来方式のように、除数の更
新演算を逐次行なってその都度それが定数1に等しいか
どうかの判定をすることが不要になるとともに除数の更
新値を求める手順自体が省略できるようになる。
In the third step, the number of update operations that are performed sequentially on the dividend updated in the second step is determined, but since this number can be determined from the divisor or the mantissa data word length of the dividend, the conventional method As shown in FIG. 2, it becomes unnecessary to perform the divisor update operation one after another and determine whether it is equal to the constant 1 each time, and the procedure for determining the divisor update value itself can be omitted.

第4のステップでは、第2ステツプで更新された被除数
に対して、第3のステップにより求めた回数だけの更新
演算を行なうだけで、求めるべき商が得られることによ
り、演算ステップ数を低減できるとともに演算時間の短
縮が可能となる。
In the fourth step, the number of calculation steps can be reduced by simply performing the update operation on the dividend updated in the second step the number of times determined in the third step to obtain the quotient to be determined. At the same time, calculation time can be shortened.

(実施例) 以下本発明の実施例の除算方式を第1図及び第2図を参
照して説明する。第1図は基本的演算内容を示すブロッ
ク図であり、第2図は本実施例の演算で使用される浮動
小数点表示のデータ形式を示す図である。
(Embodiment) A division method according to an embodiment of the present invention will be described below with reference to FIGS. 1 and 2. FIG. 1 is a block diagram showing the basic calculation contents, and FIG. 2 is a diagram showing the data format of floating point representation used in the calculation of this embodiment.

ここでは、浮動小数点表示で正規化されているr (1 データA。とB。をそれぞれ被除数及び除数として除算
値Q2を求めるものとする。但しB。〉0とする。AO
+ Bo + QINの関係は式(6)で表される。
Here, we will calculate the division value Q2 using r (1 data A. and B. as the dividend and divisor, respectively, which are normalized in floating point representation. However, it is assumed that B.>0.AO
The relationship between + Bo + QIN is expressed by equation (6).

QF −Ao / Bo            −(
6)本実施例の除算演算の原理は収束型アルコゞリズム
に基づくものであり、先ずその基本的演算内容の概要に
ついて述べる。本実施例の除算演算では最初に指数部の
処理を行なう。すなわち、被除数Aoの指数部から除数
B。の指数部を減算して被除数A。の指数部のみを更新
した更新値A。′を求め、該減算後、除数B。の指数部
のみをリセット更新た更新値B。′を求める。その後、
更新された除数と被除数の仮数部に対する値域の変換を
一次式で行ない(Ao// 、 Bo// )、以後の
収束演算の収束回数を早める。該変換処理を受けだ除数
B。′の逆数漸近値を乗算する係数として被除数A。′
に逐次乗算し、被除数の更新演算を所定回数繰返し、最
終の被除数の更新値を商とする。ここで、実行される更
新演算の回数は、除数B。′に」二組乗算する係数をそ
の回数外逐次乗算すると、乗算結果→1となるように設
定するものである。
QF −Ao / Bo −(
6) The principle of the division operation in this embodiment is based on convergent algorithm, and first an overview of the basic operation contents will be described. In the division operation of this embodiment, the exponent part is processed first. That is, the divisor B is obtained from the exponent part of the dividend Ao. Dividend A is obtained by subtracting the exponent part of . An updated value A in which only the exponent part of is updated. ′ is obtained, and after the subtraction, the divisor B is obtained. Updated value B that resets and updates only the exponent part of . Find ′. after that,
Range conversion for the mantissa parts of the updated divisor and dividend is performed using a linear expression (Ao//, Bo//), thereby speeding up the number of convergence operations in subsequent convergence operations. Divisor B that receives the conversion process. Dividend A as a coefficient to be multiplied by the reciprocal asymptotic value of '. ′
is successively multiplied by , the dividend update operation is repeated a predetermined number of times, and the final updated value of the dividend is taken as the quotient. Here, the number of update operations to be executed is the divisor B. The setting is such that when two sets of coefficients are sequentially multiplied by '', the multiplication result becomes 1.

」二組更新演算の必要最低限の回数の求め方を以下に述
べる。まず、式(6)の演算に対して、次の無限乗積に
よる変換公式(式(7))を適用することを考える。
” How to determine the minimum number of two-set update operations is described below. First, consider applying the following transformation formula (formula (7)) using an infinite product to the calculation of formula (6).

この式(7)を式(6)にそのまま適用すると、となる
が、除数B。の仮数部をす。とすると、0.5 < b
。< 1          (9)であるため、変数
Xの値域は、Bo′の指数部がゼロであるから、 o (x < 0.5          01となっ
てしまい、ゼロ点非対称となり、式(7)の収束性が良
くない状態となる。このだめ、変数B。′を一次式によ
る変換でゼロ点対称の値域をもつ変数Sへ変換すること
を考える。
If we apply this equation (7) directly to equation (6), we get the divisor B. The mantissa of Then, 0.5 < b
. < 1 (9), so the range of the variable In this case, consider converting the variable B.' into a variable S having a range symmetric at the zero point by conversion using a linear equation.

S=1−、Bo’ とおくと、Bo′の範囲が0.5 < B。′〈1であ
るため、 となり、このSを用いれば、(6)式は、となって、式
(7)の変換公式の適用が最も収束速度の早い状態で行
なえることとなる。
If we set S=1-, Bo', then the range of Bo' is 0.5 < B. ′<1, so if S is used, equation (6) becomes, and the conversion formula of equation (7) can be applied with the fastest convergence speed.

一方、仮数部データ語長は、第2図に示すように、Mb
itという有限値であるため、Mbitの幅で弐〇のの
括弧の乗算を有限の回数行なえば、J+ I tで表現
できる限界値になる。そこで式0■の無限乗積を逐次展
開し、第m回までの乗算値をQmとすると、弐α→は、
次の有限級数で近似できる。
On the other hand, the mantissa data word length is Mb
Since it is a finite value, it becomes a limit value that can be expressed as J+It by multiplying the parentheses of 20 by a finite number of times with a width of Mbit. Therefore, if we sequentially expand the infinite product of formula 0■ and let Qm be the multiplication value up to the mth time, 2α→ becomes
It can be approximated by the following finite series.

このため、式0りの無限乗積と弐〇3の有限級数との差
であるΔQmを ΔQm−IQF  Qm l          (J
4とすると、式(1Φの最大値ΔQm(MAX)が何回
までの乗算でMbitの範囲外となるかを求めれば良い
Therefore, ΔQm, which is the difference between the infinite product of formula 0 and the finite series of 203, is calculated as ΔQm−IQF Qm l (J
4, it is only necessary to find out how many times the maximum value ΔQm(MAX) of equation (1Φ) is multiplied to be outside the range of Mbit.

ΔQm(MAX)は、lAo’l→1.X→1/3の時
に生じ、他方、Ml)I tの幅で表わせる2進数の数
値限界を2”−111とすると、ΔQm(MAX)は、
となるので、Mb i tの語長精度に対してpは、p
≧(Ml2 ) (log32 )+1     04
となり、式(13のtが、の下限値(Ml 2X/−o
g32)→−1に等しくなる項数mが求める値となる。
ΔQm(MAX) is lAo'l→1. This occurs when X → 1/3, and on the other hand, if the numerical limit of the binary number that can be expressed by the width of Ml)It is 2"-111, then ΔQm(MAX) is
Therefore, p for the word length precision of Mb i t is p
≧(Ml2) (log32)+1 04
Then, t in equation (13) is the lower limit value (Ml 2X/-o
g32) → The number of terms m that is equal to −1 becomes the value to be sought.

従って、2′1″−1,=(Ml2) (Aog32)
+1     αのより、 m = Aog2((Ml2)(log32)+2) 
      (IQとなり、例えば、仮数部がskl+
t(符号) + 151)It(データ)のデータ形式
では、M=15よりm−3゜7≠4ステツプと々る。
Therefore, 2′1″−1,=(Ml2) (Aog32)
+1 From α, m = Aog2((Ml2)(log32)+2)
(IQ, for example, the mantissa is skl+
In the data format of t (sign) + 151) It (data), it takes m-3°7≠4 steps since M=15.

また、式0→は収束級数であるため、Xが0に近い場合
、m回以下の収束係数の乗算で収束するが、収束後も係
数乗算を行なってもMbitの範囲外であ新演算の演算
回数mが入力データの仮数部データ語長Mbthtから
決定できる。
In addition, since the formula 0→ is a convergence series, if The number of operations m can be determined from the mantissa data word length Mbtht of the input data.

次に、本実施例による除算演算の具体的手順を第1図に
基づき述べる。
Next, the specific procedure of the division operation according to this embodiment will be described based on FIG.

先ず、前述したように指数部の処理を行々い、被除数A
。の指数部のみを更新した被除数A。′と、ヒ 除数B。の指数部のみを更新(す該ノド)シた除数Bo
′ とを求める4(ステップ■)。
First, the exponent part is processed as described above, and the dividend A is
. Dividend A with only the exponent part updated. ′ and Hi divisor B. Update only the exponent part of Bo
′ 4 (Step ■).

次に、該更新除数B。′を用いて、収束係数の初期値X
。を次の(1◆式から求める(ステップ■)。
Next, update the divisor B. ′, the initial value of the convergence coefficient
. is obtained from the following (1◆formula) (step ■).

乗算i〜て値域の変換を行なった被除数A。′とする(
ステップ■)。
Dividend A whose range has been converted by multiplying i. ′ (
Step ■).

該S。を用いて、更新被除数A。′の更新を次の(イ)
式の積和演算(乗算及び加算)により行なう(ステップ
■)。
The S. Update dividend A using . ′ update as follows (a)
This is performed by the product-sum operation (multiplication and addition) of the expression (step ■).

AO” SO十A。−A1e;!fJ)次に、収束係数
S。の更新演算をQI)式の乗算により行なう(ステッ
プ■)。
AO"SO1A.-A1e;!fJ) Next, the convergence coefficient S. is updated by multiplying the equation QI) (step 2).

5o−81e1) IJ下、この被除数の更新演算と収束係数の更新演算を
m回行なう(ステップ■→■→■)。このmの値は、」
二連した方法で得だものを用いる。すると、最終回、即
ち、第m回目の積和演算Am−1・sm I Am−1
= Am         eAの演算結果Amが求め
る商となって除算が完了する。
5o-81e1) Under IJ, the update calculation of the dividend and the update calculation of the convergence coefficient are performed m times (steps ■→■→■). The value of this m is
Use what you have in a two-pronged way. Then, the final time, that is, the m-th product-sum operation Am-1 sm I Am-1
= Am The calculation result Am of eA becomes the desired quotient and the division is completed.

以」二、述べた例では、式(6)の条件として、除数B
oが正に限定されているが、該除数B。が負の場■ 合には、除数及被除数の両者を極性反転してから、上記
と同様の演算処理を行なえば良く、何lら問題とならな
い。
2. In the example mentioned above, as a condition of equation (6), the divisor B
o is positively limited, but the divisor B. If is negative, the polarity of both the divisor and the dividend can be inverted, and then the same arithmetic processing as described above can be performed, and no problem will arise.

さらに、剰余の取扱いは、除算完了後、次の式(イ)に
基づく乗算九算の演算を行なって求めれば良い。
Furthermore, the remainder may be handled by performing a multiplication operation based on the following equation (a) after the division is completed.

被除数A。−除数B。×商−剰余     (ハ)(発
明の効果) 本発明によれば、除数または被除数の仮数部のデータ語
長と有限語長の演算精度の点から必要最小限の更新演算
の回数を求めるようにしたので、従来の収束型除算方式
で必要とされていた除数の更新演算が省略できるように
なり、演算ステップ数の大幅な低減及び演算時間のより
一層の短縮により除算処理の高速化が可能となる利点が
ある。
Dividend A. -Divisor B. × Quotient - Remainder (c) (Effects of the Invention) According to the present invention, the minimum number of update operations required is determined from the data word length of the mantissa of the divisor or dividend and the calculation accuracy of the finite word length. As a result, the divisor update operation required in conventional convergent division methods can be omitted, and the number of calculation steps and calculation time are further reduced, making it possible to speed up the division process. There are some advantages.

また本発明の除算方式を適用した除算装置では乗算回路
及び算術演算回路を用いるだけで除算が実行できるので
、特別な除算専用の演算部を設ける必要がなく、装置の
小型化、経済化を図れる利点がある。
In addition, in the division device to which the division method of the present invention is applied, division can be performed simply by using a multiplication circuit and an arithmetic operation circuit, so there is no need to provide a special calculation section dedicated to division, and the device can be made smaller and more economical. There are advantages.

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

第1図は本発明の実施例の主要な演算内容を示すブロッ
ク図、第2図は上記実施例の演算で使用される浮動小数
点表示のデータ形式を示す図、第3図は従来方式の演算
内容を示すブロック図である。
Fig. 1 is a block diagram showing the main calculation contents of the embodiment of the present invention, Fig. 2 is a diagram showing the data format of floating point representation used in the calculation of the above embodiment, and Fig. 3 is a diagram of the conventional calculation method. It is a block diagram showing the contents.

Claims (1)

【特許請求の範囲】 浮動小数点表示のデータの乗算を行なう乗算回路と、浮
動小数点表示のデータの加減算を行なう算術演算回路と
を備え、浮動小数点表示された除数及び被除数を用いて
除算を行なう除算装置における除算方式において、 前記被除数の指数部から前記除数の指数部を減算して前
記被除数の指数部のみを更新した被除数を求めるととも
に、前記除数の指数部のみをリセット更新した除数を求
める第1のステップと、前記指数部のみを更新した被除
数に定数を乗算して更新被除数を求め、前記指数部のみ
をリセット更新した除数に定数を乗算した後、さらに他
の定数から減算を行なったものを収束係数の初期値とす
る第2のステップと、 前記除数または被除数の仮数部データ語長に基づいて、
前記第2のステップで更新した被除数に対して施す更新
演算の回数を求める第3のステップと、 第1回目の更新演算は、前記第2のステップで更新した
被除数と前記第2のステップで求めた収束係数の初期値
との乗算による積と、前記第2のステップで更新した被
除数とを加算した和を第1回目の更新被除数として求め
ることにより行ない、第2回目以降の更新演算は、直前
回の更新演算より求めた更新被除数と直前回の収束係数
を自乗した更新収束係数との乗算による積と、直前回の
更新演算より求めた更新被除数とを加算した和を新たな
更新被除数として求めることにより行ない、上記更新演
算を前記第3のステップで求めた回数だけ逐次行ない、
最終的に得られた更新被除数を商とする第4のステップ
と、 を具備することを特徴とする除算方式。
[Scope of Claims] A division operation that performs division using a divisor and a dividend expressed in floating point numbers, comprising a multiplication circuit that multiplies data expressed in floating point numbers, and an arithmetic operation circuit that performs addition and subtraction of data expressed in floating point numbers. In the division method in the device, the exponent part of the divisor is subtracted from the exponent part of the dividend to obtain a dividend in which only the exponent part of the dividend is updated, and the first step is to obtain a divisor in which only the exponent part of the divisor is updated. step, multiplying the dividend with only the exponent part updated by a constant to obtain an updated dividend, resetting only the exponent part, multiplying the updated divisor by a constant, and then subtracting it from another constant. a second step of setting the convergence coefficient as an initial value, and based on the mantissa data word length of the divisor or dividend,
A third step of calculating the number of update operations to be performed on the dividend updated in the second step, and the first update operation is performed using the dividend updated in the second step and This is done by calculating the sum of the product multiplied by the initial value of the convergence coefficient and the dividend updated in the second step as the first updated dividend. The sum of the product obtained by multiplying the updated dividend obtained from the previous update calculation by the update convergence coefficient obtained by squaring the convergence coefficient of the previous time, and the updated dividend obtained from the previous update calculation is calculated as the new updated dividend. and performing the update operation the number of times determined in the third step,
A division method characterized by comprising: a fourth step in which the updated dividend finally obtained is used as a quotient;
JP60226812A 1985-10-14 1985-10-14 Division system Granted JPS6286434A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60226812A JPS6286434A (en) 1985-10-14 1985-10-14 Division system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60226812A JPS6286434A (en) 1985-10-14 1985-10-14 Division system

Publications (2)

Publication Number Publication Date
JPS6286434A true JPS6286434A (en) 1987-04-20
JPH0419571B2 JPH0419571B2 (en) 1992-03-30

Family

ID=16850989

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60226812A Granted JPS6286434A (en) 1985-10-14 1985-10-14 Division system

Country Status (1)

Country Link
JP (1) JPS6286434A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5999962A (en) * 1996-10-04 1999-12-07 Mitsubishi Denki Kabushiki Kaisha Divider which iteratively multiplies divisor and dividend by multipliers generated from the divisors to compute the intermediate divisors and quotients

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59116852A (en) * 1982-12-23 1984-07-05 Matsushita Electric Ind Co Ltd High-speed divider

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59116852A (en) * 1982-12-23 1984-07-05 Matsushita Electric Ind Co Ltd High-speed divider

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5999962A (en) * 1996-10-04 1999-12-07 Mitsubishi Denki Kabushiki Kaisha Divider which iteratively multiplies divisor and dividend by multipliers generated from the divisors to compute the intermediate divisors and quotients

Also Published As

Publication number Publication date
JPH0419571B2 (en) 1992-03-30

Similar Documents

Publication Publication Date Title
US5220524A (en) Machine method to perform newton iterations for reciprocals
US5157624A (en) Machine method to perform newton iterations for reciprocal square roots
US5206823A (en) Apparatus to perform Newton iterations for reciprocal and reciprocal square root
JPH0235348B2 (en)
Ku et al. Computing polynomial resultants: Bezout's determinant vs. Collins' reduced PRS algorithm
JP2822399B2 (en) Logarithmic function arithmetic unit
JPS6286434A (en) Division system
JPH01209530A (en) Arithmetic unit for exponent function
JPH0519170B2 (en)
US5377134A (en) Leading constant eliminator for extended precision in pipelined division
JPS6022371B2 (en) Digital differential analyzer
JPH03192429A (en) Square root arithmetic unit
JPH0251732A (en) Floating point computing element
JPS61201328A (en) Division system
JPS6365524A (en) Arithmetic unit for rational number
JP2972326B2 (en) Square root calculator
JPH02153412A (en) Inverse trigonometric function arithmetic unit
JP2508286B2 (en) Square root calculator
JPS63254525A (en) Dividing device
JPS62131334A (en) Division device
JPS6079429A (en) Floating point computing element
JPH08123785A (en) Method and device for preparing approximate calculation table and method and device for approximate calculation
JPH0325809B2 (en)
JPS6280764A (en) Floating point arithmetic unit for sum of product
JPS62168228A (en) Product/sum arithmetic unit with floating point function

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term