Lecture 4 - Implementing Logic in CMOS
Lecture 4 - Implementing Logic in CMOS
Mark McDermott
Electrical and Computer Engineering
The University of Texas at Austin
Recall that:
(AB)’ = A’+B’ and AB = (A’ + B’)’
(A+B)= A’B and A+B = (A’B’)’
A A’
(AB)’ A’+B’
B B’
A A’
AB (A’+B’)’
B B’
A A’
(A+B)’ A’B’
B B’
A A’
A+B (AB)’
B B’
Y Y
(a) (b)
Y Y
D
(c) (d)
Parallel network:
"OR" function
Series network:
"AND" function
A+B*C
B
A
C
§ Example: F = (A * B) + (C * D)
– Take un-inverted function F = (AB + CD) and derive N-network
– Identify AND, OR components; F is OR of AB,CD
– Make connections of transistors
• AND , Series connection, OR , Parallel
A C
B D
A B
A B
C D
C D A C
B D
C D B A
C D
F Metal 1
A C
GND
B D
Layout
C
F = (A + B + C) * D
B D
A
F
A B C
A C F
B D G H
OUT
A B
OUT = (A+B)*(C+D)*(E+F+GH)
C D
E F
IN1
IN2 OUTPUT
VDD
P B
P
OUTPUT = AB + AB
N N
OUT P A
N
N
IN1 IN2 B
(A) (B)
VDD
A C
B D E
a c
F = ab + ab + a’c’ + cd + cd
b d
a b c d
F
they implement are complementary
"Hybrid"
a b CMOS Circuit
a b
a c
c d
c d
GND
F=
G F
z z
G=
x x
x x
y y
§ Strength of signal
– How close it approximates ideal voltage source
Input Output
g = 0, gb = 1 g = 1, gb = 0
g
a b 0 strong 0
a b g = 1, gb = 0 g = 1, gb = 0
a b 1 strong 1
gb
g g g
a b a b a b
gb gb gb
A A B B A A B B
P1
C, C P
2
F(A,B,C) F(A,B)
P
3
P
4
A A B B
F(A,B)
P4
P
3
P
2
P1
§ How do voltage levels at the output of this gate differ from that
of the pass-transistor multiplexer in the previous foil?
A A B B
F(A,B)
EN
EN A Y
A Y
0 0
0 1
EN
1 0
A Y
1 1
EN
EN
A Y
EN
A A
A
EN
Y Y Y
EN
EN = 0 EN = 1
Y = 'Z' Y=A
S
S D1 D0 Y
D0 0
0 X 0 0 Y
0 X 1 1 D1 1
1 0 X 0
1 1 X 1
D1
S Y
D0
D1 4 2
S 4 2 Y
D0 4 2
2
D0
S Y
D1
§ Inverting multiplexer
– Use compound AOI22
– Or pair of tristate inverters
– Essentially the same thing
§ Non-inverting multiplexer requires adding an inverter
D0 S D0 D1 S
S D1 S S
Y Y D0 0
S S S S Y
D1 1
D0
S0 S1
D0 0
D1
D1 1
0
Y Y
1
D2 0 D2
D3 1
D3
CLK CLK
D
Latch
D Q
Q
CLK
CLK
D Q Q
1
Q D Q
0
CLK CLK
CLK
CLK CLK
CLK QM
D Q
CLK CLK CLK CLK
CLK
Latch
Latch
QM
D Q
CLK CLK