JP2665067B2 - Floating point adder / subtracter - Google Patents

Floating point adder / subtracter

Info

Publication number
JP2665067B2
JP2665067B2 JP3065535A JP6553591A JP2665067B2 JP 2665067 B2 JP2665067 B2 JP 2665067B2 JP 3065535 A JP3065535 A JP 3065535A JP 6553591 A JP6553591 A JP 6553591A JP 2665067 B2 JP2665067 B2 JP 2665067B2
Authority
JP
Japan
Prior art keywords
normalization
normalized
bits
shifter
adder
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 - Lifetime
Application number
JP3065535A
Other languages
Japanese (ja)
Other versions
JPH04278630A (en
Inventor
恵子 若林
Original Assignee
甲府日本電気株式会社
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 甲府日本電気株式会社 filed Critical 甲府日本電気株式会社
Priority to JP3065535A priority Critical patent/JP2665067B2/en
Publication of JPH04278630A publication Critical patent/JPH04278630A/en
Application granted granted Critical
Publication of JP2665067B2 publication Critical patent/JP2665067B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

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

【0001】[0001]

【技術分野】本発明は浮動小数点加減算器に関し、特に
演算結果の正規化を行なう浮動小数点加減算器に関する
ものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a floating point adder / subtractor, and more particularly to a floating point adder / subtracter for normalizing an operation result.

【0002】[0002]

【従来技術】従来、この種の浮動小数点加減算器は、例
えば、図2のような構成で実現されている。図中21は
浮動小数点加減算器、22は浮動小数点加減算器全体を
制御する制御回路である。
2. Description of the Related Art Conventionally, this kind of floating-point adder / subtractor is realized by, for example, a configuration as shown in FIG. In the figure, reference numeral 21 denotes a floating point adder / subtracter, and reference numeral 22 denotes a control circuit for controlling the entire floating point adder / subtractor.

【0003】主加減算器7では、2つのオペランド1,
2(オペランドa,オペランドbと呼ぶ)の加減算を行
なう。そして、図2では、主加減算器7の出力が正規形
でない場合には正規化した結果を最終結果としてリザル
トレジスタ18に格納する。
In the main adder / subtractor 7, two operands 1,
2 (referred to as operand a and operand b). In FIG. 2, when the output of the main adder / subtractor 7 is not in the normal form, the result of the normalization is stored in the result register 18 as the final result.

【0004】この従来例では、この正規化を第1,第2
の正規化シフタ8,9を用いて実行している。第1の正
規化シフタ8は、加減算結果の正規化が所定の正規化桁
数以内で行なえる場合に用いられ、第2の正規化シフタ
9は、加減算結果の正規化が所定の正規化桁数以内では
行なえない場合に用いられる。
In this conventional example, this normalization is performed by first and second
Are performed using the normalization shifters 8 and 9. The first normalization shifter 8 is used when the addition / subtraction result can be normalized within a predetermined number of normalization digits, and the second normalization shifter 9 is used to normalize the addition / subtraction result using a predetermined normalization digit. Used when it cannot be done within the number.

【0005】このように、2つの正規化シフタを使い分
けている理由は以下の通りである。すなわち、浮動小数
点演算器に入力されるオペランドは一般に正規形である
ことが多く、入力オペランドが共に正規形の場合には、
主加減算器7の出力は正規化不要もしくは、正規化が必
要であっても正規化桁数が少なくてすむ場合が多い。
[0005] The reason why the two normalization shifters are used properly is as follows. That is, the operands input to the floating-point arithmetic unit are generally in the normal form, and when both the input operands are in the normal form,
In many cases, the output of the main adder / subtractor 7 does not require normalization, or even if normalization is required, the number of normalized digits may be small.

【0006】従って、出現頻度が高く、演算結果から容
易に正規化桁数を求められ、かつ高速に正規化が行なえ
るケースの正規化は、第1の正規化シフタ7で行ない、
出現頻度が低く、結果から正規化桁数を求めるのが容易
でなく、かつ正規化処理に時間がかかるケースの正規化
は実行時間を延長し、第2の正規化シフタ9で行なうの
である。
Therefore, normalization in the case where the frequency of appearance is high, the number of normalized digits can be easily obtained from the operation result, and normalization can be performed at high speed is performed by the first normalization shifter 7,
In the case where the frequency of appearance is low, it is not easy to obtain the number of normalized digits from the result, and the normalization process takes a long time, the normalization is performed by extending the execution time and using the second normalization shifter 9.

【0007】なお、浮動小数点演算器21は単体で用い
られることはまずなく、他装置等と同期して用いられる
が、上述のように演算時間を可変とすると、演算時間の
延長を他部位に通知する必要がでてくる。しかし、主加
減算器7は一般にビット幅が大きく、主加減算器7の演
算結果から上記の判定を行なっていては、判定結果を得
て他部位に通知するまでに実行時間がかかりすぎてしま
う。
The floating point arithmetic unit 21 is rarely used alone, but is used in synchronization with another device. However, if the arithmetic time is made variable as described above, the extension of the arithmetic time is extended to other parts. You need to be notified. However, the main adder / subtractor 7 generally has a large bit width, and if the above determination is made based on the operation result of the main adder / subtractor 7, it takes too much execution time to obtain the determination result and notify the other parts.

【0008】そこで、第1,第2の正規化シフタ8,9
のどちらを用いるかの判定は、オペランドa,オペラン
ドbの上位判定nビットのみを用いた演算結果から以下
の様に行われる。このための演算器が、第1,第2の副
加減算器10,11である。
Therefore, the first and second normalization shifters 8 and 9
Is determined from the operation result using only the upper n bits of operand a and operand b as follows. Arithmetic units for this purpose are the first and second sub adder / subtracters 10 and 11.

【0009】第1の副加減算器10は、上位所定nビッ
トに対する下位からの桁上げがなかったものとして演算
を行ない、一方、第2の副加減算器11では、上位所定
nビットに対する下位からの桁上げがあったものとして
演算を行なう。
The first sub adder / subtracter 10 performs the operation on the assumption that there is no carry from the lower predetermined bit for the upper predetermined n bits, while the second sub adder / subtractor 11 performs the operation from the lower predetermined bit for the upper predetermined n bits. The calculation is performed assuming that a carry has occurred.

【0010】そして、第1,第2の副加減算器10,1
1の各々の結果から桁上げがなかったものとした場合、
あったものとした場合の各々について、正規化が不要な
のか、正規化が必要な場合には、第1の正規化シフタ8
で正規化するのか、あるいは第2の正規化シフタ9で正
規化するのかを第1,第2の正規化桁数判定手段12,
13で判定させる。
The first and second sub adder / subtracters 10, 1
Assuming that there was no carry from each result of 1,
If normalization is not required for each of the cases, and if normalization is required, the first normalization shifter 8
, Or the second normalization shifter 9 determines whether to perform normalization using the first and second normalized digit number determination means 12,
The determination is made at step 13.

【0011】第1,第2の正規化桁数判定手段12,1
3が各々、正規化不要もしくは、第1の正規化シフタ8
で正規化できる範囲であると判定した場合には、第1の
正規化桁数算出手段19で、主加減算器7の上位所定の
kビットから正規化桁数を求め、主加減算器7の出力
を、第1の正規化シフタ8を用いて正規化を行なった
後、演算結果選択手段17で第1の正規化シフタ8から
の出力を選択し、それをリザルトレジスタ18に格納し
て演算結果とする。
First and second normalized digit number determining means 12, 1
3 is a normalization unnecessary or a first normalization shifter 8
If it is determined that the range is a range that can be normalized, the first normalized digit number calculating means 19 obtains the number of normalized digits from the predetermined upper k bits of the main adder / subtracter 7 and outputs the output of the main adder / subtracter 7. Is normalized by using the first normalization shifter 8, the output from the first normalization shifter 8 is selected by the operation result selection means 17, the result is stored in the result register 18, and the operation result And

【0012】これに対し、第1,第2の正規化桁数判定
手段10,11のどちらか一方でも第2の正規化シフタ
9で正規化すると判断した場合には、その旨を制御回路
22に通知し、浮動小数点加減算器の演算時間を延長
し、他の部位の演算の実行を遅らせるとともに、第1の
正規化シフタ8の正規化桁数を0とし、主加減算器7の
出力をそのまま第1の正規化シフタ8を通過させたもの
を、演算結果選択手段17で選択し、それを一旦リザル
トレジスタ18に格納する。そして、リザルトレジスタ
18に格納した値を、第2の正規化シフタ9と、第2の
正規化桁数算出手段20に送る。
On the other hand, if one of the first and second normalized digit number judging means 10 and 11 judges that the normalization is performed by the second normalization shifter 9, the control circuit 22 informs the effect. To extend the operation time of the floating-point adder / subtracter, delay the execution of the operations of other parts, set the number of normalized digits of the first normalization shifter 8 to 0, and leave the output of the main adder / subtractor 7 as it is. The data that has passed through the first normalization shifter 8 is selected by the operation result selection means 17, and is temporarily stored in the result register 18. Then, the value stored in the result register 18 is sent to the second normalized shifter 9 and the second normalized digit number calculating means 20.

【0013】第2の正規化桁数算出手段20では、正規
化桁数を求めて、第2の正規化シフタ9に送る。第2の
正規化シフタ9では、第2の正規化桁数算出手段20で
求めた正規化桁数に従って正規化を行ない、その結果を
演算結果選択手段17に再び入力させる。そして、演算
結果選択手段17では、第2の正規化シフタ9の出力を
選択し、それをリザルトレジスタ18に格納して演算結
果とするのである。
The second normalized digit number calculating means 20 calculates the number of normalized digits and sends it to the second normalized shifter 9. The second normalization shifter 9 performs normalization according to the normalized number of digits obtained by the second normalized number of digits calculation means 20, and inputs the result to the calculation result selection means 17 again. Then, the operation result selecting means 17 selects the output of the second normalization shifter 9 and stores it in the result register 18 to obtain the operation result.

【0014】上述した従来の浮動小数点加減算器による
と、第1,第2の正規化桁数判定手段12,13のうち
どちらか一方でも、第2の正規化シフタ9でなければ正
規化できないと判定すれば、正規化は第2の正規化シフ
タ9で行なうことになる。これでは、実際には第1の正
規化シフタ8で正規化を行なえる場合であっても、第2
の正規化シフタ9で正規化を行なう可能性があり、それ
によって必要以上に演算の実行時間が長くなってしまう
場合があるという欠点がある。
According to the above-mentioned conventional floating point adder / subtracter, it is assumed that either one of the first and second normalized digit number determining means 12 and 13 cannot be normalized unless the second normalized shifter 9 is used. If it is determined, the normalization is performed by the second normalization shifter 9. In this case, even if the first normalization shifter 8 can actually perform normalization,
There is a possibility that the normalization may be performed by the normalization shifter 9, which may result in a longer execution time of the operation than necessary.

【0015】以下に、このような問題が生じる例を示
す。なお、前提条件として、上位所定nビットのnを6
とし、第1,第2の正規化シフタ8,9では、2進正規
化を行なうものとする。また、正規化桁数が2以内の場
合は、第1の正規化シフタ8で正規化を行ない、正規化
桁数3以上の場合は、第2の正規化シフタ9で正規化を
行なうことにする。
An example in which such a problem occurs will be described below. As a precondition, n of upper predetermined n bits is 6
It is assumed that the first and second normalization shifters 8 and 9 perform binary normalization. When the number of normalized digits is 2 or less, normalization is performed by the first normalization shifter 8, and when the number of normalized digits is 3 or more, normalization is performed by the second normalization shifter 9. I do.

【0016】さらに、演算はオペランドa,オペランド
bの加算を行なうことにする。この時、オペランドaの
上位所定nビットが0.00011,オペランドbの上
位所定nビットが0.00000であると、第1の副加
減算器7では、上位所定のnビットに対する桁上げがな
いものとして演算を行なうので、第1の副加減算器10
の演算結果は0.00011であり、この場合の正規化
桁数は3である。
Further, the operation is performed by adding the operands a and b. At this time, if the upper predetermined n bits of the operand a are 0.00011 and the upper predetermined n bits of the operand b are 0.000000, the first sub adder / subtractor 7 does not carry the upper predetermined n bits. , The first sub adder / subtracter 10
Is 0.00011, and the number of normalized digits in this case is 3.

【0017】一方、第2の副加減算器11では、上位所
定nビットに対する桁上げがあるものとして演算を行な
うので、第2の副加減算器11の演算結果は0.001
00であり、この場合の正規化桁数は2である。
On the other hand, in the second sub adder / subtractor 11, the operation is performed assuming that there is a carry for the upper predetermined n bits.
00, and the number of normalized digits in this case is two.

【0018】したがって、第1の正規化桁数判定手段1
2で、第2の正規化シフタ9を用いると判定するので、
正規化は第2のシフタ9で行なわれる。この場合、実際
に上位所定nビットへの桁上げがあれば、第1の正規化
シフタ8で正規化できるのであるが、その場合でも第2
の正規化シフタ9で正規化を行なうことになり、必要以
上に演算の実行時間が長くなってしまう。
Therefore, the first normalized digit number judging means 1
2, it is determined that the second normalization shifter 9 is used.
The normalization is performed by the second shifter 9. In this case, if there is actually a carry to the upper predetermined n bits, the first normalization shifter 8 can normalize the data.
In this case, the normalization is performed by the normalization shifter 9, and the execution time of the operation becomes longer than necessary.

【0019】しかしながら、主加減算器7の演算結果か
ら第1,第2の正規化シフタ8,9のどちらを用いるか
という判定をするのでは、シフタを選択するまでの時間
がかかりすぎてしまうという欠点がある。
However, if it is determined from the operation result of the main adder / subtractor 7 which of the first and second normalization shifters 8 and 9 is used, it takes too much time until the shifter is selected. There are drawbacks.

【0020】[0020]

【発明の目的】本発明の目的は、第1,第2の正規化シ
フタのうちどちらを使用するかの判定を正確にかつ短時
間に行なうようにした浮動小数点加減算器を提供するこ
とである。
SUMMARY OF THE INVENTION It is an object of the present invention to provide a floating-point adder / subtracter which can determine which of the first and second normalization shifters to use accurately and in a short time. .

【0021】[0021]

【発明の構成】本発明による浮動小数点加減算器は、2
つのオペランドの加減算を行う加減算器と、この加減算
結果の正規化桁数が所定数以内の場合に使用されて当該
正規化を高速に行い得る第1の正規化シフタと、前記正
規化桁数が前記所定数より大きい場合に使用されて当該
正規化を前記第1の正規化シフタによる正規化に比して
より低速で行う第2の正規化シフタと、前記2つのオペ
ランドの上位nビットの各々を用いてこのnビットに対
する下位からの桁上げがない場合に前記第1及び第2の
正規化シフタのいずれを使用するかを判定する第1の正
規化桁数判定手段と、前記2つのオペランドの上位nビ
ットの各々を用いてこの上位nビットに対する下位から
の桁上げがある場合に前記第1及び第2の正規化シフタ
のいずれを使用するかを判定する第2の正規化桁数判定
手段と、前記2つのオペランドの前記上位nビットの各
々に連続するmビットの各々の加減算を行った場合の桁
上げの発生条件及び桁上げ伝播条件に基いて、前記第1
及び第2の正規化桁数判定手段により判定して前記第1
及び第2の正規化シフタの選択をなす選択手段とを含む
ことを特徴とする。
The floating-point adder / subtractor according to the present invention comprises:
An adder / subtracter that performs addition and subtraction of two operands, and is used when the number of normalized digits of the addition / subtraction result is within a predetermined number.
A first normalization shifter that can perform normalization at high speed, and a first normalization shifter that is used when the number of normalized digits is larger than the predetermined number.
Normalization is compared to normalization by the first normalization shifter.
A second normalization shifter that operates at a lower speed, and uses each of the upper n bits of the two operands to
When there is no carry from the lower part, the first and second
A first positive to determine which of the normalized shifters to use
Normalizing digit number determining means, and the upper n bits of the two operands
From the lower order for this upper n bits using
The first and second normalized shifters when there is a carry of
Of the second normalized digit number to determine which one of
Means and a digit when addition and subtraction of each of m bits consecutive to each of the upper n bits of the two operands is performed.
On the basis of the carry generation condition and the carry propagation condition,
And the second normalized digit number determining means determines
And selection means for selecting the second normalization shifter .

【0022】[0022]

【実施例】以下、図面を用いて本発明の実施例について
詳述する。
Embodiments of the present invention will be described below in detail with reference to the drawings.

【0023】図1は、本発明の実施例の回路ブロック図
であり、図2と同等部分は同一符号により示している。
本実施例では2つのオペランドa,bの上位所定nビッ
ト3,4に連続する下位所定mビットを用いて、主加減
算器7におけるこの下位所定mビットから上位所定nビ
ットへの桁上げの発生条件と伝播条件とを、正規化桁数
選択制御手段14で求める。
FIG. 1 is a circuit block diagram of an embodiment of the present invention, and the same parts as those in FIG. 2 are denoted by the same reference numerals.
In this embodiment, using the lower predetermined m bits continuous with the higher predetermined n bits 3 and 4 of the two operands a and b, the main adder / subtracter 7 generates a carry from the lower predetermined m bits to the higher predetermined n bits. The condition and the propagation condition are obtained by the normalized digit number selection control means 14.

【0024】そして、下位所定mビットから上位所定n
ビットへの桁上げの発生条件が1の場合は、上位所定n
ビットへの桁上げが必ずあるので、正規化桁数選択手段
16では第2の正規化桁数判定手段13からの出力を選
択する。下位所定mビットからまた上位所定nビットへ
の桁上げの発生条件も伝播条件も0の場合は、上位所定
nビットへの桁上げは必ずないので、正規化桁数選択手
段16では第1の正規化桁数判定手段12からの出力を
選択する。
Then, the lower predetermined m bits to the higher predetermined n
When the condition for generating a carry to a bit is 1, the upper predetermined n
Since there is always a carry to a bit, the normalized digit number selecting means 16 selects the output from the second normalized digit number determining means 13. When the condition for generating a carry from the lower predetermined m bits to the higher predetermined n bits and the propagation condition are both 0, the carry to the upper predetermined n bits is not necessarily performed. The output from the normalized digit number determining means 12 is selected.

【0025】しかし、下位所定mビットから上位所定n
ビットへの桁上げの発生条件が0,伝播条件が1の場合
には、この情報だけでは桁上げがあるかないかの特定は
できない。従って、この場合は従来と同様の処理を行な
う。
However, the lower predetermined m bits to the higher predetermined n bits
When the condition for carrying a bit is 0 and the propagation condition is 1, it is not possible to specify whether or not there is a carry using only this information. Therefore, in this case, processing similar to the conventional processing is performed.

【0026】正規化桁数選択手段16の出力から、正規
化が不要であるか否か、正規化が必要な場合、第1の正
規化シフタ8で正規化するのか、あるいは第2の正規化
シフタ9で正規化するのかの判定をした後の第1,第2
の正規化シフタ8,9、演算結果選択手段17、リザル
トレジスタ18、第1,第2の正規化桁数算出手段1
9,20の働きは、図2のそれ等と同じである。
From the output of the normalization digit number selecting means 16, it is determined whether or not normalization is necessary. If normalization is necessary, whether the normalization is performed by the first normalization shifter 8 or the second normalization is performed. First and second after determining whether to normalize by shifter 9
Normalization shifters 8 and 9, operation result selecting means 17, result register 18, first and second normalized digit number calculating means 1
The operations of 9, 20 are the same as those of FIG.

【0027】以下に、図1を用いた場合の例を示す。な
お前提条件は、上位所定のnビットのnは6とし、2進
正規化を行なう。また、第1の正規化シフタ8で正規化
を行なうのは、正規化桁数が2以内の場合で、正規化桁
数が3以上の場合は第2の正規化シフタ9で正規化を行
なう。
An example using FIG. 1 will be described below. The precondition is that n of the upper predetermined n bits is 6, and binary normalization is performed. Normalization is performed by the first normalization shifter 8 when the number of normalized digits is two or less, and when the number of normalized digits is three or more, normalization is performed by the second normalization shifter 9. .

【0028】さらに、上位所定nビットに連続する下位
所定mビットのmは1とし、演算はオペランドa,オペ
ランドbの加算を行なうこととする。この時、オペレン
ドaの上位所定nビットが0.00011,それに連続
する下位所定mビットが1,オペランドbの上位所定n
ビットが0.00000,それに連続する下位所定mビ
ットが1であるとする。
Further, m of the lower predetermined m bits continuous with the predetermined upper n bits is set to 1, and the operation is performed by adding the operands a and b. At this time, the upper predetermined n bits of the operand a are 0.00011, the lower predetermined m bits successive thereto are 1, and the upper predetermined n bits of the operand b are n.
It is assumed that the bit is 0.000000, and the lower predetermined m bits continuous thereto are 1.

【0029】第1の副加減算器10の演算結果は0.0
0011であるので、この場合の正規化桁数は3とな
り、第1の正規化桁数判定手段12では、第2の正規化
シフタ9で正規化を行なうと判定する。
The operation result of the first sub adder / subtractor 10 is 0.0
Therefore, the normalized digit number in this case is 3, and the first normalized digit number determining means 12 determines that the second normalized shifter 9 performs normalization.

【0030】一方、第2の副加減算器11の演算結果は
0.00100であるので、この場合の正規化桁数は2
となり、第2の正規化桁数判定手段13では、第1の正
規化シフタ8で正規化を行なうと判定する。
On the other hand, since the operation result of the second sub adder / subtracter 11 is 0.00100, the number of normalized digits in this case is 2
And the second normalized digit number determining means 13 determines that the first normalized shifter 8 performs normalization.

【0031】また、上位所定nビットに対する下位所定
mビットからの桁上げの発生条件が1となり、上位所定
nビットに対する下位所定mビットからの桁上げが、正
規化桁数選択制御手段14により検出される。そこで、
桁上げがあるものとして演算を行った結果から第1,第
2どちらの正規化シフタで正規化を行なうかを判定した
第2の正規化桁数判定手段13の判定結果を用いること
になる。よって、第1の正規化シフタで正規化を行なう
ことになる。
The condition for generating a carry from the lower predetermined m bits for the upper predetermined n bits becomes 1, and a carry from the lower predetermined m bits to the upper predetermined n bits is detected by the normalized digit number selection control means 14. Is done. Therefore,
Based on the result of the calculation assuming that there is a carry, the determination result of the second normalized digit number determination means 13 which has determined which of the first and second normalization shifters should perform normalization is used. Therefore, normalization is performed by the first normalization shifter.

【0032】これにより、従来の判定方法では、第2の
正規化シフタ9で正規化を行なうことになるケースが、
本発明を用いることにより、第2の正規化シフタ9を用
いずにすむことになり、必要以上に演算の実行時間が長
くなることが防げる。
As a result, in the conventional determination method, normalization is performed by the second normalization shifter 9 in some cases.
By using the present invention, it is not necessary to use the second normalization shifter 9, and it is possible to prevent the execution time of the operation from being unnecessarily long.

【0033】[0033]

【発明の効果】以上述べた如く、本発明によれば、2つ
のオペランドの加減算結果の正規化シフト数の判定を、
これ等2つのオペランドの上位所定nビットの加減算結
果以外に、更にこのnビットに連続する下位mビットの
加減算結果によっても行なうようにしたので、正確かつ
短時間に行なうようにすることができるという効果があ
る。
As described above, according to the present invention, the determination of the normalized shift number of the result of addition / subtraction of two operands is as follows.
In addition to the addition and subtraction results of the upper predetermined n bits of these two operands, the addition and subtraction results of the lower m bits consecutive to the n bits are used, so that the operation can be performed accurately and in a short time. effective.

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

【図1】本発明の実施例の回路ブロック図である。FIG. 1 is a circuit block diagram of an embodiment of the present invention.

【図2】従来の浮動小数点加減算器の回路ブロック図で
ある。
FIG. 2 is a circuit block diagram of a conventional floating point adder / subtractor.

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

1,2 オペランド 7 主加減算器 8,9 正規化シフタ 10,11 副加減算器 12,13 正規化桁数判定手段 14 正規化桁数選択制御手段 15 オアゲート 16 正規化桁数選択手段 19,20 正規化桁数算出手段 1, 2 Operand 7 Main adder / subtractor 8, 9 Normalized shifter 10, 11 Secondary adder / subtractor 12, 13 Normalized digit number determination means 14 Normalized digit number selection control means 15 OR gate 16 Normalized digit number selection means 19, 20 Normal Digitized number calculation means

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 2つのオペランドの加減算を行う加減算
器と、この加減算結果の正規化桁数が所定数以内の場合
使用されて当該正規化を高速に行い得る第1の正規化
シフタと、前記正規化桁数が前記所定数より大きい場合
使用されて当該正規化を前記第1の正規化シフタによ
る正規化に比してより低速で行う第2の正規化シフタ
と、前記2つのオペランドの上位nビットの各々を用い
このnビットに対する下位からの桁上げがない場合に
前記第1及び第2の正規化シフタのいずれを使用するか
を判定する第1の正規化桁数判定手段と、前記2つのオ
ペランドの上位nビットの各々を用いてこの上位nビッ
トに対する下位からの桁上げがある場合に前記第1及び
第2の正規化シフタのいずれを使用するかを判定する第
2の正規化桁数判定手段と、前記2つのオペランドの前
記上位nビットの各々に連続するmビットの各々の加減
算を行った場合の桁上げの発生条件及び桁上げ伝播条件
に基いて、前記第1及び第2の正規化桁数判定手段によ
り判定して前記第1及び第2の正規化シフタの選択をな
す選択手段とを含むことを特徴とする浮動小数点加減算
器。
An adder / subtracter for performing addition / subtraction of two operands, a first normalization shifter used when the number of normalized digits of the addition / subtraction result is within a predetermined number and capable of performing the normalization at high speed , Used when the number of normalized digits is larger than the predetermined number, the normalization is performed by the first normalized shifter.
A second normalization shifter which performs the processing at a lower speed than the normalization, and a method in which each of the upper n bits of the two operands is used and there is no carry from the lower bit to the n bits.
Which of the first and second normalization shifters to use
A first normalized digit number determining means for determining whether the first and second operands have a carry from the lower n bits to the upper n bits using each of the upper n bits of the two operands Second normalized digit number determining means for determining which of the shifters to use , and adjusting each of m bits continuous with each of the upper n bits of the two operands
Condition of carry and carry propagation condition when calculation is performed
And the first and second normalized digit number determining means
To make a selection between the first and second normalization shifters.
And a selection means.
JP3065535A 1991-03-06 1991-03-06 Floating point adder / subtracter Expired - Lifetime JP2665067B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3065535A JP2665067B2 (en) 1991-03-06 1991-03-06 Floating point adder / subtracter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3065535A JP2665067B2 (en) 1991-03-06 1991-03-06 Floating point adder / subtracter

Publications (2)

Publication Number Publication Date
JPH04278630A JPH04278630A (en) 1992-10-05
JP2665067B2 true JP2665067B2 (en) 1997-10-22

Family

ID=13289807

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3065535A Expired - Lifetime JP2665067B2 (en) 1991-03-06 1991-03-06 Floating point adder / subtracter

Country Status (1)

Country Link
JP (1) JP2665067B2 (en)

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59226944A (en) * 1983-06-09 1984-12-20 Fujitsu Ltd Addition and subtraction system of floating point data

Also Published As

Publication number Publication date
JPH04278630A (en) 1992-10-05

Similar Documents

Publication Publication Date Title
US5010508A (en) Prenormalization for a floating-point adder
US5367477A (en) Method and apparatus for performing parallel zero detection in a data processing system
JP2511527B2 (en) Floating point arithmetic unit
US7680874B2 (en) Adder
US6629118B1 (en) Zero result prediction
JP2665067B2 (en) Floating point adder / subtracter
JPH03135627A (en) Fuzzy arithmetic unit
JP2509279B2 (en) Floating point number-fixed point number converter
JPH0511980A (en) Overflow detecting method and circuit
JP2807170B2 (en) Arithmetic unit
JP3064405B2 (en) Complex number processing
JP3310316B2 (en) Arithmetic unit
JP2556904B2 (en) High-speed adder / subtractor
JP3530418B2 (en) Multiplier
JPH0799808B2 (en) Arithmetic logic unit
JPH11312076A (en) Decimal arithmetic unit
JP3111695B2 (en) Arithmetic processing unit
JP3110072B2 (en) Pre-normalization circuit
JPH04260122A (en) Addition/subtraction high speed digit matching circuit
JPH05100825A (en) Normalization floating point adder/subtracter
JPH0414173A (en) Fixed point product sum computing element
JPH04246722A (en) Adder/subtracter
JPH0239233A (en) Floating point adder
JP2575856B2 (en) Arithmetic circuit
JP2001092639A (en) Division and square root arithmetic unit