Lecture 10
Lecture 10
Circuits
A Design Perspective
Designing Combinational
Logic Circuits
1
EE141
Combinational vs. Sequential Logic
In Out
Combinational Combinational
In Logic Out Logic
Circuit Circuit
State
Combinational Sequential
2
EE141
Static CMOS Circuit
At every point in time (except during the switching
transients) each gate output is connected to either
VDD or GND 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
EE141
Static Complementary CMOS
PUN provides a connection between output and VDD
VDD, when the output of the gate evaluates a
“1”. The PDN provides a connection between
output and ground, when the output of the gate In1
PMOS only
evaluates a “0”. In2 PUN
…
In steady-state, the output node is low- InN
impedance
F(In1,In2,…InN)
In1
In2 PDN
…
NMOS only
InN
4
EE141
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
D S
0 → VDD VGS 0 → VDD - VTn
CL CL
S D
7
EE141
Complementary CMOS Logic Style
8
EE141
Example Gate: NAND
9
EE141
Example Gate: NOR
10
EE141
Complex CMOS Gate
B
A
C
D
OUT = D + A • (B + C)
A
D
B C
11
EE141
Constructing a Complex Gate
VDD VDD
OUT = D + A • (B + C)
C
SN1 F SN4 A
F
SN2 B
A A
D D SN3
B C B C D
12
EE141
Properties of Complementary CMOS Gates
Snapshot
13
EE141
CMOS Properties
q Full rail-to-rail swing; high noise margins
14
EE141
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
15
EE141
Input Pattern Effects on Delay
q Delay is dependent on
Rp Rp
the pattern of inputs
A B
q Low to high transition
Rn CL
§ both inputs go low
– delay is 0.69 Rp/2 CL
B
§ one input goes low
Rn – delay is 0.69 Rp CL
Cint
A q High to low transition
§ both inputs go high
– delay is 0.69 2Rn CL
3
Input Data Delay
2.5 A=B=1→0
Pattern (psec)
2 A=B=0→1 67
A=1 →0, B=1
A=1, B=0→1 64
Voltage [V]
1.5
1
A=1, B=1→0 A= 0→1, B=1 61
0.5 A=B=1→0 45
0 A=1, B=1→0 80
0 100 200 300 400 A= 1→0, B=1 81
-0.5
time [ps] NMOS = 0.75µm/0.25 µm
PMOS = 0.75µm/0.25 µm
CL = 100 fF 17
EE141
Transistor Sizing (compared to a CMOS inverter)
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
EE141
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
EE141
Fan-In Considerations
A B C D
A CL Distributed RC model
B C3 (Elmore delay)
t PHL = 0. 69[ R1 .C1 + ( R1 + R2 ).C2 + ( R1 + R2 + R3 ).C 2 + ( R1 + R2 + R3 + R4 ).C L ]
C C2
D tpHL = 0.69 Reqn(C1+2C2+3C3+4CL)
C1
R1 appears in all terms, making this device
especially important when attempting to
minimize delay.
should be avoided.
500
250 tpLH
linear
0
2 4 6 8 10 12 14 16
fan-in
21
EE141
Fast Complex Gates: Design Technique 1
q Transistor sizing
§ as long as fan-out capacitance dominates
q Progressive sizing
Distributed RC line
InN MN CL
M1 > M2 > M3 > … > MN
(the fet closest to the
In3 M3 C3 output is the smallest)
q Transistor ordering
critical path critical path
charged 0→1
In3 1 M3 CL In1 M3 CLcharged
24
EE141