Chapter 3 and 4
Chapter 3 and 4
COMPOUND GATES
C D
A B C D
A B
(c)
(d)
C D
A
A B
B
Y Y
C
A C
D
B D
(f)
(e)
EXAMPLE: O3AI
Y = ( A + B + C) • D
EXAMPLE: O3AI
Y = ( A + B + C) • D
A
B
C D
Y
D
A B C
We must first complement this equation, and then apply
DeMorgan’s Theorem (several times!).
Y=A+B+AC
Y=A+B+AC
(
= A +B AC)( )
= (A + B )(A + C )
= (A + B )(A + C )
= AA + AC + BA + BC
= A (A + B + C ) + BC
= A + BC
Y is low if A is high, OR
if both B AND C are high.
We can thus realize this logic with the following NMOS PDN:
Y
A B
PDN C
Y = A + BC
(
Y = f A, B,C )
In other words, write the un-complemented output in terms
of complemented inputs.
Again, using DeMorgan’s Theorem:
Y = A + B + AC
= AB + A C
(
= A B+ C )
Logically, this result says:
We can thus realize this logic with the following PMOS PUN:
VDD
B C
PUN Y
(
Y = A B+ C )
B C
Y=A+B+AC
A B
C
11/14/2004 Example Another CMOS Logic Gate Synthesis.doc 1/4
( )
Y = A +B C
Y = (A +B)C
( )
Y = A+B +C
Y = AB +C
And thus:
Y = AB+ C
Y
Y = AB + C
= AB + C
C = C
B
Step 2: Design the PUN
C= C
C= C
Therefore:
( )
Y = A + B C
= (A + B)C
A B
( )
Y = A+ B C
C = C = (A + B )C
= (A + B )C
Y
C = C
B
NMOS CUTOFF
Let us assume Vs = Vb
No channel, if Vgs = 0
Ids = 0 Vgs = 0
g
Vgd
+ +
- -
s d
n+ n+
p-type body
b
NMOS LINEAR
Vgs > Vt
Pinch off Current + g
+
Vgd < Vt
- -
s d Ids
n+ n+
Vds > Vgs-Vt
p-type body
b
I-V CHARACTERISTICS
In Linear region, Ids depends on
• How much charge is in the channel
Qchannel
I ds =
t
= Cox
W V − V − Vds V
gs ds
2
t
L
W
= Cox
= Vgs − Vt − ds Vds
V
L
2
TRIODE REGION / LINEAR REGION
B S D
- + ID
+++ VGS1>Vt increasing
+++
metal
VGS
- oxide
- - -
n+ n+
p
B S -+ D
+++ VGS2>VGS1
+++
+++
metal G
- oxide
- - - --
n+ n+
p
VDS
cut-off
B S -+ D 0.1 v
+++ VGS3>VGS2
+++
+++ +++
Increasing VGS puts more charge in
metal the channel, allowing more drain
- - oxide
-------
n+ n+ current to flow
p
SATURATION REGION
occurs at large VDS
n+ n+
p
SATURATION REGION
occurs at large VDS
The saturation region is when the MOSFET experiences pinch-off.
Pinch-off occurs when VG - VD is less than VT.
gate
G
body source drain
B S - + D
VDS large
+++
+++
+++
metal
oxide
n+ n+
p
SATURATION REGION
occurs at large VDS
gate
G
body source drain
+
B S - D
VD>>Vs
+++
+++
+++
metal
oxide
n+ n+
p
SATURATION REGION
once pinch-off occurs, there is no further increase in drain current
saturation
ID
triode
increasing VDS>VGS-VT
VGS VDS<VGS-VT
VDS
0.1 v
SIMPLIFIED MOSFET I-V EQUATIONS
Cut-off: VGS< VT
ID = IS = 0
Slide
ACTIVITY
1) If the width of a transistor increases, the current will
increase decrease not change
2) If the length of a transistor increases, the current will
increase decrease not change
3) If the supply voltage of a chip increases, the maximum transistor
current will
increase decrease not change
4) If the width of a transistor increases, its gate capacitance will
increase decrease not change
5) If the length of a transistor increases, its gate capacitance will
increase decrease not change
6) If the supply voltage of a chip increases, the gate capacitance of each
transistor will
increase decrease not change
Slide
MOS INVERTER VOLTAGE TRANSFER CURVE
DC RESPONSE
DC Response: Vout vs. Vin for a gate
Ex: Inverter
• When Vin = 0 -> Vout = VDD
Slide
TRANSISTOR OPERATION
Current depends on region of transistor behavior
• Cutoff?
• Linear?
• Saturation?
Slide
NMOS OPERATION
Slide
NMOS OPERATION
Cutoff Linear Saturated
Vgsn < Vtn Vgsn > Vtn Vgsn > Vtn
VDD
Idsp
Vin Vout
Slide
Idsn
NMOS OPERATION
Cutoff Linear Saturated
VDD
Idsp
Vgsn = Vin Vin Vout
Slide
Vdsn = Vout Idsn
NMOS OPERATION
Cutoff Linear Saturated
Vgsn = Vin
VDD
Slide
PMOS OPERATION
Cutoff Linear Saturated
VDD
Idsp
Vin Vout
Slide
Idsn
PMOS OPERATION
Cutoff Linear Saturated
VDD
Idsp
Vin Vout
Idsn
Slide
PMOS OPERATION
Cutoff Linear Saturated
VDD
Idsp
Vin Vout
Idsn
Slide
PMOS OPERATION
Cutoff Linear Saturated
Slide
I-V CHARACTERISTICS
Vgsn5
Vgsn4
Idsn
Vgsn3
-Vdsp
-VDD Vgsn2
Vgsp1 Vgsn1
Vgsp2 0 VDD
Vgsp3 Vdsn
Vgsp4 -Idsp
Slide
Vgsp5
CURRENT VS. VOUT, VIN
Vin0 Vin5
Vin1 Vin4
Idsn, |Idsp|
Vin2 Vin3
Vin3 Vin2
Vin4 Vin1
VDD
Vout
Slide
LOAD LINE ANALYSIS
Vin0 Vin5
Slide
VDD
Vout
LOAD LINE ANALYSIS
Vin = 0
Vin0
Idsn, |Idsp|
Vin0
VDD
Vout
Slide
LOAD LINE ANALYSIS
Vin = 0.2VDD
Vin1
Idsn, |Idsp|
Vin1
VDD
Vout
Slide
LOAD LINE ANALYSIS
Vin = 0.4VDD
Idsn, |Idsp|
Vin2
Vin2
VDD
Vout
Slide
LOAD LINE ANALYSIS
Vin = 0.6VDD
Idsn, |Idsp|
Vin3
Vin3
VDD
Vout
Slide
LOAD LINE ANALYSIS
Vin = 0.8VDD
Vin4
Idsn, |Idsp|
Vin4
VDD
Vout
Slide
LOAD LINE ANALYSIS
Vin = VDD
Vin0 Vin5
Vin1
Idsn, |Idsp|
Vin2
Vin3
Vin4
VDD
Vout
Slide
DC TRANSFER CURVE
VDD
Vin0 Vin5
A B
Vout
Vin1 Vin4
C
Vin2 Vin3
Vin3 Vin2 D
Vin4 Vin1 E
0 Vtn VDD/2 VDD+Vtp
VDD VDD
Vout Vin
Slide
LOAD LINE SUMMARY
Vin0 Vin5
Vin1 Vin4
Idsn, |Idsp|
Vin2 Vin3
Vin3 Vin2
Vin4 Vin1
VDD
Vout
Slide
OPERATING REGIONS
Revisit transistor operating regions
Vout
C
A
B
D
C E
0 Vtn VDD/2 VDD+Vtp
VDD
D Vin
Slide
OPERATING REGIONS
Revisit transistor operating regions
A Cutoff Linear
VDD
B Saturation Linear A B
Vout
C Saturation Saturation C
D Linear Saturation
E Linear Cutoff D
E
0 Vtn VDD/2 VDD+Vtp
VDD
Vin
Slide
OPERATING REGIONS
Slide
OPERATING REGIONS
Slide
OPERATING REGIONS
Slide
OPERATING REGIONS
Slide
OPERATING REGIONS
Slide
BETA RATIO
0
VDD
Vin
Slide
NOISE MARGINS
How much noise can a gate input see before it does not
recognize the input?
Slide
LOGIC LEVELS
Vout
VDD
p/n > 1
Vin Vout
Vin
0
VDD
Slide
LOGIC LEVELS
p/n > 1
Vin Vout
VOL
Vin
0
Vtn VIL VIH VDD- VDD
|Vtp|
Slide
PASS TRANSISTOR CIRCUITS
VDD
VDD
VSS
NMOS PASS TRANSISTORS
VDD
Vs = |Vtp| VDD-Vtn
VDD VDD-2Vtn
VSS
PASS TRANSISTORS
Input Output
g = 0, gb = 1 g = 1, gb = 0
g
a b 0 strong 0
a b g = 1, gb = 0 g = 1, gb = 0
a b 1 strong 1
gb
g g g
a b a b a b
gb gb gb
MULTIPLEXERS
S
S D1 D0 Y
0 X 0 D0 0
0 X 1 Y
D1 1
1 0 X
1 1 X
MULTIPLEXERS
2:1 multiplexer chooses between two inputs
S
S D1 D0 Y
0 X 0 0 D0 0
0 X 1 1 Y
D1 1
1 0 X 0
1 1 X 1
GATE-LEVEL MUX DESIGN
=
YS+
D
1 S
D0(
to
oma
ny
tr
an
si
st
ors
)
How many transistors are needed?
GATE-LEVEL MUX DESIGN
=
YS+
D
1 S
D0(
to
oma
ny
tr
an
si
st
ors
)
How many transistors are needed? 20
D1
S Y
D0
D1 4 2
S 4 2 Y
D0 4 2
2
TRANSMISSION GATE MUX
Nonrestoring mux uses two transmission
gates
TRANSMISSION GATE MUX
Nonrestoring mux uses two transmission gates
• Only 4 transistors
D0
S Y
D1
S
D LATCH
When CLK = 1, latch is transparent
• Q follows D (a buffer with a Delay)
When CLK = 0, the latch is opaque
• Q holds its last value independent of D
a.k.a. transparent latch or level- sensitive latch
CLK CLK
D
Latch
D Q
Q
D LATCH DESIGN
Multiplexer chooses D or old Q
CLK
CLK
D Q Q
1
Q D Q
0
CLK CLK
Old Q
CLK
EXERCISE QUESTIONS
Implement the following logic gates using 2:1 Mux.
i. AND
ii. OR
iii. XOR
iv. XNOR
v. NOT
vi. NAND and
vii. NOR
EXERCISE QUESTIONS
Draw the timing Diagram of the following logic
expressions with POSITIVE AND NEGATIVE
edge triggered clock
i. Y = A + B
ii. Y = AB
iii. Y = (AB)’
iv. Y = (A+B)’