


























Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



























ECE 410, Prof. A. Mason
Lecture Notes 12.
sum of 2 binary numbers can be larger than either number
-^
need a “carry-out” to store the overflow
x^
y^
x + y (binary sum)
0 + 0 = 00 + 1 = 11 + 0 = 11 + 1 = 10 (binary, i.e. 2 in base-10)
x^
y^
s^
c
XORAND
x^
y
c
s
half-adder symbol
ECE 410, Prof. A. Mason
Lecture Notes 12.
x^
y^
s^
c
Take-home Questions: Which of these 3 half-adders will be fastest? slowest? why??Which has fewest transistors? Which transition has the critical delay?
ECE 410, Prof. A. Mason
Lecture Notes 12.
s
= ai
b
c
i^
and c
i+
= a
b
)i
ECE 410, Prof. A. Mason
Lecture Notes 12.
c^ i+
= a
+i b
)i
s^ i
= (a
bi
ci
) • ci
i+
•ci
)i
ECE 410, Prof. A. Mason
Lecture Notes 12.
a^ i
b^ i
c i^
a^
⊕^
b s
c^ i+
0
0
0
0
0
0
1
1
0
0
0
1
0
0
1
0
1
0
1
1
1
0
1
1
0
1
0
1
1
0
1
0
0
1
1
0
0
1
1
1
0
1
1
0
1
1
0
1
If (A
⊕^
B = 0), SUM=Cin;
Cout=A;
Else,
SUM=Cin_bar;
Cout=Cin;
A B CinCin_bar
A Cin
Sum Cout A^
⊕
B
Partial Schematiccan you figure out
the details?
ECE 410, Prof. A. Mason
Lecture Notes 12.
adding 2 n-bit word produces an n-bit sum and a carry
-^
example: 4b addition
binary adding of n-bits will produce an n+1 carry
-^
can be used as carry-in for next stage or as an overflow flag
carry-out from a binary word adder can be passed to next cellto add larger words
-^
example: 3 cascaded 4b binary adders for 12b addition
3
2
1
0
3
2
1
0
4b input a
a^
b carry-out
a^
b^ carry-out
a^
b
carry-in
carry-out
carry-in
ECE 410, Prof. A. Mason
Lecture Notes 12.
2’s complement of X: X
2s
-^
invert and add 1
Subtraction via addition: Y - X = Y + X
2s
control line, add_sub: 0 = add, 1 = subtract
-^
XOR used to pass (add_sub=1) or invert (add_sub=0)
-^
set first carry-in, c
, to 1 will add 1 for 2’s complement 0
b b
a = add_sub
ECE 410, Prof. A. Mason
Lecture Notes 12.
but, they are very slow
each bit in the cascade requires carry-out from the previous bit
-^
major speed limitation of R-C Adders
delay depends somewhat on the type of FA implemented
-^
general assumptions
-^
worst delay in an FA is the sum
-^
but carry is more important due to cascade structure
-^
total delay is sum of delays to pass carry to final stage
-^
total delay for n-input R-C adder
tn
= t
(ad
,b 0
⇒ 0
c
) + (n-2) t 1
(cd
in^
⇒
c
out
) + t
(cd
in^
⇒
s
n-
)
first stage delay: inputs to carry-outmiddle stage (n-2) delay: carry-in to carry-outlast stage delay: carry-in to sum
basic FAcircuit
ECE 410, Prof. A. Mason
Lecture Notes 12.
= g 1
0
p^0
c^2
= g
1
p^1
c^3
= g
2
p^2
c^4
= g
3
p^3
2
= g
1
g^0
p^0
3
= g
2
2
g^1
g^0
p^0
4
= g
3
3
g^2
2
g^1
g^0
p^0
= a
i^
- b
i
pi
= a
i^
b
i
simple complex
ECE 410, Prof. A. Mason
Lecture Notes 12.
expanded carry terms
-^
c^1
= g
0
+ c
- 0 p^0 -^
c^2
= g
1
+ g
- 0 p^1
+ c
- 0 p^0 - p
1
-^
c^3
= g
2
+ g
- 1 p^2
+ g
- 0 p^1 - p
2
+ c
- 0 p^0 **- p
c^4
= g
3
+ g
- 2 p^3
+ g
- 1 p^2 - p
3
+ g
- 0 p^1 **- p
+ c
- 0 p^0 **- p
3
pFET pull-up not shown
-^
notice nested structure
ECE 410, Prof. A. Mason
Lecture Notes 12.
generic dynamic
logic gate
ECE 410, Prof. A. Mason
Lecture Notes 12.
switch-logic
is high in 6 of 8 logic states
p^
and
g^
are not high at the same time
k=
a^ i
b^ i
c i^
ci+
0
0
0
0
0
1
0
0
1
0
0
0
1
1
0
1
0
0
1
0
0
1
1
1
1
0
1
1
1
1
1
1
p^ i
g^ i
k i
0
0
1
1
0
0
1
0
0
0
1
0
0
0
1
1
0
0
1
0
0
0
1
0
generate
gi
= a
b
i
propagate
pi
= a
⊕i^
b
i
carry-kill
ki
= a
+i^
b
i
ECE 410, Prof. A. Mason
Lecture Notes 12.
Æ
c
_bar & outputi
Æ
c
i+
_bar
i+
= 1 if g
=0i
i+
= 0 if g
=1 AND pi
=0i
i+
c
i^
if p
=1i
=0 here. problem?i
ai
bi
c i^
c^ i+
pi
gi 0
ECE 410, Prof. A. Mason
Lecture Notes 12.
i+
= 1 if g
=0i
i+
= 0 if g
=1 AND pi
=0i
i+
c
i^
if p
=1i
=0, pi
=1, ci
=0, ci
i+
Æ
0
=0i
=0, pi
=1, ci^
=0i
c
i+
=0, pi
=1, ci^
=0i^
c
i+
static CMOS from textbook
ci
ai
bi^
c^ i^
c^ i+
0
0
1
1
0
1
1
1
1
0
1
1
1
1
1
0
0
0
0
1
0
1
0
0
1
0
0
0
1
1
0
0
pi
gi 0
0 1
0 1
0 0
1 0
0 1
0 1
0 0
1