JPS6072021A - Operating device - Google Patents
Operating deviceInfo
- Publication number
- JPS6072021A JPS6072021A JP17962383A JP17962383A JPS6072021A JP S6072021 A JPS6072021 A JP S6072021A JP 17962383 A JP17962383 A JP 17962383A JP 17962383 A JP17962383 A JP 17962383A JP S6072021 A JPS6072021 A JP S6072021A
- Authority
- JP
- Japan
- Prior art keywords
- carry
- result
- output
- calculation
- leading
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F5/00—Methods or arrangements for data conversion without changing the order or content of the data handled
- G06F5/01—Methods or arrangements for data conversion without changing the order or content of the data handled for shifting, e.g. justifying, scaling, normalising
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
Abstract
Description
【発明の詳細な説明】
本発明は演算装置、とくに浮動小数点演算の仮数部の演
算を行なうための演算装置に関する。DETAILED DESCRIPTION OF THE INVENTION The present invention relates to an arithmetic device, and particularly to an arithmetic device for performing arithmetic operations on the mantissa part of floating point arithmetic operations.
一般に、正規化された浮動小数点数はその正負を表わす
符号と、指数部と、正規化された絶対値をもつ仮数部と
より構成される。Generally, 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.
このような浮動小数点数の演算においては、ある浮動小
数点数の絶対値から他の浮動小数点数の絶対値の引き算
を行ない結果を正規化する必要が生ずる場合がしばしば
ある。In such floating point number operations, it is often necessary to subtract the absolute value of one floating point number from the absolute value of another floating point number and normalize the result.
この場合には、オず指数部の大きい方の数の指数に指数
部の小さい方の数の指数が等しくなるまで、指数部の小
さい方の数の仮数部を右シフトしてから、両者の仮数部
の絶対値の間で指定された順序の引き算を行なう。In this case, the mantissa of the number with the smaller exponent part is shifted to the right until the exponent of the number with the larger exponent part is equal to the exponent of the number with the smaller exponent part, and then the mantissa of the number with the smaller exponent part is shifted to the right. Performs subtraction in the specified order between the absolute values of the mantissas.
この引き算において、得られる結果の正負を決定し、そ
の絶対値をめ、かつ、この絶対値を正規化する演算を行
なう。In this subtraction, the sign of the obtained result is determined, its absolute value is determined, and an operation is performed to normalize this absolute value.
この正規化を行なうためには、引き算の結果生ずる絶対
値を表わす数の最初の桁に1111のビットが現わ汎る
まで最上位の桁からの%Q//(以後これをリーディン
グOという)の数を数える必要がある。To perform this normalization, %Q// (hereinafter referred to as leading O) from the most significant digit until the bit 1111 appears in the first digit of the number representing the absolute value resulting from the subtraction. It is necessary to count the number of
従来装置においては、後に詳述するように、上述の絶対
値の引き算が完了し結果の絶対値が一義的に定まってか
らリーディングOの数を数える演算を開始しており、こ
のためにそれだけ演算時間が長くなるという欠点がある
。In the conventional device, as will be explained in detail later, the operation of counting the number of leading O's is started after the above-mentioned absolute value subtraction is completed and the absolute value of the result is uniquely determined. The disadvantage is that it takes a long time.
本発明の目的は上述の従来の欠点を除去した演算装置を
提供することにある。SUMMARY OF THE INVENTION An object of the present invention is to provide an arithmetic device which eliminates the above-mentioned conventional drawbacks.
本発明の装置は、絶対値演算を行ないその演算結果を正
規化する機能を有する演算装置において、下位からのキ
ャリー人力気1〃の演算を行ないこの演算結果に相当す
る値のリーディング−〇〃をカウントする回路と、下位
からのキャリイ入カーOlの演算を行ないこの演算結果
に相当する値の各桁毎の補数のリーディグ翫0〃をカウ
ントする回路と、この二つの回路のいずれかの出力を前
記演算結果により生ずるキャリイに応答して選択するよ
うにした選択回路とを含む。The device of the present invention is an arithmetic device having a function of performing absolute value calculation and normalizing the result of the calculation, and calculates the carry power 1 from the lower order and calculates the leading value corresponding to the result of this calculation -〇〃. A circuit that counts, a circuit that calculates the carry input card Ol from the lower order and counts the complement of each digit of the value corresponding to the result of this calculation, and the output of either of these two circuits. and a selection circuit configured to select in response to a carry generated by the calculation result.
次に、図面を参照して本発明の詳細な説明する。Next, 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、第2オペ
ランド格納レジスタ2、キャリー人力%11の演算器3
、キャリー人力気0〃の演算器4、反転器5、選択器6
,10、演算結果格納レジスタ7、リーディングθカウ
ント回路8.9およびカウント数保持レジスタ11を含
む。In this embodiment, a first operand storage register 1, a second operand storage register 2, and an arithmetic unit 3 with a carry manpower of %11 are used.
, carry human power 0〃 calculator 4, inverter 5, selector 6
, 10, an operation result storage register 7, a leading θ count circuit 8.9, and a count holding register 11.
さて、本実施例において絶対値で表わさ扛た第1オペラ
ンドから絶対値で表わされた第2オペランドを引く引き
算は以下のようにして行なわれる。Now, in this embodiment, subtraction of subtracting the second operand expressed in absolute value from the first operand expressed in absolute value is performed as follows.
今、第1オペランドをA、第1オペランドをBとすると
A〉、o:、B〉oである。Now, if the first operand is A and the first operand is B, then A〉, o:, B〉o.
これから行なう演算は、h〉o、、 B>oの条件の下
で引き算A−Bを行なって、その結果の正負の情報を得
ることと、引き算結果の絶対値IA−Blを得ることと
、このIA−Blに現われるリーディング0の数を得る
ことである。The operations to be performed from now on are to perform subtraction A-B under the conditions of h>o, B>o, obtain information on the positive and negative of the result, and obtain the absolute value IA-Bl of the subtraction result. The purpose is to obtain the number of leading 0s appearing in this IA-Bl.
第1オペランドAはそのまま第1オペランド格納レジス
タ1に格納される。一方、第2オペランドBはその各桁
の11.l#、%Q#を反転したもの、すなわちBの補
数Bとしたものが第2オペランド格納レジスク2に格納
される。The first operand A is stored in the first operand storage register 1 as is. On the other hand, the second operand B is 11. The inverted version of l# and %Q#, that is, the complement of B, is stored in the second operand storage register 2.
こうしてレジスタ1およびレジスタ2に格納されたAお
よび■は、それぞれ演算器3および演算器4で加算され
る。A and ■ stored in register 1 and register 2 in this way are added by arithmetic unit 3 and arithmetic unit 4, respectively.
但し、演p−63は最小桁へのキャリーがある場合(キ
ャリー人力1%lI)のAとBの加算、つlA+B+1
の加算を行なう。However, operation p-63 is the addition of A and B when there is a carry to the smallest digit (carry manpower 1%), 1A+B+1
Perform the addition of .
一方、演算器4の側は最小桁へのキャリーがない場合(
キャリー人力SS Q If )のA+Bの加算、っま
ム通當のA+Eの加算を行ない、その加算結果を反転器
5によシ各桁のJ、#、NO#を反転してその補数(つ
まり(A十B )を作る。On the other hand, on the side of arithmetic unit 4, if there is no carry to the minimum digit (
Addition of A+B of the carry power SS Q If) and addition of A+E of the total number are performed, and the result of the addition is sent to the inverter 5. J, #, and NO# of each digit are inverted and their complements (i.e. Make (A0B).
こうして得られるA十B+1を与えるべき出力3000
および(A−1−B)を与えるベキ出力50oOは、一
方においては選択器6のそtしぞflの入力に導かれ、
他方においてはそれぞれ、A+B+1のリーチング0″
?:カウントするリーディングOカウント回路8、およ
び(A十Li)のリーディング0をカウントするリーデ
ィング0カウント回路9に導かれ、こうしてカウントさ
f′LりそれぞtのリーディングOの数は、選択器10
のそれぞれの入力に導かれる。Output 3000 to give A+B+1 obtained in this way
The power output 50oO giving
On the other hand, respectively, A+B+1 reaching 0″
? : Leading O counting circuit 8 for counting, and leading 0 counting circuit 9 for counting leading 0's of (A + Li), thus counting the number of leading O's of f'L and t respectively.
are guided by their respective inputs.
さて、演算器4が前述の演菊A+Bを行なった結果オー
バーフローが起シ鰺上位桁からキャリーが出ると、この
キャリー出力はライン4 (100を介して選択器6お
よび10に導かする。この結果、選択器6il−Lキャ
リー出力4000にキャリーが出力した場合には、演算
器3の出力3000のA+B+1を選択し、1食キャリ
ー出力4000にキャリーが出力しない場合には反転器
5からの出力5000の(A+B)を選択して、これら
のうちの選択した方の出力を演算結果格納レジスタ7に
格納する。Now, when the arithmetic unit 4 performs the above-mentioned operation A+B and an overflow occurs and a carry is output from the upper digit, this carry output is led to the selectors 6 and 10 via the line 4 (100). , when a carry is output to the selector 6il-L carry output 4000, A+B+1 of the output 3000 of the arithmetic unit 3 is selected, and when a carry is not output to the single carry output 4000, the output 5000 from the inverter 5 is selected. (A+B) is selected, and the output of the selected one of these is stored in the calculation result storage register 7.
一方、選択器lOは同様にキャリー出力4000にキャ
リーが出力した場合にはカウント回路8からの、’A+
B+1のリーディング0をフコラントした出力を選択し
、また、キャリー出力4000にキャリーが出力しない
場合にはカウント回路9からの(A十B)のリーディン
グ0をカウントした出力を選択して、これらのうちの選
択した方の出力をカウント数保持レジスタ11に格納す
る。On the other hand, when a carry is output to the carry output 4000, the selector 10 outputs 'A+' from the count circuit 8.
Select the output that has counted the leading 0 of B+1, and if the carry is not output to the carry output 4000, select the output that has counted the leading 0 of (A + B) from the count circuit 9, and The selected output is stored in the count holding register 11.
以上の処理により、キャリー出力4000は八−Bの演
算給茶の正負の情報(キャリー出力がある場合には正、
ない場合には0または負を表わす)を出力し、レジスタ
7の出カフ00oは引き算結果の絶対値I Am−B
1を出力し、菫たレジスタ11の出力1100は引さ算
結果の絶対値IA−Blのリーディング0の斂を出力す
る。こうしてA−Bの引@算において以後の処理に必要
な結果がすべて得られlこことになる。Through the above processing, the carry output 4000 is the positive and negative information of the calculation of 8-B (if there is a carry output, it is positive,
If not, it outputs 0 or negative), and the output 00o of register 7 is the absolute value of the subtraction result I Am-B
The output 1100 of the summed register 11 outputs the leading zero of the absolute value IA-Bl of the subtraction result. In this way, all the results necessary for the subsequent processing are obtained in the subtraction of A-B.
上述の処理によシ必要な結果が正り、<?4tられる理
由は下記の通シでめる。If the above processing yields the desired result, <? The reason for the 4t is given in the following passage.
最初に、A>Bてらると仮定する。First, assume that A>B.
B〉0の場合、Bの補数■とは、演3¥器のすべての桁
をSS 1 //とり、 /’c数(これを以を之F′
″C表わすことにする)からBを引いfc8<に等しい
。In the case of B〉0, the complement of B is SS 1 // taking all the digits of the function 3\, and /'c number (from now on, F'
``C'' minus B is equal to fc8<.
すなわち、B〉0の場合には、
13F−B ・旧・・・・・・旧・・fl)である。従
って、
A−1−B=A十F−B=F十(A−B)であるが、A
−B)0であるため、Fに正の数を加える結果となりA
+Bは必らずオーバフローしキャリーを出すので、出力
4000を結果が正(01とは負ではない)であること
を示す情報として用いることができる。That is, in the case of B>0, 13F-B・old...old...fl). Therefore, A-1-B=A0F-B=F0(A-B), but A
-B) Since it is 0, it results in adding a positive number to F and A
Since +B always overflows and generates a carry, the output 4000 can be used as information indicating that the result is positive (01 is not negative).
次に、
A−1−B=F+A−B
=F+1−1 +A−B
これより、
A+8+1=1”+1+A−B
となるが、F+1は上位から出るキャリーを表わすので
A+B+1=A−B+上飲からのキャリー・・・(2)
となる。Next, A-1-B=F+A-B =F+1-1 +A-B From this, A+8+1=1”+1+A-B However, since F+1 represents a carry from the top, A+B+1=A-B+from the top Carry...(2)
becomes.
ずなわち、A>Bの場合にはA+Bつチリ演算器4の出
力4000は必らずキャリーを出し、この結果選択器6
によシ演算脱3の出力3000のA十B+1が選はれ、
これはA−BにIA−131よシA−Hの絶対値を正し
く出力していることになる(演Q器3の上位からのキャ
リーは無視さすしている)。That is, in the case of A>B, the output 4000 of the A+B dust calculator 4 always outputs a carry, and as a result, the selector 6
A + B + 1 of the output 3000 of the calculation 3 is selected,
This means that the absolute value of A-H is correctly output to A-B from IA-131 (the carry from the upper part of Q operator 3 is ignored).
また、このとき?:L 、選択器10によりA十B+1
のリーディングOeカウントするカウント回路8側の出
力8000が選択されるので、これも正[7くA−Bの
絶対イ直のリーディング0を出力することになる。At this time again? :L, A+B+1 by selector 10
Since the output 8000 on the counting circuit 8 side that counts the leading Oe of is selected, this also outputs the absolute leading zero of positive [7 A-B.
以上より、A>Bの場合に娃[ずべでが正しい出力であ
ることか分る。From the above, it can be seen that when A>B, the output is correct.
次に、A〈Bと仮定すると以下のようになる。Next, assuming that A<B, the following results.
前と同様に、式(1)を用いて、
へ十石: A−+ F −B
A十B=]” −(B−A ) ・・・・・・(3)と
なる。しかるに、(1:1−A)は上の仮定より0また
け正の数であるためFから(H−A)を引いてもキャリ
ーがでることはない。As before, using equation (1), we get: Hejukoku: A−+F−B A×B=]”−(B−A)・・・・・・(3).However, ( According to the above assumption, 1:1-A) is a positive number by 0, so subtracting (H-A) from F will not result in a carry.
従ってこの場合に演算?24のA−1−Bの演算の結果
は上位の桁からキャリーを出さす、出力4000は結果
が0′!7′斤は狛であることを示す情報を正しく出力
している。Therefore, calculation in this case? The result of the operation A-1-B in 24 is a carry from the upper digit, and the output 4000 is 0'! 7' The information indicating that the cat is a koma is correctly output.
次に式(])のBのかわりに(B−A)を用いると、(
B−A ) =p −(B−A )・・・・・・・・・
(4)これに式(3)の関係を用いると
A−1−B= (B−A )
、’、 (A−1−B ) =B−A= I A−B
1となる。前述のように、出力4000がキャリーを出
さず、このため選択器6により出力5000の(A十B
)が選ばれるが、これは上式で明らかなように、A−H
の絶対値を正しく表わしている。Next, if (B-A) is used instead of B in formula (]), (
B-A) = p-(B-A)...
(4) Using the relationship of formula (3), A-1-B= (B-A),', (A-1-B) = B-A= I A-B
It becomes 1. As mentioned above, the output 4000 does not output a carry, and therefore the selector 6 selects the output 5000 (A + B).
) is selected, but as is clear from the above equation, A−H
It correctly represents the absolute value of .
また、このときは選択器10により(A十B)のリーデ
ィング0をカウントするカウント回路9側の出力が選択
されるので、これも正しくA−Hの絶対値のリーディン
グ0を出力することになる。Also, at this time, the selector 10 selects the output of the count circuit 9 side that counts the leading 0 of (A + B), so this also correctly outputs the leading 0 of the absolute value of A-H. .
かくして、A>Bの場合にもA〈Bの場合にも上述の処
理は正しい結果を与えることが分る。Thus, it can be seen that the above-described processing gives correct results both in the case of A>B and in the case of A<B.
さて、本実施例においては、A十B+1のリーディング
0をカウントするカウント回路8と、(A十B)のリー
ディング0をカウントするカウント回路9とを別々に設
けた決果、A十B+1の演算と(A十B)の演算とを並
行して行なえるばかシでな(、A+B+1の演算とA+
B+1のりディングOを数える演算とをオーバラップし
て行のリーディングOを数える演舞6とをオーバーラツ
プして行なうようにし、演算器4からキャリー4000
を出力する時点においては、回路8によるリーディング
0の演算も回路9によるリーディング0の演算も充分進
行していて、このキヤIJ −4000が出る時点で、
レジスタ7にIA−Blが得られるばかシでなく、レジ
スタ11にIA−BlのリーディングOをカウントした
結果の数をも殆んど同時に得られるようにすることがで
きる。Now, in this embodiment, the result of separately providing the count circuit 8 for counting the leading 0 of A0B+1 and the count circuit 9 for counting the leading 0 of (A0B), is the calculation of A0B+1. It is stupid to be able to perform the operation of and (A + B) in parallel (, the operation of A + B + 1 and the operation of A +
The operation of counting B+1 leading O's is overlapped with the operation 6 of counting the leading O's of the row, and the carry 4000 is carried from the arithmetic unit 4.
At the time of outputting , both the calculation of leading 0 by circuit 8 and the calculation of leading 0 by circuit 9 have progressed sufficiently, and by the time this carrier IJ-4000 is output,
It is not only possible to obtain IA-Bl in register 7, but also to obtain the result of counting the leading O's of IA-Bl in register 11 almost simultaneously.
本実施例のこのメリットは、従来例と比較すると特に明
らかとなる。This advantage of this embodiment becomes especially clear when compared with the conventional example.
第2図は、上述の実施例と同様な処理を行なう従来例の
演算装置を示したものである。FIG. 2 shows a conventional arithmetic unit that performs the same processing as in the above-described embodiment.
第2図の参照数字1′の第1オペランド格納レジスタ1
′から参照数字7′までは、前記実施例の対応する参照
数字の要素と同様な動作を行なう。First operand storage register 1 with reference number 1' in Figure 2
' to reference numeral 7' perform the same operations as the corresponding reference numeral elements in the previous embodiment.
従って、前述の説明で明らかなように、演算器4′から
キヤ’J −4000’が出る時点で演算結果格納レジ
スタ7′にはIA−Blの正しい演算結果が出力される
。Therefore, as is clear from the above explanation, when the signal 'J-4000' is output from the arithmetic unit 4', the correct arithmetic result of IA-Bl is outputted to the arithmetic result storage register 7'.
こうしてIA−Blの値が一義的に、決定したあとでリ
ーディング0カウント回路12はこのIA−Blのリー
ディング0のカウントを開始し、そのカウント結果をカ
ウント結果をカウント数格納レジスタ11′に出力する
。After the value of IA-Bl is uniquely determined in this way, the leading 0 count circuit 12 starts counting the leading 0 of this IA-Bl, and outputs the count result to the count storage register 11'. .
この結果、従来例においてはIA−Blの演算が完全に
すんでその正しい結果が一義的に与えられてから、はじ
めてそのリーディングOのカウントが開始され、IA−
Blの演算とリーディング0の演算とはオーバーラツプ
することができず必らず縦統された演算となる。As a result, in the conventional example, counting of the leading O is started only after the calculation of IA-Bl is completed and the correct result is uniquely given, and
The Bl operation and the leading 0 operation cannot overlap and are necessarily vertically coordinated operations.
このため本発明の実施例の方がその演算時間が短縮され
ることは明らかである。Therefore, it is clear that the calculation time of the embodiment of the present invention is shorter.
実際に従来装置においてはIA−Blの演算結果が確定
した後にリーディングOのカウントを行なっているため
に演算サイクルとリーディングOのカウントサイクルの
2サイクル必要であるが、本発明の実施例によると1サ
イクルでリーディングOのカウントまで行なうようにす
ることかで−きる。Actually, in the conventional device, the leading O is counted after the calculation result of IA-Bl is determined, so two cycles are required: the calculation cycle and the leading O count cycle, but according to the embodiment of the present invention, one cycle is required. This can be done by making the cycle count up to the leading O.
次に、演算器とリーディング0カウント回路との間でオ
ーバーラツプする動作を行なうようにした一例を、キャ
リー人力0の演算器側(第1図の演算器4反転器5およ
びリーディング0カウント回路9を含む側)について例
示する。Next, we will explain an example of overlapping operations between the arithmetic unit and the leading 0 count circuit on the arithmetic unit side with zero carry power (the arithmetic unit 4 inverter 5 and leading 0 count circuit 9 in Figure 1). The following is an example of the including side).
この例においては、演算すべきデータのビット幅を2等
分して(例えば16ビツト幅の演算においては上位桁側
8ビツトと下位桁側8ビツトとに2等分し7て)、下位
桁側の演算と、上位桁側の演舞とを同時に平行j7て行
なう。但し、上位桁側の演算は、下位桁側〃・らのキャ
リーがある場合の演算と下位桁側lからのキャリーがな
い場合の演算との両方を、下位桁側からのキャリーのい
かんにかかわらす前もって平行し、て行なってj?き、
下位桁から実際にキャリーが出る時点で、実際のキャリ
ーの有無により、その正し、い方を選択して最終出力と
する。このような方位により演算時間を太いに短縮する
ことができる。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 digit is divided into 8 bits and the lower digit is divided into 8 bits), and the lower digit is divided into two. The calculation on the side and the performance on the high-order digit side are performed in parallel j7 at the same time. However, for calculations on the high-order digits, both calculations when there is a carry from the low-order digits and operations when there is no carry from the low-order digits are performed regardless of whether there is a carry from the low-order digits. Do it in parallel beforehand? tree,
When a carry actually appears from the lower digit, the correct or incorrect one is selected depending on the presence or absence of an actual carry and is used as the final output. Such an orientation can significantly shorten the calculation time.
第3図は、このような動作をする演算器4と反転器5と
リーティングθカウント回路9との構成を示したもので
、演算器41は下位桁側の演算器、演算器42は1位桁
側からのキャリーがないとしプtときの上位桁側の演X
器、笠だ演算器43は下位桁側からのキャリーがあると
したときの上位桁側の演算器、反転器51,52.およ
び53はそれぞれ演算器41.42..43の出力の補
数をとる反転器、リーチインク0カレント回路91およ
び92はそれぞれ、前もって下位桁からのキャリーがな
いとして演算しプヒ勧台、および薊もってキャリーがあ
るとして演算した場合の演算結果のリーディング0をめ
る回路、1だ切替器4、■。FIG. 3 shows the configuration of the arithmetic unit 4, inverter 5, and leading θ count circuit 9 that operate as described above. If there is no carry from the digit side, then the performance of the upper digit side when t is
When there is a carry from the lower digit side, the Kasada calculation unit 43 is used as the calculation unit and inverter 51, 52 . and 53 are arithmetic units 41, 42, . .. The inverter and reach ink 0 current circuits 91 and 92, which take the complement of the output of 43, calculate the result of the calculation assuming that there is no carry from the lower digit in advance, and the calculation result when the calculation is performed assuming that there is a carry from the lower digit. Circuit to set leading 0, 1 switch 4, ■.
45および93はそれぞtL、下位桁からのキャリー4
100がある場合に、前もってキャリーかめるとして演
算した方の側の各演算結果を選択して出力し、キャリー
410oがない場合に前もってチャリーがないとして演
算した方の側の各演X紹果を選択して出力する選択器で
ある。45 and 93 are respectively tL, carry 4 from the lower digit
If there is 100, select and output the results of the calculations on the side that was calculated in advance assuming that there is no carry, and if there is no carry 410o, select each operation This is a selector that outputs the
この第3図に示した部分の動作は、以上の説明と第1図
を参照することとによp容易に理解されるであろう。The operation of the portion shown in FIG. 3 will be easily understood by referring to the above explanation and FIG.
なお、以上の例では、演算すべきデータの全ビット幅を
2等分し、上位桁側については下位桁からのキャリーが
ある場合とない場合とを前もって平行に演斜するように
したが、このかわりに、さらに分割数を多くして、最下
位桁以外については、下位桁からのキャリーがある場合
とない縁1合とについて前もって平行して演算「を行な
い、最下位桁側からのキャリー出力によって、それらの
結果の中から正しい糾合ぜを選択するというようにする
こともできる。Note that in the above example, the total bit width of the data to be calculated is divided into two equal parts, and the upper digits are delineated in parallel in advance with and without carry from the lower digits. Instead of this, the number of divisions is further increased, and for digits other than the least significant digit, calculations are performed in advance in parallel for cases where there is a carry from the least significant digit and edge 1 match where there is no carry from the least significant digit. Depending on the output, the correct combination can be selected from among the results.
以上のように本発明を用いると、絶対値演算を行ないそ
の演算結芽゛を正規化する機能を有する演算装置におい
て絶対値の引き算に対する演算時間を短縮できるという
効果かある。As described above, the present invention has the effect of reducing the calculation time for absolute value subtraction in an arithmetic device having the function of performing absolute value calculations and normalizing the results of the calculations.
第1図は本発明の一実施例を示すブロック図、第2図は
従来例を示すブロック図および第3図は前記実施例の一
部を詳細に説明するf(めのブロック図で・5る。
図において、
1・・・・・・第1オペランド格納レジスタ、2・・・
・・・紀2オペランド格納レジスタ、3・・・・・・キ
ャリー人力%11の演算器、4・・・・・・キャリー人
力ts Ottの演算器、6.10・・・・・・選択器
、7・・・・・・演−疼A吉果格納レジスタ、8.9・
・・・・・リーディングOカウント回路、11・・・・
・・カランl保持レジスタ、41,42゜43・・・・
・・演算器、51,52.53・・・・・・反転器、9
1.92・・・・・・リーティングθカウント回路、4
’4.45.93・・・・・・選択器。
第1 通
早2 口FIG. 1 is a block diagram showing an embodiment of the present invention, FIG. 2 is a block diagram showing a conventional example, and FIG. 3 is a block diagram explaining a part of the embodiment in detail. In the figure, 1...first operand storage register, 2...
...K2 operand storage register, 3...Carry human power %11 arithmetic unit, 4...Carry human power ts Ott arithmetic unit, 6.10...Selector , 7... performance-pain A good luck storage register, 8.9.
...Reading O count circuit, 11...
・・Karan l holding register, 41, 42゜43・・・・
... Arithmetic unit, 51, 52.53... Inverter, 9
1.92...Leating θ count circuit, 4
'4.45.93...Selector. 1st pass 2 mouths
Claims (1)
する演算装置において、 下位からのキャリイ人力111の演算を行ないこの演算
結果に相当する値のリーディング%0〃をカウントする
回路と、 下位からのキャリイ人力気OIの演算を行ないこの演算
結果に相当する値の各桁毎の補数のリーテング%01を
カウントする回路と、 この二つの回路のいずれかの出力を前記演算結果によシ
生ずるキャリイに応答して選択するようにした選択回路
とを含むことを特徴とする演算装置。[Claims] In an arithmetic device having a function of performing absolute value calculation and normalizing the result of the calculation, a calculation of the carry force 111 from the lower order is performed and the leading %0 of the value corresponding to the result of this calculation is counted. A circuit that calculates the carry human power OI from the lower order and counts the reading %01 of the complement of each digit of the value corresponding to the result of this calculation, and the output of either of these two circuits as the result of the calculation. and a selection circuit configured to make a selection in response to a carry occurring due to an error.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP17962383A JPS6072021A (en) | 1983-09-28 | 1983-09-28 | Operating device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP17962383A JPS6072021A (en) | 1983-09-28 | 1983-09-28 | Operating device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS6072021A true JPS6072021A (en) | 1985-04-24 |
| JPH0150930B2 JPH0150930B2 (en) | 1989-11-01 |
Family
ID=16068998
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP17962383A Granted JPS6072021A (en) | 1983-09-28 | 1983-09-28 | Operating device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS6072021A (en) |
-
1983
- 1983-09-28 JP JP17962383A patent/JPS6072021A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPH0150930B2 (en) | 1989-11-01 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US4338675A (en) | Numeric data processor | |
| JPS61237133A (en) | Arithmetic circuit | |
| JPH0520028A (en) | Mantissa processing circuit of floating point arithmetic unit for addition and subtraction | |
| JPS584369B2 (en) | Digit Validity Tracker | |
| US7219117B2 (en) | Methods and systems for computing floating-point intervals | |
| JPS61141033A (en) | Arithmetic processor | |
| JPS6072021A (en) | Operating device | |
| US7236999B2 (en) | Methods and systems for computing the quotient of floating-point intervals | |
| US6571264B1 (en) | Floating-point arithmetic device | |
| JP4439060B2 (en) | Floating point adder | |
| US20070162535A1 (en) | Rounding floating point division results | |
| JP2507183B2 (en) | Floating point addition / subtraction unit | |
| JPS62128331A (en) | Information processor | |
| US3757097A (en) | Ediate arithmetic results extra bit for floating decimal control and correction of false interm | |
| JPS61224036A (en) | Arithmetic unit | |
| JPS59154542A (en) | multiplication device | |
| US20180336013A1 (en) | Arithmetic unit and control method for arithmetic unit | |
| JPS63158626A (en) | Arithmetic processing unit | |
| JPH0352093B2 (en) | ||
| SU943709A1 (en) | Arithmetic-logic device | |
| GB846100A (en) | Improvements in or relating to digital computer circuits | |
| JPH0367328A (en) | floating point arithmetic unit | |
| SU885994A1 (en) | Computing device | |
| JPS6198442A (en) | Arithmetic unit | |
| JPS581244A (en) | Detecting method for exception of floating decimal point instruction |