










Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Material Type: Notes; Class: Computer Arithmetic; Subject: Electrical & Computer Enginrg; University: George Mason University; Term: Unknown 1989;
Typology: Study notes
1 / 18
This page cannot be seen from the preview
Don't miss anything!











x y
c s
HA
x + y = ( c s ) 2
2 1
x y c (^) s 0 0 1 1
0 1 0 1
0 0 0 1
0 1 1 0
s = xy + xy
b)
a)
s = x โ y
c = xy
c = x + y
c) c = xy
s = xc + yc = xc โ yc
s = x โ y โ cin = xycin + xycin + xycin + xycin
b) cout = xy + xcin + ycin
c)
x y cout s 0 0 1 1
0 1 0 1
0
1
cin cin
cin
cin
cin cin
x y
A A1^ XOR^
D
0 1
Cin
Cout
S p
g
Implementation used to generate fast carry logic in Xilinx FPGAs
x y cout 0 0 1 1
0 1 0 1
y
y
cin cin
p = x โ y g = y s= p โ cin = x โ y โ cin
Latency โ k โ TFA
Latency โ k
Indication of overflow Positive
Negative
Formulas
Overflow2โs complement = xk-1 yk-1 sk-1 + xk-1 yk-1 sk-1 =
= ck โ ck-
ai bi
si
c 0
ci start
clk
d d
d
ai bi
si
c 0
ci start
clk
xk-1 xk-2... x 1 x 0 yk-1 yk-2... y 1 y 0
variable
xk-1 xk-2... xh+1 xh xh-1... x 0 yk-1 yk-2... yh+1 1 0... 0
variable
xh xh-1... x 0
sk-1 sk-2... s 1 s 0
sk-1 sk-2... sh+
HA/^... MHA
HA/ MHA
HA/ MHA
HA/ MHA
xk-1 xk-2... xh+2 xh+1 xh xh-1... x 0
..
sk-1 sk-2... (^) sh+2 sh+1 xh xh-1... x 0
If yi = 0 Half-adder (HA) yi = 1 Modified half-adder (MHA)
ck
Expected length( i , k ) =
2 2
โ
For i << k
Expected length of the carry propagation is โโโโ 2
Two-rail code
bi ci
0 0
0 1
1 0
carry not yet known
carry known to be 1
carry known to be 0
Meaning
Generate signal: gi = xiyi Propagate signal: pi = xi โ yi Anihilate (absorb) signal: ai = xi yi = x + y
Transfer signal: ti = gi + pi = ai = xi + yi cout =1 given cin = 1
ci+1 = gi + cipi = = (gi + cigi) + cipi = = gi + ci (gi + pi) = = gi + ci ti
X + XY = X Absorption law