Professional Documents
Culture Documents
ECE 410: VLSI Design Course Lecture Notes: (Uyemura Textbook)
ECE 410: VLSI Design Course Lecture Notes: (Uyemura Textbook)
drain
source
gate
gate
source
drain
nMOS
pMOS
pMOS
VDD
VDD
Logic Levels
+
-
CMOS
logic
circuit
Logic 1 = VDD
Logic 0 = ground = 0V
CMOS
logic
circuit
V
VDD
logic 1
voltages
undefined
logic 0
voltages
Lecture Notes Page 2.2
drain Vout
Vin
gate
+
Vgs
-
nMOS
Vgs > Vtn = on
source
pMOS
switching behavior
+
Vsg
on = closed, when Vin < VDD - |Vtp|
|Vtp| = pMOS threshold voltage magnitude Vin
gate
Vin is referenced to ground, Vin = VDD-Vsg
nMOS
source
pMOS
pMOS
Vsg > |Vtp| = on
Vsg = VDD - Vin
drain
drain
Vin
pMOS
Vin Vout (drain)
1
?
device is OFF
0
Vs=VDD=1 device is ON
gate
+
Vgs
-
+
Vsg
Vin
gate
Vin
pMOS
VDD
VDD-|Vtp|
nMOS
nMOS
Vgs > Vtn = on
source
pMOS
source
pMOS
Vsg > |Vtp| = on
Vsg = VDD - Vin
Vout
off
on
on
Vtn
drain
Vout
off
nMOS
Notice:
When Vin = low, nMOS is off, pMOS is on
When Vin = high, nMOS is on, pMOS is off
Only one transistor is on for each digital voltage
VDD
nMOS
ON when gate
is high
0V
VDD
0V
ON when gate
is low
VDD
0V
0V
Vy = VDD
Vy =
VDD-Vtn
Vy = 0 V
pMOS
+
Vgs=Vtn
?-
Vsg=|Vtp|
?+
Vy = |Vtp|
Rule to Remember
source is at lowest potential for nMOS and at highest potential for pMOS
ECE 410, Prof. A. Mason
How do you find one terminal voltage if the other 2 are known?
nMOS
case 1) if Vg > Vi + Vtn, then Vo = Vi
Vo
Vg
Vi
pMOS
case 1) if Vg < Vi - |Vtp|, then Vo = Vi
Vi
Vg
Vo
1.5 Vo
Vo 2
1: Vg=5V, Vi=2V
Vg=5 > Vi +Vtn = 2.5 Vo = 2V
Vg
5
acts as
the source
Vg
2
2: Vg=2V, Vi=2V
2Vi source
pMOS rules
2Vi
min(Vo) = Vg+|Vtp|
5Vi source
1: Vg=2V, Vi=5V
Vg=2 < Vi-|Vtp|=4.5 Vo = 5V
2: Vg=2V, Vi=2V
Vg
2
2Vi
Vg
2
Vo 5
2.5 Vo
acts as
the source
y = x A, i.e. y = x if A = 1
AND, or multiply function
a AND b
ECE 410, Prof. A. Mason
a OR b
Lecture Notes Page 2.8
y=x
y=?
y = x A, i.e. y = x if A = 0
NOT (a OR b)
NOR
Remember This??
a b = a + b,
DeMorgan relations
a+b=ab
nMOS
inputs
assert-low pMOS
logic
output
assert-high
nMOS
logic
assert-low pMOS
logic
output
assert-high
nMOS
logic
Logic Properties
DeMorgans Rules
(a b) = a + b
(a + b) = a b
inputs
assert-low pMOS
logic
output
assert-high
nMOS
logic
+
Vsg
Vin
source
pMOS
Vsg > |Vtp| = on
Vsg = VDD - Vin
gate
drain
Vg=
Vin Vout
0 1 on = closed
1 ? off = open
drain
Vin
gate
nMOS
Vgs > Vtn = on
+
Vgs
-
source
Vg=
Vin Vout
0 ? off = open
1 0 on = closed
Vin
pMOS
VDD
VDD-|Vtp|
off
on
on
Vtn
off
nMOS
VDD
nMOS
VDD
0V
0V
0V
VDD
0V
Vy = VDD
Vsg=|Vtp|
+
Vy = |Vtp|
nMOS
Vy =
VDD-Vtn
Vy = 0 V
pMOS
+
Vgs=Vtn
-
0 in 0 out
VDD in VDD-Vtn out
strong 0, weak 1
pMOS
assert-high switch
y = x A, i.e. y = x if A = 1
a AND b
series = AND
parallel = OR
a OR b
assert-low switch
=x
y = x A, i.e. y = x if A = 0
series = NOR
b
NOT (a OR b)
parallel = NAND
ECE 410, Prof. A. Mason
CMOS Inverter
Inverter Function
Inverter Symbol
Table
Inverter Switch Operation Inverterx Truth
y
=x
=VDD
0
1
Vin=VDD
1
0
+
Vsg
Vin
pMOS
Vout = Vin
+
Vgs
-
nMOS
nMOS Inverter
VDD
=VDD
(b) nMOS is on
output is low (0)
VDD
nMOS NOR
nMOS NAND
c = ab
c = a+b
NOR Symbol
x y
0
0
1
1
x+y
Karnaugh map
true terms
y 0
0
1
0
1
x+y
1
0
0
0
false terms
g(x,y) = x y 1 + x 0 + y 0
g(x,y) = x y 1 + x 0 + y 0
y
g(x,y) = x + y
x
NAND Symbol
x y
xy
x
0
0
1
1
xy
CMOS Schematic
0
1
0
1
K-map
1
1
1
0
y 0
g(x,y) = x y
y
x
3-Input Gates
Alternate Schematic
NOR3
what function?
x+y+z
x
y
z
y
z
g(x,y) = x+y+z
NAND3
x
g(x,y) = x y z
y
x
y
z
xyz
f = (d e) + a (b + c)
a+b=ab
Using DeMorgan
DeMorgan Relations
NAND-OR rule
ab=a+b
x
y
x
equivalent
to
x y
x+y
g(x,y) = x + y = x y
assert-low OR
creates NAND function
bubbles = inversions
NOR-AND rule
x
y
Series-connected pMOS
a+b=ab
x+y
x
equivalent
to
x+y
x
y
x y
x y
y
g(x,y) = x y = x + y
assert-low AND
creates NOR function
Lecture Notes Page 2.21
NAND Schematic
x
x
y
g(x,y) = x y
g(x,y) = x + y
y
x
EXAMPLE:
g(x,y) = x y
F = ab
y
x
Fp = a b = a+b;
OR/parallel
Fn = ab = ab;
AND/series
ECE 410, Prof. A. Mason
pMOS
nMOS
6 transistors
(CMOS)
Fn = a (b + c)
Apply DeMorgan
none needed
Resulting Schematic
Resulting Schematic
F=a(b+c)
a
F=a(b+c)
b
c
a
b
F=a(b+c)
Structured Logic
Recall CMOS is inherently Inverting logic
Can used structured circuits to implement general logic
functions
AOI: implements logic function in the order
AND, OR, NOT (Invert)
Example: F = a b + c d
operation order: i) a AND b, c AND d, ii) (ab) OR (cd), iii) NOT
X=ab+cd
Y = a+e b+f
eX
b X
error in textbook Figure 2.45
ECE 410, Prof. A. Mason
(series/parallel)
(series/parallel)
Complete CMOS
AOI/OAI circuits
3 operations:
1 AND, 2 OR
# txs = ___?
nMOS
Group 1: c & d in parallel
Group 2: b in series with G1
Group 3: a parallel to G2
follow same order in pMOS
dont compliment inputs
pMOS
Group 1: c & d in series
Group 2: b parallel to G1
Group 3: a in series with G2
pMOS
Apply DeMorgan expansions
nMOS
none needed
Resulting Schematic ?
Apply DeMorgan
Fn = a + (b+c )
Fn = a + (b c)
Resulting Schematic ?
nMOS
Invert Output
c
Fn = a b (a + c) = a b + (a + c)
F=a b (a+c)
Fn = a b + ( a c)
Reduce Function
Fn = a (b + c)
Resulting Schematic ?
Complement operations for pMOS
Fp = a + (b c)
Exclusive-NOR
ab=ab+ab
inverse of XOR
XOR: a b = a b + a b
XNOR: a b = a b + a b
ECE 410, Prof. A. Mason
schematic
symbol
y = x s, for s=1
(VDD-ground)
More TG Functions
TG XOR and XNOR Gates
ab=ab+ab
= a b, b = 1
ab=ab+ab
= a b, b = 1
= a b, b = 1
= a b, b = 1
= a, a = 1
f=a+ab
= a b, a = 1
f=a+b