Lecture 4
Lecture 4
Montek Singh
Thu, Sep 6, 2007
1
Review:
Logic Gate Families
2
Static CMOS logic: Summary
Advantages:
output always strongly driven
pull-up and pull-down networks are fully-complementary;
always exactly one of them is “on”
good immunity from noise and leakage
both inverting and non-inverting functions implementable
each gate is inverting
cascade two gates together to get non-inverting logic
Disadvantages:
slow/big PMOS devices needed (in addition to NMOS)
greater chip area
higher power consumption
slower switching speed
3
Complementary CMOS
Complementary CMOS logic gates
– nMOS pull-down network pMOS
nMOS
pull-down
network
Pull-up OFF Pull-up ON
Pull-down OFF Z (float) 1
Pull-down ON 0 X (crowbar)
OPTIONAL
MATERIAL
Credit: David Harris, Harvey Mudd College 4
Series and Parallel
nMOS: 1 = ON a a a a a
0 0 1 1
g1
g2
pMOS: 0 = ON b
0
b
1
b
0
b
1
b
(a) OFF OFF OFF ON
0
0
1
1
0
1
1
b b b b b
(b) ON OFF OFF OFF
a a a a a
g1 g2 0 0 0 1 1 0 1 1
b b b b b
(c) OFF ON ON ON
a a a a a
g1 g2 0 0 0 1 1 0 1 1
b b b b b
(d) ON ON ON OFF
OPTIONAL
MATERIAL
Credit: David Harris, Harvey Mudd College 5
CMOS Gate Design
Activity:
– Sketch a 4-input CMOS NOR gate
A
B
C
D
Y
OPTIONAL
MATERIAL
Credit: David Harris, Harvey Mudd College 6
CMOS Gate Design
Activity:
– Sketch a 4-input CMOS NAND gate
OPTIONAL
MATERIAL
Credit: David Harris, Harvey Mudd College 7
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 Y
A
B
Rule of Conduction Complements
– Pull-up network is complement of pull-down
– Parallel -> series, series -> parallel
OPTIONAL
MATERIAL
Credit: David Harris, Harvey Mudd College 8
Compound Gates
Compound gates can do any inverting function
Ex: Y AB C D (AND-AND-OR-INVERT, AOI22)
A C A C
B D B D
(a) (b)
C D
A B C D
A B
(c)
(d)
C D
A
A B
B
Y Y
C
A C
D
B D
(f)
(e)
OPTIONAL
MATERIAL
Credit: David Harris, Harvey Mudd College 9
Transmission (“Pass”) Gates
Key Idea:
transistors used in a different configuration
when switched on: instead of connecting output to Vdd or
Gnd, they connect output to the input
Advantage:
very efficient for implementing switches and multiplexers
Disadvantage:
signal degradation unless both NFET and PFET passgates are
used in a complementary configuration
10
Pass Transistors
Transistors can be used as switches
s d
s d
OPTIONAL
MATERIAL
Credit: David Harris, Harvey Mudd College 11
Pass Transistors
Transistors can be used as switches
OPTIONAL
MATERIAL
Credit: David Harris, Harvey Mudd College 12
Transmission Gates
Single pass transistors produce degraded outputs
– pMOS good only for transmitting “1”
– nMOS good only for transmitting “0”
OPTIONAL
MATERIAL
Credit: David Harris, Harvey Mudd College 13
Transmission Gates
Single pass transistors produce degraded outputs
Complementary Transmission gates pass both 0 and
1 well
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
OPTIONAL
MATERIAL
Credit: David Harris, Harvey Mudd College 14
Multiplexers
2:1 multiplexer chooses between two inputs
S
S D1 D0 Y
0 X 0 0 D0 0
0 X 1 1
Y
D1 1
1 0 X 0
1 1 X 1
OPTIONAL
MATERIAL
Credit: David Harris, Harvey Mudd College 15
Transmission Gate Mux
Nonrestoring mux uses two transmission gates
– Only 4 transistors
S
D0
S Y
D1
OPTIONAL
MATERIAL
Credit: David Harris, Harvey Mudd College 16
Gate-Level Mux Design
Y SD1 SD0 (too many transistors)
How many transistors are needed? 20
D1
S Y
D0
D1 4 2
S 4 2 Y
D0 4 2
2
OPTIONAL
MATERIAL
Credit: David Harris, Harvey Mudd College 17
Dynamic Logic, or “domino”
Key idea:
only use NMOS’s to compute function
use a single PMOS to reset
Advantages:
significantly fewer transistors smaller chip area
higher speed, lower power
less “loading” on wires (drive fewer transistors)
for async: no storage elements needed
Disadvantages:
need extra control input to precharge
logic is typically non-inverting only
more vulnerable to noise and leakage effects
18
Dynamic Logic, or “domino” (contd.)
Gate has 2 phases:
precharge (=reset): output reset to ‘0’
evaluate: output computed either stays ‘0’, or switches to ‘1’
pull-down data
network outputPC
PC =1
=1 ((de-asserted
de-asserted))
data
inputs controls evaluate
evaluate
“evaluation”
20
A Classic Asynchronous
Dynamic Pipeline
21
A Classic Approach: PS0 Pipeline
Williams/Horowitz (Stanford U.) [1986-91]:
successfully used in fabricated chips [Stanford ’87] [HAL ’90s]
Data Data
in out
data
Processing Completion
Block Detector
data Pull-down
inputs network
data
outputs
Processing Block 23
Dual-Rail Completion Detector
Combines dual-rail signals
Indicates when all bits are valid (or reset)
C-element:
C-element:
ifif all
allinputs=1,
inputs=1,output
output
11
ifif all
allinputs=0,
inputs=0,output
output
if all inputs=0, output 000
else,maintain
maintain output
outputvalue
value
bit0 OR else,
Done
bit1 OR C
bitn OR
indicates
indicates “done”
“done” indicates “done”
6 3 4
N N+1 5 N+2
1 2 3
evaluates precharges
evaluates evaluates
Complete
Evaluate
Precharge
Complete
Evaluate
Precharge
cycle:
cycle: 66 events
events
Precharge:
Evaluate:
Precharge:
Evaluate: 33 events33 events
another
events
another events 25
PS0 Performance
6
4
1 2 3
Ck
latch
Ck’
29
Homework #4 (due Tue Sep 18)
1. Enumerate ALL of the timing assumptions inherent
in Williams’ PS0 style
Assume all gate and wire delays can be arbitrary
For which scenarios can there be a malfunction?
30