DICD Fall 2024 Lecture 06 Combinational Logic Using Static CMOS
DICD Fall 2024 Lecture 06 Combinational Logic Using Static CMOS
Lecture # 06
Combinational Logic using Static CMOS
Muhammad Imran
[email protected]
Acknowledgement
2
In Out
Combinational Combinational
In Logic Out Logic
Circuit Circuit
State
Combinational Sequential
▪ Static CMOS
▪ At every point in time, (except during the switching transients) output of
the gate
▪ Is connected to either VDD or VSS via a low-resistive path
▪ Assumes the value of the Boolean function implemented by the circuit
▪ Easier to implement, low-power consumption (at low activity)
▪ Dynamic CMOS
▪ Relies on temporary storage of signal values on the capacitance of high
impedance circuit nodes
▪ Faster and smaller in size
▪ Complex design, more sensitive to noise
Static Complementary CMOS
7
VDD
In1
In2 PUN (PMOS only)
InN
F(In1,In2,…InN)
In1
In2 PDN (NMOS only)
InN
PUN and PDN are dual logic networks
Threshold Drops
8
▪ The primary reason for PDN with NMOS / PUN with PMOS is that:
▪ NMOS transistors produce “strong zeros”
▪ PMOS devices generate “strong ones”
NMOS in Series and Parallel
9
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
▪ Original logic:
▪ 𝐹(𝐴, 𝐵) = 𝐴. 𝐵
▪ PD logic:
▪ 𝐹ത 𝐴, 𝐵 = 𝐴. 𝐵
▪ PU logic:
▪ 𝐹 𝐴,ҧ 𝐵
ത = 𝐴ҧ + 𝐵ത
Building a NAND Gate
14
▪ Original logic:
▪ 𝐹(𝐴, 𝐵) = 𝐴 + 𝐵
▪ PD logic:
▪ 𝐹ത 𝐴, 𝐵 = 𝐴 + 𝐵
▪ PU logic:
▪ 𝐹 𝐴,ҧ 𝐵
ത = 𝐴.ҧ 𝐵ത
NOR Gate
16
▪ Given logic:
▪ 𝐹(𝐴, 𝐵, 𝐶, 𝐷) = 𝐴. 𝐵 + 𝐶. 𝐷
▪ PD logic:
▪ 𝐹ത 𝐴, 𝐵, 𝐶, 𝐷 = 𝐴. 𝐵 + 𝐶. 𝐷
▪ AB, CD: series
▪ (AB)+(CD): parallel
▪ PU logic:
▪ 𝐹 𝐴,ҧ 𝐵,
ത 𝐶,ҧ 𝐷
ഥ = 𝐴ҧ + 𝐵ത . (𝐶ҧ + 𝐷)
ഥ
Complex Gate – Duality of PDN and PUN
18
Rp Rp
▪ Example : NAND gate
▪ Low to high transition A B
▪ both inputs go low
▪ delay is 0.69 (Rp/2) CL Rn CL
▪ one input goes low
B
▪ delay is 0.69 Rp CL
▪ High to low transition Rn
▪ both inputs go high Cint
▪ delay is 0.69 2Rn CL A
Delay Dependence on Input Patterns
22
3
Input Data Delay
A=B=1→0
2.5
Pattern (psec)
2 A=B=0→1 67
A=1, B=0→1 64
Voltage [V]
1 A=B=1→0 45
A=1, B=1→0 80
A= 1→0, B=1 81
0.5
A= 1→0, B=1
0
0 100 200 300 400
-0.5
time [ps]
NMOS = 0.5m/0.25 m
PMOS = 0.75m/0.25 m
CL = 100 fF
Transistor Sizing for Performance
Transistor Resistance
24
W
Transistor Resistance
25
2R
W/L W/L
W/2L
I
I
▪ A parallel connection of constant length transistors is equivalent to
increasing the width
W/L
R/2
2W/L
W/L
I
I
Transistor Sizing for Timing
26
1 1 𝑘′𝑝 = 𝜇 𝑝𝐶 𝑜𝑥
𝑘′𝑝 = 𝑘′𝑛 𝒐𝒓 𝜇𝑝 = 𝜇𝑛
2 2 𝑘′𝑛 = 𝜇 𝑛𝐶 𝑜𝑥
We design for wort-case delay
4
2 2
4
2
2 1 1
4
2 2
4
2
2 1 1
▪ Assume 1
𝑘′𝑝 = 𝑘′𝑛 We design for wort-case delay
3
1 1 1 9
9
1
9
1
1 1 1 1
Transistor Sizing for Timing
29
▪ Assume 1 C 4.5
𝑘′𝑝 = 𝑘′𝑛 A
3
here we want the same down and up resistance . at the bottom we have 2R B 4.5
and up worst case is 9R cause 3R cause of 3L multiply by mobility 3 factor ,
so overall we nee 2R but we have 9R so divide 9R by 4.5( it is the upsize of
all transistor)
D 4.5
F
A 1
D
1 B C
1 1
Fan-In Consideration
Fan-In Considerations
31
▪ Transistor Sizing
▪ Sizing up all TRs
▪ Effective as long as fan-out capacitance dominates (not intrinsic cap)
▪ Progressive Sizing
▪ According to resistance contribution!
▪ Non-uniform scaling
▪ Make TRs closer to output smaller
▪ Can reduce delay by >20%
Design Techniques for Larger Fan-In
35
▪ Input Reordering
▪ Place critical-path transistors closer to output
1 charged 0→1
charged
1 charged 1
discharged
charged 1
0→1 discharged
CL CL
▪ Is it better to drive a big capacitive load directly with the NAND gate
or after some buffering?
▪ To answer these questions:
▪ We extend the buffer sizing problem to CMOS gates!
Fanout Consideration – Inverter Chain Review
39
Chain Delay:
Stage Delay:
Delay of NAND Gate
40
▪ Note
4
▪ 𝐶𝑔,𝐴 = 𝐶𝑔,𝐵 = 4𝐶𝑔,𝑚𝑖𝑛 = 𝐶𝑔,𝐼𝑁𝑉
3
▪ 𝐶out ,𝑁𝐴𝑁𝐷 ≈ 6𝐶𝑑,𝑚𝑖𝑛 𝐶out ,𝐼𝑁𝑉 ≈ 3𝐶𝑑,𝑚𝑖𝑛
𝐶𝑜𝑢𝑡,𝑁𝐴𝑁𝐷 6𝐶 3
▪
𝐶𝑜𝑢𝑡,𝐼𝑁𝑉
≈ 3𝐶𝑑,𝑚𝑖𝑛 = 2 𝐶𝑔,𝐼𝑁𝑉 = 4 𝐶𝑔,𝑁𝐴𝑁𝐷
𝑑,𝑚𝑖𝑛
𝐶𝑑,𝑚𝑖𝑛
▪ 𝛾= ⇒ 𝐶𝑜𝑢𝑡,𝐼𝑁𝑉 = 𝛾𝐶𝑔,𝐼𝑁𝑉
𝐶𝑔,𝑚𝑖𝑛
4
= 𝑡𝑝0 2 + 3𝛾 𝑓
Delay of NAND Gate
42
4
▪ 𝑡𝑝,𝑁𝐴𝑁𝐷 = 𝑡𝑝0 2 + 𝑓
3𝛾
▪ Compared to
𝑓
▪ 𝑡𝑝,𝐼𝑁𝑉 = 𝑡𝑝0 1 +
𝛾
▪ Conclusions
▪ The intrinsic (unloaded) delay is twice that of an inverter
▪ The fanout increases the delay at a faster pace than an inverter
▪ It is better to drive a load with an inverter than a NAND
Delay of NOR Gate
43
5
▪ 𝑡𝑝,𝑁𝑂𝑅 = 𝑡𝑝0 2 +
3𝛾
𝑓 Derive this as an exercise …
𝐶𝑒𝑥𝑡
▪ Inverter: 𝑡𝑝 = 𝑡𝑝0 1 + = 𝑡𝑝0 (1 + 𝑓/𝛾)
𝛾𝐶𝑔
logical effort for 2 inputs can be different for example for A input cap is 12 for B its 16 here
we are taking PUN and PDN both so for A logical effort would be 12/3(inv) and B = 16/3(inv)
𝐶𝑒𝑥𝑡
▪ Inverter: 𝑡𝑝 = 𝑡𝑝0 1 + = 𝑡𝑝0 (1 + 𝑓/𝛾)
𝛾𝐶𝑔
𝒅 = 𝒑 + 𝒈𝒇
Logical Effort
48
𝒅 = 𝒑 + 𝒈𝒇
▪ Logical effort is the ratio of input capacitance of a gate to the input
capacitance of an inverter with the same output current
g = 4/3 g = 5/3
Logical Effort
49
𝒅 = 𝒑 + 𝒈𝒇
▪ Logical effort is a function of topology, independent of sizing
▪ Logical effort of a gate presents the ratio of its input capacitance to the
inverter capacitance when sized to deliver the same current
▪ Logical effort increases with the gate complexity
▪ Inverter has the minimum logical effort!
▪ 𝑑 = 𝑝 + 𝑔. 𝑓
▪ Parasitic delay: p = 1
▪ Logical effort: g = 1
▪ Fanout: f = 4
▪ Delay = 1+4×1 = 5
Logical Effort
52
𝒅 = 𝒑 + 𝒈𝒇
𝐶on−path + 𝐶𝑜𝑓𝑓−𝑝𝑎𝑡ℎ
𝑏𝑖 =
𝐶on−path
Multi-Stage Network
54
▪ Stage delay: 𝒅 = 𝒑 + 𝒈 ∙ 𝒇
▪ p = intrinsic delay, g = logical effort, f = fanout
▪ Path delay: 𝑫 = σ𝑵
𝒊=𝟏 𝒑𝒊 + 𝒈𝒊 ⋅ 𝒇𝒊
𝐶
▪ Path electrical effort: 𝐹 = out
𝐶𝑖𝑛
𝑓1 𝑓2 𝑓 𝑓 .𝑓 .…𝑓
F= . .…. 𝑁 = 1 2 𝑁
𝑏1 𝑏2 𝑏𝑁 𝐵
▪ Path delay: 𝐷 = σ𝑁 𝑁 𝑁
𝑖=1 𝑑𝑖 = σ𝑖=1 𝑝𝑖 + σ𝑖=1 ℎ𝑖
Multi-Stage Network – Example
55
▪ G = g1 x g2 x g3 x g4 = 20/9
▪ F = Cout/Cin = 20 / 10 = 2
▪ H = G x F x B = 40/9
▪ f1 = x/10, f2 = y/x, f3 = z/y, f4 = 20/z
Multi-Stage Network – Example with Branch
56
▪ G = 1(1 × 1) = 1
▪ F = 90/5 = 18
▪ F.G = 18 Start
▪ B = (15+15)/15=2
▪ f1 = (15+15)/5 = 6 End
▪ f2 = 90/15 = 6
▪ H = g1g2f1f2 = 36
▪ Note H ≠ G×F
▪ H = G ×F ×B = 1 ×18 ×2 = 36
Optimizing Effort for Minimum Delay
57
▪ Assuming
1
1 b c
▪ 𝑘′𝑝 = 𝑘′
2 𝑛
a
5
Stage 1 Stage 2 Stage 3 Stage 4
▪ Sizing Gates:
▪ Inverter P:N = 2:1 → Size 1 inverter: P=2/3, N=1/3
▪ Size k inverter: P=2k/3, N=1k/3
▪ Assuming
1
1 b c
▪ 𝑘′𝑝 = 𝑘′
2 𝑛
a
5
Stage 1 Stage 2 Stage 3 Stage 4
▪ Stage Effort:
▪ Stage 1 2 3 4
▪ Logical Effort (g) 1 5/3 5/3 1
▪ Electrical Effort(f) a/1 b/a c/b 5/c
Example – Sizing Combinational Logic for Min. Delay
60
▪ Assuming
1
1 b c
▪ 𝑘′𝑝 = 𝑘′
2 𝑛
a
5
Stage 1 Stage 2 Stage 3 Stage 4
▪ Path Effort:
▪ F = 5/1 = 5
▪ G = 1 × 5/3 × 5/3 × 1 = 25/9
▪ B=1
▪ H = B × G × F = 125/9
▪ Optimal h
𝑁 4
▪ ℎ= 𝐻= 125/9 = 1.93
Example – Sizing Combinational Logic for Min. Delay
61
▪ Assuming
1
1 b c
▪ 𝑘′𝑝 = 𝑘′
2 𝑛
a
5
Stage 1 Stage 2 Stage 3 Stage 4
Stage 1 2 3 4
Stage 𝑎 𝑏 𝑐 5
𝑔1 × = 1.93 𝑔2 × = 1.93 𝑔3 × = 1.93 𝑔4 × = 1.93
Effort (h=gf) 1 𝑎 𝑏 𝑐
𝑎 𝑏 𝑐 5
1 = × 𝑔1 𝑎 = 1.93 × 𝑔2 𝑏= × 𝑔3 𝑐= × 𝑔4
TR size 1.93 1.93 1.93
= 1 (confirm) = 1.93 = 2.23 = 2.59
▪ If there is a branch, stage effort should be calculated with branch effort:
ℎ=𝑏∙𝑔∙𝑓
Example – Sizing with Branch Effort
62
▪ Path Effort
▪ F = 4.5C/1C = 4.5
▪ G = 4/3×4/3×4/3 = 64/27
▪ B=2×3=6
▪ H = B × G × F = 64
▪ h=4
𝟒.𝟓𝑪 𝟒.𝟓𝑪 𝟒
▪ 𝒛= × 𝒈𝟑 = × 𝟑 = 𝟏. 𝟓𝑪
𝟒 𝟒
𝒛 𝟏.𝟓𝑪 𝟒
▪ 𝒚= × 𝑩𝟐 × 𝒈𝟐 = × 𝟑 × 𝟑 = 𝟏. 𝟓𝑪
𝟒 𝟒
𝒚 𝟏.𝟓𝑪 𝟒
▪ 𝑪= × 𝑩𝟏 × 𝒈𝟏 = × 𝟐 × 𝟑 = 𝟏𝑪
𝟒 𝟒
Another Example
63
▪ Path Effort
▪ F = 45/8 = 5.625
▪ G = 4/3×4/3×5/3 = 80/27
▪ B=3×2=6
▪ H = B × G × F = 100
3
▪ h= 100 = 4.64
𝒏
▪ Compute the optimal stage effort: 𝒉 = 𝑯
𝑪𝒐𝒖𝒕 𝑪𝒐𝒖𝒕
𝑪𝒊𝒏 = =
𝒇 𝒉/𝒈
Power Consumption in Static CMOS
Power Consumption
66
𝑁0 ⋅ 2𝑁 −𝑁0 3∙ 22 −3 3
▪ 𝛼0→1 = = =
22𝑁 22⋅2 16
Switching Activity Factor
69
▪ Signal Statistics
▪ Inputs may not be uniformly distributed as assumed earlier!
▪ Now let’s assume inputs are uncorrelated but not uniformly distributed!
▪ Consider a 2-input NOR gate
▪ 𝑝𝑎 / 𝑝𝑏 - Probabilities that inputs A and B are 1!
▪ The probability that output is 1:
▪ 𝑝1 = (1 − 𝑝𝑎 ) ∙ 1 − 𝑝𝑏
▪ Probability of 0 to 1 transition:
▪ 𝛼0→1 = 𝑝0 𝑝1
▪ = [1 − (1 − 𝑝𝑎 ) 1 − 𝑝𝑏 ][(1 − 𝑝𝑎 ) 1 − 𝑝𝑏 ]
Switching Activity Factor
70
▪ Signal Statistics
▪ Transition probabilities for other gates
▪ Inter-signal Correlation
▪ Signals may not be uncorrelated as assumed!
▪ Example:
▪ Inter-signal Correlation
▪ Signals may not be uncorrelated as assumed!
▪ Example:
▪ Inter-signal Correlation
▪ Signals may not be uncorrelated as assumed!
▪ Example:
▪ Inter-signal Correlation
▪ Signals may not be uncorrelated as assumed!
▪ Example:
▪ 𝑝 𝑍 = 1 = 𝑝(𝐵 = 1, 𝐶 = 1)
▪ If B and C are dependent!
𝑝 𝐵=1 𝑎𝑛𝑑 𝐶=1
▪ 𝑝 𝐶=1𝐵=1 =
𝑝 𝐵
P(B|A) = P(A∩B) / P(A)
▪ 𝑝 𝑍 = 1 = 𝑝 𝐵 = 1, 𝐶 = 1 = 𝑝 𝐶 𝐵 . 𝑝 𝐵 = 0 as 𝑝 𝐶 𝐵 = 0!
so when 1 comes at all outputs like all of
them will try to go to zero as ( 1 1 = 0)
but for instance after out 1 goes below
certain threshold , out 2 will
Dynamic or Glitching Transitions go up as (1 0 = 1 )and out 3 will go down steadily
according to NAND logic and at out 4 same
thing as out 2 will happen
75
▪ Due to non-zero propagation delay from one logic block to the next!
Reducing Switching Activity
76
▪ Logic Restructuring
▪ Example: F = A.B.C.D
▪ Logic Restructuring
▪ Example: F = A.B.C.D
▪ Input ordering
▪ Time-multiplexing sources
▪ Time-multiplexing sources
Ratioed Logic
Non-Standard CMOS Families
84
▪ Alternatives
▪ Not as robust but take less area!
Ratioed Logic
85
▪ Standard CMOS
▪ Sizing considerations improved the performance (=speed) of the logic
gates, but not their functionality
▪ Ratioed Logic
▪ To ensure functionality, a certain ratio of sizes has to be kept between
various devices that make up the gate
▪ Benefit of Ratioed Logic?
▪ Fewer transistors!
▪ Drawback
▪ Static power consumption, slower response
Ratioed Logic
86
▪ Basic concept
▪ Use the same Pull-Down Network as CMOS
▪ Use a simple Load as its Pull Up Network
▪ Load constantly leaks current from the supply to
the output capacitance
▪ The output is charged when the PDN is closed,
providing a ‘1’
▪ Load’s resistance is much larger than that of
an open PDN
▪ When the PDN is open, the output is pulled
down to VOL
▪ Ratio between the resistance of the Load and
the PDN is crucial in designing such a gate,
hence it is called “Ratioed” Logic.
Ratioed Logic – Resistive Load
87
▪ N transistors + Load
V DD
▪ VOH = V DD
Resistive
▪ V = R PN
OL Load RL
RPN + RL
▪ Asymmetrical response
F
▪ Static power consumption
In1
▪ tpLH= 0.69 RLCL
In2 PDN
In3
VSS
Ratioed Logic – Resistive Load
88
▪ Load Implementation
▪ Early Ratioed Logic designs used a simple resistor as the Load.
▪ This approach had several drawbacks, especially with the difficulty in
resistor implementation in VLSI
Ratioed Logic – Resistive Load
89
▪ Load Implementation
▪ Accordingly, the Load was replaced with a Diode-connected nMOS
(VGD=0) a.k.a. Saturated Load Inverter
▪ This circuit stopped conducting at VGS=VDD-VTn (weak ‘1’) providing a
reduced swing
Ratioed Logic – Resistive Load
90
▪ Load Implementation
▪ To improve the swing, the enhancement nMOS was replaced with a
“Depletion Mode” nMOS.
▪ A special, highly doped nMOS with negative threshold voltage (VTn<0)
▪ Used for some time until the Pseudo nMOS inverter was invented
▪ Replacing the nMOS load with a pMOS connected to ground
Psedudo-NMOS
91
▪ Pseudo-NMOS
▪ Reduced number of transistors over V DD
complementary CMOS
▪ Using a pMOS in the PUN, we get a Strong ‘1’ PMOS
Load
when the PDN is closed
VSS
▪ VOHmax=VDD
F
▪ When the PDN is open, there is a “fight” between In1
the PDN and the pMOS load In2 PDN
In3
V SS
Pseudo-NMOS
Psedudo-NMOS
92
▪ To calculate VOLmin
▪ Equate the pMOS saturation current with the PDN current, assuming
that it consists of nMOS devices in Linear Mode
▪ The drive strength of the PDN is kneq
▪ Assume short channel devices
2
𝑉𝐷𝑆𝐴𝑇 1 2
▪ 𝐼𝐷𝑝 = 𝑘𝑝 𝑉𝐷𝐷 − 𝑉𝑇𝑝 𝑉𝐷𝑆𝐴𝑇 − = 𝐼𝐷𝑛 = 𝑘𝑛𝑒𝑞 𝑉𝐷𝐷 − 𝑉𝑇𝑛 𝑉𝑂𝐿 − 𝑉𝑂𝐿
2 2
2
𝑉𝐷𝑆𝐴𝑇
▪ 𝑃low = 𝑉𝐷𝐷 𝐼low ≈ 𝑉𝐷𝐷 𝑘𝑝 𝑉𝐷𝐷 − 𝑉𝑇𝑝 𝑉𝐷𝑆𝐴𝑇 − 2
95
▪ When large fan-in gates are needed, the reduced transistor count
can be attractive
Pseudo nMOS Characteristics
96
▪ But…
▪ Slow tpLH
▪ Bigger capacitive load
▪ In general:
▪ N+1 Transistors
▪ Only 1 NMOS load to previous stage
▪ Make sure RPMOS resistance at least 4 x RPDN
Differential Cascode Voltage Switch Logic (DCVSL)
97
DCVSL Example
98
Pass Transistor Logic
Pass Transistor Logic A bar and B bar require inverters in PTL and simple Static topology
so for PTL 4( 2 + inv2 ) and for stat its 6 (4 + inv2)
100
▪ Basic concept
▪ Reduce the number of transistors required to implement logic
▪ By allowing the primary inputs to drive source and drain terminals in
addition to the gate terminals
▪ Using PTL, number of transistors to implement a 2-input AND gate is
reduced to 4 (instead of 6 for Standard CMOS)
▪ Broadening the PTL Concept, we can make some more interesting
gates
Relay Multiplexer
101
Switch Out
Network
Inputs
NMOS
source = out put
Pass Transistor Logic drain = input
102
Y = A B
Y = A B
▪ We cannot drive another PTL gate input
with this output
Y = VDD − 2 VTn
Pass Transistor Logic – AND Gate
105
Y = VDD − VTn
Y = A B
▪ There is some signal degradation
▪ Need to add a CMOS Inverter every few gates to
replenish the level
■
due to body effect the output after
1st stage can be near vdd/2 as Vt
is more than ususal case , body
effect is due to some reverse bias
in body terminal which increase
1
Example -An inverter after a PTL AND gate and drive the input high
Vsap =Vrn 3
..
is working partially for example
PMOS partially and NMOS fully
it will cause to loose power
and our output will not be good 1
A
VDD-VT
Pass Transistor Logic and VTC
109
VDD/2
VT
Pass Transistor Logic – Characteristics
110
▪ Level Restoration
▪ Solving the problem of Weak ‘1’
▪ PTL AND gate, followed by an inverter with
a feedback loop to a pMOS transistor
▪ When node X is high (VDD-VTn),
▪ The Inverter outputs a ‘0’, opening
the pMOS “bleed” transistor
▪ This restores the level at X to VDD
▪ When node X makes a ‘1’ to ‘0’
transition
▪ There is a “fight” between the bleed
transistor and the low input
B P1 P1
AA
M1 Vx Out M1
B
M2
Robust Pass Transistor Design
113
VSGp=VDD
V
find kn k Vx DD VSDp=VDD-Vx
p 2 P1
M1
VGSn=VDD
VDSn=Vx
Complementary Pass Transistor Logic
114
▪ AND / NAND
B B A B f
0 0
0 1
A N1 1 0
1 1
B N2 AB
A B f
0 0
N3
A 0 1
1 0
B N4 AB 1 1
Complementary Pass Transistor Logic
116
▪ OR / NOR
B B A B f
0 0
0 1
A N1 1 0
1 1
B N2 A+B
A B f
0 0
N3
A 0 1
1 0
B N4 A+B 1 1
Complementary Pass Transistor Logic
117
▪ XOR / XNOR
B B A B f
0 0
0 1
A N1 1 0
1 1
A N2 A⊕B
A B f
0 0
N3
A 0 1
1 0
A N4 A⊕B 1 1
Complementary Pass Transistor Logic
118
▪ Problems
▪ Process complexity : Complementary input signals
▪ Threshold-voltage drop : Reduced noise margin
▪ Low threshold-voltage is needed : Subthreshold conduction
▪ Similar complexity as conventional CMOS realization
▪ CPL-based XOR gate
• Level restoration
• Less of a ratio problem
• The restorer is turned off by
the opposite circuit
Transmission Gates
Transmission Gates
120
VGSn=VDD-Vout
VDSn=VDD-Vout
N1
Vin Vout
P1
VSGp=VDD
VSDp=VDD-Vout
𝑉𝐷𝑆𝑛 𝑉𝐷𝑆 1 1 1
▪ 𝑅𝑛 = = 𝑉2
= 𝑉 = 𝑉 −𝑉 = 𝑉𝐷𝐷 𝑉𝑜𝑢𝑡
𝐼𝐷𝑆𝑛
𝑘𝑛 𝑉𝐺𝑆 −𝑉𝑇𝑛 𝑉𝐷𝑆 − 𝐷𝑆 𝑘𝑛 𝑉𝐺𝑆 −𝑉𝑇𝑛 − 𝐷𝑆 𝑘𝑛 𝑉𝐷𝐷 −𝑉𝑜𝑢𝑡 −𝑉𝑇𝑛 − 𝐷𝐷 𝑜𝑢𝑡 𝑘𝑛 − −𝑉𝑇𝑛
2 2 2 2 2
𝑉𝐷𝑆𝑝 𝑉𝐷𝑆 1 1 1
▪ 𝑅𝑝 = = 𝑉2
= 𝑉 = 𝑉 −𝑉 = 𝑉 𝑉
𝐼𝐷𝑆𝑝
𝑘𝑝 𝑉𝐺𝑆 −𝑉𝑇𝑝 𝑉𝐷𝑆 −𝐷𝑆 𝑘𝑝 𝑉𝐺𝑆 −𝑉𝑇𝑝 − 𝐷𝑆 𝑘𝑛 −𝑉𝐷𝐷 −𝑉𝑇 − 𝑜𝑢𝑡 𝐷𝐷 𝑘𝑛 − 𝐷𝐷 − 𝑜𝑢𝑡 −𝑉𝑇
2 2 2 2 2
Resistance of Transmission Gate
123
2-Input Mux using CMOS
124
▪ 2-Input Multiplexer
▪ F = A S + BS
▪ Implementation in CMOS
▪ PDN:
F = A S + B S
▪ PUN:
( )
F = A S + B S = A S B S = A + S (B + S )
▪ Requires 10 transistors!
2-Input Mux using Transmission Gate Logic
125
F = A S + B S
4-Input Mux using Transmission Gate Logic
126
2-Input XOR using CMOS
127
F = A B + A B
▪ PDN: F = A B + A B
(
F = A B + A B = A B A B = A + B )(A + B )
▪ Requires 12 transistors
2-Input XOR using Transmission Gate Logic
128
Y = A B
▪ When B = ‘0’:
▪ The input stage closes both transistors,
but the Transmission Gate is open!
▪ Hence: Y = A B + A B
Y = A B
2-Input XOR using Transmission Gate Logic
129
Tri-State Buffer
130