lecture 2 18-322 fall 2003 readings: 5
TRANSCRIPT
![Page 1: Lecture 2 18-322 Fall 2003 Readings: 5](https://reader033.vdocuments.us/reader033/viewer/2022052301/62890b9be166485dc65e96a6/html5/thumbnails/1.jpg)
Basic CMOS Logic Design
Lecture 218-322 Fall 2003
Readings: 5.2
![Page 2: Lecture 2 18-322 Fall 2003 Readings: 5](https://reader033.vdocuments.us/reader033/viewer/2022052301/62890b9be166485dc65e96a6/html5/thumbnails/2.jpg)
Overview
MOSFETs as switchesIdeal switches & boolean operations
CMOS logic gates Basic/complex functions
Transmission gates Pass transistors
![Page 3: Lecture 2 18-322 Fall 2003 Readings: 5](https://reader033.vdocuments.us/reader033/viewer/2022052301/62890b9be166485dc65e96a6/html5/thumbnails/3.jpg)
Ideal Switches
Ideal switches
x y
A=0
openx y = x
A=1
closed
x y
A=0
closedx y
A=1
open
Assert-high
Assert-low
![Page 4: Lecture 2 18-322 Fall 2003 Readings: 5](https://reader033.vdocuments.us/reader033/viewer/2022052301/62890b9be166485dc65e96a6/html5/thumbnails/4.jpg)
Ideal Switches (cont’d)
1
a b
a ·1 ·b(a·1)· ba
1
0
+
a
a
a ·0
a ·1
a ·1y = + a ·0 = a(well-defined behavior)
![Page 5: Lecture 2 18-322 Fall 2003 Readings: 5](https://reader033.vdocuments.us/reader033/viewer/2022052301/62890b9be166485dc65e96a6/html5/thumbnails/5.jpg)
MOS Transistor
GateGate
n-doped semiconductor substrate
p pChannel
Source
p-doped semiconductor substrate
n nChannel
Source DrainDrain
VDD0
Source Drain
Substrate
Gate
Source Drain
Gate
Substrate
Copyright © by Maly 1997
![Page 6: Lecture 2 18-322 Fall 2003 Readings: 5](https://reader033.vdocuments.us/reader033/viewer/2022052301/62890b9be166485dc65e96a6/html5/thumbnails/6.jpg)
Logic Gates Built with Switches
s = 0
a bs = 1
a as = 0
"1" "1"s = 0
"0" "0"s = 0
a b a as = 1
"1"s = 1
"1"
s = 1"0 "0" "
![Page 7: Lecture 2 18-322 Fall 2003 Readings: 5](https://reader033.vdocuments.us/reader033/viewer/2022052301/62890b9be166485dc65e96a6/html5/thumbnails/7.jpg)
Logic Gates Built with Switches
VDD "1"GND (0 V) "0"Floating "HZ"Between VDD and GND "X"
GND
Out
s
GND
Out = 0 V
s = 0
VDD VDD
GND
Out = VDD
VDD
s s
s = 1
Copyright © by Maly 1997
![Page 8: Lecture 2 18-322 Fall 2003 Readings: 5](https://reader033.vdocuments.us/reader033/viewer/2022052301/62890b9be166485dc65e96a6/html5/thumbnails/8.jpg)
Logic Gates Built with Switches
VDD
GND
s1 = 0 s2 = 0
VDD
GND
Out = 0 V
s1 = 1 s2 = 0
Out = VDD
s1 = 0
VDD
GND
Out = 0 V
s2 = 1
VDD
Out = 0 V
s2 = 1s1 = 1
GND
s2s1
1 0
0 0
Out0 1
0
1
Copyright © by Maly 1997
![Page 9: Lecture 2 18-322 Fall 2003 Readings: 5](https://reader033.vdocuments.us/reader033/viewer/2022052301/62890b9be166485dc65e96a6/html5/thumbnails/9.jpg)
Logic Gates Built with Switches
0 1
0
1
s2s1
1 1
1 0
Out
VDD
GND
s1 = 0
s2 = 0
VDD
GND
s1 = 1
s2 = 0
Out = VDD Out = VDD
VDD
GND
Out = VDD
s1 = 0
s2 = 1
VDD
Out = 0 V
s1 = 1
s2 = 1
GND
Copyright © by Maly 1997
![Page 10: Lecture 2 18-322 Fall 2003 Readings: 5](https://reader033.vdocuments.us/reader033/viewer/2022052301/62890b9be166485dc65e96a6/html5/thumbnails/10.jpg)
Review: NMOS Logic
“NMOS” LogicVDD
GND
Out = 0 V
s1 = 1
s2 = 1
0 1
0
1
s2s1
1 1
1 0
Out
NAND Gate
![Page 11: Lecture 2 18-322 Fall 2003 Readings: 5](https://reader033.vdocuments.us/reader033/viewer/2022052301/62890b9be166485dc65e96a6/html5/thumbnails/11.jpg)
NMOS Logic
Cons:Output Low consumes powerPull-up “weaker” than pull-downNeed resistors
Pros:For X inputs: X NMOS Transistors
![Page 12: Lecture 2 18-322 Fall 2003 Readings: 5](https://reader033.vdocuments.us/reader033/viewer/2022052301/62890b9be166485dc65e96a6/html5/thumbnails/12.jpg)
Overview
MOSFETs as switchesIdeal switches & boolean operations
CMOS logic gates Basic/complex functions
Transmission gates Pass transistors
![Page 13: Lecture 2 18-322 Fall 2003 Readings: 5](https://reader033.vdocuments.us/reader033/viewer/2022052301/62890b9be166485dc65e96a6/html5/thumbnails/13.jpg)
Review: CMOS Inverter
VDD
GND
Out = 1 Vs = 0
s = 0
VDD
GND
Out = 0 Vs = 1
s = 1
s2s1
- 0
1 -
Out0 1
0
1p p
n n s s
![Page 14: Lecture 2 18-322 Fall 2003 Readings: 5](https://reader033.vdocuments.us/reader033/viewer/2022052301/62890b9be166485dc65e96a6/html5/thumbnails/14.jpg)
CMOS Logic Design: NAND
0 1
0
1
s2s1
1 1
1 0
Out
GND
s1
s2
nmos
nmos
s1 pmos s2 pmos
VDD VDD
output
AB
out
A B
A
B
VDD
out
![Page 15: Lecture 2 18-322 Fall 2003 Readings: 5](https://reader033.vdocuments.us/reader033/viewer/2022052301/62890b9be166485dc65e96a6/html5/thumbnails/15.jpg)
CMOS Logic Design: NOR
0 1
0
1
s2s1
1 0
0 0
Out
s1 nmos s2 nmos
VDD
GND GND
s1
s2
pmos
pmos
![Page 16: Lecture 2 18-322 Fall 2003 Readings: 5](https://reader033.vdocuments.us/reader033/viewer/2022052301/62890b9be166485dc65e96a6/html5/thumbnails/16.jpg)
CMOS Logic Design: ANDVDD
Outs2s1
nmoss10 1
0 0 0
DO NOT DO THIS!THIS IS BAD
1 0 1 s2 nmos
GND
s1 pmos s2
output
pmos
GND
![Page 17: Lecture 2 18-322 Fall 2003 Readings: 5](https://reader033.vdocuments.us/reader033/viewer/2022052301/62890b9be166485dc65e96a6/html5/thumbnails/17.jpg)
Transistor Rules
NMOS TransistorsPass 0Don’t Pass 1 (‘weak’ 1s)
PMOS TransistorsPass 1Don’t Pass 0
![Page 18: Lecture 2 18-322 Fall 2003 Readings: 5](https://reader033.vdocuments.us/reader033/viewer/2022052301/62890b9be166485dc65e96a6/html5/thumbnails/18.jpg)
CMOS Gates
PMOS Pull-up Network (PUN)NMOS Pull-down Network (PDN)
VDD
PUN
PDN
“Dual” Networks
Input(s) Output
GND
![Page 19: Lecture 2 18-322 Fall 2003 Readings: 5](https://reader033.vdocuments.us/reader033/viewer/2022052301/62890b9be166485dc65e96a6/html5/thumbnails/19.jpg)
Inverting Logic
Input transition: 0 -> 1 1 -> 0
Output transition: 1 -> 0 0 -> 1
Input transition 0 -> 1 turns on NMOSInput transition 1 -> 0 turns on PMOSExamples: NAND, NOR, INVERT
![Page 20: Lecture 2 18-322 Fall 2003 Readings: 5](https://reader033.vdocuments.us/reader033/viewer/2022052301/62890b9be166485dc65e96a6/html5/thumbnails/20.jpg)
Complex CMOS Design
1 1 1 1
1 0 0 0
0 0 0 0
1 1 1 1CD + BD + ADD (C + B + A)
A B C
D
NN N
N
AB
CD
00
01
11
10
00 01 11 10
~D + ~A~B~C
PP
P
P
DA
B
CF = ~((A + B + C) * D)
![Page 21: Lecture 2 18-322 Fall 2003 Readings: 5](https://reader033.vdocuments.us/reader033/viewer/2022052301/62890b9be166485dc65e96a6/html5/thumbnails/21.jpg)
CMOS Logic Gates
Pros:No static power consumptionPull-up symmetric with pull-downNo resistors
Cons:X input gate: 2X transistors
![Page 22: Lecture 2 18-322 Fall 2003 Readings: 5](https://reader033.vdocuments.us/reader033/viewer/2022052301/62890b9be166485dc65e96a6/html5/thumbnails/22.jpg)
Overview
MOSFETs as switchesIdeal switches & boolean operations
CMOS logic gates Basic/complex functions
Transmission gates Pass transistors
![Page 23: Lecture 2 18-322 Fall 2003 Readings: 5](https://reader033.vdocuments.us/reader033/viewer/2022052301/62890b9be166485dc65e96a6/html5/thumbnails/23.jpg)
Transmission Gates
Static CMOSInputs -> transistor gatesOutputs have connection to supply
Use transistor to connect input to output?
PUN
PDNGND
OutputInput(s)
![Page 24: Lecture 2 18-322 Fall 2003 Readings: 5](https://reader033.vdocuments.us/reader033/viewer/2022052301/62890b9be166485dc65e96a6/html5/thumbnails/24.jpg)
NMOS Pass Gate
Works like a switchBut NMOS doesn’t “pass 1’s”
0 11 or 0
High-Z 0 0
1
1 1 (?)
![Page 25: Lecture 2 18-322 Fall 2003 Readings: 5](https://reader033.vdocuments.us/reader033/viewer/2022052301/62890b9be166485dc65e96a6/html5/thumbnails/25.jpg)
Passing 1s
VDD
The NMOS shuts off as out -> VDDVout at least VTn less than VDD
VinVDD
Vout0V 0V
VDD - VT
![Page 26: Lecture 2 18-322 Fall 2003 Readings: 5](https://reader033.vdocuments.us/reader033/viewer/2022052301/62890b9be166485dc65e96a6/html5/thumbnails/26.jpg)
Transmission Gates
VDDRn
Rp
Req
R(kΩ
)
VoutGND
ComplementaryInputsThe Symbol:
![Page 27: Lecture 2 18-322 Fall 2003 Readings: 5](https://reader033.vdocuments.us/reader033/viewer/2022052301/62890b9be166485dc65e96a6/html5/thumbnails/27.jpg)
Logic with T-Gates: XOR/XNOR
A
B
B
A
A ⊕ B
B
B
A
A
B
B
A ⊕ B
![Page 28: Lecture 2 18-322 Fall 2003 Readings: 5](https://reader033.vdocuments.us/reader033/viewer/2022052301/62890b9be166485dc65e96a6/html5/thumbnails/28.jpg)
Summary
Discussed ConceptsMOSFETs as switchesNMOS and CMOSTransmission gates
ExamplesBasic/complex functions using CMOS
More practice Complex functions (transistor-level diagrams)