






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
Lecture 3 Material Type: Notes; Class: Computer Arithmetic; Subject: Electrical & Computer Enginrg; University: George Mason University; Term: Unknown 1989;
Typology: Study notes
1 / 11
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
x y
cout s
FA
x + y + cin = ( cout s ) 2
2 1
x y cout s 0 0 0 0 1 1 1 1 0 0 1 1 0 0 1 1 0 0 0 1 0 1 1 1 0 1 1 0 1 0 0 1
cin
0 1 0 1 0 1 0 1
cin
a) (^) s = (x โ y) โ cin
cout = xy + cin (x โ y)
s
c c
Latency โ k โ TFA
Latency โ k
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
x y
c s
MHA
x + y + 1 = ( c s ) 2
2 1
x y c s 0 0 1 1
0 1 0 1
0 1 1 1
1 0 0 1
HA HA HA HA
xk-1 xk-2... x 2 x 1
..
sk-1 sk-2... s 2 s 1
x 0
x 0
ck
Incrementer
MHA MHA MHA MHA
xk-1 xk-2... x 2 x 1
..
sk-1 sk-2... s 2 s 1
x 0
x 0
ck
Decrementer
Expected length( i , k ) =