B Logic
B Logic
刘佳欣
[email protected]
Outline
pLogic Circuits Classification
pComplementary CMOS
pConcept
p Static & Dynamic Properties
p Design Techniques
p Effort
pRatioed Logic
pPass-Transistor Logic
pDynamic CMOS Design
2
Logic Circuits
3
Combinational Logic Circuits
Complementary CMOS
Pass-Transistor Logic
4
Static VS. Dynamic Logic
pStatic Logic
Ø 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
the value of the Boolean function.
pDynamic Logic
Ø Relies on temporary storage of
signal values on the capacitance of
high impedance circuit nodes.
5
Outline
pLogic Circuits Classification
pComplementary CMOS
pConcept
p Static & Dynamic Properties
p Design Techniques
p Effort
pRatioed Logic
pPass-Transistor Logic
pDynamic CMOS Design
6
Static Complementary CMOS
VDD
PUN:
In1 Ø Make a connection from VDD to F
In2 PUN when F(In1,In2, ... Inn) = 1
…
Ø PMOS only
InN
F(In1,In2,…InN)
In1
In2 PDN PDN:
…
7
Construct the PUN and PDN Networks
p Threshold drop issues
VDD VDD
PUN
S D
Good! VDD Bad!
S Good! D Bad!
8
Construct the PDN Networks
p Transistors can be thought as a switch
p NMOS switch closes when its gate is high
A B
X Y Y = X if A and B
X B Y = X if A OR B
Y
9
Construct the PUN Networks
p PMOS switch closes when its gate is low
10
Complementary CMOS Logic Style
11
Example Gate: NAND
12
Complex CMOS Gate
B
A
C
D
F = D + A • (B + C)
A
D
B C
13
Constructing a Complex Gate
VD D VD D
C
S N F1 S N 4 A
F
S N 2 B
A A
D D S N 3
B C B C D
( a ) l-d
wn
o n A e
D
s u b - ts
B C
( c )
14
Outline
pLogic Circuits Classification
pComplementary CMOS
pConcept
p Static & Dynamic Properties
p Design Techniques
p Effort
pRatioed Logic
pPass-Transistor Logic
pDynamic CMOS Design
15
Static Behavior
VTC of inverter
p The VTC of a complementary CMOS
gate is data-dependent
VTC of NAND2
16
Dynamic Behavior
17
Delay Dependence on Input Patterns
NMOS = 0.5m/0.25 m
PMOS = 0.75m/0.25 m
CL = 100 fF
18
Fan-In Considerations
19
Fan-In Considerations
1250
250 tpLH
linear
0
2 4 6 8 10 12 14 16
20
Outline
pLogic Circuits Classification
pComplementary CMOS
pConcept
p Static & Dynamic Properties
p Design Techniques
p Effort
pRatioed Logic
pPass-Transistor Logic
pDynamic CMOS Design
21
Fast Complex Gates: Design Technique 1
q Transistor sizing
§ as long as fan-out capacitance dominates
q Progressive sizing
InN MN CL
M1 > M2 > M3 > … > MN
(the fet closest to the
output is the smallest)
In3 M3 C3
In2 M2 C2
In1 M1 C1
22
Fast Complex Gates: Design Technique 1
q Transistor sizing
§ as long as fan-out capacitance dominates
q Progressive sizing
23
Fast Complex Gates: Design Technique 2
q Input re-ordering
critical path critical path
charged 01
In3 1 M3 CL In1 M3 CLcharged
24
Fast Complex Gates: Design Technique 3
F = ABCDEFGH
25
Fast Complex Gates: Design Technique 4
CL CL
26
Outline
pLogic Circuits Classification
pComplementary CMOS
pConcept
p Static & Dynamic Properties
p Design Techniques
p Effort
pRatioed Logic
pPass-Transistor Logic
pDynamic CMOS Design
27
Review: Optimize the Dealy of Inverter Chain
Ø h=gf: effort
Ø p: intrinsic (parasitic) delay
• Ratio of the intrinsic delays of the complex gate and the inverter
• p=1 for inverter
• Set by circuit topology and layout
Ø f: electrical effort = Cout/Cin
• Ratio of output to input capacitance
• We call it effective fanout in inverter
Ø g: logical effort
• presents the ratio of its input capacitance to the inverter
capacitance when sized to deliver the same current
• g=1 for inverter
• Depends only on circuit topology only
29
Intrinsic Delay
30
Logical Effort
pPresents the ratio of its input capacitance to the inverter
capacitance when sized to deliver the same current
pFor a given load, complex gates have to work harder than
an inverter to produce a similar response.
pCan estimate by counting transistor widths
31
Logical Effort
32
Delay: NAND2 VS. INV
t p t p 0 p gf • d: normalized delay
d p gf p h • h: gate effort
33
Example: FO4 Inverter
34
Multistage Logic Networks
N N
f1 f 2 ... f N N
F
N N N
1
Path effort: H h f g
i 1
i
i 1
i
i 1
i F G h1 h2 ... hN H N
N
Path electrical effort: F f
i 1
i C out _ path / C in _ path
N
Path logic effort: G g
i 1
i
Path delay: D p i hi P D H
36
Multistage Logic Networks
N N N
f C out _ gate / C in _ gate
H hi f i g i F G C in _ gate C out _ gate / f
i 1 i 1 i 1
37
Multistage Logic Networks
N N N
H hi f i g i F G
i 1 i 1 i 1
H≠FG
39
Example: Sizing an Inverter Network
pDetermine the min delay form in to out, CL=64Cin
Ø Path electrical effort:
F=CL/Cin=64
Ø Path effort:
H=FGB=1024
41
Review of Definitions
Logical effort g �= ��
Electrical effort f=Cout/Cin F=Cout(patch)/Cin(path)
Effort delay h �� = ℎ�
Number of stages 1 N
Intrinsic delay p �= ��
Delay d=p+h D=P+DH
42
Review of Definitions
f <-> h
F <-> H
43
Outline
pLogic Circuits Classification
pComplementary CMOS
pConcept
p Static & Dynamic Properties
p Design Techniques
p Effort
pRatioed Logic
pPass-Transistor Logic
pDynamic CMOS Design
44
Ratioed Logic: Concept
45
Resistive Load
46
Pseudo-NMOS Load
47
Pseudo-NMOS Inverter VTC
48
Improved Load
VDD VDD
Ø Differential logic
Ø Positive feedback
M1 M2
Out Out
A
A PDN1 PDN2
B
B Ø Rail-to-rail
Ø No static power
VSS VSS
49
Improved Load
VDD VDD
M1 M2 Ø Differential logic
Ø Positive feedback
Out Out
A
A PDN1 PDN2
B
B
Ø Rail-to-rail
VSS VSS
Ø No static power
Differential Cascode Voltage Switch Logic (DCVSL)
Out
Out
B B B B
A A
CMOS XOR Logic
XOR-NXOR gate
51
DCVSL Response: AND/NAND
2.5
AB
V olta ge [V]
1.5
AB
A,B
0.5 A,B
52
Outline
pLogic Circuits Classification
pComplementary CMOS
pConcept
p Static & Dynamic Properties
p Design Techniques
p Effort
pRatioed Logic
pPass-Transistor Logic
pDynamic CMOS Design
53
Pass-Transistor Logic
54
NMOS-Only Pass-Transistor Logic
B
A
pExample: AND gate B
F A = B
p Full Swing
p No static power in INV
57
Solution 2: Multiple Threshold Transistor
58
Solution 3: Transmission Gate
59
Solution 3: Transmission Gate Based Logic
61
Dynamic Gate:
Clk Mp Clk Mp
Out Out
In1 CL
A
In2 PDN
C
In3
B
Clk Me
Clk Me
Two phase operation
Precharge (CLK = 0)
Evaluate (CLK = 1)
62
Properties of Dynamic Gate
p Logic function is implemented by the PDN (or PUN, but barely use)
only
63
Thank you!