Professional Documents
Culture Documents
1
COMBINATIONAL LOGIC
13/03/14 1 TUD/EE ET4293 digic - 12/13 - NvdM - 04 Combinational
Combi nat i onal Logi c - Out l i ne
Conventional Static CMOS basic principles
Complementary static CMOS
Complex Logic Gates
VTC, Delay and Sizing
13/03/14 2 TUD/EE ET4293 digic - 12/13 - NvdM - 04 Combinational
VTC, Delay and Sizing
Ratioed logic
Pass transistor logic
Dynamic CMOS gates
Combi nat i onal vs. Sequent i al Logi c
Logic
Circuit
Out In
Logic
Circuit
Out
In
13/03/14 3 TUD/EE ET4293 digic - 12/13 - NvdM - 04 Combinational
(a) Combinational
Output = f (In)
(b) Sequential
Output = f (In, History)
State
(flipflops)
6.2
Complementary static CMOS
Complex Logic Gates
VTC, Delay and Sizing
13/03/14 4 TUD/EE ET4293 digic - 12/13 - NvdM - 04 Combinational
Compl ement ar y St at i c CMOS
B
A
example
PUN
V
DD
In1
In2
In3
F = G
In
1
PMOS Only
generic
Pull-Down
Network
Pull-Up
Network
13/03/14 5 TUD/EE ET4293 digic - 12/13 - NvdM - 04 Combinational
Conduction of PDN and PUN must be mutually
exclusive (Why?)
Pull-up network (PUN) and pull-down network (PDN)
are dual
A B PDN
V
SS
1
In
2
In
3
NMOS Only
6.2.1
2-i nput Nand/Nor
B A
B
A
Y = A AND B
Y A OR B
13/03/14 6 TUD/EE ET4293 digic - 12/13 - NvdM - 04 Combinational
A
B
A B
Y A AND B
Y = A OR B
13/03/15
2
Mut ual Ex c l usi ve PDN and PUN
V
DD
A
C
B
C B A
P
D
N
P
U
N Out
0 0 0 ? 1 1
0 0 1 ? 1 1
0 1 0 ? 1 1
0 1 1 0 ? 0
Out = (AB + C)
PDN Off
PUN On
13/03/14 7 TUD/EE ET4293 digic - 12/13 - NvdM - 04 Combinational
V
SS
Out
A
C
B
0 1 1 0 ? 0
1 0 0 0 ? 0
1 0 1 0 ? 0
1 1 0 0 ? 0
1 1 1 0 ? 0
PUN Off
PDN On
For all Complementary Static CMOS Gates, either
the PUN or the PDN is conducting, but never both.
Compl ement ar y St at i c CMOS (2)
Conduction of PUN and PDN must be mutually
exclusive
PUN is dual (complement) network of PDN
series parallel
nmos pmos
13/03/14 8 TUD/EE ET4293 digic - 12/13 - NvdM - 04 Combinational
Complementary gate is inverting
No static power dissipation
Very robust
Wide noise margin
Need 2N transistors for N-input gate
pull-up
NMOS vs. PMOS, pul l -dow n vs. pul l -up
Out = V
DD
Out = ? V
DD
V
Tn
13/03/14 9 TUD/EE ET4293 digic - 12/13 - NvdM - 04 Combinational
PMOS is better pull-up
NMOS is better pull-down
pull-down
Out = 0
Out = ?
|V
Tp
|
Bad I dea
IN OUT
13/03/14 10 TUD/EE ET4293 digic - 12/13 - NvdM - 04 Combinational
Exercise: Determine logic function
Determine V
out
for V
in
= V
DD
and V
in
= V
SS
Why is this a bad circuit?
Highest output voltage of NMOS is
V
GS
- V
Tn
= V
DD
- V
Tn
An 1 on NMOS gate can produce a strong 0 at the drain, but not a
strong 1
Lowest output voltage of PMOS is
V
DD
+ V
GS
- V
Tp
= |V
Tp
|
(with V
GS
V < 0 for PMOS)
CMOS Gat e i s I nver t i ng
Assume full-swing inputs (high = V
DD
, low = V
SS
)
13/03/14 11 TUD/EE ET4293 digic - 12/13 - NvdM - 04 Combinational
(with V
GS
, V
Tp
< 0 for PMOS)
An 0 on PMOS gate can produce a strong 1 at the drain, but not a
strong 0
Need NMOS for pull-down, PMOS for pull-up
A 1 at input can pull-down, 0 at input can pull-up
Inverting behavior
For a non-inverting Complementary CMOS
Gate, you can only use 2 inverting gates
How van we construct an arbitrary combinational
logic network in general, using NMOS and PMOS
transistors (using Complementary static CMOS)?
Y (A BC)D E l
I mpl ement at i on of
Combi nat i onal Logi c
13/03/14 12 TUD/EE ET4293 digic - 12/13 - NvdM - 04 Combinational
Remember: only inverting gates available
Y = (A + BC)D Example:
Ex. 6.2
13/03/15
3
Example:
Remember: only inverting gates available
Logic depth: number of gates in longest path DELAY
I mpl ement at i on of
Combi nat i onal Logi c
Y = (A + BC)D
C
B
&
& Y
> 1
13/03/14 13 TUD/EE ET4293 digic - 12/13 - NvdM - 04 Combinational
{TPS}: Can this be improved? If so, how?
# transistors ? logic depth ? 16 5
A
D
I mpr oved Gat e Level I mpl ement at i on
Using DeMorgan BC A BC A . = +
Y = (A + BC)D
C
B
&
A
&
D
Y
> 1
BC
13/03/14 14 TUD/EE ET4293 digic - 12/13 - NvdM - 04 Combinational
{TPS}: Can this be further improved?
# transistors
Logic depth
?
?
14
3
B
&
&
& A
C
D
FY
BC A.
B C
Compl ex CMOS Logi c Gat es
Easy to synthesize complex gates
Restriction to basic NAND, NOR etc.
not necessary
13/03/14 15 TUD/EE ET4293 digic - 12/13 - NvdM - 04 Combinational
A
D
D
B
A
C
Y = (A + BC)D
# transistors: 8
Logic depth: 1
Using tree representation of
Boolean function
Operator with branches for
operands
How t o Synt hesi ze Compl ex Gat es
A i ll l t k
( )D BC A F + = Y = (A + BC)D
F
AND
Y
13/03/14 16 TUD/EE ET4293 digic - 12/13 - NvdM - 04 Combinational
As a series-parallel network
PUN PDN
Parallel
Parallel Series
OR
AND
Series
OR
AND A
B C
D
Y = (A + BC)D
Compl ex Gat e Synt hesi s Ex ampl e
B C
OR
A
Y = (A + (BC))D
D
Y
AND
D
13/03/14 17 TUD/EE ET4293 digic - 12/13 - NvdM - 04 Combinational
PUN PDN
Parallel
Parallel Series
OR
AND
Series
AND
B C
B
C
A
A
D Recipe
Write Y = f(inputs)
Decompose f in
tree form
Realize tree
branches
according to table
at bottom-left
Use inverted inputs
if necessary
And-Or -I nver t Gat e
Dual PMOS
pull-up network
V
out
V
DD
C
B
2
B
1
A
3
A
2
A
1
&
&
>
1
13/03/14 18 TUD/EE ET4293 digic - 12/13 - NvdM - 04 Combinational
C
3
C
2
C
1
B
2
B
1
A
3
A
2
A
1
C
3
C
2
C
1
&
13/03/15
4
And-Or -I nver t Ex ampl e
A
B
C
C
Y
A
B
A B C Y
0 0 0 1
0 0 1 1
0 1 0 1
0 1 1 0
ABC
From a Truth-Table: take 0-outputs
13/03/14 19 TUD/EE ET4293 digic - 12/13 - NvdM - 04 Combinational
A
C
B
C
A
B
0 1 1 0
1 0 0 1
1 0 1 0
1 1 0 1
1 1 1 1
ABC
ABC
Y = ABC + ABC
A, B to be created with extra
inverters (or by restructuring
previous circuits)
And-Or -I nver t I mpr ovement
C C
A
B
C
C
Y
A
B
C
A
B C
Y
A
B
13/03/14 20 TUD/EE ET4293 digic - 12/13 - NvdM - 04 Combinational
A
B
A
B
Y = ABC + ABC
A
B
A
B
Y = (AB + AB)C
12 transistors 10 transistors
2-level logic minimization: boolean algebra technique
CMOS Compl ex Gat e Si zi ng
A
D
B C
D
Y = (A + BC)D
Function of gate
independent of
transistor sizes: ratio-
less
But current-drive
capability (timing)
13/03/14 21 TUD/EE ET4293 digic - 12/13 - NvdM - 04 Combinational
B
A
C
capability (timing)
depends on transistor
sizes
Worst-case current-
drive depends on
number of transistors
in series
3 trans. in
series
2 trans. in
series
CMOS Compl ex Gat e Si zi ng
Assume all transistors will have mininum length L
Determine W
n
for PDN transistor of inverter that
would give the desired drive strength
For each transistor in PDN of complex gate do the
following:
13/03/14 22 TUD/EE ET4293 digic - 12/13 - NvdM - 04 Combinational
following:
Determine the length l of the longest PDN chain in
which it participates
Set W = l W
n
Repeat this procedure for PUN, using W
p
for PUN
transistor of inverter.
Gat e Si zi ng
2
1
A
B
B
A
2
2
2
2
13/03/14 23 TUD/EE ET4293 digic - 12/13 - NvdM - 04 Combinational
2
W/L ratios
what are the W/L of 2-input NAND for the
same drive strength?
0-th order calculation
Gat e Si zi ng
Y = A (B+C)+D
A
B
C 6
6
3
A
B
4
4
13/03/14 24
A
D
B
D
C
1
2
2 2
6
B
A
1
1
24 TUD/EE ET4293 digic - 12/13 - NvdM - 04 Combinational
13/03/15
5
Ex er c i se
C
C
2
C
1
B
2
B
1
A
3
A
2
A
1
Dual PMOS
pull-up network
V
out
V
DD
C
3
C
2
C
1
B
2
B
1
A
3
A
2
A
1
&
&
&
>
1
(a)
13/03/14 25 TUD/EE ET4293 digic - 12/13 - NvdM - 04 Combinational
C
3
A
3
Perform gate sizing of (a) for nominal drive strength equal to
that of min size inverter, assume PU/PD = 3
Determine PUN of (b)
Perform gate sizing of (b) for same drive strength (same
PU/PD)
Compare sum of gate areas in (a) and (b). Note: area ~ width
Exercise:
(b)
Avoi d Lar ge Fan-I n
N
C linear in N
C
R linear in N
Delay RC quadratic in N
T i t Si i
13/03/14 26 TUD/EE ET4293 digic - 1011 - NvdM - 04 Combinational
N
C
R
Empirical
Delay = a
1
FI + a
2
FI
2
+ a
3
FO
-Transistor Sizing
-Progressive Transistor Sizing
-Input Re-Ordering
-Logic Restructuring
26 TUD/EE ET4293 digic - 12/13 - NvdM - 04 Combinational
Dat a-Dependent Ti mi ng
L
C
t
PHL
= 0.69R
N
C
L
t
PLH
= 0.69R
P
C
L
You should be able to
identify the transistor paths
that charge or discharge C
L
,
and calculate resulting RC
delay model, including
effects of wires and fan-out
13/03/14 27 TUD/EE ET4293 digic - 12/13 - NvdM - 04 Combinational
L
C
t
PHL
= 0.69(R
N
2)C
L
Series connection
t
PLH
= 0.69R
p
C
L
One input goes low
t
PLH
= 0.69(R
p
/2)C
L
Two inputs go low,
parallel connection
2
nd
Or der Ef f ec t s
Much more to say about performance of static
gates
Simulator can give accurate answer
Understanding needed to make design decisions
13/03/14
Data-dependent VTC
Data-dependent Timing
28 TUD/EE ET4293 digic - 12/13 - NvdM - 04 Combinational
Dat a-dependent VTC: 2nd or der ef f ec t s
Cases II
Case I
13/03/14 29 TUD/EE ET4293 digic - 12/13 - NvdM - 04 Combinational
Charge at int
Body effect in M
2
Short-circuit currents
{TPS}:
Explain VTC difference between I and II
Dat a-dependent Ti mi ng
13/03/14 30 TUD/EE ET4293 digic - 12/13 - NvdM - 04 Combinational
A=1, B=: need to charge int
A=, B=1: int does not need to be charged
A=, B=: twice the pull-up strength
{TPS}:
Explain differences in t
pLH
13/03/15
6
13/03/14
LOGI CAL EFFORT
31 TUD/EE ET4293 digic - 12/13 - NvdM - 04 Combinational
Combi nat i onal Pat h Si zi ng f or Ti mi ng
Given: C
L
, S
1
13/03/14 32 TUD/EE ET4293 digic - 12/13 - NvdM - 04 Combinational
Given: C
L
, S
1
Determine S
2
, S
3
, S
4
to minimize delay
We know how to optimally size string of inverters:
make equal stage delays
{TPS}: What is different in comparison to string of inverters?
Answer:
- Delay of unloaded gate differs from delay of unloaded inverter
- For same transistor sizes, amount of output current differs
Rec ap: I nver t er Del ay
S
+
-
V
s
delay
S: relative size of inverter
S
2S
+
V
s
C
ext
C
t
13/03/14 33 TUD/EE ET4293 digic - 12/13 - NvdM - 04 Combinational
S: relative size of inverter
C
g
S C
g
S C
ext
R
0
/S
V
s
-
s
R
0
, C
g
, C
g
: output res, input cap and output cap of min size inverter
C
ext
Rec ap: I nver t er Del ay
C
g
S C
g
S C
ext
R
0
/S
V
s
R
0
, C
g
, C
g
: output res, input cap and output cap of min size inverter
13/03/14 34 TUD/EE ET4293 digic - 12/13 - NvdM - 04 Combinational
( )
in
ext
g po po
g in
in
ext
po
g
ext
g
ext g p
C
C
f C R t with
f
t
SC C with
C
C
t
SC
C
C R
C S C
S
R
t
= = |
.
|
\
|
+ =
=
|
|
.
|
\
|
+ =
|
|
.
|
\
|
+ =
+ =
0
0
0
1
1 1
t
p0
: Delay of unloaded inverter, independent of sizing
I nver t er Del ay Summar y
R
0
Equivalent output resistance of min size inverter
( )
in
ext
g po po ext g p
C
C
f C R t with
f
t C S C
S
R
t = = |
.
|
\
|
+ = + = , 1
0
0
f d + = 1
In units of t
p0
13/03/14 35 TUD/EE ET4293 digic - 12/13 - NvdM - 04 Combinational
R
0
Equivalent output resistance of min size inverter
C
g
Input cap of min size inverter
C
0
=C
g
Drain (and Miller) cap of min size inverter
S Size of inverter (relative to min inverter)
f electrical effort ratio between C
load
and C
in
ratio of drain cap to gate cap
t
p0
intrinsic delay - delay of unloaded inverter
t
p0
~ 20 ps for a 250 nm process, t
p0
~ 5 ps for a 45 nm process
d normalized delay = t
p
/t
po
S
1
S
2
+
-
V
s
delay
S
i
: relative sizes of inverters
C
load
S
3
S
4
Path delay is minimized if all stage delays are equal
13/03/14 36 TUD/EE ET4293 digic - 12/13 - NvdM - 04 Combinational
For string of inverters:
when ratio of load cap over input cap is identical for each stage
If C
g
= input cap of inverter with size 1 (minimum size):
inv
load
g
g
in
g
C S
C
S
S
S
S
S
S
C S
C S
C
C S
4 3
4
2
3
1
2
1
2 2
= = = = =
13/03/15
7
Logi c al Ef f or t Met hodol ogy
f d
inv
+ = 1
Inverter delay:
Gate delay:
Logical Effort Methodology Definitions:
p parasitic delay
ratio of intrinsic delay compared to inverter
h p gf p d
gate
+ = + =
In units of t
p0
13/03/14 37 TUD/EE ET4293 digic - 12/13 - NvdM - 04 Combinational
ratio of output cap for same drive strength
g logical effort
how much more load the gate creates
ratio of input cap for same drive strength
h gate effort, h = gf
[Logical Effort Designing Fast CMOS Circuits, Sutherland, Sproul, Harris]
Beware: compared to most texts, incl. Sutherland,
Rabaey swaps definition of f and h
I nt r i nsi c , Par asi t i c Del ay
p parasitic delay - ratio of
intrinsic delay
compared to inverter
p is ratio of output
capacitances if gate is
sized for identical drive
strength
VDD
A B
A
F
VDD
A
A
F
1
2 2 2
2
13/03/14 38 TUD/EE ET4293 digic - 12/13 - NvdM - 04 Combinational
strength
p
nand
is (2+2+2)/(2+1) = 2
p=1 p=2
B 2
Inverter 2-inputNAND
gf p d
gate
+ =
Logi c al Ef f or t
g logical effort: how
much load a gate
provides relative to
inverter for same drive
strength
g ratio of input cap (per
pin) if gate is sized for
VDD
A B
A
F
VDD
A
A
F
1
2 2 2
2
13/03/14 39 TUD/EE ET4293 digic - 12/13 - NvdM - 04 Combinational
pin) if gate is sized for
identical drive strength
g
nand
is (2+2)/(2+1) = 4/3
g=1 g=4/3
B 2
Inverter 2-inputNAND
gf p d
gate
+ =
Logi c al Ef f or t
B
A
A B
F
V
DD
V
DD
A B
A
F
V
DD
A
A
F
1
2 2 2
2
1 1
4
4
13/03/14 40 TUD/EE ET4293 digic - 12/13 - NvdM - 04 Combinational
B 2
1 1
Inverter 2-input NAND 2-input NOR
p=1, g=1 p=2, g=4/3 p=?, g=?
p ratio of intrinsic delay compared to inverter
g logical effort ratio of inp. cap for same strength
p, g independent of sizing, only topology of gate
p=2, g=5/3
Del ay vs Fan-Out
N
o
r
m
a
l
i
z
e
d
d
e
l
a
y
(
d
)
g = 1
p = 1
d = 1+f/
g = 4/3
p = 2
d = 2+(4/3)f/
effort delay
inverter
2-nand
&
13/03/14 41 TUD/EE ET4293 digic - 12/13 - NvdM - 04 Combinational
gf p d
gate
+ =
Fan-out (f)
1 2 3 4 5 6 7
&
&
&
d
nand
f
Mul t i st age Net w or k s
Stage effort: h
i
= g
i
f
i
( )
=
+ =
N
i
i i i
f g p Delay
1
Normalized w.r.t. unit delay,
assume = 1
13/03/14 42 TUD/EE ET4293 digic - 12/13 - NvdM - 04 Combinational
Path electrical effort: F = f
1
f
2
f
N
= C
out
/C
in
Path logical effort: G = g
1
g
2
g
N
Path effort: H = GF
Path delay D = Ed
i
= Ep
i
+ Eh
i
13/03/15
8
Opt i mum Ef f or t per St age
H h
N
=
-
When each stage bears the same effort, optimal effort h
*
:
N
H h =
-
13/03/14 43 TUD/EE ET4293 digic - 12/13 - NvdM - 04 Combinational
larger fanout for simpler stages
( ) P NH p f g D
N
i i i
+ = + =
/ 1
\
|
=
|
|
.
|
\
|
2 2
2 2
DSAT
DSAT Tp DD p
OL
OL Tn DD n
V
V V V k
V
V V V k
Ignore quadratic terms (they are relatively small)
Exercise: verify these
assumptions/steps
13/03/14 63 TUD/EE ET4293 digic - 12/13 - NvdM - 04 Combinational
Ignore quadratic terms (they are relatively small)
( ) ( )
DSAT Tp DD p OL Tn DD n
V V V k V V V k ~
Ignore, because approximately equal
DSAT
n n
p p
DSAT
n
p
OL
V
W
W
V
k
k
V
~ ~
Pseudo NMOS Rat i oed Logi c
Size V
OL
[V] Power [W] t
pLH
[ps]
4 0.693 564 14
2 0.273 298 56
1 0.133 160 123
Performance of a pseudo-NMOS inverter
13/03/14 64 TUD/EE ET4293 digic - 1011 - NvdM - 04 Combinational
0.5 0.064 80 268
0.25 0.031 41 569
64 TUD/EE ET4293 digic - 12/13 - NvdM - 04 Combinational
Pseudo NMOS Rat i oed Logi c
M1 M2
Differential Cascode Voltage Switch Logic (DCVSL)
Rail-to-rail swing
No static dissipation
Rationed
13/03/14 65 TUD/EE ET4293 digic - 1011 - NvdM - 04 Combinational
V
SS
PDN
Out Out
A
A
B
PDN1
V
SS
PDN
PDN2
B
Cross-over currents
Wiring
65 TUD/EE ET4293 digic - 12/13 - NvdM - 04 Combinational 13/03/14
PASS TRANSI STOR LOGI C
PASS GATE LOGI C
66 TUD/EE ET4293 digic - 12/13 - NvdM - 04 Combinational
13/03/15
12
Pass Tr ansi st or Logi c
Save area, capacitances
Need complementary inputs
(extra inverters)
AB F =
A
B
B
0
But remember:
13/03/14 67 TUD/EE ET4293 digic - 12/13 - NvdM - 04 Combinational
5 combinational 12 TUD/EE ET1205 EC/GS 0506 - NvdM 09-May-06
PMOS is better pull-up
pull-up
NMOS vs. PMOS, pul l -down vs. pul l -up
NMOS is better pull-down
pull-down
6.2.3
Pass Tr ansi st or Logi c
Save area, capacitances
Need complementary inputs
(might mean extra inverters)
Reduced V
OH
, noise margins
( ) ( ) ( )
f OH f T DD OH
V V V V | | 2 2 + + =
AB F =
A
B
B
0
13/03/14 68 TUD/EE ET4293 digic - 12/13 - NvdM - 04 Combinational
Static dissipation in subsequent static
inverter/buffer
( ) ( ) ( )
f OH f Tno DD OH
V V V V | | 2 2 + + =