JPH0352093B2 - - Google Patents
Info
- Publication number
- JPH0352093B2 JPH0352093B2 JP60064601A JP6460185A JPH0352093B2 JP H0352093 B2 JPH0352093 B2 JP H0352093B2 JP 60064601 A JP60064601 A JP 60064601A JP 6460185 A JP6460185 A JP 6460185A JP H0352093 B2 JPH0352093 B2 JP H0352093B2
- Authority
- JP
- Japan
- Prior art keywords
- carry
- result
- output
- detection circuit
- calculation
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F7/00—Methods or arrangements for processing data by operating upon the order or content of the data handled
- G06F7/38—Methods or arrangements for performing computations using exclusively denominational number representation, e.g. using binary, ternary, decimal representation
- G06F7/48—Methods or arrangements for performing computations using exclusively denominational number representation, e.g. using binary, ternary, decimal representation using non-contact-making devices, e.g. tube, solid state device; using unspecified devices
- G06F7/544—Methods or arrangements for performing computations using exclusively denominational number representation, e.g. using binary, ternary, decimal representation using non-contact-making devices, e.g. tube, solid state device; using unspecified devices for evaluating functions by calculation
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2207/00—Indexing scheme relating to methods or arrangements for processing data by operating upon the order or content of the data handled
- G06F2207/544—Indexing scheme relating to group G06F7/544
- G06F2207/5442—Absolute difference
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Computational Mathematics (AREA)
- Computing Systems (AREA)
- Mathematical Analysis (AREA)
- Mathematical Optimization (AREA)
- Pure & Applied Mathematics (AREA)
- General Engineering & Computer Science (AREA)
Description
【発明の詳細な説明】
産業上の利用分野
本発明は、演算装置、特に、浮動小数点演算の
仮数部の演算を行なうための演算装置に関する。DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to an arithmetic device, and particularly to an arithmetic device for calculating the mantissa part of a floating point arithmetic operation.
従来の技術
一般に、正規化された浮動小数点数は、その正
負を表わす符号と、指数部と、正規化された絶対
値をもつ仮数部とより構成される。このような浮
動小数点数と他の浮動小数点数との演算を行なつ
た結果仮数部が全て“0”のとき、符号と指数部
および仮数部の全てを“0”(以後正規化0と呼
ぶ)として演算結果とする必要が生じる場合がし
ばしばある。2. Description of the Related Art In general, a normalized floating-point number is composed of a sign indicating its sign, an exponent part, and a mantissa part having a normalized absolute value. When the mantissa part is all "0" as a result of such an operation between a floating point number and another floating point number, the sign, exponent part, and mantissa part are all "0" (hereinafter referred to as normalized 0). ) is often required as the result of an operation.
このような場合には、仮数部の演算結果が決定
した時点で全て“0”であるかどうかを検出し、
全て“0”であれば正規化0を演算結果とする。 In such a case, detect whether all the mantissa operation results are “0” at the time when the operation result is determined,
If all are "0", normalized 0 is taken as the calculation result.
第3図は上述の処理を行なう従来例の演算装置
を示したものである。 FIG. 3 shows a conventional arithmetic device that performs the above-described processing.
第3図において参照数字1′にて示された第1
オペランド格納レジスタから参照数字11′にて
示された仮数部演算結果格納レジスタまでは、後
述される本発明の一実施例の対応する参照数字の
要素と同様な動作を行ない、第1オペランドと第
2オペランドの仮数部の演算結果が演算結果格納
レジスタ11′に格納される。 The first one, designated by the reference numeral 1' in FIG.
The operations from the operand storage register to the mantissa operation result storage register indicated by the reference numeral 11' are performed in the same manner as the elements with the corresponding reference numerals in an embodiment of the present invention, which will be described later. The operation result of the mantissa part of the two operands is stored in the operation result storage register 11'.
こうして仮数部の演算結果が一義的に決定した
あとで0検出回路12′は演算結果が全て“0”
であるかどうかを検出し、全て“0”であれば
“1”を、全て“0”でなければ“0”を0検出
結果格納フリツプフロツプ17′に格納する。 After the calculation result of the mantissa part is determined uniquely in this way, the 0 detection circuit 12' detects that all the calculation results are "0".
If they are all "0", "1" is stored in the zero detection result storage flip-flop 17'.
発明が解決しようとする問題点
しかしながら、上述した従来例においては、第
1オペランドと第2オペランドの仮数部の演算が
完全にすんで、演算結果が一義的に与えられてか
らはじめて、演算結果の“0”検出が開始されて
いたので、演算時間が長いという欠点がある。Problems to be Solved by the Invention However, in the above-mentioned conventional example, the operation result cannot be expressed as "0'' detection has already started, so there is a drawback that the computation time is long.
本発明は従来の技術に内在する上記欠点を解消
する為になされたものであり、従つて本発明の目
的は|A+B|または|A−B|の演算と演算結
果が全て“0”であることを検出する動作とをオ
ーバラツプして行なうことによつて、絶対値演算
の演算時間を短縮することができる新規な演算装
置を提供することにある。 The present invention has been made in order to eliminate the above-mentioned drawbacks inherent in the conventional technology, and therefore, the purpose of the present invention is to calculate |A+B| or |A-B| and the result of the calculation is all "0". It is an object of the present invention to provide a novel arithmetic device that can shorten the computation time of absolute value computation by overlapping the operation of detecting the above.
問題点を解決するための手段
上記目的を達成する為に、本発明に係る演算装
置は、下位からのキヤリー入力“1”の演算を行
ないこの演算結果に相当する値の“0”検出を行
なう第1の検出回路と、下位からのキヤリー入力
“0”の演算を行ない、この演算結果に相当する
値の各桁毎の補数の“0”検出を行なう第2の検
出回路と、前記第1、第2の検出回路のいずれか
の出力を前記演算結果により生ずるキヤリーの応
答して選択するようにした第1の選択回路と、下
位からのキヤリー入力“0”の演算を行ないこの
演算結果に相当する値の“0”検出を行なう第3
の検出回路と、この第3の回路の出力か前記第1
の選択回路の出力を、演算指示に従つて選択する
ようにした第2の選択回路とを具備して構成され
る。Means for Solving the Problems In order to achieve the above object, the arithmetic device according to the present invention performs an arithmetic operation on a carry input “1” from a lower order, and detects a value “0” corresponding to the result of this operation. a first detection circuit, a second detection circuit that performs an operation on a carry input "0" from the lower order, and detects the complement of each digit of the value corresponding to the operation result as "0"; , a first selection circuit that selects one of the outputs of the second detection circuit in response to the carry generated by the calculation result, and a calculation of the carry input "0" from the lower order, and based on the calculation result. The third one detects “0” of the corresponding value.
a detection circuit, and the output of this third circuit or the first detection circuit.
and a second selection circuit configured to select the output of the selection circuit according to an operation instruction.
実施例
次に本発明をその好ましい一実施例について図
面を参照しながら詳細に説明する。Embodiment Next, a preferred embodiment of the present invention will be described in detail with reference to the drawings.
第1図は本発明の一実施例を示すブロツク構成
図である。 FIG. 1 is a block diagram showing one embodiment of the present invention.
第1図において、本発明の一実施例は、第1オ
ペランド格納レジスタ1、反転器2、選択回路
3、第2オペランド格納レジスタ4、演算指示格
納フリツプフロツプ5、キヤリー入力“1”の演
算器6、キヤリー入力“0”の演算器7、反転器
8、選択回路9,10,15,16、0検出回路
12,13,14、演算結果格納レジスタ11お
よび0検出結果格納フリツプフロツプ17を含
む。 In FIG. 1, one embodiment of the present invention includes a first operand storage register 1, an inverter 2, a selection circuit 3, a second operand storage register 4, an operation instruction storage flip-flop 5, and an arithmetic unit 6 with a carry input "1". , a carry input "0" arithmetic unit 7, an inverter 8, selection circuits 9, 10, 15, 16, 0 detection circuits 12, 13, 14, an operation result storage register 11, and a 0 detection result storage flip-flop 17.
さて、本実施例において、絶対値で表わされた
第1オペランドと絶対値で表わされた第2オペラ
ンドの演算は以下のようにして行なわれる。 Now, in this embodiment, the calculation of the first operand expressed as an absolute value and the second operand expressed as an absolute value is performed as follows.
今、第1オペランドをA、第2オペランドをB
とすると、A≧0、B≧0である。これから行な
う演算はA≧0、B≧0の条件の下で足し算A+
Bまたは引き算A−Bを行なつて、その結果の正
負の情報を得ることと、足し算結果の絶対値|A
+B|または引き算結果の絶対値|A−B|を得
ることと、この|A+B|および|A−B|が全
て“0”であることを検出することである。 Now, set the first operand to A and the second operand to B.
Then, A≧0 and B≧0. The operation we will perform from now on is addition A+ under the conditions of A≧0 and B≧0.
B or subtraction A-B to obtain the positive/negative information of the result, and the absolute value of the addition result |A
+B| or the absolute value |AB| of the subtraction result, and detecting that |A+B| and |AB| are all "0".
まず第1オペランドAはそのまま第1オペラン
ド格納レジスタ1に格納される。一方、第2オペ
ランドBは、演算指示信号100が足し算を指示
する“0”のときそのままの値が選択回路3によ
り選択され、演算指示信号100が引き算を指示
する“1”のときに反転器2でその各桁の“1”、
“0”を反転したもの、即ち、の補数Bとした
ものが選択されて、第2オペランド格納レジスタ
4に格納される。 First, the first operand A is stored as is in the first operand storage register 1. On the other hand, when the operation instruction signal 100 is "0" indicating addition, the second operand B is selected as it is by the selection circuit 3, and when the operation instruction signal 100 is "1" indicating subtraction, the inverter selects the second operand B. 2 and each digit is “1”,
The inverted value of "0", that is, the complement B of "0" is selected and stored in the second operand storage register 4.
こうしてレジスタ1およびレジスタ4に格納さ
れたAおよびBまたはは演算器6および演算器
7で加算される。但し、演算器6は最小桁へのキ
ヤリーがある場合(キヤリー入力“1”)の加算
を行ない、つまり足し算のときA+B+1、引き
算のときA++1の加算を行なう。 In this way, A and B stored in register 1 and register 4 are added by arithmetic unit 6 and arithmetic unit 7. However, the arithmetic unit 6 performs addition when there is a carry to the minimum digit (carry input "1"), that is, it performs addition of A+B+1 for addition and A++1 for subtraction.
一方、演算器7の側は最小桁へのキヤリーがな
い場合(キヤリー入力“0”)の加算を行ない、
つまり足し算のときA+B、引き算のときA+
の加算を行ない、その加算結果を反転器8により
各桁の“1”、“0”を反転してその補数(つまり
足し算のとき+、引き算のときA+)を作
る。 On the other hand, the arithmetic unit 7 side performs addition when there is no carry to the minimum digit (carry input "0"),
In other words, when adding, A+B, when subtracting, A+
, and the inverter 8 inverts the "1" and "0" of each digit of the addition result to create its complement (that is, + for addition, A+ for subtraction).
こうして得られるA+B+1またはA++1
を与えるべき出力6000および(+)または
(A+)を与えるべき出力8000は、一方におい
ては選択器9のそれぞれの入力に導かれ、他方に
おいてはそれぞれA+B+1またはA++1が
全て“0”であることを検出する0検出回路12
および(+)または(A+)が全て“0”
であることを検出する0検出回路13に導かれ、
こうして0検出したそれぞれの結果は、選択回路
15のそれぞれの入力に導かれる。また、A+B
またはA+を与えるべき出力7000は、一方にお
いては0検出回路14に導かれ、他方においては
選択回路10の一方の入力に導かれる。選択回路
10のもう一方の入力には選択回路9の出力が導
かれている。0検出回路14の出力は選択回路1
6の一方の入力に導かれ、他方の入力には選択回
路15の出力が導かれている。演算指示格納フリ
ツプフロツプ5には、足し算のときに“0”が、
引き算のときに“1”が格納される。 A+B+1 or A++1 thus obtained
The output 6000 that should give , and the output 8000 that should give (+) or (A+) are led on the one hand to the respective inputs of the selector 9, and on the other hand, they are respectively guided to the respective inputs of the selector 9, which respectively indicate that A+B+1 or A++1 are all "0". 0 detection circuit 12 to detect
and (+) or (A+) are all “0”
is led to a 0 detection circuit 13 that detects that
The respective results of 0 detection in this manner are led to respective inputs of the selection circuit 15. Also, A+B
The output 7000 to give A+ is led on the one hand to the 0 detection circuit 14 and on the other hand to one input of the selection circuit 10. The output of the selection circuit 9 is led to the other input of the selection circuit 10. The output of the 0 detection circuit 14 is sent to the selection circuit 1.
6, and the output of the selection circuit 15 is guided to the other input. In the calculation instruction storage flip-flop 5, “0” is stored during addition.
“1” is stored during subtraction.
さて、足し算を行なう場合には、前述により第
2オペランド格納レジスタ4に第2オペランドB
がそのまま格納され、演算器7が前述のA+Bの
演算を行なつた結果を信号線7000に出力し、
0検出回路14で全て“0”かどうかを検出し
て、全て“0”であれば“1”を全て“0”でな
ければ“0”を信号線14000に出力する。演
算指示格納フリツプフロツプ5の出力5000が
“0”のとき足し算を指示し、選択回路10は信
号線7000をまた選択回路16は信号線140
00をそれぞれ選択して演算結果格納レジスタ1
1と0検出格納フリツプフロツプ17に各々格納
する。 Now, when performing addition, the second operand B is stored in the second operand storage register 4 as described above.
is stored as is, and the arithmetic unit 7 outputs the result of the above-mentioned A+B operation to the signal line 7000,
The 0 detection circuit 14 detects whether all are "0" and outputs "1" to the signal line 14000 if all are "0" and "0" if not all "0". When the output 5000 of the operation instruction storage flip-flop 5 is "0", addition is instructed, and the selection circuit 10 connects the signal line 7000 and the selection circuit 16 connects the signal line 140.
00 respectively and select operation result storage register 1.
1 and 0 detection storage flip-flops 17 respectively.
引き算を行なう場合には、前述により第2オペ
ランド格納レジスタ4に第2オペランドBの補数
Bを格納する。演算器7が演算A+を行なつた
結果オーバーフローが起り最上位桁からキヤリー
が出ると、このキヤリー出力は信号線7001を
介して選択器9および15に導かれる。この結
果、選択器9はキヤリー出力7001にキヤリーが出
力した場合には演算器6の出力6000のA++1
を選択し、またキヤリー出力7001にキヤリーが出
力しない場合には、反転器8からの出力8000の
(A+)を選択して、これらのうちの選択した
方の出力を選択器10に信号線9000を介して
入力する。選択器10では演算指示格納フリツプ
フロツプ5の出力5000が“1”のとき引き算を指
示し、信号線9000を選択して演算結果格納レ
ジスタ11に格納する。 When performing subtraction, the complement B of the second operand B is stored in the second operand storage register 4 as described above. When arithmetic unit 7 performs operation A+, an overflow occurs and a carry is output from the most significant digit, and this carry output is guided to selectors 9 and 15 via signal line 7001. As a result, the selector 9 outputs A++1 of the output 6000 of the computing unit 6 when the carry is output to the carry output 7001.
and if the carry does not output to the carry output 7001, select (A+) of the output 8000 from the inverter 8, and send the selected output of these to the signal line 9000 to the selector 10. Enter via. The selector 10 instructs subtraction when the output 5000 of the operation instruction storage flip-flop 5 is "1", selects the signal line 9000, and stores it in the operation result storage register 11.
一方、選択器15は、同様にキヤリー出力7001
にキヤリーが出力した場合には0検出回路12か
らのA++1の0検出結果を選択し、またキヤ
リー出力7001にキヤリーが出力しない場合には0
検出回路13からの(A+)の0検出結果を選
択して、これらのうちの選択した方の出力を選択
器16に信号線1500を介して入力する。選択
器16では、信号線5000が“1”のとき信号
線1500を選択して0検出結果格納フリツプフ
ロツプ17に格納する。 On the other hand, the selector 15 similarly outputs the carry output 7001.
When the carry outputs to the carry output 7001, the 0 detection result of A++1 from the 0 detection circuit 12 is selected, and when the carry does not output to the carry output 7001, the 0 detection result is selected.
The 0 detection result of (A+) from the detection circuit 13 is selected, and the output of the selected one of these is input to the selector 16 via the signal line 1500. The selector 16 selects the signal line 1500 when the signal line 5000 is "1" and stores it in the 0 detection result storage flip-flop 17.
以上の処理により、引き算時キヤリー出力7001
はA−Bの演算結果の正負の情報(キヤリー出力
がある場合には正、ない場合には負を表わす)を
出力し、レジスタ11の出力1100は足し算結果の
絶対値|A+B|または引き算結果の絶対値|A
−B|を出力し、またレジスタ17の出力1700
は、足し算結果の絶対値|A+B|の0検出結果
または引き算結果の絶対値|A−B|の0検出結
果を出力する。こうしてA+Bの足し算またはA
−Bの引き算において以後の処理に必要な結果が
すべて得られたことになる。 By the above processing, carry output 7001 during subtraction
outputs the positive/negative information of the operation result of A-B (indicates positive if there is a carry output, negative if there is no carry output), and the output 1100 of register 11 is the absolute value of the addition result |A+B| or the subtraction result absolute value of |A
-B|, and output 1700 of register 17
outputs the 0 detection result of the absolute value |A+B| of the addition result or the 0 detection result of the absolute value |A-B| of the subtraction result. In this way, the addition of A+B or A
This means that all the results necessary for subsequent processing have been obtained in the subtraction of -B.
次に演算器と0検出回路との間でオーバーラツ
プする動作を行なうようにした一例を、キヤリー
入力“0”の演算器側(第1図の演算器7、反転
器8および0検出回路13,14を含む側)につ
いて例示する。 Next, an example in which the operation that overlaps between the arithmetic unit and the 0 detection circuit is performed is shown on the arithmetic unit side of the carry input "0" (the arithmetic unit 7, inverter 8, and 0 detection circuit 13 in FIG. 1). 14) will be exemplified.
この例においては、演算すべきデータのビツト
幅を2等分して(例えば16ビツト幅の演算におい
ては上位桁側8ビツトと下位桁側8ビツトとに2
等分して)、下位桁側の演算と、上位桁側の演算
とを同時に平行して行なう。但し、上位桁側の演
算は、下位桁側からのキヤリーがある場合の演算
と下位桁側からのキヤリーがない場合の演算との
両方を、下位桁側からのキヤリーのいかんにかか
わらず前もつて平行して行なつておき、下位桁か
ら実際にキヤリーが出る時点で、実際のキヤリー
の有無により、その正しい方を選択して最終出力
とする。このような方法により演算時間を大いに
短縮することができる。 In this example, the bit width of the data to be calculated is divided into two (for example, in a 16-bit width calculation, the upper 8 bits and the lower 8 bits are divided into 2 parts).
(divided into equal parts), and the operation on the lower digit side and the operation on the upper digit side are performed simultaneously and in parallel. However, the calculation on the high-order digit side has both the calculation when there is a carry from the low-order digit side and the calculation when there is no carry from the low-order digit side, regardless of the carry from the low-order digit side. When a carry actually appears from the lower digit, the correct one is selected depending on the presence or absence of an actual carry and is used as the final output. Such a method can greatly reduce calculation time.
第2図はこのような動作をする演算器7と反転
器8と、0検出回路13,14との構成を具体的
に示したブロツク図であり、演算器71は下位側
の演算器、演算器72は下位桁側からのキヤリー
がないとしたときの上位桁側の演算器、又演算器
73は下位桁側からのキヤリーがあるとしたとき
の上位桁側の演算器、反転器81,82および8
3はそれぞれ演算器71,72,73の出力の補
数をとる反転器、0検出回路131および132
はそれぞれ前もつて下位桁からのキヤリーがない
として演算した場合および前もつてキヤリーがあ
るとして演算した場合の演算結果の補数をとつた
ものについて全て“0”かを検出する回路、0検
出回路141および142は前記前もつてキヤリ
ーがあるとした場合と、ないとした場合の演算結
果について全て“0”かを検出する回路また切替
器74,75,76,133および143はそれ
ぞれ下位桁からのキヤリー7100がある場合に、前
もつてキヤリーがあるとして演算した方の側の各
演算結果を選択して出力し、キヤリー7100がない
場合に前もつてキヤリーがないとして演算した方
の側の各演算結果を選択して出力する選択回路で
ある。 FIG. 2 is a block diagram specifically showing the configuration of the arithmetic unit 7, the inverter 8, and the 0 detection circuits 13 and 14, which operate as described above. The calculator 72 is an arithmetic unit on the upper digit side when there is no carry from the lower digit side, and the arithmetic unit 73 is an arithmetic unit on the upper digit side when there is a carry from the lower digit side. 82 and 8
3 are inverters that take the complements of the outputs of the arithmetic units 71, 72, and 73, respectively, and 0 detection circuits 131 and 132.
is a circuit that detects whether all of the complements of the calculation results are "0" when the calculation is performed assuming that there is no carry from the lower digits beforehand, and when the calculation is performed assuming that there is a carry from the previous digit, respectively, and a 0 detection circuit. 141 and 142 are circuits for detecting whether the calculation results are all "0" when there is a carry or not, and switchers 74, 75, 76, 133 and 143 respectively detect from the lower digits. If there is a Carry 7100, select and output each calculation result on the side that was calculated assuming that there was a Carry, and if there is no Carry 7100, select and output the calculation results on the side that was calculated as if there was no Carry. This is a selection circuit that selects and outputs each calculation result.
この第2図に示した部分の動作は、以下の説明
と第1図を参照することにより容易に理解される
であろう。 The operation of the portion shown in FIG. 2 will be easily understood by referring to the following description and FIG.
なお、以上の例では、演算すべきデータの全ビ
ツト幅を2等分し、上位桁側については下位桁か
らのキヤリーがある場合とない場合とを前もつて
平行に演算するようにしたが、このかわりに、更
に分割数を多くして、最下位桁以外については、
下位桁からのキヤリーがある場合とない場合とに
ついて前もつて平行して演算を行ない、最下位桁
側からのキヤリー出力によつてそれらの結果の中
から正しい組合せを選択するようにすることもで
きる。 Note that in the above example, the total bit width of the data to be computed is divided into two equal parts, and the upper digits are computed in parallel with and without carry from the lower digits. , instead of this, the number of divisions is increased further, and for all but the lowest digits,
It is also possible to perform parallel calculations in advance with and without carry from the least significant digit, and select the correct combination from the results based on the carry output from the least significant digit. can.
発明の効果
以上説明したように、本発明は|A+B|また
は|A−B|の演算と、演算結果が全て“0”で
あることを検出する動作とをオーバーラツプして
行なうことにより、絶対値演算の演算時間を短縮
できるという効果がある。Effects of the Invention As explained above, the present invention overlaps the operation of |A+B| or |A-B| with the operation of detecting that the operation results are all "0", thereby detecting the absolute value. This has the effect of shortening the computation time.
第1図は本発明の一実施例を示すブロツク構成
図、第2図は前記実施例の一部を詳細に説明する
ための一例のブロツク構成図、第3図は従来例を
示すブロツク図である。
1……第1オペランド格納レジスタ、2,8…
…反転器、3,9,10,15,16……選択回
路、4……第2オペランド格納レジスタ、5……
演算指示格納フリツプフロツプ、6……キヤリー
入力“1”の演算器、7……キヤリー入力“0”
の演算器、12,13,14……0検出回路、1
1……演算結果格納レジスタ、17……0検出結
果格納フリツプフロツプ、71,72,73……
演算器、81,82,83……反転器、131,
132,141,142……0検出回路、74,
75,76,133,143……選択回路。
FIG. 1 is a block diagram showing an embodiment of the present invention, FIG. 2 is an example block diagram for explaining a part of the embodiment in detail, and FIG. 3 is a block diagram showing a conventional example. be. 1...First operand storage register, 2, 8...
...Inverter, 3, 9, 10, 15, 16... Selection circuit, 4... Second operand storage register, 5...
Arithmetic instruction storage flip-flop, 6...Arithmetic unit with carry input "1", 7...Carry input "0"
Arithmetic unit, 12, 13, 14...0 detection circuit, 1
1...Arithmetic result storage register, 17...0 detection result storage flip-flop, 71, 72, 73...
Arithmetic unit, 81, 82, 83... Inverter, 131,
132, 141, 142...0 detection circuit, 74,
75, 76, 133, 143... selection circuit.
Claims (1)
装置において、下位からのキヤリー入力“1”の
演算を行ないこの演算結果に相当する値が全て
“0”であることを検出する第1の検出回路と、
下位からのキヤリー入力“0”の演算を行ないこ
の演算結果に相当する値の各桁毎の補数が全て
“0”であることを検出する第2の検出回路と、
前記第1、第2の検出回路のいずれかの出力を前
記演算結果により生ずるキヤリーに応答して選択
するようにした第1の選択回路と、下位からのキ
ヤリー入力“0”の演算を行ないこの演算結果に
相当する値が全て“0”であることを検出する第
3の検出回路と、この第3の検出回路と前記第1
の選択回路のいずれかの出力を演算指示信号に応
答して選択するようにした第2の選択回路とを含
むことを特徴とする演算装置。1. In an arithmetic device having a function of performing floating point arithmetic, a first detection circuit that performs an arithmetic operation on a carry input "1" from a lower order and detects that all values corresponding to the result of this arithmetic operation are "0"; ,
a second detection circuit that performs an operation on the carry input “0” from the lower order and detects that the complements of each digit of the value corresponding to the operation result are all “0”;
A first selection circuit that selects the output of either the first or second detection circuit in response to a carry generated by the calculation result, and a carry input "0" from a lower order are operated. a third detection circuit that detects that all values corresponding to the calculation results are "0"; this third detection circuit and the first detection circuit;
and a second selection circuit configured to select one of the outputs of the selection circuits in response to an operation instruction signal.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP60064601A JPS61221821A (en) | 1985-03-27 | 1985-03-27 | Arithmetic unit |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP60064601A JPS61221821A (en) | 1985-03-27 | 1985-03-27 | Arithmetic unit |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS61221821A JPS61221821A (en) | 1986-10-02 |
| JPH0352093B2 true JPH0352093B2 (en) | 1991-08-08 |
Family
ID=13262939
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP60064601A Granted JPS61221821A (en) | 1985-03-27 | 1985-03-27 | Arithmetic unit |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS61221821A (en) |
-
1985
- 1985-03-27 JP JP60064601A patent/JPS61221821A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS61221821A (en) | 1986-10-02 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP0973089B1 (en) | Method and apparatus for computing floating point data | |
| JPH0544046B2 (en) | ||
| KR900010545A (en) | Calculation device and method | |
| JPS61237133A (en) | Arithmetic circuit | |
| JPH01302425A (en) | Floating decimal point adder/subtracter circuit | |
| US20070050434A1 (en) | Data processing apparatus and method for normalizing a data value | |
| JPH0352093B2 (en) | ||
| JPH0511980A (en) | Overflow detecting method and circuit | |
| JPS61224036A (en) | Arithmetic unit | |
| JPS62128331A (en) | Information processor | |
| JPS63158626A (en) | Arithmetic processing unit | |
| JPS5960637A (en) | Arithmetic device for floating decimal point | |
| JPS595344A (en) | Parallel shifting circuit | |
| JPH0150930B2 (en) | ||
| JP3950920B2 (en) | Multiply-accumulator and data processing device | |
| JPH0413734B2 (en) | ||
| JPH0383126A (en) | Floating-point multiplier | |
| JPS595346A (en) | Operation controlling system | |
| JPS6126136A (en) | Digit justifying circuit of floating point adder | |
| JP3100868B2 (en) | Arithmetic unit for floating point numbers | |
| JPS6224322A (en) | Floating point arithmetic unit | |
| JPS6194144A (en) | Floating point adder circuit | |
| JPS60235241A (en) | Floating point adding circuit | |
| JPH07104777B2 (en) | Floating point adder / subtractor | |
| JPH02171923A (en) | Floating point adder/subtractor |