JPS5957342A - Decimal adder - Google Patents
Decimal adderInfo
- Publication number
- JPS5957342A JPS5957342A JP16748282A JP16748282A JPS5957342A JP S5957342 A JPS5957342 A JP S5957342A JP 16748282 A JP16748282 A JP 16748282A JP 16748282 A JP16748282 A JP 16748282A JP S5957342 A JPS5957342 A JP S5957342A
- Authority
- JP
- Japan
- Prior art keywords
- input
- adder
- addition
- register
- digit
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR 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/491—Computations with decimal numbers radix 12 or 20.
- G06F7/492—Computations with decimal numbers radix 12 or 20. using a binary weighted representation within each denomination
- G06F7/493—Computations with decimal numbers radix 12 or 20. using a binary weighted representation within each denomination the representation being the natural binary coded representation, i.e. 8421-code
- G06F7/494—Adding; Subtracting
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR 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/492—Indexing scheme relating to groups G06F7/492 - G06F7/496
- G06F2207/4922—Multi-operand adding or subtracting
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR 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/492—Indexing scheme relating to groups G06F7/492 - G06F7/496
- G06F2207/4924—Digit-parallel adding or subtracting
Landscapes
- Engineering & Computer Science (AREA)
- Computing Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Computational Mathematics (AREA)
- Mathematical Analysis (AREA)
- Mathematical Optimization (AREA)
- Pure & Applied Mathematics (AREA)
- General Engineering & Computer Science (AREA)
Abstract
Description
【発明の詳細な説明】
本発明は,複数の2進化10進数の累積加算を接舷サイ
クルで実行する情報処理装置における10進加算装置に
関する。DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a decimal adder in an information processing device that performs cumulative addition of a plurality of binary coded decimal numbers in an alongside cycle.
従来,唯1つの3人力2進加算器を用いて2つの10進
数の加算を行なう場合には,io進数としての補正が必
要なために1回の10進加算に対して2ザイクルの処理
を行っていた。すなわち。Conventionally, when adding two decimal numbers using the only three-manpower binary adder, two cycles of processing were required for one decimal addition because correction as an io-base number was required. I was going. Namely.
第1の加算(中間和フェーズ)においては、被加数,加
数,16進表示値′°66・・・6′″および0″をそ
れぞれ3人力2進加算器の第1,第2,第3人力および
キャリー人力に与えて加算を行なう。In the first addition (intermediate sum phase), the summand, the addend, the hexadecimal display values '°66...6''' and 0'' are respectively added to the first and second nodes of the three-man binary adder. Addition is made to the third manpower and carry manpower.
このとき、各桁からのキャリー出力を導出して。At this time, derive the carry output from each digit.
これを保持する。次の第2の加算(補正フェーズ)にお
いては、上記第1の加算により得られた結果のうち,対
応するキャリー出力が°′0″の桁から独立に“°6″
′を引くことによって10進数を得るようにしたもので
あり,その為には,第1の加算結果から得られた中間和
、16進数表示値°°000″、第1の加算におけるキ
ャIJ−出力パ0′″の桁を” F″′とし II I
IIの桁を′9″とする16進数お」:びII I
IIをそれぞれ3人力2進加算器の第1.第2.第3人
力およびキャリー人力に与えて2進加算を実行し、結果
的に正確な10進数を得ている。しかし乍ら、n個の1
0進数の累積加算を上記のごとき方法の繰り返しにより
実行するには、2 (n−1)回の加算サイクルの処理
となり10進累積加算の処理速度を低下させる要因にな
っていた。また、この方法を乗数に相当する被乗数の加
算を繰り返す10進乗算方式に適用した場合には累積加
算に要する処理速度の低下は更に顕著になる。hold this. In the next second addition (correction phase), among the results obtained by the first addition, the corresponding carry output is "°6" independently from the °'0" digit.
The decimal number is obtained by subtracting ', and in order to do so, the intermediate sum obtained from the first addition result, the hexadecimal display value °°000'', and the decimal number in the first addition are Set the digit of output par 0'' as "F"' II I
Hexadecimal number with digit II as '9'': and II I
II respectively to the first . Second. Binary addition is performed by applying it to the third human power and the carry human power, resulting in an accurate decimal number. However, n 1
In order to perform cumulative addition of decimal numbers by repeating the above method, 2 (n-1) addition cycles are required, which is a factor that reduces the processing speed of decimal cumulative addition. Furthermore, when this method is applied to a decimal multiplication method in which multiplicands corresponding to multipliers are repeatedly added, the processing speed required for cumulative addition becomes even more noticeable.
本発明の目的は、複数個の2進化10進数の累積加算を
3人力2進加算器を用いて実行する場合。An object of the present invention is to perform cumulative addition of a plurality of binary coded decimal numbers using a three-person binary adder.
2回目以後の加算において補正フェーズを中間和を求め
るフェーズと同一サイクルで実行するよう制御すること
により、従来の欠点を除去し、累積装置における10進
加算装置を提供することにある。The object of the present invention is to provide a decimal adder in an accumulator by eliminating the conventional drawbacks by controlling the correction phase in the second and subsequent additions to be executed in the same cycle as the phase for calculating the intermediate sum.
本発明の10進加算装置は、複数の2進化10進数の累
積加算を複数サイクルで実行する情報処理装置において
、最下位桁へのキャリー人力手段および各桁からのキャ
リー出力手段を備えた3人力2進加算器と、被加数、ま
たは前記加算器の出力として得られる中間和のいずれか
を選択して前記加算器の第1入力に供給する手段と、前
記被加数、−またけ前記中間和のいずれかに対する加数
。The decimal addition device of the present invention is an information processing device that performs cumulative addition of a plurality of binary coded decimal numbers in a plurality of cycles. a binary adder; means for selecting either the summand or an intermediate sum obtained as an output of the adder and supplying the selected sum to a first input of the adder; Addend to one of the intermediate sums.
または定数のいずれかを選択して前記加算器の第2人力
に供給する手段と、各桁ごとに独立に、16進表示値I
I Q II 、 115″′、“9″またはII F
IHのうちのいずれかを選択して前記加算器の第3人力
に供給する手段とによって構成される。or means for selecting one of the constants and supplying it to the second input of the adder, and independently for each digit, the hexadecimal display value I
I Q II, 115''', "9" or II F
and means for selecting one of the IHs and supplying it to the third input of the adder.
次に1本発明の実施例について第1図の構成図を参照し
て説明する。この図において、1は3人力2進加算器I
(以下i1iに加算器と呼ぶ)、2は初回の加算時にお
ける被加数、または加算器1の出力をこの加算器lの第
1人力に供給するレジスタ。Next, an embodiment of the present invention will be described with reference to the configuration diagram of FIG. In this figure, 1 is a three-person binary adder I
(hereinafter i1i will be referred to as an adder), 2 is a register that supplies the summand at the time of the first addition or the output of adder 1 to the first input of this adder l.
3は加算器lの第1入力に対する加数を加算器1の第゛
2人力に供給するレジスタ、4は各桁(4ビ、1・)ご
とに独立に16進表示値II Q II、”1.61+
。3 is a register that supplies the addend for the first input of adder l to the second input of adder 1; 4 is a hexadecimal display value II Q II for each digit (4 bits, 1.) independently; 1.61+
.
9”またはF 11を選択して加算器】の第3人力に供
給する選択回路、5は加算器1から得られる各桁のキャ
リー出力を保持するレジスタである。9" or F11 and supplies it to the third input of the adder. 5 is a register that holds the carry output of each digit obtained from the adder 1.
なお9選択回路4の出力論理を示すと、第1表の」二記
のように構成された10進加算装置におい、i
て、n個の10進数批(1≦i ≦n )の累積加算D
1+D2+・・・・・・+D を実行する手順を説明す
ると次のようになる。まず、前処理として、レジスタ1
およびレーゾスタ2にそれぞれDおよびD2がセットさ
れる。次に、第1の加算フェーズ(初回加算フェーズ)
においては、加算器1の第1入力にはレジスタ2の出力
が、第2人力にはレジスタ3の出力が、またキャリー人
力CINには0″′がそれぞれ鳥えられる。さらに2選
択Ii’il路4には°゛第1加算′″が指示され、加
算器1の第3人力に” 6666 ’″が供給される。The output logic of the selection circuit 4 is as follows: In a decimal adder configured as shown in Table 1, cumulative addition of n decimal numbers (1≦i≦n) is performed. D
The procedure for executing 1+D2+...+D is as follows. First, as preprocessing, register 1
and D and D2 are set in the laser star 2, respectively. Next, the first addition phase (initial addition phase)
, the output of register 2 is input to the first input of adder 1, the output of register 3 is input to the second input, and 0''' is input to the carry input CIN.Furthermore, 2 selections Ii'il Path 4 is designated with ``first addition'', and the third input of adder 1 is supplied with ``6666''.
加算器1はこれ等の入力を受けると、中間和をS。−8
3に、また、中間和のそれぞれの桁のキャリー出力をC
6−C5に出力する。加算器1のS。−83より出力さ
れた中間和はレジスタ2に、またC6−C5より取出さ
れた各桁のキャリー出力は保持レジスタ5にそれぞれセ
ットされる。レジスタ3には1次の加算に備えてD3が
セットされる。When the adder 1 receives these inputs, the adder 1 calculates the intermediate sum as S. -8
3, and the carry output of each digit of the intermediate sum as C
6-Output to C5. S of adder 1. The intermediate sum outputted from -83 is set in register 2, and the carry output of each digit taken out from C6-C5 is set in holding register 5, respectively. D3 is set in register 3 in preparation for the primary addition.
第iの加算フェーズ(2≦1≦n−1)(中間加算およ
び補正のフェーズ)においては、加算器lの第1人力に
はレジスタ2からの第(+−1)加算による中間和か、
第2人力にはレジスタ3からのD 、+、が” IN入
力には°′0″がそれぞれ供給される。°′第1加算″
であることを指示された選択回路4は、第1表に示され
るごとく、対応する保持レジスタ5の内容に従って“′
0″′、または6″″を各桁ごとに選択し、加算器1の
第3人力に供給する。加算器1はこれ等の入力を受ける
と、補正が必要な中間和D1−1−D2+・・・・・・
十り、+1をS。−85から、その各桁のキャリー出力
をC3−C3からそれぞれ出力する。5o−83から出
力された中間和はレジスタ2に、また各桁のキャリー出
力は保持レジスタ5にそれぞれセットされる。ここで、
1がi (n −1ならば、レジスタ3には、その次の
第(i+1 )加算に備えてDI+2がセットされ、1
=n−2になるまで」二記の処理を繰り返す。1=n−
1ならば、レジスタ3には第n加算に備えて”oooo
”がセットされる。In the i-th addition phase (2≦1≦n-1) (intermediate addition and correction phase), the first input of adder l is either the intermediate sum by the (+-1)th addition from register 2, or
The second input is supplied with D, +, and "0" from the register 3, respectively, and the IN input is supplied with "0". °'1st addition''
As shown in Table 1, the selection circuit 4 that is instructed to select "'"
0″' or 6″″ is selected for each digit and supplied to the third input of adder 1. When adder 1 receives these inputs, it calculates the intermediate sum D1-1-D2+ that requires correction.・・・・・・
10, +1 to S. -85, the carry output of each digit is output from C3-C3, respectively. The intermediate sum output from 5o-83 is set in register 2, and the carry output of each digit is set in holding register 5, respectively. here,
If 1 is i (n - 1), DI+2 is set in register 3 in preparation for the next (i+1) addition, and 1
2. Repeat the process described in section 2 until = n-2. 1=n-
If it is 1, register 3 contains "oooo" in preparation for the nth addition.
” is set.
第nの加算フェーズ(最終補正フェーズ)においては、
加算器1の第1人力にはレジスタ2からの補正が必要な
中間和り、+D2+・・・・+Dnが、第2込、力には
レジスタ3からの” o o o o ”が。In the nth addition phase (final correction phase),
The first input of adder 1 is the intermediate sum that requires correction from register 2, +D2+...+Dn, and the second input is ``o o o o'' from register 3.
C1N入力には°°1″がそれぞれ供給される。゛′第
n加算″′であることを指示された選択回路11は。°°1'' is supplied to the C1N input, respectively.The selection circuit 11 is instructed to perform the ``nth addition''.
第1表に示されるごとく、対応する保持レジスタ5の内
容に従ってII 9 II、またはII F IIを各
桁ごとに選択【2.加算器lの第3人力に供給する。加
算器1はこれ等の入力を受けると、加算動作により所望
の値(D、 十02+・・・・+D )をS。−83か
ら出力する。As shown in Table 1, select II 9 II or II F II for each digit according to the contents of the corresponding holding register 5 [2. It supplies the third power of adder l. When the adder 1 receives these inputs, it adds the desired value (D, 102+...+D) to S by an addition operation. -Output from 83.
上記の加算動作における処理ザイクルの内容をさらに具
体的に理解するために1例として5つの10進数りに0
278 、 D2= 121.4. D3=2165゜
D4−390・4およびD5−0580を選定し、これ
等の加算結果D1+D2+D3+D4+D5−8141
を得るだめの各加算フェーズにおける加力器1の入出力
状態を示すと次のようになる。In order to understand more specifically the contents of the processing cycle in the above addition operation, as an example, five decimal numbers are 0.
278, D2=121.4. D3=2165°D4-390.4 and D5-0580 are selected, and their addition result is D1+D2+D3+D4+D5-8141
The input/output states of the force adder 1 in each addition phase to obtain the following are shown below.
以下余白
〔第1加算〕
第1人力 0278
第2人力 1214
第3人力 6666
C1N入力 + 0
ssss 出力 7AF2
0 1 23
CCCC出力 0001
01 25
〔第2加算〕
第1入力 7AF2
第2人力 2165
第3人力 0006
C1N入力 十 〇
5sss 出力 9C5D
01 25
CoC1C2C5出力 0010
〔第3加算〕
第1人力 9C5D
第2人力 3904
第3人力 0060
CIN入力 十 0
8oS1S2S3出力 D5CI
CoC1C2C3出力 0101
〔第4加算〕
第1人力 D5C1
第2人力 0580
第3人力 0606
C1N入力 + 0
ssss 出力 E147
0125
cccc 出力 0110
01 23
〔第5加算〕
第1人力 E147
第2人力 0000
第3人力 9FF9
C1N入力 + 1
SoS1S2S3出力 8141
〔発明の効果〕
以上の説明により明らかなように1本発明によれば、唯
1つの3人力2進加算器を用いてn (LのlO進数の
累積加算を行なう場合、10進化補正も含めてn回の加
算で処理することが可能となり。Below margin [1st addition] 1st human power 0278 2nd human power 1214 3rd human power 6666 C1N input + 0 ssss output 7AF2 0 1 23 CCCC output 0001 01 25 [2nd addition] 1st input 7AF2 2nd human power 2165 3rd human power 0006 C1N input 10 05sss output 9C5D 01 25 CoC1C2C5 output 0010 [3rd addition] 1st human power 9C5D 2nd human power 3904 3rd human power 0060 CIN input 10 0 8oS1S2S3 output D5CI CoC1C2C3 output 01 01 [4th addition] 1st human power D5C1 1st 2 human power 0580 3rd human power 0606 C1N input + 0 ssss output E147 0125 cccc output 0110 01 23 [5th addition] 1st human power E147 2nd human power 0000 3rd human power 9FF9 C1N input + 1 SoS1S2S3 output 814 1 [Effect of the invention] Above As is clear from the explanation of 1. According to the present invention, when performing cumulative addition of lO base numbers of n (L) using only one three-manpower binary adder, n times of addition including decimal correction are required. It becomes possible to process.
これにより10進累積加算の高速化が図れる点。This makes it possible to speed up decimal cumulative addition.
情報処理装置に適用して処理性能を向上すべく得られる
効果は犬である。The effects that can be obtained when applied to information processing devices to improve processing performance are significant.
第1図は本発明による実施例の構成を示すブロック図で
ある。図において、】は3人力2進加算器+ 2 +
3 + 5はレジスタ、4は選択回路である。
第1図FIG. 1 is a block diagram showing the configuration of an embodiment according to the present invention. In the figure, ] is a three-person binary adder + 2 +
3 + 5 is a register, and 4 is a selection circuit. Figure 1
Claims (1)
実行する情報処理装置において、最下位桁へのキャリー
人力手段および各桁からのキャリー出力手段を備えた3
人力2進加算器と、被加数。 または前記加算器の出力として得られる中間和のいずれ
かを選択して前記加算器の第1人力に供給する手段と、
前記被加数、または前記中間和のいずれかに対する加数
、−iたけ定数のいずれかを選択して前記加算器の第2
人力に供給する手段と。 各桁ごとに独立に、16進表示値°゛0′″、“15
I+。 °“9″または°“Fllのうちのいずれかを選択して
前記加算器の第3人力に供給する手段とからなることを
特徴とする10進加算装置。 以下余日[Scope of Claims] 1. An information processing device that performs cumulative addition of a plurality of binary coded decimal numbers in a plurality of cycles, comprising a carry manual means to the lowest digit and a carry output means from each digit.
Manual binary adder and summand. or means for selecting one of the intermediate sums obtained as the output of the adder and supplying it to the first power of the adder;
The addend for either the summand or the intermediate sum, or the -i value constant, is selected and the second of the adder is selected.
and means of supplying human power. The hexadecimal display value °゛0''', “15” is displayed independently for each digit.
I+. A decimal addition device characterized by comprising means for selecting either °"9" or °"Fll and supplying it to the third human power of the adder.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP16748282A JPS5957342A (en) | 1982-09-28 | 1982-09-28 | Decimal adder |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP16748282A JPS5957342A (en) | 1982-09-28 | 1982-09-28 | Decimal adder |
Publications (1)
Publication Number | Publication Date |
---|---|
JPS5957342A true JPS5957342A (en) | 1984-04-02 |
Family
ID=15850495
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP16748282A Pending JPS5957342A (en) | 1982-09-28 | 1982-09-28 | Decimal adder |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS5957342A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0206275A2 (en) * | 1985-06-28 | 1986-12-30 | Hewlett-Packard Company | Apparatus for performing repeated addition operations |
-
1982
- 1982-09-28 JP JP16748282A patent/JPS5957342A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0206275A2 (en) * | 1985-06-28 | 1986-12-30 | Hewlett-Packard Company | Apparatus for performing repeated addition operations |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US5046038A (en) | Method and apparatus for performing division using a rectangular aspect ratio multiplier | |
US6233597B1 (en) | Computing apparatus for double-precision multiplication | |
US5909385A (en) | Multiplying method and apparatus | |
US5280439A (en) | Apparatus for determining booth recoder input control signals | |
US6782405B1 (en) | Method and apparatus for performing division and square root functions using a multiplier and a multipartite table | |
JPH05233228A (en) | Floating point arithmetic unit and its arithmetic method | |
JP3418460B2 (en) | Double precision division circuit and method | |
US4725974A (en) | Electronic circuit capable of accurately carrying out a succession of divisions in a pipeline fashion | |
JP3276444B2 (en) | Division circuit | |
JPH0477932B2 (en) | ||
JPH04205026A (en) | Divider circuit | |
US5867413A (en) | Fast method of floating-point multiplication and accumulation | |
JPH0317132B2 (en) | ||
US5734600A (en) | Polynomial multiplier apparatus and method | |
JPS5957342A (en) | Decimal adder | |
JPS58129653A (en) | Multiplication system | |
JP2737933B2 (en) | Division device | |
JP2991788B2 (en) | Decoder | |
JPS6259828B2 (en) | ||
JPH0368415B2 (en) | ||
JPH0621983B2 (en) | Multiplier | |
JPH01314020A (en) | Decimal/binary conversion system | |
JP3230349B2 (en) | Decimal multiplier | |
JP2529890B2 (en) | Multiplicative remainder calculator | |
SU734705A1 (en) | Special-purpose processor |