JPH0418334B2 - - Google Patents

Info

Publication number
JPH0418334B2
JPH0418334B2 JP57077066A JP7706682A JPH0418334B2 JP H0418334 B2 JPH0418334 B2 JP H0418334B2 JP 57077066 A JP57077066 A JP 57077066A JP 7706682 A JP7706682 A JP 7706682A JP H0418334 B2 JPH0418334 B2 JP H0418334B2
Authority
JP
Japan
Prior art keywords
input
circuit
signal
output
addition
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
JP57077066A
Other languages
Japanese (ja)
Other versions
JPS58195250A (en
Inventor
Shunsuke Yoda
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.)
Toshiba Corp
Original Assignee
Tokyo Shibaura Electric Co Ltd
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 Tokyo Shibaura Electric Co Ltd filed Critical Tokyo Shibaura Electric Co Ltd
Priority to JP57077066A priority Critical patent/JPS58195250A/en
Publication of JPS58195250A publication Critical patent/JPS58195250A/en
Publication of JPH0418334B2 publication Critical patent/JPH0418334B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F7/00Methods or arrangements for processing data by operating upon the order or content of the data handled
    • G06F7/38Methods or arrangements for performing computations using exclusively denominational number representation, e.g. using binary, ternary, decimal representation
    • G06F7/48Methods 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/50Adding; Subtracting
    • G06F7/504Adding; Subtracting in bit-serial fashion, i.e. having a single digit-handling circuit treating all denominations after each other
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F7/00Methods or arrangements for processing data by operating upon the order or content of the data handled
    • G06F7/38Methods or arrangements for performing computations using exclusively denominational number representation, e.g. using binary, ternary, decimal representation
    • G06F7/48Methods 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/499Denomination or exception handling, e.g. rounding or overflow
    • G06F7/49942Significance control
    • G06F7/49947Rounding

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Computational Mathematics (AREA)
  • Mathematical Analysis (AREA)
  • Pure & Applied Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computing Systems (AREA)
  • Mathematical Optimization (AREA)
  • General Engineering & Computer Science (AREA)

Description

【発明の詳細な説明】 〔発明の技術分野〕 この発明は丸め演算機能を有するデイジタル加
算回路に関する。
DETAILED DESCRIPTION OF THE INVENTION [Technical Field of the Invention] The present invention relates to a digital adder circuit having a rounding operation function.

〔発明の技術的背景とその問題点〕[Technical background of the invention and its problems]

デイジタル演算において、例えばトランスバー
サル型フイルタのように入力信号と重み係数の積
を逐次加算し、その加算結果をある語長に丸めて
出力する演算が必要になる。
In digital calculations, for example, it is necessary to perform calculations such as in a transversal filter that sequentially adds the product of an input signal and a weighting coefficient, rounds the addition result to a certain word length, and outputs the result.

上述の入力信号と重み係数の積を逐次加算する
演算機能を有する加算回路の基本構成を第1図に
示す。この加算回路は半加算器11,12、論理
和回路13、1クロツクの遅延素子14により構
成されている。半加算器11,12は2コの入力
を入力端子X11,Y11,X12,Y12に加えた場合に
これらの入力の排他論理和と論理積を出力端子
U11,V11,U12,V12から出力する論理機能を有
するもので、この半加算器11,12の入力を
X,Yとし、出力をU,Vとしたときの入力X,
Yと出力U,Vとの関係は U=XY V=X・Y ……(1) で表わすことができる。ここでは排地論理
和、・は論理積を意味する論理演算記号である。
FIG. 1 shows the basic configuration of an adding circuit having an arithmetic function of sequentially adding the products of the above-mentioned input signals and weighting coefficients. This addition circuit is composed of half adders 11 and 12, an OR circuit 13, and a one-clock delay element 14. Half adders 11 and 12 output the exclusive OR and AND of these inputs when two inputs are added to the input terminals X 11 , Y 11 , X 12 , and Y 12 .
It has a logic function to output from U 11 , V 11 , U 12 , V 12 , and when the inputs of these half adders 11 and 12 are X and Y, and the outputs are U and V, the input X,
The relationship between Y and the outputs U and V can be expressed as U=XY V=X・Y (1). Here, the disjunction and .are logical operation symbols that mean logical product.

第1図の回路において、いま半加算器11の入
力端子X11,Y11に入力信号A,Bを入力すると、
出力端子U11からABの出力信号が、また出力
端子V11からA・Bの出力信号が出力される。こ
の半加算器11の出力端子V11と半加算器12の
出力端子V12より出力される信号を論理和回路1
3で演算して得られた出力信号をCnとすれば、
出力信号Cnは遅延素子14により1クロツク遅
延されて半加算器12の入力端子X12にキヤーリ
信号Cn-1として帰還される。
In the circuit shown in FIG. 1, when input signals A and B are input to the input terminals X 11 and Y 11 of the half adder 11,
The output signal AB is output from the output terminal U 11 , and the output signals A and B are output from the output terminal V 11 . The signals output from the output terminal V 11 of the half adder 11 and the output terminal V 12 of the half adder 12 are connected to the OR circuit 1.
If the output signal obtained by calculation in step 3 is Cn, then
The output signal Cn is delayed by one clock by the delay element 14 and fed back to the input terminal X12 of the half adder 12 as a carry signal Cn -1 .

そして、論理和回路13には半加算器11の出
力端子V11から出力信号A・Bが半加算器12の
出力端子12から出力信号A・Cn-1B・Cn-1が入
力されるため、論理和回路13の出力端子から Cn=A・B+A・Cn-1+B・Cn-1 ……(2) の出力信号が出力される。ここで+は論理和を意
味する論理演算記号である。この加算回路の出力
は半加算器12の出力端子U12よりS′の出力信号
として出力される。出力信号S′はキヤリー信号
Cn-1と出力端子U11の出力信号ABとの排地論
理和となり、 S′=ABCn-1 ……(3) によつて記述することができる。
Then, the output signals A and B from the output terminal V 11 of the half adder 11 and the output signals A and Cn -1 B and Cn -1 from the output terminal 12 of the half adder 12 are input to the OR circuit 13. , an output signal of Cn=A.B+A.Cn -1 +B.Cn -1 (2) is output from the output terminal of the OR circuit 13. Here, + is a logical operation symbol meaning a logical sum. The output of this adder circuit is output from the output terminal U12 of the half adder 12 as an output signal of S'. Output signal S′ is a carry signal
It is a negative logical sum of Cn -1 and the output signal AB of the output terminal U 11 , and can be described by S'=ABCn -1 . . . (3).

次に、第2図により逐次加算の結果をある語長
に丸めて出力する丸め回路の基本構成を説明す
る。この丸め回路は半加算器21、論理積回路2
2,23遅延素子24,25、論理和回路26に
より構成されている。半加算器21の入力端子
X21には、論理積回路22においてゲート信号
GRAにより、語長Pビツトの丸め回路の入力信号
S′の下位(P−q)ビツトがマスクされた信号
S1′が入力される。入力端子Y21には論理積回路2
3においてゲート信号GRBにより、入力信号
S1′の下位(P−q−1)ビツトと上位qビツト
がマスクされた信号S2′と、半加算器21の出力
端子V21のキヤリー出力信号Cnがそれぞれ遅延素
子24,25を介して論理和回路26により演算
されたキヤリー信号Cn-1が入力される。これに
より、丸め回路の出力信号Sは半加算器21の出
力端子U21より出力され、 S=S1′Cn-1 で表わすことができる。出力信号Sは入力信号
S′の(P−q)ビツト目が“0捨1入”された語
長qビツトの信号である。ここでキヤリー出力信
号Cnは Cn=S1′・Cn-1 で表わすことができる。
Next, the basic configuration of a rounding circuit that rounds the result of successive addition to a certain word length and outputs the result will be explained with reference to FIG. This rounding circuit includes a half adder 21, an AND circuit 2
It is composed of 2, 23 delay elements 24, 25, and an OR circuit 26. Input terminal of half adder 21
A gate signal is applied to X 21 in the AND circuit 22.
The input signal of the rounding circuit with a word length of P bits is determined by GR A.
Signal with the lower (P-q) bits of S' masked
S 1 ′ is input. Input terminal Y 21 has AND circuit 2
3, the gate signal GR B causes the input signal to
The signal S 2 ' with the lower (P-q-1) bits and upper q bits of S 1 ' masked and the carry output signal Cn of the output terminal V 21 of the half adder 21 are transmitted through delay elements 24 and 25, respectively. The carry signal Cn -1 calculated by the OR circuit 26 is input. As a result, the output signal S of the rounding circuit is outputted from the output terminal U 21 of the half adder 21, and can be expressed as S=S 1 'Cn -1 . Output signal S is input signal
This is a signal with a word length of q bits in which the (P-q)th bit of S' is rounded down to zero. Here, the carry output signal Cn can be expressed as Cn=S 1 '·Cn -1 .

このように加算回路と丸め回路は、一般に別個
に構成されているのでLSIのように多数の加算回
路および丸め回路を含む場合には、これが全体の
構成に影響して複雑化することを避けることがで
きない。
In this way, adder circuits and rounding circuits are generally configured separately, so when an LSI includes a large number of adder circuits and rounding circuits, it is important to avoid this from affecting the overall configuration and complicating it. I can't.

上述のように、加算回路と丸め回路は基本的に
は半加算器によつて構成されているため、2つの
演算が同時に成されることがなければ半加算器を
共用して加算と丸め演算が可能である。
As mentioned above, the addition circuit and the rounding circuit are basically constructed of half adders, so if two operations are not performed at the same time, the half adder is shared and the addition and rounding operations are performed. is possible.

〔発明の目的〕[Purpose of the invention]

この発明は上記の事情に着目してなされたもの
で、加算と丸めの二つの演算が可能であり、多数
用いる場合にも全体の構成を簡略化し得るデイジ
タル加算回路を提供することを目的とする。
This invention was made in view of the above circumstances, and aims to provide a digital adder circuit that is capable of performing two operations, addition and rounding, and whose overall configuration can be simplified even when a large number of digital adders are used. .

〔発明の概要〕[Summary of the invention]

この発明は、デイジタル加算回路を第1および
第2の半加算器、第1および第2の論理積回路、
論理和回路および遅延素子によつて構成し、半加
算器を含むこれらの構成要素を加算の演算の場合
と丸めの演算の場合に共用したものである。
The present invention includes a digital addition circuit including first and second half adders, first and second AND circuits,
It is composed of an OR circuit and a delay element, and these components including a half adder are shared for addition operations and rounding operations.

すなわち、この発明は加算モードと該加算モー
ドでの加算出力信号S′の語長Pをq<Pなる所定
の語長qに丸める丸め演算モードを有するデイジ
タル加算回路において、加算モードにおいて被加
算入力が与えられ、丸め演算モードにおいて常時
ローレベルが与えられる入力信号Aと、前記加算
出力信号S′とを受け、排他論理和出力および論理
積出力を発生する第1の半加算器31と、この第
1の半加算器31からの排他論理和出力とキヤリ
ー入力信号Cn-1を受けて排他論理和出力および
論理積出力を発生し、加算モードにおいて排他論
理和出力として前記加算出力信号S′を得る第2の
半加算器32と、前記加算出力信号S′と、加算モ
ードにおいて常時ローレベルとなり、丸め演算モ
ードにおいて前記加算出力信号S′の(P−q+
1)〜pビツト目でハイレベル、他の期間にロー
レベルとなる第1のゲート信号GRAとを入力とす
る第1の論理積回路34と、この第1の論理積回
路34の出力と前記第1および第2の半加算器3
1,32からの論理積出力を入力としてキヤリー
出力信号Cnを発生する論理和回路35と、この
論理和回路34からのキヤリー出力信号を遅延し
て前記キヤリー入力信号Cn-1を得る遅延素子3
6と、前記加算出力信号S′と、丸め演算モードに
おいて前記加算出力信号S′の(P−q)ビツト目
でハイレベル、他の期間でローレベルとなる第2
のゲート信号GRBとを入力として丸め出力信号S
を発生する第2の論理積回路33とを具備したこ
とを特徴とする。
That is, the present invention provides a digital adder circuit having an addition mode and a rounding operation mode for rounding the word length P of the addition output signal S' in the addition mode to a predetermined word length q where q<P. a first half adder 31 which receives an input signal A which is always given a low level in the rounding operation mode and the addition output signal S' and generates an exclusive OR output and an AND output; It receives the exclusive OR output from the first half adder 31 and the carry input signal Cn -1 to generate an exclusive OR output and an AND output, and uses the addition output signal S' as the exclusive OR output in the addition mode. The second half adder 32 and the addition output signal S' are always at a low level in the addition mode, and in the rounding operation mode, the addition output signal S' is (P-q+
1) A first AND circuit 34 that receives as input the first gate signal G A that is at a high level at the p-th bit and becomes a low level during other periods, and the output of this first AND circuit 34. the first and second half adders 3;
an OR circuit 35 which generates a carry output signal Cn by inputting AND outputs from the OR circuits 1 and 32; and a delay element 3 which delays the carry output signal from the OR circuit 34 to obtain the carry input signal Cn -1 .
6, the addition output signal S', and a second signal which becomes a high level at the (P-q)th bit of the addition output signal S' and a low level during other periods in the rounding operation mode.
The rounded output signal S is input with the gate signal GR B of
It is characterized by comprising a second AND circuit 33 that generates .

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

この発明によれば加算と丸めの二つの演算を1
個の比較的簡単な構成で実現できるので、特に
LSIのようにこのような回路を多数必要とする場
合に有利であり、全体としての簡略化並びに低価
格化を計ることができる。
According to this invention, two operations, addition and rounding, can be performed in one
It can be realized with a relatively simple configuration of
This is advantageous when a large number of such circuits are required, such as in an LSI, and the overall simplification and cost reduction can be achieved.

〔発明の実施例〕[Embodiments of the invention]

以下、図面を参照してこの発明の一実施例を説
明する。第3図はこの発明を蓄積加算回路に通用
した場合を示すものである。図に示すように第1
および第2の半加算器31,32、2入力の第1
および第2の論理積回路33,34、3入力の論
理和回路35、1クロツクの遅延素子36、メモ
リ37によつて構成されている。入力信号Aおよ
びメモリ37の出力信号Bは第1の半加算器31
の入力端子X31,Y31に入力される。その排他論
理和出力は出力端子U31から半加算器32の入力
端子Y32に入力され、また論理積出力は出力端子
V31から論理和回路35の入力端子35bに入力
される。
Hereinafter, one embodiment of the present invention will be described with reference to the drawings. FIG. 3 shows a case where the present invention is applied to an accumulation/addition circuit. The first as shown in the figure
and a second half adder 31, 32, a two-input first
It is composed of second AND circuits 33 and 34, a three-input OR circuit 35, a one-clock delay element 36, and a memory 37. The input signal A and the output signal B of the memory 37 are sent to the first half adder 31
is input to input terminals X 31 and Y 31 of. The exclusive OR output is input from the output terminal U 31 to the input terminal Y 32 of the half adder 32, and the AND output is input from the output terminal U 31 to the input terminal Y 32 of the half adder 32.
V 31 is input to the input terminal 35b of the OR circuit 35.

一方、論理積回路34の入力端子34a,34
bに入力信号Bと第2のゲート信号GRBを入力さ
せ、その出力信号B2′は論理和回路35の入力端
子35cに入力される。この論理和回路35から
キヤリー出力信号Cnが出力され遅延素子36で
1クロツク遅延されて第2の半加算器32の入力
端子X32にキヤリー入力信号Cn-1となつて帰還さ
れる。半加算器32の出力端子U32から出力信号
S′がメモリ37に入力され、その出力信号は論理
積回路33の入力端子33aに入力される。この
とき、論理積回路33の入力端子33bに第1の
ゲート信号GRAが入力され、論理積回路33から
出力信号Sが出力される。半加算器32の出力端
子V32の出力信号が論理和回路35の入力端子3
5aに入力される。
On the other hand, the input terminals 34a and 34 of the AND circuit 34
The input signal B and the second gate signal GR B are input to the input signal B, and the output signal B 2 ' is input to the input terminal 35c of the OR circuit 35. A carry output signal Cn is outputted from the OR circuit 35, delayed by one clock in a delay element 36, and fed back to the input terminal X32 of the second half adder 32 as a carry input signal Cn -1 . Output signal from output terminal U 32 of half adder 32
S' is input to the memory 37, and its output signal is input to the input terminal 33a of the AND circuit 33. At this time, the first gate signal G A is input to the input terminal 33b of the AND circuit 33, and the output signal S is output from the AND circuit 33. The output signal of the output terminal V 32 of the half adder 32 is input to the input terminal 3 of the OR circuit 35.
5a.

加算動作例えば入力信号AをN回路逐次加算す
る場合、ゲート信号GRBは“L”となるので、図
中破線で囲んだ部分は第1図を動作と同じにな
る。したがつて、加算出力信号S′およびキヤリー
出力信号Cnは上述と同様に第(2)式 Cn=A・B+A・Cn-1+B・Cn-1 ……(2) によつて記述することができる。この回路の出力
は半加算器32の出力端子U32よりS′の出力信号
として出力される。出力信号S′はキヤリー信号
Cn-1と、半加算器31の出力端子U31の出力信号
ABの排他論理和として上述と同様に第(3)式
S′=ABCn-1 ……(3) によつて記述することができる。このようにして
加算の演算を行なうことができる。
In addition operation, for example, when input signal A is added sequentially to N circuits, the gate signal GR B becomes "L", so the portion surrounded by the broken line in the figure is the same as the operation in FIG. 1. Therefore, the addition output signal S' and the carry output signal Cn can be described by the equation (2) Cn=A・B+A・Cn -1 +B・Cn -1 ……(2) in the same way as above. can. The output of this circuit is output from the output terminal U 32 of the half adder 32 as an output signal S'. Output signal S′ is a carry signal
As the exclusive OR of Cn -1 and the output signal AB of the output terminal U 31 of the half adder 31, the formula (3) is used as described above.
It can be described by S'=ABCn -1 (3). In this way, the addition operation can be performed.

一方、丸め動作例えば語長Pビツトの逐次加算
結果S′を語長qビツトのSに丸める場合、入力信
号Aは“L”となり、またゲート信号GRAは(P
−q+1)〜Pビツト目で“H”、その他で“L”
となり、さらにゲート信号GRBは(P−q)ビツ
ト目“H”、その他で“L”となる。このとき、
語長Pビツトの信号Bの下位1〜(P−q−1)
ビツトの部分をB3′、(P−q)ビツトの部分を
B2′、上位(P−q+1)〜Pビツトの部分を
B1′とすると、丸め回路の出力は次のようになる。
On the other hand, in a rounding operation, for example, when rounding the successive addition result S' of word length P bits to S of word length q bits, input signal A becomes "L", and gate signal G A becomes (P
-q+1) ~ “H” at Pth bit, “L” at other bits
Further, the gate signal GR B becomes "H" at the (P-q)th bit and "L" at the other bits. At this time,
Lower 1 to (P-q-1) of signal B with word length P bits
The bit part is B 3 ', and the (P-q) bit part is
B 2 ', upper (P-q+1) to P bit part
Assuming B 1 ′, the output of the rounding circuit is as follows.

() 1≦n<P−qのとき、論理積回路34の
出力は“L”、半加算器32の出力端子V32
出力V=B3′・Cn-1も“L”(C0は“L”であ
る)となるため、丸め出力信号S′は入力信号
B3′がそのまま出力される。
() When 1≦n<P−q, the output of the AND circuit 34 is “L”, and the output of the output terminal V 32 of the half adder 32, V=B 3 ′・Cn −1 , is also “L” (C 0 is “L”), so the rounded output signal S′ is the input signal
B 3 ′ is output as is.

() n=P−qのとき、論理積回路34の出力
はB2′、キヤリー入力信号Cn-1は1ビツト前の
キヤリー出力信号Cnが“L”となるため、丸
め出力信号S′は入力信号B2′に等しく、またキ
ヤリー出力信号CnもB2′に等しくなる。
() When n=P-q, the output of the AND circuit 34 is B 2 ', and the carry input signal Cn -1 is "L" since the carry output signal Cn one bit earlier is "L", so the rounded output signal S' is It is equal to the input signal B 2 ′, and the carry output signal Cn is also equal to B 2 ′.

() P−q<n≦Pのとき、丸め出力信号S′は
1ビツト前の入力信号B2′が“L”であれば入
力信号B1′に等しくなり、入力信号B2′が“H”
であれば入力信号B1′のLSBに“1”が加算さ
れた信号となる。そして丸め信号S′のうち下位
(P−q)ビツトの部分(B3′とB2′)はゲート
信号GRAによつてマスクされて、上位qビツト
の部分B1′が丸め出力信号Sとして出力される。
() When P-q<n≦P, the rounded output signal S' becomes equal to the input signal B 1 ' if the input signal B 2 ' one bit before is "L", and the input signal B 2 ' is "H"
If so, the signal becomes a signal in which "1" is added to the LSB of the input signal B 1 '. The lower (P-q) bit parts (B 3 ' and B 2 ') of the rounded signal S' are masked by the gate signal GR A , and the upper q bit parts B 1 ' become the rounded output signal S. is output as

したがつて、このような構成によれば2つの演
算が同時に成されることがなければ、加算回路を
構成する半加算器等を共用して加算回路に丸め演
算機能を付加することができるので、構成を簡略
化しかつ低価格化を計ることができる。
Therefore, with this configuration, if two operations are not performed simultaneously, it is possible to add a rounding operation function to the addition circuit by sharing the half adder etc. that constitute the addition circuit. , the configuration can be simplified and the cost can be reduced.

第4図は上記実施例を一層具体化した構成を示
すもので、3入力の論理積回路41〜44、4入
力の論理積回路45,50、2入力の論理積回路
46〜49、2入力の論理積回路51、1クロツ
クの遅延素子52、否定回路53〜55によつて
構成されている。論理積回路41には入力信号
A,Bおよびキヤリー信号Cn-1が、42には入
力信号A、否定回路55の出力信号および否定
回路53の出力信号-1が、43には否定回路
54の出力信号、入力信号Bおよび否定回路5
3の出力信号-1が、44には否定回路54の
出力信号、否定回路55の出力信号およびキ
ヤリー信号Cn-1が入力される。これらの論理積
回路41〜44の出力信号は2入力の論理積回路
51の一方の入力端子に入力される。この論理積
回路51の他方の入力端子にゲート信号GRAが入
力され、出力端子から出力信号Sが出力される。
FIG. 4 shows a configuration that further embodies the above-mentioned embodiment, including 3-input AND circuits 41 to 44, 4-input AND circuits 45 and 50, 2-input AND circuits 46 to 49, and 2-input AND circuits 41 to 44. It is constructed of an AND circuit 51, a one-clock delay element 52, and NOT circuits 53-55. The AND circuit 41 receives the input signals A, B and the carry signal Cn -1 ; Output signal, input signal B and inversion circuit 5
3, and the output signal of the NOT circuit 54, the output signal of the NOT circuit 55, and the carry signal Cn -1 are input to 44. The output signals of these AND circuits 41 to 44 are input to one input terminal of a two-input AND circuit 51. The gate signal G A is input to the other input terminal of the AND circuit 51, and the output signal S is output from the output terminal.

一方、論理積回路46には入力信号A,Bが、
47には入力信号A、キヤリー信号Cn-1が、4
8には入力信号B、キヤリー信号Cn-1が、49
には入力信号B、ゲート信号GRB、ゲート信号
GRBが入力される。これらの論理積回路46〜4
9は入力の論理積回路50に入力され、その出力
信号は遅延素子52によつて1クロツク遅延され
てキヤリー入力信号Cn-1になり、上述したよう
に論理積回路41,44,47,48に入力され
る。一方キヤリー入力信号Cn-1は否定回路53
により反転されて論理積回路42,43に入力さ
れる。
On the other hand, the input signals A and B are input to the AND circuit 46.
47 has input signal A, carry signal Cn -1 , 4
8 has input signal B, carry signal Cn -1 , 49
input signal B, gate signal GR B , gate signal
GR B is input. These AND circuits 46 to 4
9 is input to the input AND circuit 50, and its output signal is delayed by one clock by the delay element 52 to become the carry input signal Cn -1 , and as described above, the output signal is input to the AND circuit 50, and the output signal is delayed by one clock by the delay element 52 to become the carry input signal Cn-1. is input. On the other hand, the carry input signal Cn -1 is supplied to the inverter 53
is inverted and input to AND circuits 42 and 43.

以上の構成により、この加算回路は加算演算お
よび丸め演算動作が第3図と同様に行なうことが
できる。
With the above configuration, this adder circuit can perform addition operations and rounding operations in the same manner as in FIG. 3.

次に第5図は第3図の実施例を一層具体化した
他の構成を示すもので、2入力の論理積回路61
〜63,66〜68、3入力の負論理積回路6
4、4入力の負論理和回路65、3入力の負論理
和回路70、2入力の負論理積回路69,71,
73、1クロツクの遅延素子72よつて構成され
ている。
Next, FIG. 5 shows another configuration that further embodies the embodiment shown in FIG. 3, in which a two-input AND circuit 61
~63, 66~68, 3-input negative AND circuit 6
4, 4-input negative OR circuit 65, 3-input negative OR circuit 70, 2-input negative AND circuit 69, 71,
73, and a one-clock delay element 72.

論理積回路61〜63のそれぞれの一方の入力
端子には入力信号A,B、キヤリー入力信号
Cn-1が入力され、他方の入力端子には論理和回
路70の出力信号Cn′が共通に入力される。論理
積回路64の入力端子には入力信号A,Bおよび
キヤリー入力信号Cn-1が、66には入力信号A,
Bが、67には入力信号A、キヤリー信号Cn-1
が、68には入力信号B、キヤリー信号Cn-1
入力される。負論理和回路69の入力端子にはゲ
ート信号GRBと入力信号Bが入力される。また負
論理和回路65の入力端子には論理積回路61〜
64の出力信号が入力される。そして、負論理和
回路65の出力信号とゲート信号GRAは負論理積
回路73に入力され、その出力が出力信号Sとな
る。
One input terminal of each of the AND circuits 61 to 63 receives input signals A, B, and a carry input signal.
Cn -1 is input, and the output signal Cn' of the OR circuit 70 is commonly input to the other input terminal. The input terminals of the AND circuit 64 receive the input signals A, B and the carry input signal Cn -1 , and the input terminals 66 receive the input signals A, B and the carry input signal Cn -1.
B, 67 has input signal A, carry signal Cn -1
However, input signal B and carry signal Cn -1 are input to 68. The gate signal GR B and the input signal B are input to the input terminal of the negative OR circuit 69 . In addition, the input terminals of the negative OR circuit 65 are connected to the AND circuits 61 to 61.
64 output signals are input. The output signal of the negative OR circuit 65 and the gate signal G A are input to the negative AND circuit 73, and the output thereof becomes the output signal S.

負論理割回路70の入力端子には論理積回路6
6〜68の各出力信号が入力される。この負論理
和回路70の出力信号と負論理積回路69と出力
信号が負論理積回路71に入力され、その出力が
遅延素子72によつて1クロツク遅延されてキヤ
リー入力信号Cn-1となる。
An AND circuit 6 is connected to the input terminal of the negative logic divider circuit 70.
6 to 68 output signals are input. The output signal of the negative OR circuit 70, the negative AND circuit 69, and the output signal are input to the negative AND circuit 71, and the output thereof is delayed by one clock by the delay element 72 and becomes the carry input signal Cn -1 . .

以上の構成により、加算回路は加算演算および
丸め演算動作が第3図の場合と同様に行なうこと
ができる。
With the above configuration, the adder circuit can perform addition operations and rounding operations in the same manner as in the case of FIG.

なお、この発明は上記実施例に限定されるもの
ではなく。要旨を変更しない範囲において種々変
形して実施することができる。
Note that this invention is not limited to the above embodiments. Various modifications can be made without changing the gist.

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

第1図は従来の加算回路の基本的な構成を示す
回路図、第2図は従来の丸め回路の基本的な構成
を示す回路図、第3図はこの発明の一実施例を示
す回路図、第4図または第5図はこの実施例を一
層具体化した構成を示す回路図である。 11,12……半加算器、13……論理和ゲー
ト、14……1クロツクの遅延素子、X11,Y11
X12,Y12……入力端子、U11,V11,U12,V12
…出力端子、A,B……入力信号、Cn,S′……
出力信号、Cn-1……キヤリー信号、S1′……入力
信号、21……半加算器、22,23……論理積
回路、24,25……遅延素子、26……論理和
回路、GRA,GRB……ゲート信号、X21,Y21
…入力端子、U21,V21……出力端子、S……出
力信号、31,32……半加算器、33,34…
…2入力の論理積ゲート、35……3入力の論理
和回路、33a,33b,34a,34b,35
a〜35c……入力端子、36……1クロツクの
遅延素子、37……メモリ、X31,Y31,X32
Y32……入力端子、U31,V31,U32,V32……出力
端子、44′〜44……3入力の論理積回路、4
5,50……4入力の論理和回路、46〜49,
51……2入力の論理積回路、52……1クロツ
クの遅延素子、53〜55……否定回路、Cn-1
A,……出力信号、61〜63,66〜68…
…2入力の論理積回路、64……3入力の論理積
回路、65……4入力の負論理積回路、69,7
1,73……2入力の負論理積回路、70……3
入力の負論理和回路、72……1クロツクの遅延
素子。
FIG. 1 is a circuit diagram showing the basic configuration of a conventional adding circuit, FIG. 2 is a circuit diagram showing the basic configuration of a conventional rounding circuit, and FIG. 3 is a circuit diagram showing an embodiment of the present invention. , FIG. 4 or FIG. 5 are circuit diagrams showing a more specific configuration of this embodiment. 11, 12... Half adder, 13... OR gate, 14... 1 clock delay element, X 11 , Y 11 ,
X 12 , Y 12 ... Input terminal, U 11 , V 11 , U 12 , V 12 ...
...Output terminal, A, B...Input signal, Cn, S'...
Output signal, Cn -1 ... Carry signal, S 1 '... Input signal, 21... Half adder, 22, 23... AND circuit, 24, 25... Delay element, 26... OR circuit, GR A , GR B ...Gate signal, X21 , Y21 ...
...Input terminal, U 21 , V 21 ... Output terminal, S ... Output signal, 31, 32 ... Half adder, 33, 34 ...
...2-input AND gate, 35...3-input OR circuit, 33a, 33b, 34a, 34b, 35
a to 35c...Input terminal, 36...1 clock delay element, 37...Memory, X 31 , Y 31 , X 32 ,
Y 32 ... Input terminal, U 31 , V 31 , U 32 , V 32 ... Output terminal, 44' to 44 ... 3-input AND circuit, 4
5, 50... 4-input OR circuit, 46 to 49,
51...2-input AND circuit, 52...1-clock delay element, 53-55...NOT circuit, Cn -1 ,
A,... Output signal, 61-63, 66-68...
...2-input AND circuit, 64...3-input AND circuit, 65...4-input negative AND circuit, 69,7
1, 73...2-input negative AND circuit, 70...3
Input negative OR circuit, 72...1 clock delay element.

Claims (1)

【特許請求の範囲】 1 入力信号を逐次加算する加算モードと該加算
モードでの加算出力信号の語長Pをq<Pなる所
定の語長qに丸める丸め演算モードを有するデイ
ジタル加算回路において、 加算モードにおいて被加算入力が与えられ、丸
め演算モードにおいて常時ローレベルが与えられ
る入力信号と、前記加算出力信号とを受け、排他
論理和出力および論理積出力を発生する第1の半
加算器と、 この第1の半加算器からの排他論理和出力とキ
ヤリー入力信号を受けて排他論理和出力および論
理積出力を発生し、加算モードにおいて排他論理
和出力として前記加算出力信号を得る第2の半加
算器と、 前記加算出力信号と、加算モードにおいて常時
ローレベルとなり、丸め演算モードにおいて前記
加算出力信号の(P−q+1)〜Pビツト目でハ
イレベル、他の期間にローレベルとなる第1のゲ
ート信号とを入力とする第1の論理積回路と、 この第1の論理積回路の出力と前記第1および
第2の半加算器からの論理積出力を入力としてキ
ヤリー出力信号を発生する論理和回路と、 この論理和回路からのキヤリー出力信号を遅延
して前記キヤリー入力信号を得る遅延素子と、 前記加算出力信号と、丸め演算モードにおいて
前記加算出力信号の(P−q)ビツト目でハイレ
ベル、他の期間でローレベルとなる第2のゲート
信号とを入力として丸め出力信号を発生する第2
の論理積回路と を具備したことを特徴とするデイジタル加算回
路。
[Scope of Claims] 1. A digital adder circuit having an addition mode in which input signals are sequentially added and a rounding operation mode in which the word length P of the addition output signal in the addition mode is rounded to a predetermined word length q such that q<P, a first half adder which receives an input signal to which an augend input is applied in an addition mode and is always given a low level in a rounding operation mode, and the addition output signal, and generates an exclusive OR output and an AND output; , a second half adder which receives the exclusive OR output and the carry input signal from the first half adder, generates an exclusive OR output and an AND output, and obtains the addition output signal as an exclusive OR output in the addition mode. a half adder, and the addition output signal is always at a low level in the addition mode, and in the rounding operation mode, the (P-q+1) to Pth bits of the addition output signal are at a high level, and the addition output signal is at a low level during other periods. a first AND circuit which receives a gate signal of 1 as an input, and generates a carry output signal by inputting the output of the first AND circuit and the AND outputs from the first and second half adders. a delay element that delays a carry output signal from the OR circuit to obtain the carry input signal; and a (P-q) bit of the addition output signal in the rounding operation mode. A second gate signal which generates a rounded output signal by inputting a second gate signal which is at a high level during the first period and a low level during other periods.
What is claimed is: 1. A digital adder circuit comprising: an AND circuit;
JP57077066A 1982-05-08 1982-05-08 Digital adding circuit Granted JPS58195250A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP57077066A JPS58195250A (en) 1982-05-08 1982-05-08 Digital adding circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP57077066A JPS58195250A (en) 1982-05-08 1982-05-08 Digital adding circuit

Publications (2)

Publication Number Publication Date
JPS58195250A JPS58195250A (en) 1983-11-14
JPH0418334B2 true JPH0418334B2 (en) 1992-03-27

Family

ID=13623416

Family Applications (1)

Application Number Title Priority Date Filing Date
JP57077066A Granted JPS58195250A (en) 1982-05-08 1982-05-08 Digital adding circuit

Country Status (1)

Country Link
JP (1) JPS58195250A (en)

Also Published As

Publication number Publication date
JPS58195250A (en) 1983-11-14

Similar Documents

Publication Publication Date Title
US6687722B1 (en) High-speed/low power finite impulse response filter
US5402012A (en) Sequentially clocked domino-logic cells
JPH0215088B2 (en)
EP0077912B1 (en) Fet adder circuit
US5491653A (en) Differential carry-save adder and multiplier
JP3033212B2 (en) Multiplier
CA1229172A (en) Logic adder circuit
JPS595349A (en) Adder
US5875125A (en) X+2X adder with multi-bit generate/propagate circuit
JP3412878B2 (en) High-speed adder using variated carry scheme and related method
US6484193B1 (en) Fully pipelined parallel multiplier with a fast clock cycle
JPH0418334B2 (en)
JPH0424729B2 (en)
US5777907A (en) Processor for selectively performing multiplication/division
US7085796B1 (en) Dynamic adder with reduced logic
CN101258464A (en) Full adder block and multiplier arrangement using the full adder block
US4471455A (en) Carry-forming unit
US5944777A (en) Method and apparatus for generating carries in an adder circuit
JPS62184534A (en) Arithmetic circuit
US6301597B1 (en) Method and apparatus for saturation in an N-NARY adder/subtractor
JPH0368412B2 (en)
JP2026511685A (en) High-speed selective carry-propagation adder
US6272514B1 (en) Method and apparatus for interruption of carry propagation on partition boundaries
JPH0544047B2 (en)
US6041341A (en) Method and circuit for adding operands of multiple size