Professional Documents
Culture Documents
Circuit design
part 1
6.1 Combinational circuit
design
6.2 Sequential circuit design
6.3 Circuit simulation
6.4. Hardware description
language
4th Ed.
4th Ed.
Example
Example: Design a circuit to compute F = AB + CD
using NANDs and NORs.
4th Ed.
Compound Gates
Compound Gates
AOI21: AND-OR-INVERT-21
AOI22: AND-OR-INVERT-22
4th Ed.
4th Ed.
Example
Example:
Calculate the minimum delay, in , to compute F = AB + CD
using the following circuits:
Using
compound
gate
Using
NAND
gate
4th Ed.
Example
Solution:
The path electrical effort is H = 100/20 = 5
The branching effort is B = 1
Using
compound
gate
Using
NAND
gate
No. of stages N = 2
Logical effort G = (4/3) (4/3) = 16/9
Parasitic delay P = 2 + 2 = 4
Path efforts
F = GBH = 80/9
Path delays
D = NF1/N + P = 9.96
N=2
G = (6/3) 1 = 2
P = 12/3 + 1 = 5
F = GBH = 215 = 10
D = NF1/N + P = 11.32
=> Using compound gates does not always result in faster circuits;
simple 2-input NAND gates can be quite fast.
Combinational Circuit Design
4th Ed.
Input Order
Our parasitic delay model was too simple
Calculate parasitic delay for Y falling
If A arrives latest? 2
If B arrives latest? 2.33
2
DA = R(6C) = 6RC = 2
2x
Y
6C
2C
4th Ed.
2
A
B
If input arrival time is known
Connect latest input to inner terminal
4th Ed.
2
2
10
Asymmetric Gates
Asymmetric gates favor one input over another
Ex: suppose input A of a NAND gate is most critical
Use smaller transistor on A (less capacitance)
A
Boost size of noncritical input
reset
So total resistance is same
gA = 10/9
2
2
Y
A
4/3
gB = 2
4
reset
gtotal = gA + gB = 28/9
Asymmetric gate approaches g = 1 on critical input
But total logical effort goes up
Combinational Circuit Design
4th Ed.
11
Symmetric Gates
Inputs can be made perfectly symmetric
4th Ed.
12
Skewed Gates
Skewed gates favor one edge over another
Ex: suppose rising output of inverter is most critical
Downsize noncritical nMOS transistor
HI-skew
inverter
unskewed inverter
(equal rise resistance)
2
A
unskewed inverter
(equal fall resistance)
2
Y
1/2
1
Y
Y
1/2
4th Ed.
13
4th Ed.
14
NAND2
2
unskewed
A
1
Y
guu = 1
gdd = 1
gavg
avg = 1
A
1/2
Y
guu = 5/6
gdd = 5/3
gavg
avg = 5/4
LO-skew
A
1
guu = 5/3
gdd = 5/3
gavg
avg = 5/3
4
4
Y
1/2
guu = 1
gdd = 2
gavg
avg = 3/2
1/2
guu = 3/2
gdd = 3
gavg
avg = 9/4
B
Y
Y
guu = 4/3
gdd = 2/3
gavg
avg = 1
1
1
guu = 4/3
gdd = 4/3
gavg
avg = 4/3
HI-skew
NOR2
Y
guu = 2
gdd = 1
gavg
avg = 3/2
guu = 2
gdd = 1
gavg
avg = 3/2
4th Ed.
15
Asymmetric Skew
Combine asymmetric and skewed gates
Downsize noncritical transistor on unimportant
input
Reduces parasitic delay for critical input
A
reset
1
A
reset
4/3
4
4th Ed.
16
4th Ed.
17
P/N Ratios
In general, best P/N ratio is sqrt of equal delay ratio.
Only improves average delay slightly for inverters
But significantly decreases area and power
4th Ed.
18
Observations
For speed:
NAND vs. NOR
Many simple stages vs. fewer high fan-in stages
Latest-arriving input
For area and power:
Many simple stages vs. fewer high fan-in stages
4th Ed.
19
Review
4th Ed.
20
10
Pseudo-nMOS
What makes a circuit fast?
I = C dV/dt -> tpd (C/I) V
low capacitance
high current
4
B
small swing
4
A
Logical effort is proportional to C/I
1
1
pMOS are the enemy!
High capacitance for a given current
Can we take the pMOS capacitance off the input?
Various circuit families try to do this
Combinational Circuit Design
4th Ed.
21
Pseudo-nMOS
In the old days, nMOS processes had no pMOS
Instead, use pull-up transistor that is always ON
In CMOS, use a pMOS that is always ON
Ratio issue
Make pMOS about effective strength of
pulldown network
1.8
1.5
load
P/2
1.2
P = 24
Ids
Vout 0.9
Vout
16/2
Vin
0.6
P = 14
0.3
P=4
0
0
0.3
0.6
0.9
1.2
1.5
1.8
Vin
4th Ed.
22
11
Pseudo-nMOS Gates
Design for unit current on output
to compare with unit inverter.
pMOS fights nMOS
Y
inputs
f
Inverter
Y
A
NAND2
gu
gd
gavg
pu
pd
pavg
=
=
=
=
=
=
gu
g
Y gd
avg
pu
pd
pavg
A
B
NOR2
=
=
=
=
=
=
gu
gd
gavg
Y pu
pd
pavg
=
=
=
=
=
=
4th Ed.
23
Pseudo-nMOS Gates
Design for unit current on output
to compare with unit inverter.
pMOS fights nMOS
Y
inputs
f
Inverter
2/3
Y
A
4/3
NAND2
gu
gd
gavg
pu
pd
pavg
= 4/3
= 4/9
= 8/9
= 6/3
= 6/9
= 12/9
gu
g
Y gd
avg
8/3
pu
pd
8/3
pavg
2/3
A
B
NOR2
= 8/3
= 8/9
= 16/9
= 10/3
= 10/9
= 20/9
2/3
A
4th Ed.
4/3 B
gu
gd
gavg
Y pu
4/3 pd
pavg
= 4/3
= 4/9
= 8/9
= 10/3
= 10/9
= 20/9
24
12
Pseudo-nMOS Design
Ex: Design a k-input AND gate using pseudo-nMOS.
Estimate the delay driving a fanout of H
Pseudo-nMOS
G = 1 * 8/9 = 8/9
F = GBH = 8H/9
P = 1 + (4+8k)/9 = (8k+13)/9
N=2
4 2 H 8k + 13
D = NF1/N + P = 3 + 9
In1
Ink
Y
H
4th Ed.
25
Pseudo-nMOS Power
Pseudo-nMOS draws power whenever Y = 0
Called static power P = IDDVDD
A few mA / gate * 1M gates would be a problem
Explains why nMOS went extinct
Use pseudo-nMOS sparingly for wide NORs
Turn off pMOS when not in use
en
Y
A
4th Ed.
26
13
Ratio Example
The chip contains a 32 word x 48 bit ROM
Uses pseudo-nMOS decoder and bitline pullups
On average, one wordline and 24 bitlines are high
Find static power drawn by the ROM
Ion-p = 36 A, VDD = 1.0 V
Solution:
Ppull-up = VDD I pull-up = 36 W
Pstatic = (31 + 24) Ppull-up = 1.98 mW
4th Ed.
27
Dynamic Logic
Dynamic gates uses a clocked pMOS pullup
Two modes: precharge and evaluate
2
A
2/3
Y
Static
4/3
Pseudo-nMOS
Precharge
Dynamic
Evaluate
Precharge
4th Ed.
28
14
The Foot
What if pulldown network is ON during precharge?
Use series evaluation transistor to prevent fight.
precharge transistor
inputs
inputs
f
foot
footed
unfooted
4th Ed.
29
Logical Effort
Inverter
unfooted
gd
pd
= 1/3
= 2/3
2
2
1
2
gd
pd
= 2/3
= 3/3
Y
gd
pd
= 2/3
= 3/3
1
Y
NOR2
1
Y
footed
NAND2
gd
pd
= 1/3
= 3/3
Y
gd
pd
= 3/3
= 4/3
4th Ed.
2
gd
pd
= 2/3
= 5/3
30
15
Monotonicity
Dynamic gates require monotonically rising inputs
during evaluation
0 -> 0
A
0 -> 1
1 -> 1
violates monotonicity
But not 1 -> 0
during evaluation
A
Precharge
Evaluate
Precharge
Y
Output should rise but does not
4th Ed.
31
Monotonicity Woes
But dynamic gates produce
monotonically falling
outputs during evaluation
Illegal for one dynamic gate
to drive another!
A=1
Precharge
Evaluate
Precharge
X
X
X monotonically falls during evaluation
Y
Y should rise but cannot
4th Ed.
32
16
Domino Gates
Follow dynamic stage with inverting static gate
Dynamic / static pair is called domino gate
Produces monotonic outputs
Precharge
Evaluate
Precharge
domino AND
W
A
B
dynamic static
NAND inverter
A
B
A
B
X
Z
4th Ed.
33
Domino Optimizations
Each domino gate triggers next one, like a string of
dominos toppling over
Gates evaluate sequentially but precharge in parallel
Thus evaluation is more critical than precharge
HI-skewed static stages can perform logic
S0
S1
S2
S3
D0
D1
D2
D3
H
S4
S5
S6
S7
D4
D5
D6
D7
4th Ed.
34
17
Dual-Rail Domino
Domino only performs noninverting functions:
AND, OR but not NAND, NOR, or XOR
Dual-rail domino solves this problem
Takes true and complementary inputs
Produces true and complementary outputs
sig_h
sig_l
Meaning
Precharged
invalid
Y_l
Y_h
inputs
4th Ed.
35
Example: AND/NAND
Given A_h, A_l, B_h, B_l
Compute Y_h = AB, Y_l = AB
Pulldown networks are conduction complements
Y_l
A_h
= A*B
A_l
B_l
Y_h
= A*B
B_h
4th Ed.
36
18
Example: XOR/XNOR
Sometimes possible to share transistors
Y_l
= A xnor B
Y_h
A_h
A_l
A_l
B_l
B_h
A_h
= A xor B
4th Ed.
37
Leakage
Dynamic node floats high during evaluation
Transistors are leaky (IOFF 0)
Dynamic value will leak away over time
Formerly miliseconds, now nanoseconds
Use keeper to hold dynamic node
Must be weak enough not to fight evaluation
weak keeper
1 k
4th Ed.
38
19
Charge Sharing
Dynamic gates suffer from charge sharing
A
B=0
Y
CY
Cx
Vx = VY =
CY
VDD
C x + CY
4th Ed.
39
Secondary Precharge
Solution: add secondary precharge transistors
Typically need to precharge every other node
Big load capacitance CY helps as well
Y
A
secondary
precharge
transistor
4th Ed.
40
20
Noise Sensitivity
Dynamic gates are very sensitive to noise
Inputs: VIH Vtn
Outputs: floating output susceptible noise
Noise sources
Capacitive crosstalk
Charge sharing
Power supply noise
Feedthrough noise
And more!
4th Ed.
41
Power
Domino gates have high activity factors
Output evaluates and precharges
If output probability = 0.5, = 0.5
Output rises and falls on half the cycles
4th Ed.
42
21
Domino Summary
Domino logic is attractive for high-speed circuits
1.3 2x faster than static CMOS
But many challenges:
Monotonicity, leakage, charge sharing, noise
Widely used in high-performance microprocessors in
1990s when speed was king
Largely displaced by static CMOS now that power is
the limiter
Still used in memories for area efficiency
4th Ed.
43
S
A
A
S
S
Combinational Circuit Design
4th Ed.
44
22
LEAP
LEAn integration with Pass transistors
Get rid of pMOS transistors
Use weak pMOS feedback to pull fully high
Ratio constraint
S
A
L
4th Ed.
45
CPL
Complementary Pass-transistor Logic
Dual-rail form of pass transistor logic
Avoids need for ratioed feedback
Optional cross-coupling for rail-to-rail swing
S
A
S
B
S
A
S
B
4th Ed.
46
23
4th Ed.
47
Review
1.
2.
3.
4.
5.
4th Ed.
48
24
Review
1. Compute logical effort for rising and falling gu and gd
of the following gates
b)
a)
c)
e)
d)
4th Ed.
49
25