JPH03220668A - Product sum arithmetic unit - Google Patents

Product sum arithmetic unit

Info

Publication number
JPH03220668A
JPH03220668A JP1683790A JP1683790A JPH03220668A JP H03220668 A JPH03220668 A JP H03220668A JP 1683790 A JP1683790 A JP 1683790A JP 1683790 A JP1683790 A JP 1683790A JP H03220668 A JPH03220668 A JP H03220668A
Authority
JP
Japan
Prior art keywords
carry
adder
sum
csa
accumulator
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
Application number
JP1683790A
Other languages
Japanese (ja)
Inventor
Makoto Yoshida
誠 吉田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP1683790A priority Critical patent/JPH03220668A/en
Publication of JPH03220668A publication Critical patent/JPH03220668A/en
Pending legal-status Critical Current

Links

Landscapes

  • Complex Calculations (AREA)

Abstract

PURPOSE:To execute product sum arithmetic by obtaining carry save adder (CSA) constitution by a full adder for an accumulator without using a carry propagation adder (CPA). CONSTITUTION:On the output stage of a CSA 2, the data output is expressed by the two bits of Sum and Carry concerning a bit equipped with the same weight. Even at an accumulator 3 with the CSA constitution, the constitution is caused by the CSA itself and therefore, the output is similarly expressed by the two bits of the Sum and the Carry as well. Therefore, the accumulator 3 with the CSA constitution obtains the input/output relation of 4 inputs / 2 outputs and is composed of FA in two steps. By adding these two bits at a CPA 6 after ending accumulation, the bit can be converted to a normal binary number. Thus, an arithmetic procedure at the CPA 6 is not interposed to an accumulation cycle, the product sum arithmetic can be accelerated.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は積和演算器に関し、特に算術演算を実行する積
和演算器に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a product-sum calculator, and more particularly to a product-sum calculator that performs arithmetic operations.

〔従来の技術〕[Conventional technology]

従来、この種の積和演算器は、並列乗算器とキャリープ
ロパゲーションアダー(CPA)を用いたアキュームレ
ータとを組合せて構成されているのが一般である。第3
図に示されるのは従来の4ビツトの積和演算器のブロッ
ク図で、被乗数として(XO〜X3)に対応する4個の
レジスタ(Reg)を含む人力デークラッチ13と、多
段のフルアダー(FA)を配列して構成されるキャリー
セーブアダー(C3A)14と、キャリーセーブアダー
(C3A)構成のアキュームレータ15と、を含む並列
乗算器と、キャリープロパゲーションアダー(CPA)
16と、アキュームレーションレジスタ17と、を備え
て構成される。
Conventionally, this type of product-sum calculation unit is generally configured by combining a parallel multiplier and an accumulator using a carry propagation adder (CPA). Third
What is shown in the figure is a block diagram of a conventional 4-bit product-sum calculator, which includes a manual data latch 13 that includes four registers (Reg) corresponding to (XO to X3) as multiplicands, and a multistage full adder (FA). ), a parallel multiplier including a carry save adder (C3A) 14 configured by arranging a carry save adder (C3A), an accumulator 15 having a carry save adder (C3A) configuration, and a carry propagation adder (CPA).
16 and an accumulation register 17.

第3図において、入力データラッチ13の出力はキャリ
ーセーブアダー(C3A)14に入力され、キャリーセ
ーブアダー(C3A)1.4において部分積が加算され
て、同じ重みを持つビットに対しては、相信号〈以下、
Sumと略称する〉と桁上げ信号(以下、Carryと
略称する)の2ピツI〜に収束される。なお、第3図に
おいて、*印にて示されるのは「O入力」を表わしてい
る(このことは、第1−図および第2図についても同様
である)。
In FIG. 3, the output of the input data latch 13 is input to a carry save adder (C3A) 14, where the partial products are added together, and for bits with the same weight, Phase signal (hereinafter,
The signal is converged to two pins I~, a carry signal (hereinafter abbreviated as Carry) and a carry signal (hereinafter abbreviated as Carry). Note that in FIG. 3, the mark * represents "O input" (this also applies to FIGS. 1-2).

乗算結果は、上記の収束結果をキャリープロパゲーショ
ンアダー(CPA)16において加算することによって
得られるが、最終段のキャリープロパゲーションアダー
(CPA)16の入力側に、フルアダー(FA)を1−
設配列して構成されるアキュームレータ15を設けるこ
とにより、キャリープロパゲーションアダ=(CPA)
16に対する入力を3人力とし、前記乗算結果とアキュ
ームレーションレジスタ17との加算もしくは−g算を
行うことができるようにすることにより、積和演算が実
行される。
The multiplication result is obtained by adding the above convergence results in the carry propagation adder (CPA) 16, but a full adder (FA) is connected to the input side of the carry propagation adder (CPA) 16 at the final stage.
By providing the accumulator 15 which is arranged in the following manner, the carry propagation adapter (CPA)
The sum-of-products operation is executed by inputting the inputs to the multiplication register 16 by three people and making it possible to add the multiplication result to the accumulation register 17 or perform -g calculation.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上述した従来の積和演算器においては、演算時のアキヱ
ームレーシゴンサイクルの内にキャリープロパゲーショ
ンアダー(CPA)の動作が含まれている。このため、
連続的に積和演算を行う場合に、サイクルタイムを短縮
することが困難になるという欠点がある。
In the conventional product-sum calculator described above, the carry propagation adder (CPA) operation is included in the acquisition cycle during calculation. For this reason,
There is a drawback that it is difficult to shorten the cycle time when performing product-sum operations continuously.

〔課題を解決するための手段〕[Means to solve the problem]

本発明の積和演算器は、少なくとも四つの入力の内、二
つの入力としては乗算の部分積の和として得られる和信
号と桁」二げ信号とを入力し、残りの二つの入力として
は所定のアキニームレータの出力として得られる累算結
果の和信号と前記桁上げ信号とを入力して、前記四つの
入力に対応する二つの出力を有するキャリーセーブアダ
ーにより形成されるN(正整数)ビットの前記アキュー
ムレータを備えて構成される。
The product-sum calculator of the present invention has at least four inputs, two of which are a sum signal obtained as the sum of partial products of multiplication and a digit signal, and the remaining two inputs are N (positive integer ) bits.

〔実施例〕〔Example〕

次に、本発明について図面を参照して説明する。第工図
は本発明の第1の実施例で、4ビツトの積和演算器を示
すブロック図である。第1図においては、簡単のために
絶対値表現とし、被乗数のみのデータの流れに沿って構
成が示されている。
Next, the present invention will be explained with reference to the drawings. The first embodiment of the present invention is a block diagram showing a 4-bit product-sum calculator. In FIG. 1, absolute value expression is used for simplicity, and the configuration is shown along the flow of data of only the multiplicand.

第1図に示されるように、本実施例は、被乗数(XO〜
X3)に対応する4個のレジスタ(Reg)を含む入力
データラッチ1.と、多段のフルアダー(FA)を配列
して構成されるキャリーセーブアダー(C8A)2と、
キャリーセーブアダー(C3A)構成のアキュームレー
タ3と、を合む並列乗算器と、アキュームレーションレ
ジスタ4と、アキニームレーシヨン桁上げ信号ラッチ5
と、キャリープロパゲーションアダー(CPA)6と、
を備えて構成される。
As shown in FIG. 1, in this embodiment, the multiplicand (XO~
An input data latch including four registers (Reg) corresponding to 1.X3). and a carry-save adder (C8A) 2 that is configured by arranging multi-stage full adders (FA).
An accumulator 3 having a carry-save adder (C3A) configuration, a parallel multiplier that combines the two, an accumulation register 4, and an accumulation carry signal latch 5.
, carry propagation adder (CPA) 6,
It is composed of:

第1図において、(XO〜X3>の被乗数は、それぞれ
対応するレジスタ(Reg)を含む入力データラッチ1
によりラッチされ、フルアダー(FA)のアレイ構成に
よって形成されるキャリーセーブアダー(C3A)2に
入力される。キャリーセーブアダー(C3A)2におい
ては、前記のラッチされた被乗数が取込まれて乗算部分
積の和が計算され、その計算結果はキャリープロパゲー
ションアダー(C3A)構成によるアキニームレータ3
に送られる。アキュームレータ3においては、キャリー
セーブアダー(C3A)2の出力と、アキヱームレーシ
ョンレジスタ4から出力されるアキュ−ムレーシゴン結
果ラッチ出力とが加減算され、その計算出力は、アキュ
ームレーションレジスタ4に入力される。
In FIG. 1, the multiplicands of (XO to X3> are the input data latch 1 including the corresponding register (Reg).
and is input to the carry save adder (C3A) 2 formed by a full adder (FA) array configuration. In the carry save adder (C3A) 2, the latched multiplicand is taken in and the sum of the multiplication partial products is calculated, and the calculation result is sent to the carry propagation adder (C3A) configuration.
sent to. In the accumulator 3, the output of the carry save adder (C3A) 2 and the accumulation result latch output from the accumulation register 4 are added and subtracted, and the calculation output is input to the accumulation register 4. Ru.

キャリーセーブアダー(C3A)、2の出力段階におい
ては、そのデータ出力は、同じ重みを持つビットにつき
SumとCarryの2ビツトで表されている。また、
キャリーセーブアダー(CSA)構成のアキュームレー
タ3においても、その構成がキャリーセーブアダー(C
8A)そのものによっているため、その出力も同様にS
umとCarr、yの2ビツトで表される。従って、キ
ャリーセーブアダー (C3A)構成のアキニームレー
タ3は、4人力/2出力の入出力関係となり、2段のフ
ルアダー (FA)により構成される。
At the output stage of the carry save adder (C3A), 2, its data output is represented by two bits, Sum and Carry, for bits with the same weight. Also,
Even in the accumulator 3 having a carry save adder (CSA) configuration, the structure is similar to that of a carry save adder (CSA).
8A) itself, its output is also S
It is represented by two bits: um, Carr, and y. Therefore, the Akinimulator 3 configured as a carry save adder (C3A) has an input/output relationship of 4 human power/2 outputs, and is composed of a 2-stage full adder (FA).

また、アキニームレーシゴンの結果は、同じ重みを持つ
各ビットにつきSumとCarriyの2ビツトにより
表されているので、アキュームレーション終了後に、キ
ャリープロパゲーションアダー(CPA)6において、
この2ビツトを加算することにより、通常の2進数に変
換することが可能となる。従って、アキュームレーシヲ
ン・サイクルには、キャリープロパゲーションアダー(
CPA)6における演算手順が介入しないため、積和演
算の高速化が可能となる。
Furthermore, since the result of the akineem ratio is represented by two bits, Sum and Carry, for each bit having the same weight, after the accumulation is completed, in the carry propagation adder (CPA) 6,
By adding these 2 bits, it is possible to convert to a normal binary number. Therefore, the accumulation cycle includes a carry propagation adder (
Since the calculation procedure in CPA) 6 does not intervene, it is possible to speed up the product-sum calculation.

次に、本発明の第2の実施例について説明する。第2図
は、第2の実施例を示すブロック図である。第2図に示
されるように、本実施例は、被乗数(XO〜X3)に対
応する4個のレジスタ(Reg)を含む入力データラッ
チ7と、多段のフルアダー(FA)を配列して構成され
るキャリーセーブアダー<C3A)8と、キャリーセー
ブアダー(C3A)構成のアキュームレータ9と、を含
む並列乗算器と、アキュームレーションレジスタ■0と
、アキュームレーシヨン桁上げ信号ラッチ11と、キャ
リープロパゲーションアダー(CPA)12と、を備え
て構成される。
Next, a second embodiment of the present invention will be described. FIG. 2 is a block diagram showing a second embodiment. As shown in FIG. 2, this embodiment is configured by arranging an input data latch 7 including four registers (Reg) corresponding to multiplicands (XO to X3) and a multistage full adder (FA). a parallel multiplier including a carry save adder <C3A) 8, an accumulator 9 having a carry save adder (C3A) configuration, an accumulation register 0, an accumulation carry signal latch 11, and a carry propagation adder. (CPA) 12.

第2図において、本実施例の第1の実施例との相違点は
、キャリープロパゲーション(CPA)構成のキューム
ーレータ9に、2ビツト分に対応するフルアダー(FA
)を追加して、オーバーフローガード・ビットを設け、
更に、アキュームレーシヨン・レジスタ10にも、これ
に対応するレジスタを付加していることである。キャリ
ーセーブアダー(CS A、 )を用いたアキュームレ
ータによって、オーバーフローを検出することは困難で
あるが、上記のオーバーフローガード・ビットを設ける
ことにより、ガード・ピッI〜が2ビツトであるため、
アキュームレーシヨンにおけるオーバーフローが、3回
までは回避されるという利点がある。
In FIG. 2, the difference between this embodiment and the first embodiment is that a full adder (FA
) and provide an overflow guard bit,
Furthermore, a corresponding register is added to the accumulation register 10 as well. Although it is difficult to detect overflow with an accumulator using a carry save adder (CS A, ), by providing the above overflow guard bit, the guard pitch I~ is 2 bits, so
There is an advantage that overflow in the accumulation is avoided up to three times.

〔発明の効果〕〔Effect of the invention〕

以L、詳細に説明したように、本発明は、アキュームレ
ータをキャリープロパゲーションアダー(CPA)を用
いずに、フルアダーによるキャリーセーブアダー(CS
A)構成とするとにより、高速にて積和演算を実行する
ことができるという効果がある。
As explained in detail below, the present invention provides an accumulator with a carry save adder (CS) using a full adder without using a carry propagation adder (CPA).
A) With the configuration, there is an effect that the sum of products operation can be executed at high speed.

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

第1図および第2図は、それぞれ本発明の第1および第
2の実施例を示すブロック図、第3図は従来例を示すブ
ロック図である。 図において、1,7.13−・・・・・入力データラッ
チ、2,8.14・・・・・キャリーセーブアダー(C
3A)、3,9.15・・・・・・アキュームレータ、
410.17・・・・−・アキュームレーシゴンレジス
タ、5゜11・・・・・・アキュームレーシゴン桁上げ
ラッチ、6゜12、16・・・・・キャリープロパゲー
ションアダー(CPA)。
1 and 2 are block diagrams showing first and second embodiments of the present invention, respectively, and FIG. 3 is a block diagram showing a conventional example. In the figure, 1, 7.13--input data latch, 2, 8.14--carry save adder (C
3A), 3,9.15...accumulator,
410.17...Accumulation register, 5°11...Accumulation carry latch, 6°12, 16...Carry propagation adder (CPA).

Claims (1)

【特許請求の範囲】[Claims] 少なくとも四つの入力の内、二つの入力としては乗算の
部分積の和として得られる和信号と桁上げ信号とを入力
し、残りの二つの入力としては所定のアキュームレータ
の出力として得られる累算結果の和信号と前記桁上げ信
号とを入力して、前記四つの入力に対応する二つの出力
を有するキャリーセーブアダーにより形成されるN(正
整数)ビットの前記アキュームレータを備えることを特
徴とする積和演算器。
Among at least four inputs, two inputs are the sum signal and carry signal obtained as the sum of partial products of multiplication, and the remaining two inputs are the accumulation results obtained as the output of a predetermined accumulator. and the carry signal, and the N (positive integer) bit accumulator is formed by a carry-save adder having two outputs corresponding to the four inputs. Sum operator.
JP1683790A 1990-01-25 1990-01-25 Product sum arithmetic unit Pending JPH03220668A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1683790A JPH03220668A (en) 1990-01-25 1990-01-25 Product sum arithmetic unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1683790A JPH03220668A (en) 1990-01-25 1990-01-25 Product sum arithmetic unit

Publications (1)

Publication Number Publication Date
JPH03220668A true JPH03220668A (en) 1991-09-27

Family

ID=11927316

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1683790A Pending JPH03220668A (en) 1990-01-25 1990-01-25 Product sum arithmetic unit

Country Status (1)

Country Link
JP (1) JPH03220668A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8637126B2 (en) 2006-02-06 2014-01-28 International Paper Co. Biodegradable paper-based laminate with oxygen and moisture barrier properties and method for making biodegradable paper-based laminate

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8637126B2 (en) 2006-02-06 2014-01-28 International Paper Co. Biodegradable paper-based laminate with oxygen and moisture barrier properties and method for making biodegradable paper-based laminate

Similar Documents

Publication Publication Date Title
JP3761977B2 (en) Floating-point multiplier with reduced critical path by using delay matching technology and its operation method
JPS6347874A (en) Arithmetic unit
JPH0375901B2 (en)
JPH0368416B2 (en)
JP2012528391A (en) Integer and multiply-add operations with saturation
JP3345894B2 (en) Floating point multiplier
JPH03220668A (en) Product sum arithmetic unit
JPH0776914B2 (en) Multiplication circuit
Singh et al. Design Of High-Speed Vedic Multiplier Using Urdhva Tiryakbhyam Sutra
JP2765516B2 (en) Multiply-accumulate unit
Sasidharan et al. Comparison of Multipliers Based on Modified Booth Algorithm
JPH0371331A (en) Multiplier
JPH0484264A (en) Product sum arithmetic unit
JPH07141148A (en) Pipeline parallel multiplier
JPS6259828B2 (en)
JP2607735B2 (en) Multiplier partial product addition method
JPH09505170A (en) Short run time multiplier
JPH01245334A (en) Calculator for parity bit of sum of two numbers
JPH04250527A (en) Arithmetic circuit
JP3093564B2 (en) Multiplication device
SU824197A1 (en) Computing device
MULTIPLIER FOR DIGITALHEARINGAIDS
JPS62128334A (en) Multiplication circuit
JPS6222144A (en) Decimal arithmetic circuit
JPH0566924A (en) Product sum computing element