ece2030 introduction to computer engineering lecture 3: switches and cmos prof. hsien-hsin sean lee...

24
ECE2030 Introduction to Computer Engineering Lecture 3: Switches and CMOS Prof. Hsien-Hsin Sean Lee Prof. Hsien-Hsin Sean Lee School of Electrical and Computer School of Electrical and Computer Engineering Engineering Georgia Tech Georgia Tech

Upload: carol-ward

Post on 15-Jan-2016

219 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: ECE2030 Introduction to Computer Engineering Lecture 3: Switches and CMOS Prof. Hsien-Hsin Sean Lee School of Electrical and Computer Engineering Georgia

ECE2030 Introduction to Computer Engineering

Lecture 3: Switches and CMOS

Prof. Hsien-Hsin Sean LeeProf. Hsien-Hsin Sean Lee

School of Electrical and Computer EngineeringSchool of Electrical and Computer Engineering

Georgia TechGeorgia Tech

Page 2: ECE2030 Introduction to Computer Engineering Lecture 3: Switches and CMOS Prof. Hsien-Hsin Sean Lee School of Electrical and Computer Engineering Georgia

22

Basic Switch• A pathpath exists when the Switch Control is

closed– If (Open) OUTPUT = unknown ; Switch is open open

((OFFOFF))– Else OUTPUT = INPUT ; Switch is closedclosed

(ON)

INPUT OUTPUT

Switch Control

Page 3: ECE2030 Introduction to Computer Engineering Lecture 3: Switches and CMOS Prof. Hsien-Hsin Sean Lee School of Electrical and Computer Engineering Georgia

33

The Analogy of A Transistor

Cross SectionCross Section

An N-Channel Metal-Oxide Semiconductor Field Effect Transistor (MOSFET)

INPUT OUTPUT

Switch Control (Gate)

Page 4: ECE2030 Introduction to Computer Engineering Lecture 3: Switches and CMOS Prof. Hsien-Hsin Sean Lee School of Electrical and Computer Engineering Georgia

44

Transistor Characteristics

• Cut-offCut-off Region– Vgs – Vt 0– No current (Ids) between drain and source

• LinearLinear (or Ohmic) Region– 0 < Vds < Vgs – Vt– Ids is a function of Vgs and Vds– Ids = β*[(Vgs-Vt)*Vds – Vds*Vds/2]

• Saturation Saturation Region– 0 < Vgs – Vt < Vds– Ids is independent of Vds– Ids = (β/2)*(Vgs-Vt)2

– β = process factor * (W/L)

• VtVt : Threshold voltage, a function of materials, doping, insulator thickness, etc.

Gate

Drain

Source

IdsVds

Vgs

N-type MOS Transistor

Page 5: ECE2030 Introduction to Computer Engineering Lecture 3: Switches and CMOS Prof. Hsien-Hsin Sean Lee School of Electrical and Computer Engineering Georgia

55

Transistor Characteristics

Page 6: ECE2030 Introduction to Computer Engineering Lecture 3: Switches and CMOS Prof. Hsien-Hsin Sean Lee School of Electrical and Computer Engineering Georgia

66

Switches in Series

INPUT

OUTPUT

S1

S2

Truth Table

S1 S2 PATH?

OFF OFF

OFF ON

ON OFF

ON ON

Page 7: ECE2030 Introduction to Computer Engineering Lecture 3: Switches and CMOS Prof. Hsien-Hsin Sean Lee School of Electrical and Computer Engineering Georgia

77

Switches in Series

INPUT

OUTPUT

S1

S2

Truth Table (OFF/ON=0/1)

S1 S2 PATH?

OFF OFF NO

OFF ON NO

ON OFF NO

ON ON YES

What Function ??

Page 8: ECE2030 Introduction to Computer Engineering Lecture 3: Switches and CMOS Prof. Hsien-Hsin Sean Lee School of Electrical and Computer Engineering Georgia

88

Switches in Series

INPUT

OUTPUT

S1

S2

Truth Table (OFF/ON=0/1)

S1 S2 PATH?

0 0 0

Function = ??

Page 9: ECE2030 Introduction to Computer Engineering Lecture 3: Switches and CMOS Prof. Hsien-Hsin Sean Lee School of Electrical and Computer Engineering Georgia

99

Switches in Series

INPUT

OUTPUT

S1

S2

Truth Table (OFF/ON=0/1)

S1 S2 PATH?

0 0 0

0 1 0

Function = ??

Page 10: ECE2030 Introduction to Computer Engineering Lecture 3: Switches and CMOS Prof. Hsien-Hsin Sean Lee School of Electrical and Computer Engineering Georgia

1010

Switches in Series

INPUT

OUTPUT

S1

S2

Truth Table (OFF/ON=0/1)

S1 S2 PATH?

0 0 0

0 1 0

1 0 0

Function = ??

Page 11: ECE2030 Introduction to Computer Engineering Lecture 3: Switches and CMOS Prof. Hsien-Hsin Sean Lee School of Electrical and Computer Engineering Georgia

1111

Switches in Series

INPUT

OUTPUT

S1

S2

Truth Table (OFF/ON=0/1)

S1 S2 PATH?

0 0 0

0 1 0

1 0 0

1 1 1

Function = Logic ANDAND

Page 12: ECE2030 Introduction to Computer Engineering Lecture 3: Switches and CMOS Prof. Hsien-Hsin Sean Lee School of Electrical and Computer Engineering Georgia

1212

Switches in Parallel

INPUT

OUTPUT

S1

Truth Table

S1 S2 PATH?

OFF OFF NO

OFF ON YES

ON OFF YES

ON ON YES

S2

Page 13: ECE2030 Introduction to Computer Engineering Lecture 3: Switches and CMOS Prof. Hsien-Hsin Sean Lee School of Electrical and Computer Engineering Georgia

1313

Switches in Parallel

INPUT

OUTPUT

S1

Truth Table

S1 S2 PATH?

0 0 0

Function =??

S2

Page 14: ECE2030 Introduction to Computer Engineering Lecture 3: Switches and CMOS Prof. Hsien-Hsin Sean Lee School of Electrical and Computer Engineering Georgia

1414

Switches in Parallel

INPUT

OUTPUT

S1

Truth Table

S1 S2 PATH?

0 0 0

0 1 1

Function =??

S2

Page 15: ECE2030 Introduction to Computer Engineering Lecture 3: Switches and CMOS Prof. Hsien-Hsin Sean Lee School of Electrical and Computer Engineering Georgia

1515

Switches in Parallel

INPUT

OUTPUT

S1

Truth Table

S1 S2 PATH?

0 0 0

0 1 1

1 0 1

Function =??

S2

Page 16: ECE2030 Introduction to Computer Engineering Lecture 3: Switches and CMOS Prof. Hsien-Hsin Sean Lee School of Electrical and Computer Engineering Georgia

1616

Switches in Parallel

INPUT

OUTPUT

S1

Truth Table

S1 S2 PATH?

0 0 0

0 1 1

1 0 1

1 1 1

Function = Logic OROR

S2

Page 17: ECE2030 Introduction to Computer Engineering Lecture 3: Switches and CMOS Prof. Hsien-Hsin Sean Lee School of Electrical and Computer Engineering Georgia

1717

CMOS Transistor• Complementary MOS

– P-channel MOS (pMOS)– N-channel MOS (nMOS)

• pMOS– P-type source and drain

diffusions– N substrate– Mobility by holes

• nMOS– N-type source and drain

diffusions– P substrate– Mobility by electrons

Gate

Drain

Source

Gate

Source

Drain

pMOS

nMOS

Page 18: ECE2030 Introduction to Computer Engineering Lecture 3: Switches and CMOS Prof. Hsien-Hsin Sean Lee School of Electrical and Computer Engineering Georgia

1818

Pass Transistor using NMOS• Assume capacitor

(CL) is initially discharged

• Gate=1, Vin=1– CL begins to conduct

and charges toward 1 (Vdd) and stops at (Vdd-Vt)

– Signal is degraded

Gate=Vdd

Vin=VddVout

Ground

Load Capacitor

Vgs

I

Gate=Vdd

Vin=0Vout=Vdd

Ground

Load Capacitor

Vgs

I

• Gate=1, Vin=0– CL begins to discharge

toward 0 –

Page 19: ECE2030 Introduction to Computer Engineering Lecture 3: Switches and CMOS Prof. Hsien-Hsin Sean Lee School of Electrical and Computer Engineering Georgia

1919

Transmission Degradation using Pass Transistor

Vdd - VtVdd

Vdd (1)

Vdd - 2VtVdd

Vdd

Vdd

Vout = Vdd- N*VtStill 1??

Page 20: ECE2030 Introduction to Computer Engineering Lecture 3: Switches and CMOS Prof. Hsien-Hsin Sean Lee School of Electrical and Computer Engineering Georgia

2020

CMOS Signal Transfer Property

Gate Path

0 Closed

1 Open

Gate

Drain

Source

Gate

Source

Drain

Gate Path

0 Open

1 Closed

pMOS

nMOS

• Transmits 1 well• Transmits 0 poorly

• Transmits 0 well• Transmits 1 poorly

Page 21: ECE2030 Introduction to Computer Engineering Lecture 3: Switches and CMOS Prof. Hsien-Hsin Sean Lee School of Electrical and Computer Engineering Georgia

2121

CMOS Transmission Gate• Transmit signal from INPUT to OUTPUT

when Gate is closed

Gate (complementary of Gatecomplementary of Gate)

Source Drain

Gate

INPUT OUTPUT

Gate

pMOS nMOS OUTPUT

0 OFF OFF ZZ

1 ON ON INPUT

ZZ : High-Impedance State, consider the terminal is “floating”

Page 22: ECE2030 Introduction to Computer Engineering Lecture 3: Switches and CMOS Prof. Hsien-Hsin Sean Lee School of Electrical and Computer Engineering Georgia

2222

High Impedance• When a path exists

– Impedance is low to allow ample flow of current

• When no path– Impedance is high

allowing almost no current flow between two terminals

Gate=1

DrainSource

<< 10K

>> 100M

Closed

Gate=0

DrainSource

Open

Page 23: ECE2030 Introduction to Computer Engineering Lecture 3: Switches and CMOS Prof. Hsien-Hsin Sean Lee School of Electrical and Computer Engineering Georgia

2323

Transmission Gates

Gate = 1

0 0

Gate = 0

Transmit Logic 0

Gate = 1

1 1

Gate = 0

Transmit Logic 1

Page 24: ECE2030 Introduction to Computer Engineering Lecture 3: Switches and CMOS Prof. Hsien-Hsin Sean Lee School of Electrical and Computer Engineering Georgia

2424

Transmission Gate Symbol

Gate

Gate

INPUT OUTPUT

Gate

Gate

INPUT OUTPUT