Lecture 4
Lecture 4
Lecture 4
Circuits
A Design Perspective
Jan M. Rabaey
Anantha Chandrakasan
Borivoje Nikolić
Designing Combinational
Logic Circuits
November 2002.
1
© Digital
EE141 Integrated Circuits 2nd
Combinational Circuits
Combinational vs. Sequential Logic
In Out
Combinational Combinational
In Logic Out Logic
Circuit Circuit
State
Combinational Sequential
2
© Digital
EE141 Integrated Circuits 2nd
Combinational Circuits
Static CMOS Circuit
At every point in time (except during the switching
transients) each gate output is connected to either
VDD or Vss via a low-resistive path.
The outputs of the gates assume at all times the value
of the Boolean function, implemented by the circuit
(ignoring, once again, the transient effects during
switching periods).
This is in contrast to the dynamic circuit class, which
relies on temporary storage of signal values on the
capacitance of high impedance circuit nodes.
3
© Digital
EE141 Integrated Circuits 2nd
Combinational Circuits
Static Complementary CMOS
VDD
In1
PMOS only
In2 PUN
…
InN
F(In1,In2,…InN)
In1
In2 PDN
…
NMOS only
InN
4
© Digital
EE141 Integrated Circuits 2nd
Combinational Circuits
NMOS Transistors
in Series/Parallel Connection
Transistors can be thought as a switch controlled by its gate signal
NMOS switch closes when switch control input is high
A B
X Y Y = X if A and B
X B Y = X if A OR B
Y
A B
X Y Y = X if A AND B = A + B
X B Y = X if A OR B = AB
Y
S D
7
© Digital
EE141 Integrated Circuits 2nd
Combinational Circuits
Complementary CMOS Logic Style
8
© Digital
EE141 Integrated Circuits 2nd
Combinational Circuits
Example Gate: NAND Using De Morgan’s
theorems ((A + B) =
A·B and A·B = A + B), it
can be shown that
the pull-up and pull-
down networks of a
complementary CMOS
structure are dual
networks. This means
that a parallel
connection of
transistors in the pull-up
network
corresponds to a series
connection of the
corresponding devices
in the pull-down and
vice versa.
9
© Digital
EE141 Integrated Circuits 2nd
Combinational Circuits
Example Gate: NOR
10
© Digital
EE141 Integrated Circuits 2nd
Combinational Circuits
Using complementary CMOS
Complex CMOS Gate logic, consider the synthesis
of a complex CMOS gate
whose
function is F = D + A· (B +C).
The first step in the synthesis
B of the logic gate is to derive
A the
pull-down network as shown
C
in Figure 6.6a by using the
fact that NMOS devices in
D series.
implements the AND function
OUT = D + A • (B + C) and parallel device
A implements the OR function.
The next step
D is to use duality to derive the
B C PUN in a hierarchical fashion
11
© Digital
EE141 Integrated Circuits 2nd
Combinational Circuits
Constructing a Complex Gate
VDD VDD
C
SN1 F SN4 A
F
SN2 B
A A
D D SN3
B C B C D
12
© Digital
EE141 Integrated Circuits 2nd
Combinational Circuits
Cell Design
Standard Cells
General purpose logic
Can be synthesized
Same height, varying width
Datapath Cells
For regular, structured designs (arithmetic)
Includes some wiring in the cell
Fixed height and width
13
© Digital
EE141 Integrated Circuits 2nd
Combinational Circuits
Properties of Complementary CMOS Gates
Snapshot
14
© Digital
EE141 Integrated Circuits 2nd
Combinational Circuits
CMOS Properties
Full rail-to-rail swing; high noise margins
Logic levels not dependent upon the relative
device sizes; ratioless
Always a path to Vdd or Gnd in steady state;
low output impedance
Extremely high input resistance; nearly zero
steady-state input current
No direct path steady state between power and
ground; no static power dissipation
Propagation delay function of load capacitance
and resistance of transistors
15
© Digital
EE141 Integrated Circuits 2nd
Combinational Circuits
Switch Delay Model
A Req
A
Rp
Rp Rp
B
A B Rp
A Rp Cint
Rn CL A
B Rn CL
A Rn Rn CL
Rn
Cint
A B
A
NOR2
NAND2 INV
16
© Digital
EE141 Integrated Circuits 2nd
Combinational Circuits
Input Pattern Effects on Delay
Delay is dependent on
Rp Rp the pattern of inputs
A B Low to high transition
both inputs go low
Rn CL – delay is 0.69 Rp/2 CL
B one input goes low
– delay is 0.69 Rp CL
Rn
Cint
A
High to low transition
both inputs go high
– delay is 0.69 2Rn CL
17
© Digital
EE141 Integrated Circuits 2nd
Combinational Circuits
Transistor Sizing
Rp Rp Rp
2 A B 2 4 B
Rn Rp Cint
CL 4
2 A
B
Rn Rn Rn CL
2 Cint
1
A A B 1
18
© Digital
EE141 Integrated Circuits 2nd
Combinational Circuits
Transistor Sizing a Complex CMOS
Gate
B 8 6
A 4 3
C 8 6
D 4 6
OUT = D + A • (B + C)
A 2
D 1
B 2C 2
19
© Digital
EE141 Integrated Circuits 2nd
Combinational Circuits
Fan-In Considerations
A B C D
A CL
B C3 tpHL = 0.69 Reqn(C1+2C2+3C3+4CL)
C C2
Propagation delay deteriorates
D C1 rapidly as a function of fan-in –
quadratically in the worst case.
20
© Digital
EE141 Integrated Circuits 2nd
Combinational Circuits
tp as a Function of Fan-In
1250
quadratic
1000
Gates with a
750
fan-in
tp (psec)
21
© Digital
EE141 Integrated Circuits 2nd
Combinational Circuits
tp as a Function of Fan-Out
All gates
tpNOR2 tpNAND2 have the
same drive
tpINV current.
tp (psec)
Slope is a
function of
“driving
strength”
2 4 6 8 10 12 14 16
eff. fan-out
22
© Digital
EE141 Integrated Circuits 2nd
Combinational Circuits
tp as a Function of Fan-In and Fan-Out
charged 01
In3 1 M3 CL In1 M3 CLcharged
26
© Digital
EE141 Integrated Circuits 2nd
Combinational Circuits
Fast Complex Gates:
Design Technique 4
Isolating fan-in from fan-out using buffer
insertion
CL CL
27
© Digital
EE141 Integrated Circuits 2nd
Combinational Circuits
Fast Complex Gates:
Design Technique 5
Reducing the voltage swing
tpHL = 0.69 (3/4 (CL VDD)/ IDSATn )
1 2 N CL
N
Delay pi g i f i (in units of inv)
i 1
p – intrinsic delay
g – logical effort (kRunitCunit)
f – effective fanout The factor g is called
the logical effort, and
Normalize everything to an inverter: represents the fact
that, for a given load,
ginv =1, pinv = 1 complex gates have to
work harder than an
inverter to produce a
Divide everything by tpinv
similar response if
(everything is measured in unit delays tpinv) input cap = inverter
cap.
Assume = 1.2nd 30
© Digital
EE141 Integrated Circuits
Combinational Circuits
Delay in a Logic Gate
Gate delay:
d=h+p
effort delay intrinsic delay
Effort delay:
h=gf
A 2 A 2 B 2 B 4
F
F
A 4
A 2
A 1 F
A 1 B 1
B 2
t pNAND
Normalized delay (d)
g = 4/3 t pINV
p=2
d = (4/3)h+2
g=1
p=1
d = h+1
F(Fan-in)
1 2 3 4 5 6 7
Fan-out (h)
33
© Digital
EE141 Integrated Circuits 2nd
Combinational Circuits
Logical Effort of Gates
2
=
p
3;
4/
5 1
=
p=
Normalized Delay
g
D:
4 AN 1;
g =
:
tN
e r
rt
pu
3 v e
In
in
Effort
2-
Delay
2
1
Intrinsic
Delay
1 2 3 4 5
Fanoutf
34
© Digital
EE141 Integrated Circuits 2nd
Combinational Circuits
Multistage Networks
N
Delay pi g i f i
i 1
35
© Digital
EE141 Integrated Circuits 2nd
Combinational Circuits
Optimum Effort per Stage
Dˆ g i f i pi NH 1/ N P
36
© Digital
EE141 Integrated Circuits 2nd
Combinational Circuits
Example: Optimize Path
1 b c
a
5
g=1 g = 5/3 g = 5/3 g=1
f=a f = b/a f = c/b f = 5/c
Effective fanout, F =
G=
H=
h=
a=
b=
37
© Digital
EE141 Integrated Circuits 2nd
Combinational Circuits
Example: Optimize Path
1 b c
a
5
g=1 g = 5/3 g = 5/3 g=1
f=a f = b/a f = c/b f = 5/c
Effective fanout, F = 5
G = g1*g2*g3*g4 = 25/9
H = G*F=125/9 = 13.9
h = (H)1/4 =1.93 f1=h/g1=1.93, f2=h/g2=1.158
f3=h/g3=1.158, f4=1.93
a = f1/g2=1.16
b = f1*f2/g3 = 1.34 Electrical effort / logical effort=sizing
38
c =
© Digital f1*f2*f3/g
EE141 Integrated Circuits
3 =
2nd 5g4 /f = 2.59 Combinational Circuits
Example – 8-input AND (assignment)
39
© Digital
EE141 Integrated Circuits 2nd
Combinational Circuits