3. CMOS Gate Design
A 4-input CMOS NOR gate
A
B
C
D
Y
25/12/2016 Imran Ullah Khan JAP/IU 3
4. Complementary CMOS
Complementary CMOS logic gates
• nMOS pull-down network
• pMOS pull-up network
X (crowbar)0Pull-down ON
1Z (float)Pull-down OFF
Pull-up ONPull-up OFF
25/12/2016 Imran Ullah Khan JAP/IU 4
pMOS
pull-up
network
nMOS
pull-down
network
5. Series and Parallel
nMOS: 1 = ON
pMOS: 0 = ON
Series: both must be ON
Parallel: either can be ON
(a)
a
b
a
b
g1
g2
0
0
a
b
0
1
a
b
1
0
a
b
1
1
OFF OFF OFF ON
(b)
a
b
a
b
g1
g2
0
0
a
b
0
1
a
b
1
0
a
b
1
1
ON OFF OFF OFF
(c)
a
b
a
b
g1 g2 0 0
OFF ON ON ON
(d) ON ON ON OFF
a
b
0
a
b
1
a
b
11 0 1
a
b
0 0
a
b
0
a
b
1
a
b
11 0 1
a
b
g1 g2
25/12/2016 Imran Ullah Khan JAP/IU 5
6. Conduction Complement
Complementary CMOS gates always produce 0 or 1
Ex: NAND gate
Series nMOS: Y=0 when both inputs are 1
Thus Y=1 when either input is 0
Requires parallel pMOS
Rule of Conduction Complements
Pull-up network is complement of pull-down
Parallel -> series, series -> parallel
A
B
Y
25/12/2016 Imran Ullah Khan JAP/IU 6
7. Compound Gates
Compound gates can do any inverting function
Ex: AND-AND-OR-INV (AOI22)
A
B
C
D
A
B
C
D
A B C D
A B
C D
B
D
Y
A
C
A
C
A
B
C
D
B
D
Y
(a)
(c)
(e)
(b)
(d)
(f)
)()( DCBAY •+•=
25/12/2016 Imran Ullah Khan JAP/IU 7
10. Pass Transistors
Transistors can be used as switches
g
s d
g = 0
s d
g = 1
s d
0 strong 0
Input Output
1 degraded 1
g
s d
g = 0
s d
g = 1
s d
0 degraded 0
Input Output
strong 1
g = 1
g = 1
g = 0
g = 0
25/12/2016 Imran Ullah Khan JAP/IU 10
11. Transmission Gates
Pass transistors produce degraded outputs
Transmission gates pass both 0 and 1 well
g = 0, gb = 1
a b
g = 1, gb = 0
a b
0 strong 0
Input Output
1 strong 1
g
gb
a b
a b
g
gb
a b
g
gb
a b
g
gb
g = 1, gb = 0
g = 1, gb = 0
25/12/2016 Imran Ullah Khan JAP/IU 11
12. Tristates
Tristate buffer produces Z when not enabled
111
001
Z10
Z00
YAEN
25/12/2016 Imran Ullah Khan JAP/IU 12
13. Multiplexers
2:1 multiplexer chooses between two inputs
1X11
0X01
11X0
00X0
YD0D1S
25/12/2016 Imran Ullah Khan JAP/IU 13
14. Transmission Gate Mux
Nonrestoring mux uses two transmission gates
Only 4 transistors
S
S
D0
D1
YS
25/12/2016 Imran Ullah Khan JAP/IU 14
15. D Latch
When CLK = 1, latch is transparent
Q follows D (a buffer with a Delay)
When CLK = 0, the latch is opaque
Q holds its last value independent of D
a.k.a. transparent latch or level-sensitive latch
D
CLK
Q
25/12/2016 Imran Ullah Khan JAP/IU 15
16. Gate Layout
Layout can be very time consuming
Design gates to fit together nicely
Build a library of standard cells
Must follow a technology rule
Standard cell design methodology
VDD and GND should abut (standard height)
Adjacent gates should satisfy design rules
nMOS at bottom and pMOS at top
All gates include well and substrate contacts
25/12/2016 Imran Ullah Khan JAP/IU 16
21. Stick Diagrams
Stick diagrams help plan layout quickly
Need not be to scale
Draw with color pencils or dry-erase markers
25/12/2016 Imran Ullah Khan JAP/IU 21
22. Stick Diagrams
Stick diagrams help plan layout quickly
Need not be to scale
Draw with color pencils or dry-erase markers
Vin
Vout
VDD
GND
25/12/2016 Imran Ullah Khan JAP/IU 22
23. Wiring Tracks
A wiring track is the space required for a wire
4 width, 4 spacing from neighbor = 8 pitch
Transistors also consume one wiring track
25/12/2016 Imran Ullah Khan JAP/IU 23
24. Area Estimation
Estimate area by counting wiring tracks
Multiply by 8 to express in
25/12/2016 Imran Ullah Khan JAP/IU 24
25. Example:
Sketch a stick diagram for O3AI and estimate area
DCBAY •++= )(
25/12/2016 Imran Ullah Khan JAP/IU 25
26. Example:
Sketch a stick diagram for O3AI and estimate area
DCBAY •++= )(
25/12/2016 Imran Ullah Khan JAP/IU 26