electronic devices and circuits

313
ES154 Lecture Notes Harvard > DEAS > EECS > ES154 HOME ES154 Home Handouts Lectures Homework Assignments Laboratory Assignments Sample Exams Course-Related Links Useful Information Lecture Notes: No. Lecture No. Lecture 1 Course Info and Overview 11 Integrated Circuit Design (Current Mirrors) 2 Review of Circuit Analysis 12 Differential Amplifiers 3 Amplifier Models and Freq Response 13 High-Gain Differential Amplifiers 4 Operational Amplifiers and Op Amp Circuits 14 High-Frequency Analysis (OCT) 5 Introduction to Semiconductors 15 Feedback and Stability 6 PN Junctions and Diode Circuits 16 Overview and Examples of Op Amp Design 7 MOSFET Devices and Circuits 8 Single-Stage MOSFET amps and High-Freq Model 9 Bipolar Junction Transistor 10 Single-Stage BJT amps and High-Freq Model ©2003 Edited by: Gu-Yeon Wei (December 06, 2004 ) http://www.deas.harvard.edu/courses/es154/lectures.html11/12/2004 17:25:52

Upload: suresh151971

Post on 28-Nov-2015

119 views

Category:

Documents


18 download

TRANSCRIPT

Page 1: Electronic Devices and Circuits

ES154 Lecture Notes

Harvard > DEAS > EECS

> ES154 HOME

ES154 Home

Handouts

Lectures

Homework Assignments

Laboratory Assignments

Sample Exams

Course-Related Links

Useful Information

Lecture Notes:

No. Lecture No. Lecture

1Course Info and Overview 11

Integrated Circuit Design (Current Mirrors)

2Review of Circuit Analysis 12 Differential Amplifiers

3Amplifier Models and Freq Response 13

High-Gain Differential Amplifiers

4Operational Amplifiers and Op Amp Circuits 14 High-Frequency

Analysis (OCT)

5Introduction to Semiconductors 15 Feedback and Stability

6PN Junctions and Diode Circuits 16

Overview and Examples of Op Amp Design

7MOSFET Devices and Circuits

8Single-Stage MOSFET amps and High-Freq Model

9Bipolar Junction Transistor

10Single-Stage BJT amps and High-Freq Model

©2003 Edited by: Gu-Yeon Wei (December 06, 2004 )

http://www.deas.harvard.edu/courses/es154/lectures.html11/12/2004 17:25:52

Page 2: Electronic Devices and Circuits

ES154 Lecture 1

Fall 2004 1

Wei 1

ES 154Electronic Devices and Circuits

Fall 2004

Gu-Yeon WeiDivision of Engineering and Applied Sciences

Harvard [email protected]

ES 154 - Lecture 1Wei 2

Course Objectives

• The objective of this course is to provide you with a comprehensive understanding of electronic circuits and devices. The course presents a basic introduction to physical models of the operation of semiconductor devices and examines the design and operation of important circuits that utilize these devices. We will look at how to design circuits using discrete components and as integrated circuits.

• Due to the varying background of students in the class, we will start with a review of some basics (of circuit theory), review the operation and characteristics of semiconductor devices (namely, BJTs and MOSFETs), and build up to more advanced topics in analog circuit design.

• Due to time constraints, we will concentrate on analog circuits,amplifiers in particular. Digital CMOS circuits and VLSI design issues are covered more extensively in CS148.

Page 3: Electronic Devices and Circuits

ES154 Lecture 1

Fall 2004 2

ES 154 - Lecture 1Wei 3

Course Material

The lecture notes and the textbook, Electronic Circuit Design by Comer & Comer (C&C) will be the principle reference materials used in the class. The notes will cover specific material in thetextbook that I find important and interesting. The notes will also include material (for more detail) not covered in the textbook.

You are responsible for all of the material in the notes and sections in C&C that are assigned as reading. Assigned reading will be indicated at the beginning of each set of lecture notes.

Supplementary reading may also be assigned. They will usually be in the form of supplementary web pages found on the course web site or sections in reference books that can be found in theGordon McKay Library.

ES 154 - Lecture 1Wei 4

Additional Reading

To provide additional information and/or an alternative explanation of the material in the notes and C&C, supplemental reading from other textbooks will be included in the notes. While these readings are not required, they are often helpful in understanding the material.

• References (found in G. McKay Library)

– Electric Circuits, Nilsson and Riedel, Prentice, 6th Ed., 2001.

– Electric Circuit Analysis, Johnson et al, Prentice Hall, 1997.

– The Art of Electronics, Horowitz and Hill, Cambridge, 1989.

– Analysis and Design of Analog Integrated Circuits, Gray et al, Wiley, 2001.

– The Design of CMOS Radio-Frequency Integrated Circuits, Lee, Cambridge, 1998.

– Device Electronics for Integrated Circuits, Muller and Kamins, Wiley, 1986.

– Design with Operational Amplifiers and Analog Integrated Circuits, Franco, McGraw Hill, 2002.

– Design of Analog CMOS Integrated Circuits, Razavi, McGraw Hill, 2001.

Page 4: Electronic Devices and Circuits

ES154 Lecture 1

Fall 2004 3

ES 154 - Lecture 1Wei 5

Course Information

• Lectures– Tues and Thurs 10 – 11:30AM in MD 221– Lecture notes will be handed out in class and will be available on the course web page

(www.deas.harvard.edu/courses/es154)• Homework

– Assigned on Tuesdays and due the following Tuesday in class– You allotted a total of three late days that you can use throughout the semester.

• Lab– Maxwell Dworkin B129 and B123 (in the basement)– There will be several experimental laboratory assignments throughout the semester.

You may be required to complete pre-lab assignments prior to going into lab.– Lab write-ups due with homework assignments on Tuesdays

• Final Project– There will be final project due at the end of reading period– You have the option to work on anything that pertains to the material taught in this

class, i.e., analog circuits• Exams

– Take-home midterm– Final exam

ES 154 - Lecture 1Wei 6

Homework Grading

• One additional requirement that I have is for each of you to participate in at least one homework grading session.

• Several reasons why they are useful

– Forces you to revisit the homework assignment at least once – Provides insight into alternate ways of thinking about a

problem

– Shows you how difficult (and easy) it can be grade one’s homework write-up

– Pizza and drinks!

• Organization

– We will provide the solutions and point distribution– TF will schedule them

Page 5: Electronic Devices and Circuits

ES154 Lecture 1

Fall 2004 4

ES 154 - Lecture 1Wei 7

Class Participation and Office Hours

• ASK QUESTIONS!!!

– I will make an effort to periodically stop and see if everyone understands the lecture material. However, you should stop me at any time if you have any questions.

– If you are confused about something, chances are so is someone else.

• OFFICE HOURS

– You are also encouraged to stop by our office hours. Or, if you are around on the 3rd floor of MD and you see my door open, stop by and say hello. My office is MD333.

– Take advantage of office hours. It’s a resource that too many students seem to neglect.

Wei 8

Lecture 1:

A Brief Overview of Electronic Devices and Circuits

Gu-Yeon WeiDivision of Engineering and Applied Sciences

Harvard [email protected]

Page 6: Electronic Devices and Circuits

ES154 Lecture 1

Fall 2004 5

ES 154 - Lecture 1Wei 9

Overview

• Reading

– C&C: Chapter 1

• Supplemental Reading

– Lee: Chapter 1 – “A nonlinear history of radio”

– Nilsson: Chapters 1-4 (basic circuit analysis)

• BackgroundThis lecture is intended to give you a brief overview of what you can expect to learn from this course. There are additional interesting tidbits of historical trivia sprinkled into the lecture for fun. At the end, we review basic circuit theory that you should’ve all seen before in a physics course or ES50. If not, do the Nilsson reading above. It should be pretty straight forward if you have seen the material before.

ES 154 - Lecture 1Wei 10

Why Electronics?

• Why use electronics

– Electrons are easy to move / control• Easier to move/control electrons than real (physical) stuff

• Discovered by J.J. Thomson in 1898

– Move information, not things• phone, fax, WWW, etc.• Takes much less energy and $

• Development of modern electronics has been driven by

– Communication

– Computation

Page 7: Electronic Devices and Circuits

ES154 Lecture 1

Fall 2004 6

ES 154 - Lecture 1Wei 11

Communication Alternatives…

ES 154 - Lecture 1Wei 12

Origins of Radio

• Marconi generally regarded as the inventor of the radio in 1896– Used a spark gap transmitter (used by Heinrich Hertz to verify

Maxwell’s prediction that electromagnetic waves exist and propagate with a finite velocity) and Eduardo Branly’s “coherer” as the receiver.

– Demonstrated transatlantic wireless communication in 1901

Page 8: Electronic Devices and Circuits

ES154 Lecture 1

Fall 2004 7

ES 154 - Lecture 1Wei 13

Computing Alternatives

Babbage Difference Engine

Abacus

Mechanical Cash Register

ES 154 - Lecture 1Wei 14

BIG Electronic Computers

• ENIAC (Electrical Numerical Integrator And Calculator– developed by Mauchly

and Eckert in 1946 – 17,468 vacuum tubes,

70,000 resistors, 10,000 capacitors, 1500 relays, 6000 manual switches, and 5 million solder joints; covered 1800 sq. feet of floor space; weighed 30 tons; consumed 160kW

– Built to calculate ballistic trajectories (ballistic firing tables)

Page 9: Electronic Devices and Circuits

ES154 Lecture 1

Fall 2004 8

ES 154 - Lecture 1Wei 15

Early Electronic Devices

• Building electronics:– Started with tubes, then miniature

tubes– Transistors, then miniature

transistors• Bardeen, Brattain, and Shockley

invent the first germanium point-contact transistor at Bell Labs in 1947 (they received a Nobel prize for this discovery).Built an amplifier

• Components were getting cheaper, more reliable but:– There is a minimum cost of a

component (storage, handling …)– Total system cost was proportional

to complexity

ES 154 - Lecture 1Wei 16

Beginning of Modern Devices

• Then along came the Integrated Circuit (IC)– Invented by Jack Kilby of Texas Instruments in 1958 (received a

Nobel Prize in Physics 2000)

– Independently, Robert Noyce of Fairchild Semiconductor had an idea for “unitary circuits”

Page 10: Electronic Devices and Circuits

ES154 Lecture 1

Fall 2004 9

ES 154 - Lecture 1Wei 17

3mm

4mm

Modern IC’s

• The IC industry has been able to continue to reduce the size of transistors and increase the number of devices that can be integrated onto a single device

intel 4004 (’71, 2.3K transistors, 10-um technology, 108-kHz)

Itanium 2

2002

1-GHz

130-W

0.18-um

221M transistors

421-mm2

(~20 x 21 mm)

ES 154 - Lecture 1Wei 18

Where Do We Start?

Ostensibly from the beginning….• Volts and Amps (basic circuit analysis)

– Independent voltage sources and current sources

– Dependent sources– Passive elements – resistors, capacitors,

inductors• Operational Amplifier (op amp)

– A general purpose, closed-loop amplifier used to implement linear functions. Its performance and function are defined by the external components (feedback network or loop) surrounding it.

– First introduced in early 1940’s– Originally comprised of vacuum tubes– Used for computation (i.e., addition, subtraction,

multiplication, etc.)

Page 11: Electronic Devices and Circuits

ES154 Lecture 1

Fall 2004 10

ES 154 - Lecture 1Wei 19

What’s inside these op amps?

• Brief introduction to semiconductors– Conductors vs. Insulators vs.

Semiconductors– P-type, N-type

• PN Junctions– Diodes and diode circuits

• Bipolar Junction Transistors (BJT)– How they work– Different types of BJT circuits

• Metal Oxide Semiconductor Field Effect Transistors (MOSFET)– How they work– Different types of MOSFET circuits

ES 154 - Lecture 1Wei 20

Modeling the Operation of Circuits

• Frequency Response Analysis– Circuits operate over a limited frequency range of the incoming and

output signal– We will construct models for the circuits and look at gain and

bandwidth relationships w.r.t frequency

Page 12: Electronic Devices and Circuits

ES154 Lecture 1

Fall 2004 11

ES 154 - Lecture 1Wei 21

Feedback

• Once we’ve looked at the frequency response of circuit operation, it becomes important to spend some time on basic feedback theory. At this point, we should’ve seen feedback at work in op amp circuits, but we didn’t worry about frequency response and stability b/c we assumed an ideal amplifier.

• We will spend some time on open-loop and closed-loop response characteristics of circuits with feedback.

• Then, we will investigate stability and compensation techniques for extending the bandwidth of amplifiers

ES 154 - Lecture 1Wei 22

CAD Tools…

We will rely on two sets of tools to help us design and verify circuits in various homework and lab assignments.

• Circuit Simulations

– HSPICE – an analog circuit simulator– SUE – Schematic User Environment is a graphical tool for

drawing circuits and then creating a netlist from HSPICE

• MATLAB

– Mathematical tool for frequency response analysis and create pretty graphs

Page 13: Electronic Devices and Circuits

ES154 Lecture 1

Fall 2004 12

ES 154 - Lecture 1Wei 23

SUE looks like….

ES 154 - Lecture 1Wei 24

Review of Circuit Basics

• Some basic circuit elements (and their symbols) that we will be using extensively in the class

• Examples from Nilsson, Electric Circuits, 3rd ed., 1991

Ideal Independent Sources

i = constantv =

v = constant i =

Resistor

v = i R

R C

Ideal Dependent Sources

i = C dv/dt

L

v = L di/dt

Capacitor Inductor

v

i

v

i

v

i

Page 14: Electronic Devices and Circuits

ES154 Lecture 1

Fall 2004 13

ES 154 - Lecture 1Wei 25

Kirchhoff’s Laws

• Kirchhoff’s Current Law (KCL): The algebraic sum of all of the currents at a node in a circuit equals zero.

• Kirchhoff’s Voltage Law (KVL): The algebraic sum of all of the voltages around any closed path in a circuit equals zero.

R1

R2

v1

vs v2

is i2

i1

KVL: vs - v1 - v2 = 0

KCL: is - i1 = 0i1 + i2 = 0

ES 154 - Lecture 1Wei 26

Example with a Dependent Source

• Here’s a quick example of a circuit that we will see later when we model the operation of transistors. For now, let’s assume ideal independent and dependent sources

RC

RE

VCC

iCC

iE

iC

V0iB

i2

i1 R1

R2

β iB

We can write the following equations:

i1 + iC - iCC = 0

iB + i2 - i1 = 0

iE - iB - iC = 0

iC = β iB

V0 + iERE - i2R2 = 0

-i1R1 + VCC - i2R2 = 0

Page 15: Electronic Devices and Circuits

ES154 Lecture 1

Fall 2004 14

ES 154 - Lecture 1Wei 27

Resistive Circuits

• Series vs. Parallel Resistors

R1 R2 R3

R4

R5R6R7

is

v Req_seriesv

is

v Req_parallel

isR1 R2 R3

is

ES 154 - Lecture 1Wei 28

Divider Circuits

• Current and voltage divider circuits using resistors

R1

R2

vs

i

vo

is R1 R2v

i1 i2

Page 16: Electronic Devices and Circuits

ES154 Lecture 1

Fall 2004 15

ES 154 - Lecture 1Wei 29

How can we measure current and voltage?

• d’Arsonval meter movement consists of a movable coil placed in the field of a permanent magnet. Current in the coil creates a torque in the coil, which rotates until torque is balanced by restoring spring. Designed so deflection of the pointer is directly proportional to current in the movable coil.

(from Nilsson, 3rd edition)

ES 154 - Lecture 1Wei 30

Ammeter, Voltmeter, and Ohmmeter

• DC Ammeter: The shunting resistor RA and d’Arsonval movement form a current divider

• DC Voltmeter: Series resistor RV and d’Arsonval movement form a voltage divider

• Ohmmeter: Measures the current to find the resistance

d'Arsonval movementRA

Ammeter terminals

d'Arsonval movement

RV

Voltmeter terminals

d'Arsonval movement

Rb

Runknown

Page 17: Electronic Devices and Circuits

ES154 Lecture 1

Fall 2004 16

ES 154 - Lecture 1Wei 31

Wheatstone Bridge

• Used for precise measurements

– One example is to measure resistance of Runknown

Adjust R3 until imeter = 0, then Runkown = R2R3/R1

V

R1 R2

R3 Runkown

imeter

ES 154 - Lecture 1Wei 32

Source Transformations

• Source transformations can be a useful way to simplify circuits• Thevenin and Norton Equivalents

– Can represent any sources made up of sources (both independent and dependent) and resistors

– Converting to a Thevenin equivalent

Rs

vs i = vs / Rsi

Rs

vsv v = vs

Page 18: Electronic Devices and Circuits

ES154 Lecture 1

Fall 2004 17

ES 154 - Lecture 1Wei 33

Thevenin and Norton

• Thevenin and Norton are equivalent from the terminals

• But, if I gave you two black boxes and said one is a Thevenin and one is Norton, could you tell them apart? What would you do?

Rs

vs is Rp

ES 154 - Lecture 1Wei 34

Maximum Power Transfer

• It is often important to design circuits that transfer power from a source to a load. This will be an important concept when we are designing amplifiers. There are two basic types of power transfer:– Efficient power transfer (e.g., power utility)– Maximum power transfer (e.g., communication circuits)

• Transfer an electrical signal (data, information, etc.) from the source to a destination with the most power reaching the destination. There is limited power at the source and power is small so efficiency is not as much of a concern.

• Assume there is a source that can be represented as a Thevenin equivalent circuit. Determine RL so that the maximum power is transferred.

source RT

vT RLiL

Page 19: Electronic Devices and Circuits

ES154 Lecture 1

Fall 2004 18

ES 154 - Lecture 1Wei 35

Superposition

• A distinguishing characteristic of linear systems is the principle of superposition:

Whenever a linear system is excited, or driven, by more than oneindependent source of energy, we can find the total response by finding the response to each independent source separately and then summing the individual responses.

• Mathematically,

– A system specified by T[] is linear if for all a1, a2, x1(n), and x2(n), we have:

• Technique:– short circuit voltage sources and open circuit current sources – calculate for one source at a time and then sum

ES 154 - Lecture 1Wei 36

Example of Superposition

vs = 3 V is = 2 A

R1 = 8 Ω

R2 = 4 Ωi2 = ?

vs = 3 V

R1 = 8 Ω

R2 = 4 Ωi2'

is = 2 A

R1 = 8 Ω

R2 = 4 Ωi2''

Find i2 using superposition

Page 20: Electronic Devices and Circuits

ES154 Lecture 1

Fall 2004 19

ES 154 - Lecture 1Wei 37

Next Lecture

We will continue to review basic concepts in electric circuits. In particular, we will review circuits containing inductors, capacitors, and resistors, and some analytical tools to deal with them in the frequency domain.

Page 21: Electronic Devices and Circuits

ES154 Lecture 2

Fall 2004 1

ES154 Lecture 2Wei 6

Step Response of an RC Circuit

• Let’s find the step response of an RC circuit using the following example circuit.

– Summing the current around node A gives…

t = 0

vCi

R Cis

A

Page 22: Electronic Devices and Circuits

ES154 Lecture 3

1

Wei 1

Lecture 3

Amplifier Models and Frequency Response

Gu-Yeon WeiDivision of Engineering and Applied Sciences

Harvard [email protected]

ES154 - Lecture 3Wei 2

Overview

• Reading– Chapter 3

• BackgroundIn this course, we will be spending a lot of time on looking at how to use and build amplifiers. So, it is important to understand what an amplifier basically is and what its characteristics are. This lecture will review some basic amplifier models and then see how we can characterize their operation across different frequencies by creating Bode plots.

Page 23: Electronic Devices and Circuits

ES154 Lecture 3

2

ES154 - Lecture 3Wei 3

Basic Amplifier Model

• Characteristics– Amplify signals that vary about zero volts– Powered by one or more DC voltages (power supply voltages)– Requires proper DC biasing to operate– Amplifies small incremental input signal and produces a magnified

signal at the output with some gain

ES154 - Lecture 3Wei 4

Practical Example

• DC bias voltage Vbias sets DC operating point and results in DC output bias VQ (quiescent voltage)

• Small input signal vin is amplified

Page 24: Electronic Devices and Circuits

ES154 Lecture 3

3

ES154 - Lecture 3Wei 5

DC Blocking

• The DC operating point of the input signal may not be the same as the desired DC input voltage for the amplifier. May also be true for the output. We would like to set the DC operating point for the amplifier independently.

• Use coupling capacitors (or DC blocking caps), Cc1 and Cc2, to block out the DC component of input and output signals– DC input and output operating points set by the amplifier– We later see how this affects the amplifier gain vs. frequency

ES154 - Lecture 3Wei 6

Example

• Example of a single-stage amplifier (using a transistor)– C blocks DC component of

signals from vin

– DC operating point of amplifier input is set by R1 and R2(resistor divider)

• Equivalent circuit for the amplifier for small signals (small-signal model) for midband frequencies– C is a short– Model MOSFET as a voltage-

controlled current source

Page 25: Electronic Devices and Circuits

ES154 Lecture 3

4

ES154 - Lecture 3Wei 7

Gain Elements

• There are different types of gain elements– Voltage, current, transconductance, transimpedance– Let’s focus on voltage gain elements for now

• Characteristics– Ideal voltage amplifier has infinite input impedance and zero

output impedance• Real amplifiers have finite input and output impedance

– Coupling caps used to isolate DC voltages of amplifier’s input and output, but cause low-frequency gain rolloff

– Parasitic capacitances (inside amplifier circuitry) cause high-frequency gain rolloff

ES154 - Lecture 3Wei 8

Ideal Voltage Amplifier

• Model amplifier with a voltage-controlled voltage source (VCVS)• VCVS has infinite input impedance and zero output impedance• Gain is set by A

Page 26: Electronic Devices and Circuits

ES154 Lecture 3

5

ES154 - Lecture 3Wei 9

Non-Ideal Voltage Amplifier w/ Coupling Caps

• Still use VCVS to model amplifier, but add resistors and capacitors to model non-idealities– Finite input impedance (Cin and Rin)– Finite output impedance (Rout and Cout)

• Coupling caps (Cc1 and Cc2) are large (µF range) while parasitic caps (Cin and Cout) are small (pF range)– This allows us to create different (simpler) models depending on

frequency of signals

ES154 - Lecture 3Wei 10

Midband Model

• For midband frequecies, model…– Coupling capacitors (Cc1 and Cc2) as short circuits– Parasitic capacitors (Cin and Cout) as open circuits

• How do the parasitic resistors affect gain?

– Usually, Rin >> Rs and Rout << RL (or what we would like)

a

b

vab

A*vab

Rs

RLvin

c

d

voutRin

Rout

Page 27: Electronic Devices and Circuits

ES154 Lecture 3

6

ES154 - Lecture 3Wei 11

Low-Frequency Model

• At low frequencies– Cannot ignore coupling caps– Ignore parasitic caps

• How do the coupling caps affect gain?

ES154 - Lecture 3Wei 12

High-Frequency Model

a

b

vab

A*vab

Rs

RLvin

c

d

voutRin

Rout

Cin Cout

• At high frequencies– Coupling caps are shorts– Cannot ignore parasitic caps

• What happens to the gain?

Page 28: Electronic Devices and Circuits

ES154 Lecture 3

7

ES154 - Lecture 3Wei 13

Poles and Zeros of H(s)

• Rewriting a rational function as the ratio of two factored polynomials enables us to identify the “poles” and “zeros” of H(s). Later, we will see what poles and zeros mean for circuits. For now, here is the general form…

– The roots of the denominator are poles (×) and the roots of the numerator are zeros ().

– The poles and zeros can have both real and imaginary components and we can visualize them as points on a complex s-plane.

• X-axis = real• Y-axis = imaginary

ES154 - Lecture 3Wei 14

Bode Plots

• Plotting the frequency response of H(s) can be a very useful tool for analyzing circuit behavior. A Bode plot is a graphical technique that gives a feel for the frequency response of a circuit.

– Later, we will use MATLAB to create accurate Bode plots from transfer function equations

– But, we should know the basics behind how Bode plots are created• Let’s start with a simple example – assume real, first-order Poles and Zeros

• Substituting jω for s gives…

• To understand the response of H(s) or H(jω), we need to look at its magnitude |H(jω)| and phase θ(jω) with respect to frequency ω.

Page 29: Electronic Devices and Circuits

ES154 Lecture 3

8

ES154 - Lecture 3Wei 15

Bode Plots Primer

• First, rearrange the equation into a standard form.

• Then, solve for |H(jω)| and θ(ω)

– –90o comes from the pole at ω=0.

ES154 - Lecture 3Wei 16

Amplitude Plots

• Amplitude plot involves the multiplication and division of factors. To simplify, we present the amplitude in terms of a logarithmic value – decibels (dB).

– Amplitude of H(jω) in dB is…

– So, going back to our example, the amplitude in dB is…

• The best way to plot the effects of these poles and zeros is to plot them individually and then put it together.

• We will estimate the plots with straight line approximations– each pole causes the plot to slope downward at –20dB/dec or (-6dB/oct)– each zero causes the plot to slope upward at +20dB/dec or (+6dB/oct)

* Note: the book uses octaves

Page 30: Electronic Devices and Circuits

ES154 Lecture 3

9

ES154 - Lecture 3Wei 17

Amplitude Plots (2)

1. 20log10K’ is a straight line since it is independent of ω2. For the zero, at z1, the plot increases at 20dB/dec

ES154 - Lecture 3Wei 18

Amplitude Plots (3)

3. The plot of –20log10(ω) is a straight line that decreases at –20dB/dec and intersects 0dB at ω=1

4. For the pole, the plot is a flat line until p1 and then decreases at –20dB/dec

Page 31: Electronic Devices and Circuits

ES154 Lecture 3

10

ES154 - Lecture 3Wei 19

Amplitude Plots (4)

• Now, put them all together (multiplication = addition in dB).

(1)

(2)

(3)

(4)

ES154 - Lecture 3Wei 20

More Accurate AdB Plot

• We can make the straight-line approximation plots more accurate for first order poles and zeros by correcting the amplitudes at the corner frequency of the poles and zeros.

– At the corner,

Page 32: Electronic Devices and Circuits

ES154 Lecture 3

11

ES154 - Lecture 3Wei 21

Phase Plots

• We can again use the straight-line approximation for phase plots.

Some rules• phase associated with constant = 0• phase associated with poles or

zeros at origin (w=0) is +/- 90 degrees

• phase associated with first order poles or zeros not at origin is:ω < ωcorner /10 phase = 0ω > 10 * ωcorner phase = +/- 90

degreesω = ωcorner phase = +/- 45

degreesNOTE: ’+’ for zeros and ‘-’ for poles

ES154 - Lecture 3Wei 22

Phase Plots (2)

• Putting them together…

Page 33: Electronic Devices and Circuits

ES154 Lecture 3

12

ES154 - Lecture 3Wei 23

Bode Plots of Complex Poles and Zeros

• Complex Poles and Zeros make the Bode plots a little more challenging to draw, but we can still make some approximations.

– Complex poles and zeros always come in conjugate pairs

– If ζ < 1, then roots are complex. If ζ ≥ 1, can factor into ( s+p1 )( s+p2 ) and plot as we did before.

• The complex poles and zeros come in pairs and so:– Causes +/- 40dB/dec changes in slope in magnitude plots– Causes +/- 180 degree phase shifts– also….

ES154 - Lecture 3Wei 24

Complex Poles (Amplitude)

• Changes the actual amplitude plots depending on the damping coefficient ζ.

Page 34: Electronic Devices and Circuits

ES154 Lecture 3

13

ES154 - Lecture 3Wei 25

Complex Poles (Phase)

• It also changes the phase plot

ES154 - Lecture 3Wei 26

Summary of Bode Plot Characteristics

• Given a transfer function that is a ratio of a product of factors, where the factor is in the form ( s+a )– factors in the numerator correspond to zeros

• causes amplitude plot to slope upward at 20dB/dec starting at the zero corner frequency

• causes +90 degree phase shift after the zero corner frequency– factors in the denominator correspond to poles

• causes amplitude plot to slope downward at -20dB/dec starting at the pole corner frequency

• causes -90 degree phase shift after the pole corner frequency– a can be a complex number but must come in conjugate pairs

• Bode plots work best for poles and zeros spaced apart by a 10× in frequency b/c then there is little interaction between them.

Page 35: Electronic Devices and Circuits

ES154 Lecture 3

14

ES154 - Lecture 3Wei 27

Example: Low-Frequency Response

• Let’s look at how the coupling capacitor (Cc1) at the input affects the low-frequency response of the amplifier

ωp sets the lower cutoff frequency

ES154 - Lecture 3Wei 28

Example: High-Frequency Response I

• Consider the effect of Cin (assume Cout = 0)

• This circuit has a single-pole response and the upper 3dB bandwidth (upper cutoff frequency) is at ωp

Page 36: Electronic Devices and Circuits

ES154 Lecture 3

15

ES154 - Lecture 3Wei 29

Example: High-Frequency Response II

• If we now also consider Cout, the gain has the following form…

– If ωp1 << ωp2, then 3dB bandwidth is set by ωp1 (dominant pole)– If ωp2 << ωp1, then 3dB bandwidth is set by ωp2 (dominant pole)– If ωp1 ≈ ωp2, then solve for ωcutoff where the denominator = sqrt(2)

a

b

vab

A*vab

Rg

RLvin

c

d

voutRin

Rout

Cin Cout

ES154 - Lecture 3Wei 30

Miller Effect

• An impedance bridging the input and output nodes of an invertingamplifier can drastically affect the input impedance of an amplifier

Page 37: Electronic Devices and Circuits

ES154 Lecture 3

16

ES154 - Lecture 3Wei 31

Miller Equivalent Circuit

• The bridging impedance can be simplified with an equivalent circuit

Av

Zy

Av

Zy

1-Av

Zy

1-1/Av

ES154 - Lecture 3Wei 32

Capacitive Miller Effect

• The Miller equivalent circuit is easier to solve…– We’ve already solved this circuit

Equivalent circuit

Page 38: Electronic Devices and Circuits

ES154 Lecture 3

17

ES154 - Lecture 3Wei 33

Multistage Amplifier

• Often a single amplifier stage does not provide enough amplification– Can achieve higher gain by cascading amplifier stages– Must consider the effects of input and output impedances– If coupling caps are used between stages, how do you calculate the

lower cutoff frequency?– With parasitic capacitances, how do you calculate the upper cutoff

frequency? • Later, we will see how cascading multiple amplifier stages can lead to

wider overall bandwidth (higher upper cutoff frequency)

Page 39: Electronic Devices and Circuits

ES154 Lecture 4

1

Wei 1

Lecture 4

Operational Amplifiers and Op Amp Circuits

Gu-Yeon WeiDivision of Engineering and Applied Sciences

Harvard [email protected]

ES154 - Lecture 4Wei 2

Overview

• Reading– Chapter 4

• Supplemental Reading– Sedra&Smith: Ch. 2

• BackgroundArmed with our circuit analysis tools and basic understanding ofamplifiers, let’s now look at operational amplifiers (op amps). Op amps were initially constructed out of vacuum tubes, then discrete transistor components. With the advent of the integrated circuit, op amp ICs came out in the 60’s (e.g., from Analog Devices Inc.). They are extremely useful because they are versatile and one cando almost anything with op amps. We will begin by looking at an ideal version of the op amp and see how they are useful. Then, we will investigate various non-idealities of real amplifier designs and how they affect op amp circuits.

Page 40: Electronic Devices and Circuits

ES154 Lecture 4

2

ES154 - Lecture 4Wei 3

Op Amp Terminals

• At a minimum, op amps have 3 terminals: 2 input and 1 output.• An op amp also requires dc power to operate. Often, the op amp requires both

positive and negative voltage supplies (V+ and V-).

1

2

3

op amp symbol (we will use most often)

1

2

3

V-

V+

op amp symbol with power supply connections

ES154 - Lecture 4Wei 4

Ideal Op Amp

• The op amp is designed to sense the difference between the voltage signals applied to the two input terminals and then multiply it by some gain factor A such that the voltage at the output terminal is A(v2-v1).

– One of the input terminals (1) is called an inverting input terminal denoted by ‘-’– The other input terminal (2) is called a non-inverting input terminal denoted by ‘+’– The gain A is often referred to as the differential gain or open-loop gain– We can model an ideal amplifier as a voltage-controlled voltage source (VCVS)

1

2

A(v2-v1)

v2

v1 i1=0

i2=0

3

Page 41: Electronic Devices and Circuits

ES154 Lecture 4

3

ES154 - Lecture 4Wei 5

Ideal Op Amps Characteristics

• Ideal op amp characteristics:– Does not draw input current so that the input impedance is infinite

(i.e., i1=0 and i2=0)– The output terminal can supply an arbitrary amount of current (ideal

VCVS) and the output impedance is zero– The op amp only responds to the voltage difference between the

signals at the two input terminals and ignores any voltages common to both inputs. In other words, an ideal op amp has infinite common-mode rejection.

– The frequency response of an ideal op amp is flat for all frequency. In other words, it amplifies signals of any and all frequencies by the same amount A.

– Lastly, A is or can be treated as being infinite. Useful b/c we can easily specify a closed-loop gain (using feedback) as will see later.

• We will see later that real op amps do not have the characteristics above, but we strive to make them behave as close to an ideal op amp as possible.

ES154 - Lecture 4Wei 6

Op Amps in the Inverting Configuration

• Let’s look at an op amp in an inverting closed-loop configuration.

– There are two resistors R1 and R2– R2 is called the (negative) feedback

resistor and also “closes” the loop. (A resistor between terminals 2 and 3 would be a positive feedback resistor.)

• Closed-Loop Gain G– Defined,

– Assume A is infinite and the amp is trying to produce a finite voltage on terminal 3. Then, the voltage difference between terminals 1 and 2 should be very small, v2-v1 0 and A inf. By definition…

– So, we say there is a virtual short between the two terminals (1 and 2) and that terminal 1 is a virtual ground since terminal 2 is grounded.

R1

R2

vI vO

1

2

i1

i2

i = 03

Page 42: Electronic Devices and Circuits

ES154 Lecture 4

4

ES154 - Lecture 4Wei 7

Inverting op amp cont’d

• Use KCL to solve for the close-loop gain.

• We can adjust the closed-loop gain by changing the ratio of R2 and R1• If the input is a sine wave, then the output is a sign wave phase-shifted by 180 degrees• The closed-loop gain is (ideally) independent of op amp open-loop gain A (if A is large

enough) and we can make it arbitrarily large or small and of desired accuracy depending on the accuracy of the resistors.

• This is a classic example of what negative feedback does. It takes an amplifier with very large gain and through negative feedback, obtain a gain that is smaller, stable, and predictable. In effect, we have traded gain for accuracy. This kind of trade off is common in electronic circuit design… as we will see more of later.

R1

R2

vI vO

1

2

i1

i2

i = 03

ES154 - Lecture 4Wei 8

R1

R2

vI vO

1

2

i1

i2=i1

i = 0-vOA

Finite Open-Loop Gain

• Since infinite A is not physically possible, what happens when A is finite?

– Instead of a virtual ground, assume input terminal 1 has potential –vO/A

– As A infinity, G -R2/R1 and the voltage at terminal 1 goes to 0… the virtual ground assumption we made earlier

– To minimize the effects of open-loop gain on G, we want…

Page 43: Electronic Devices and Circuits

ES154 Lecture 4

5

ES154 - Lecture 4Wei 9

Input Resistance

• Assuming an ideal op amp (open-loop gain A = ∞), in the closed-loop inverting configuration, the input resistance is R1.

– To make Rin high, need to make R1 high which is not practical• What happens when A = finite? From the last slide…

– Solve for Rin = vI/i1

ES154 - Lecture 4Wei 10

Output Resistance

Now, let’s look at the output resistance…• To solve for output resistance, zero out the input and figure out the resistance

looking into the output terminal

– Roa is usually small and so Rout is negligible when A is large

R1

R2

Roa Rout

i1

i2

v2

v1 vt

A(v2-v1) = -Av1

Page 44: Electronic Devices and Circuits

ES154 Lecture 4

6

ES154 - Lecture 4Wei 11

Model of Closed-Loop Inverting Amplifier

• We can model the closed-loop inverting amplifier (with A = ∞) with the following equivalent circuit using a voltage-controlled voltage source…

Rin= R1vI

RO= 0

-(R2/R1)vI

ES154 - Lecture 4Wei 12

Inverting Configuration with General Impedances

• Let’s replace R1 and R2 in the inverting configuration with impedances Z1(s) and Z2(s).• We can write the closed-loop transfer function as…

• By placing different circuit elements into Z1 and Z2, we can get interesting operations. Some examples…

– Integrator– Differentiator– Summer– Unity–Gain Buffer

Vi Vo

1

2

Z2

Z1

Page 45: Electronic Devices and Circuits

ES154 Lecture 4

7

ES154 - Lecture 4Wei 13

Inverting Integrator

• We replace Z2 (the negative feedback impedance) with a capacitor and Z1 is a resistor.

• How about in the time domain?

Vi Vo

1

2

R

C

ω (log scale)

|Vo/Vi| (dB)

1/RC

-20db/decvi

vC

ES154 - Lecture 4Wei 14

Integrator cont’d

• While the DC gain in the previous integrator circuit is infinite, the amplifier itself will saturate. To limit the low-frequency gain to a known and reliable value, add a parallel resistor to the capacitor.

• What does the magnitude response look like?

Vi Vo

1

2

R1

C

R2

Page 46: Electronic Devices and Circuits

ES154 Lecture 4

8

ES154 - Lecture 4Wei 15

Differentiator

Vi Vo

1

2

C

R

20dB/dec

1/RC

AdB

ω (log scale)

• How would you set a nominal low-frequency gain?

ES154 - Lecture 4Wei 16

Weighted Summer

• You can also building a summer.

vo

1

2

R1Rf

v1

R2v2

Rnvn

Page 47: Electronic Devices and Circuits

ES154 Lecture 4

9

ES154 - Lecture 4Wei 17

Non-Inverting Configuration

• To avoid the inversion, shown is a non-inverting configuration

– What’s the input impedance?

• Now what happens as R1 infinity and Rf 0

Unity-Gain AmplifierUseful for buffering between stages

vo

1

2

R1

Rf

vI

vo

1

2vI

ES154 - Lecture 4Wei 18

Difference Amplifier

Now, we can combine the non-inverting amplifier and inverting amplifier configurations to beable to take a difference between two inputs. You can use superposition or brute force it…

vo

R1

Rf

v1

v2

R2

R3

v+

v-

Page 48: Electronic Devices and Circuits

ES154 Lecture 4

10

ES154 - Lecture 4Wei 19

• So far, we have assumed infinite gain and infinite bandwidth (BW) for the amplifier, but that is not reality. Amplifiers have finite gain and BW. Here’s an example of the open-loop gain vs. frequency plot of an amplifier.

• Notice that the gain can be very high at low frequency, but starts to roll off at a low frequency also. They are also “frequency compensated” to roll off at -20dB/dec (or a single pole) to guarantee that op amp circuits will be stable (more on this later in the semester when we talk about the guts of building amplifiers and feedback stability).

Finite Open-Loop Gain and BW

ES154 - Lecture 4Wei 20

Finite Open-Loop Gain and BW cont’d

• We can represent frequency response characteristics of this amplifier as we did for a single-time constant low-pass filter.

• For frequencies much greater than ωb (ω >> ωb) we can approximate the gain as…

ωt is called the unity-gain BW. So the gain can be represented as

– assuming ωb is very small (low)

• So given this equation, we can find the gain at any frequency (assuming a single-pole magnitude response)

Page 49: Electronic Devices and Circuits

ES154 Lecture 4

11

ES154 - Lecture 4Wei 21

Frequency Response of Closed-Loop Amplifiers

• Let’s look at the closed-loop gain equation we derived earlier for for an amplifier with finite op-amp open-loop gain A.

• if A0 >> 1+R2/R1, then we can approximate the equation as…

• Therefore, the closed-loop gain has a response that rolls off at –20dB/dec at a frequency, ω-3dB, that is a function of the gain set by the input and feedback resistors.

– Plot the magnitude response vs. different R2/R1

ES154 - Lecture 4Wei 22

Gain-Bandwidth Tradeoff

RF

R1

vin

vout

• With real amplifiers, there is a tradeoff between gain and BW• For multi-stage amplifiers, the maximum BW can be achieved for a

desired gain when the BW of each stage is equal. For identical stages, the BW for each stage is equal when gain per stage is equal.

Gain dB

0 dB

Open Loop

RF/R1 large

RF/R1 small

RF/R1 = 1

b t = A0 b

A0

Page 50: Electronic Devices and Circuits

ES154 Lecture 4

12

ES154 - Lecture 4Wei 23

Gain BW Product (GBW)

• The product of gain and BW is a very useful value when designing amplifiers and amplifier circuits

– Provides a measure of how “good” you amplifier is (want higher GBW)– GBW is constant anywhere along the plot above for a particular design

ES154 - Lecture 4Wei 24

BW for Multi-Stage Amps

• We define the bandwidth of an amplifier to be

• Now, consider multiple amplifier stages (iterative stage amp)

– Assume we use identical stages and we can write the expression for gain of each stage as:

Page 51: Electronic Devices and Circuits

ES154 Lecture 4

13

ES154 - Lecture 4Wei 25

BW for Multi-Stage Amps (2)

• Then, the overall gain is the product of the gain for each stage…

– The upper cutoff frequency is when the overall gain magnitude drops by 3bB or…

and

so…

• Notice the overall -3dB BW shrinks with more stages (BW shrinkage)

ES154 - Lecture 4Wei 26

Optimizing BW

• So, do we want to cascade a large number of low-gain amplifiers (w/ high BW) or a small number of high-gain amps (w/ low BW)?

• To optimize BW for a specified gain, we need to balance two trends– Smaller number of stages = less BW shrinkage– Higher gain per stage = lower BW per stage

• For n ≥ 3, we can approximate BW shrinkage as

• If we use identical stages, then we know that each stages has

Page 52: Electronic Devices and Circuits

ES154 Lecture 4

14

ES154 - Lecture 4Wei 27

Optimizing BW (2)

• Now, we can find the optimum number of stages (n) by differentiating the expression for the overall BW with respect to n and solving for when the derivative = 0.– To simplify the math, let Ao = ek (k = ln Ao)

– So, you first need to figure out the optimal n for a desired Aoand then calculate the gain for each stage and the resulting BW you get due to BW shrinkage.

ES154 - Lecture 4Wei 28

Output Saturation

• So far, we have been looking at the amplification that can be achieved for relatively small (amplitude) signals. For a fixed gain, as we increase the input signal amplitude, there is a limit to how large the output signal can be. The output saturates as it approaches the positive and negative power supply voltages. In other words, there is limited range across which the gain is linear.

From Sedra&Smith

Page 53: Electronic Devices and Circuits

ES154 Lecture 4

15

ES154 - Lecture 4Wei 29

Slew Rate (BW limited)

• Another source of nonlinear distortion comes from the limited slew rate of the amplifier. Remember, we modeled the amplifier as a single time constant circuit. Thus, an input signal sees attenuation beyond the BW of the op amp.

• Let’s look at the time domain response of the circuit by taking the inverse Laplace transform of the amplifier’s transfer function multiplied by a step with magnitude Vin.

• The output does not change instantaneously. Rather, we see an exponential response that slews the output up. The maximum output slew rate is defined as the derivative of the output voltage at t=0.

ES154 - Lecture 4Wei 30

Voltage Offsets

• The circuit implementation of amplifiers is subject to a variety of imperfections during its fabrication. This imperfection can be due to physical imbalances that occurs even at DC (or zero frequency).

• To understand this problem, assume the two inputs to the amplifier are connected together. Instead of a zero output, in real circuits, we get a non-zero positive or negative voltage at the output.

• One can model the imbalance by adding a DC voltage offset on one of the terminals. This is an input offset voltage (VOS) in the amplifier which can be compensated for with a voltage of equal magnitude and opposite polarity to make the output voltage go to zero.

Vout = 0

Vout = 0VOS

Page 54: Electronic Devices and Circuits

ES154 Lecture 4

16

ES154 - Lecture 4Wei 31

Input Bias Currents

• In real amplifiers, the two input terminals sometimes have to be supplied with dc currents called input bias currents. They can be represented by two current sources IB1 and IB2. Furthermore, there can be mismatch between these currents IOS.

• We can reduce the output voltage effects from the input bias current by adding a resistor into the positive terminal. However, mismatches between IB1 and IB2(IOS = IB1 - IB2) results in an offset voltage VOS=IOSRf.

IB2

IB1

IB2

IB10V

IB1

0

VO=IB1Rf

Rf

R1

Page 55: Electronic Devices and Circuits

ES154 Lecture 5

1

Wei 1

Lecture 5

Semiconductor Basics

Gu-Yeon WeiDivision of Engineering and Applied Sciences

Harvard University

Wei 2

Semiconductors

• Reading: Chapter 5• Supplemental Reading:

– Streetman, Solid State Electronic Devices, Ch. 3, App. IV– Sedra&Smith Ch. 3

• Background– The electronics industry today is based on semiconductors, due to

our well-developed ability to affect the electronic properties of the solid.

– Understanding semiconductors allows us to understand the functioning of circuit elements, as well as grasp future possibilities and limitations.

• These notes were originally created by Kathy Aidala (TF in 2002)

Page 56: Electronic Devices and Circuits

ES154 Lecture 5

2

Wei 3

Band Theory

• Analogy to atoms– From chemistry, we are familiar with the idea of “electron

clouds” orbiting the nucleus. – The energy of the different clouds, or levels, is discrete.

Adding energy can cause an electron to “jump” into a higher level. In the same way, an electron can lose energy and emit a specific wavelength of light when falling to a lower energy level. (Atomic spectra)

– Pauli Exclusion Principle: no two electrons can occupy the same exact state at the same time. This is why electrons fill the energy levels in the way they do.

– Valence electrons are the electrons bound farthest from the nucleus

Wei 4

Band Theory

• What is a crystalline solid? – A volume of atoms covalently bonded in a periodic structure with

well defined symmetries. – Example: Silicon

• Face-Centered Cubic (FCC) structure• Group-IV elements (4 valence electrons)

• Where are the electrons?– Covalent bonds share electrons. The e- are delocalized, they can

move around the crystal, orbit any atom, as long as there is an open state (cannot violate Pauli Exclusion)

– This forms discrete energy bands. Solving Schroedinger’sEquation in the specific periodic structure reveals these bands.

Page 57: Electronic Devices and Circuits

ES154 Lecture 5

3

Wei 5

Specifics of Crystals

• In an atom, electrons orbit in their shell, at a given energy.• In a crystal, many electrons occupy a small energy band. There is a

width to the energy band, which is why Pauli Exclusion is not violated. • Within the band, electrons can move easily if there are available states,

because the difference in energy is tiny.• Between bands, electrons must get energy from another source,

because the band gap can be significant.

Atom SemiconductorEvalence

Econduction

EFermiEgap

Wei 6

Fermi Energy

• The highest energy an electron reached if you were to fill the solid with the intrinsic number of electrons at absolute zero. (No added thermal energy)

• Meaningful! There is a sea of electrons sitting beneath this energy.– If you bring two solids together with different Fermi energies,

the electrons will move around to reach an equilibrium. (Foreshadowing: PN junction)

– If you try to put a lower energy electron into a solid (at absolute zero) with a higher Fermi energy, it won’t fit. It cannot be done due to Pauli Exclusion.

• If the highest energy electron exactly fills a band, the Fermi Energy is near the center of the bands.

Page 58: Electronic Devices and Circuits

ES154 Lecture 5

4

Wei 7

Beyond 0 K: Fermi-Dirac Statistics

• Fermi Energy: The energy state whose probability of being occupied is exactly 1/2 .

• Electrons obey Fermi-Diracstatistics, which describe the probability of an electron being present in an allowed energy state.

• Note that if there are no states at a given energy (i.e., in the band gap) there will be no electrons, even if there is finite probability.

Wei 8

Different Types of Solids

Fermi level falls inside the energy band. Easy for electrons to move around

Fermi level falls between bands, with a large band gap.

SiO2: 9 eV.

Fermi level falls between bands, with a small band gap.Si: 1.11 eV, Ge:0.67 eV,

GaAs: 1.43

Page 59: Electronic Devices and Circuits

ES154 Lecture 5

5

Wei 9

Transport in Semiconductors

• Electrons that get excited into the conduction band carry current.• The space left behind in the valence band is called a hole.

• Holes also conduct current. In reality, it’s the movement of all the other electrons. The hole allows this motion. (Bubbles)

• Holes can easily travel “up” in energy.• Holes have positive charge.• Current flows in the same direction as the holes move.• Holes have different mass (effective mass) and mobility compared

to electrons.

Econduction

EFermiEgap

Evalence

Wei 10

Intrinsic Semiconductor Summary

• Fermi Level: All solids are characterized by an energy that describes the highest energy electron at 0K, the level which has1/2 probability of being occupied at finite temperature.

• Semiconductors: A solid with its Fermi level exactly betweenbands, with a band gap small enough to be overcome at room temperature.

• Both electrons and holes carry current.

Econduction

EFermiEgap

Evalence

Page 60: Electronic Devices and Circuits

ES154 Lecture 5

6

Wei 11

Controlling the properties of aSemiconductor

Doping• Replace some Si atoms with atoms that

do not have four valence electrons.

• These atoms will have an extra electron (group IV), or an extra hole (group III).

• Doping increases the number of carriers and changes the Fermi level.

Silicon: 4 valence electrons.Each Si atom bonds to four others.

e-

e-

Wei 12

Phosphorus Doping (N-type)

• Phosphorus has 5 valence electrons. • P atoms will sit in the location of a Si atom in the lattice, to avoid

breaking symmetry, but each will have an extra electron that does not bond in the same way.

• These electrons form their own band. Exactly where depends on the amounts of the two materials.

• This new band is located closer to the conduction band, because these extra electrons are easier to excite (and can move around more easily)

EFermi

Econduction

Evalence

Page 61: Electronic Devices and Circuits

ES154 Lecture 5

7

Wei 13

Boron Doping (P-type)

• Boron has 3 valence electrons.• B will sit at a lattice site, but the adjacent Si atoms lack an electron to

fill its shell. This creates a hole.• These holes form their own energy band.• This band is located closer to the valence band, because these extra

holes are easy to “excite down” into the valence band.

EFermi

Econduction

Evalence

Wei 14

Doping

• N-type materials: Doping Si with a Group V element, providing extra electrons (n for negative) and moving the Fermi level up.

• P-type materials: Doping Si with a Group III element, providing extra holes (p for positive) and moving the Fermi level down.

EFermi

Evalence

EFermi

Econduction

Evalence

Econduction

N-type P-type

Page 62: Electronic Devices and Circuits

ES154 Lecture 5

8

Wei 15

Equilibrium Concentrations: electrons

N(E) f(E)Carrier concentration

Wei 16

Equilibrium Concentrations: holes

N(E) f(E)

Carrier concentration

Page 63: Electronic Devices and Circuits

ES154 Lecture 5

9

Wei 17

Intrinsic Semiconductors

• In intrinsic semiconductors (no doping) the electron and hole concentrations are equal because carriers are created in pairs

• This allows us to write

– As the Fermi level moves closer to the conduction [valence] band, the n0 [p0] increases exponentially

Wei 18

Temperature Dependence of Carrier Concentrations

• The intrinsic concentration depends exponentially on temperature. The T3

dependence is negligible.• Ionization: only a few donors

[acceptors] are ionized. • Extrinsic: All donors

[acceptors] are ionized• Intrinisic: As the temperaure

increases past the point where it is high enough to excite carriers across the full band gap, intrinsic carriers eventually contribute more.

• At room temp (300K), the intrinsic carrier concentration of silicon is:

Page 64: Electronic Devices and Circuits

ES154 Lecture 5

10

Wei 19

Moving Carriers (i.e., current)

• There are two mechanisms by which mobile carriers move in semiconductors – resulting in current flow– Drift

• Carrier movement is induced by a force of some type– Diffusion

• Carriers move (diffuse) from a place of higher concentration to a place of lower concentration

Wei 20

Drude Model of Conductivity

• Electrons are assumed to move in a direct path, free of interactions with the lattice or other electrons, until it collides.

• This collision abruptly alters its velocity and momentum.• The probabilty of a collision occuring in time dt is simply dt/τ, where τ is

the mean free time. τ is the average amount of time it takes for an electron to collide.

• The current is the charge*number of electrons*area*velocity in a unit of time. For j = current density, divide by the area. The drift velocity (vd) is a function of charge mobility (µn) and electric field (E).

• At equilibrium, there is no net motion of charge, vavg = 0.• With an applied electric field, there is a net drift of electrons [holes]

against [with] the electric field resulting in an average velocity.• This model allows us to apply Newton’s equations, but with an effective

mass. The effective mass takes the interactions with the rest of the solid into account.

Page 65: Electronic Devices and Circuits

ES154 Lecture 5

11

Wei 21

Drude Model

• Consider an electron just after a collision. The velocity it acquires before the next collision will be acceleration*time

• We want the average velocity of all the electrons, which can be obtained by simply averaging the time, which we already know is τ.

• We can also write this in terms of mobility:

• Taking both holes and electrons into account, we end up with thefollowing formula for current density due to drift.

Wei 22

- Hall Effect

• Moving electrons experience a force due to a perpendicular B field

• An electric field develops in response to this force.

• The sign of this field perpendicular to the flow of current determines the carrier type.

• Density and mobility can also be calculated.

Page 66: Electronic Devices and Circuits

ES154 Lecture 5

12

ES154 Lecture 5 Intro to SemiconductorsWei 23

Diffusion

• Diffusion results in a net flux of particles from the region of higher concentration to the region of lower concentration– This flux leads to current (movement of charged particles)– Magnitude of current depends on the gradient of concentration

– Dn is the diffusivity coefficient

• Diffusivity is related to mobility by Einstein’s relationship

– Typical values for Si at room temp• Dn = 34 cm2/s and Dp = 13 cm2/s

Page 67: Electronic Devices and Circuits

Wei 1

Lecture 6PN Junctions and Diode Circuits

Gu-Yeon WeiDivision of Engineering and Applied Sciences

Harvard University

Page 68: Electronic Devices and Circuits

ES154 - Lecture 6: PN Junctions and Diode CircuitsWei 2

Overview

• Reading: Chapter 5• Supplementation Reading:

– Streetman, Solid State Electronic Devices, Ch. 5– Sedra&Smith Ch. 3.1~5

• Background– Now that we have learned the semiconductor basics, we will look at

one of the simplest semiconductor devices that can be built by abutting two pieces of semiconductors (silicon) each doped with different dopants. Given that the two pieces are n-type and p-type semiconductors, the device is called a PN junction. The interaction between the two material types at the boundary (or junction) results in some very interesting and useful properties.

– A PN junction is one way to build diodes. We will take a brief look at what can be built with diodes.

Page 69: Electronic Devices and Circuits

ES154 - Lecture 6: PN Junctions and Diode CircuitsWei 3

Ideal Diode

• Let’s begin with an ideal diode and look at its characteristics

From Sedra&Smith

Page 70: Electronic Devices and Circuits

ES154 - Lecture 6: PN Junctions and Diode CircuitsWei 4

Characteristics of PN Junction Diodes

• Given a semiconductor PN junction we get a diode with the following current-voltage (IV) characteristics.

• “Turn on” voltage based on the “built-in” potential of the PN junction

– Reverse bias breakdown voltage due to avalanche breakdown (on the order of several volts)

From Sedra&Smith

Page 71: Electronic Devices and Circuits

ES154 - Lecture 8Wei 5

• The forward bias current is closely approximated by

where VT is the thermal voltage (~25mV at room temp)k = Boltzman’s constant = 1.38 x 10-23 joules/kelvinT = absolute temperatureq = electron charge = 1.602 x 10-19 coulombsn = constant dependent on material, between 1 and 2 (we will assume n = 1)IS = scaled current for saturation current that is set by dimensions

– Notice there is a strong dependence on temperature– We can approximate the diode equation for i >> IS

• In reverse bias (when v << 0 by at least VT ), then

• In breakdown, reverse current increases rapidly… a vertical line

Current Equations

Page 72: Electronic Devices and Circuits

ES154 - Lecture 6: PN Junctions and Diode CircuitsWei 6

Mobile Carriers

• Now let’s look at physical mechanisms from which the current equations come.– We’ve seen that holes and electrons move through a

semiconductor by two mechanisms – drift and diffusion

– In equilibrium, diffusion current (ID) is balanced by drift current (IS). So, there is no net current flow. Drift current comes from (thermal) generation of hole-electron pairs (EHP).

Page 73: Electronic Devices and Circuits

ES154 - Lecture 6: PN Junctions and Diode CircuitsWei 7

Band Diagrams

• When the P-type material is contacted with the N-type material, the Fermi levels must be at equilibrium.

• Band bending: The conduction and valence bands “bend” to align the Fermi levels.

• Electrons diffuse from the N-side to the P-side and recombine with holes at the boundary. Holes diffuse from the P-side to the N-side and recombine with electrons at the boundary. There is a region at the boundary of charged atoms – called the space-charge region (also called the depletion region b/c no mobile carriers in this region)

• An electric field is created which results in a voltage drop across the region – called the barrier voltage or built-in potential

P-type N-type

Ei

Efn

Ec

Ev

Ei

Ec

Ev

Efp

n

p

Ei

Ef

Ec

Ev

E-field

qV0

Page 74: Electronic Devices and Circuits

ES154 - Lecture 6: PN Junctions and Diode CircuitsWei 8

What happens when P-type meets N-type?

• Holes diffuse from the p-type into the n-type, electrons diffuse from the n-type into the p-type, creating a diffusion current. The diffusion equation is given by

• Once the holes [electrons] cross into the n-type [p-type] region, they recombinewith the electrons [holes].

• This recombination “strips” the n-type [p-type] of its electrons near the boundary, creating an electric field due to the positive and negative bound charges.

• The region “stripped” of carriers is called the space-charge region, or depletion region.

• V0 is the contact potential that exists due to the electric field.

• Some carriers are generated (thermally) and make their way into the depletion region where they are whisked away by the electric field, creating a drift current.

Page 75: Electronic Devices and Circuits

ES154 - Lecture 6: PN Junctions and Diode CircuitsWei 9

Equilibrium motion of carriers

• In equilibrium, diffusion current is balanced by drift current. Moreover, the built-in potential (electric field) stops the diffusion by imposing a larger barrier to holes and electrons.

• The diffusion current is determined by the # of carriers able to overcome the potential barrier. The drift current is determined by the generation of minority carriers (in the depletion region) which then move due to the E-field. This generation is determined by the temperature.

• At equilibrium, the two components are equal…

Page 76: Electronic Devices and Circuits

ES154 - Lecture 6: PN Junctions and Diode CircuitsWei 10

E-field and Built-in Potential

• Diffusion is balanced by drift due to bound charges at the junction that induce an E-field.

• Integrating the bound charge density gives us the E-field

• Integrating the E-field gives the potential gradient

Page 77: Electronic Devices and Circuits

ES154 - Lecture 6: PN Junctions and Diode CircuitsWei 11

Junction Built-In Voltage

• With no external biasing, the voltage across the depletion region is:

– Typically, at room temp, V0 is 0.6~0.8V• How does V0 change as temperature increases?

– Interesting to note that when you try to measure the potential across the pn junction terminals, the voltage measured will be 0. In other words, V0 across the depletion region does not appear across the diode terminals. This is b/c the metal-semiconductor junction at the terminals counteract and balance V0 . Otherwise, we would be able to draw energy from an isolated pn junction, which violates conservation of energy.

Page 78: Electronic Devices and Circuits

ES154 - Lecture 6: PN Junctions and Diode CircuitsWei 12

P-type N-type

0-xp xn

Wdepl

-xp xn

E(x)

E0

x

Width of Depletion Region

• The depletion region exists on both sides of the junction. The widths in each side is a function of the respective doping levels. Charge-equality gives:

• The width of the depletion region can be found as a function of doping and the built-in voltage…

εs is the electrical permittivity of silicon = 11.7ε0 (units in F/cm)

Page 79: Electronic Devices and Circuits

ES154 - Lecture 6: PN Junctions and Diode CircuitsWei 13

pn Junction in Reverse Bias (1)

• Let’s see how the pn junction looks with an external current, I (less than IS), applied

– electrons leave the n side and holes leave the p side depletion region grows V0 grows IDdecreases

– in equilibrium, there is a VR across the terminals (greater than V0)

• If I > IS, the diode breaks down

• As the depletion region grows, the capacitance across the diode changes.

– Treating the depletion region as a parallel plate capacitor…

Page 80: Electronic Devices and Circuits

ES154 - Lecture 6: PN Junctions and Diode CircuitsWei 14

V- +

p n

• Reverse bias: apply a negative voltage to the p-type, positive to n-type.

• Increase the built-in potential, increase the barrier height.

• Decrease the number of carriers able to diffuse across the barrier.

• Diffusion current decreases.• Drift current remains the same (due to

generation of EHP).• Almost no current flows. Reverse leakage

current, IS, is the drift current, flowing from n to p.

Reverse Bias (2)

Page 81: Electronic Devices and Circuits

ES154 - Lecture 6: PN Junctions and Diode CircuitsWei 15

Reverse Breakdown

• Zener Breakdown: The bands bend so much that carriers tunnel through the depletion region. This will occur in heavilydoped junctions when the n-side conduction band appears opposite the p-side valence band.

• Avalanche Breakdown: carriers have enough energy to ionize an electron-hole-pair (EHP), creating more highly energetic carriers, which collide to form more EHPs, which creates…

Page 82: Electronic Devices and Circuits

ES154 - Lecture 6: PN Junctions and Diode CircuitsWei 16

pn Junction in Forward Bias (1)

• Now let’s look at the condition where we push current through the pn junction in the opposite direction.

– Add more majority carriers to both sides shrink the depletion region lower V0diffusion current increases

• Look at the minority carrier concentration…– lower barrier allows more carriers to be

injected to the other side

• Note that np0 = ni2/NA and pn0 = ni

2/ND

– This comes from two equations…

Page 83: Electronic Devices and Circuits

ES154 - Lecture 6: PN Junctions and Diode CircuitsWei 17

• Excess minority carrier concentration is governed by the “law of the junction”(proof can be found in device physics text). Let’s look at holes….

• The distribution of excess minority hole concentration in the n-type Si is an exponentially decaying function of distance from xn

– where Lp is the diffusion length (steepness of exponential decay) and is set by the excess-minority-carrier lifetime, τp. The average time it takes for a hole injected into the n region to recombine with a majority carrier electron

– The diffusion of holes leads to the following current density vs. x

Page 84: Electronic Devices and Circuits

ES154 - Lecture 6: PN Junctions and Diode CircuitsWei 18

• In equilibrium, as holes diffuse away, they must be met by a constant supply of electrons with which they recombine. Thus, the current must be supplied at a rate that equals the concentration of holes at the edge of the depletion region (xn). Thus, the current due to hole injection is:

• Current due to electrons injected into the p region is…

• Combined…

Page 85: Electronic Devices and Circuits

ES154 - Lecture 6: PN Junctions and Diode CircuitsWei 19

Minority Carrier Concentration and Current Densities in Forward Bias

• Current is due to the diffusion of holes and electrons. Current is dominated by holes or electrons depending on the relative doping of NAvs. ND

• Is NA > ND or NA<ND in this example?

0 xn-xp

Jtotal=JP+JN

J (a

mps

/cm

2 )

JN

JP

JP(xn)

Jn(-xp)

p-bulk region n-bulk regiondepletionregion

x

x

n or p

pn0

pn0*exp(qV/kT)

np0*exp(qV/kT)

np0

Page 86: Electronic Devices and Circuits

ES154 - Lecture 6: PN Junctions and Diode CircuitsWei 20

Forward Bias (2)

V+ -

p n

• Forward bias: apply a positive voltage to the p-type, negative to n-type.

• Decrease the built-in potential, lower the barrier height.

• Increase the number of carriers able to diffuse across the barrier

• Diffusion current increases• Drift current remains the same• Current flows from p to n

Page 87: Electronic Devices and Circuits

ES154 - Lecture 6: PN Junctions and Diode CircuitsWei 21

Review of Biasing

• Applying a bias adds or subtracts to the built-in potential.

• This changes the diffusion current, making it harder or easier for the carriers to diffuse across.

• The drift current is essentially constant, as it is dependent on temperature.

Page 88: Electronic Devices and Circuits

ES154 - Lecture 6: PN Junctions and Diode CircuitsWei 22

Photodiodes

• Diodes have an optical generation rate. Carriers are created by shining light with photon energy greater than the bandgap.

• One wants large depletion widths and long diffusion lengths, as it is only in these areas that excited carriers will make it across the junction.

• Photodetector: operate in third quadrant. Compromise between speed and junction width leads to a p-intrisic-n junction, where carriers will be rapidly swept across, and can quickly diffuse in the p and nregions.

• Solar Cell: operating in the fourth quadrant generates current, though small.

Page 89: Electronic Devices and Circuits

ES154 - Lecture 6: PN Junctions and Diode CircuitsWei 23

Light Emitting Diodes

• When electrons and holes combine, they release energy.

• This energy is often released as heat into the lattice, but in some materials, known as direct bandgap materials, they release light.

• Engineering LEDs can be difficult, but has been done over a wide range of wavelengths.

• This illustration describes the importance of the plastic bubble in directing the light so that it is more effectively seen.

Page 90: Electronic Devices and Circuits

ES154 - Lecture 6: PN Junctions and Diode CircuitsWei 24

Diode Circuits

• Look at the simple diode circuit below. We can write two equations:

Page 91: Electronic Devices and Circuits

ES154 - Lecture 6: PN Junctions and Diode CircuitsWei 25

Diode Small-Signal Model

• Some circuit applications bias the diode at a DC point (VD) and superimpose a small signal (vd(t))on top of it. Together, the signal is vD(t), consisting of both DC and AC components

– Graphically, can show that there is a translation of voltage to current (id(t))

– Can model the diode at this bias point as a resistor with resistance as the inverse of the tangent of the i-vcurve at that point

– And if vd(t) is sufficiently small then we can expand the exponential and get an approximate expression called the small-signal approximation (valid for vd < 10mV)

– So, the diode small-signal resistance is…

Page 92: Electronic Devices and Circuits

ES154 - Lecture 6: PN Junctions and Diode CircuitsWei 26

• Perform the small signal analysis of the diode circuit biased with VDD by eliminating the DC sources and replacing the diode with a small signal resistance

– The resulting voltage divider gives:

• Separating out the DC or bias analysis and the small-signal analysis is a technique we will use extensively

Page 93: Electronic Devices and Circuits

ES154 - Lecture 6: PN Junctions and Diode CircuitsWei 27

Rectifier Circuits

• One of the most important applications of diodes is in the design of rectifier circuits. Used to convert an AC signal into a DC voltage used by most electronics.

Page 94: Electronic Devices and Circuits

ES154 - Lecture 6: PN Junctions and Diode CircuitsWei 28

Simple Half-Wave Rectifier

• Only lets through positive voltages and rejects negative voltages

• This example assumes an ideal diode

• What would the waveform look like if not an ideal diode?

Page 95: Electronic Devices and Circuits

ES154 - Lecture 6: PN Junctions and Diode CircuitsWei 29

Full-Wave Rectifier

• To utilize both halves of the input sinusoid use a center-tapped transformer…

Page 96: Electronic Devices and Circuits

ES154 - Lecture 6: PN Junctions and Diode CircuitsWei 30

Bridge Rectifier

• Looks like a Wheatstone bridge. Does not require a center-tapped transformer.

– Requires 2 additional diodes and voltage drop is double.

Page 97: Electronic Devices and Circuits

ES154 - Lecture 6: PN Junctions and Diode CircuitsWei 31

Peak Rectifier

• To smooth out the peaks and obtain a DC voltage, add a cap across the output

Page 98: Electronic Devices and Circuits

Wei 1

Lecture 7

MOSFET Devices and Circuits

Gu-Yeon WeiDivision of Engineering and Applied Sciences

Harvard [email protected]

Page 99: Electronic Devices and Circuits

ES154 - Lecture 7 - MOSFETsWei 2

Overview

• Reading– Chapter 6

• Supplemental Reading– Sedra&Smith: Chapter 5.1~5.4

• Background– Now that we have a basic understanding of semiconductors and PN

junctions, we will build on that knowledge to look at a transistor device called a MOSFET. This is the first of two transistors types that we will be studying in this course. Most modern ICs are built using these transistors. While they are commonly used to implement digital circuits, we will look at their analog characteristics and talk about how to build amplifiers with them.We begin with the physical structure and a qualitative understanding of how MOSFETs operate. We will derive some current-voltage equations for the transistor. We will also use band diagrams to provide some theoretical rigor to our initial qualitative understanding. Then, we will look at some non-ideal characteristics of the transistor. Lastly, we will analyze the DC operation of MOSFETs.

Page 100: Electronic Devices and Circuits

ES154 - Lecture 7 - MOSFETsWei 3

Enhancement-Type MOSFET

• Most widely used field effect transistor (enhancement type)• Let’s look at its structure and physical operation

– 3 terminal device (gate, source, drain)– Additional body (or bulk) terminal (generally at DC and not used for signals)– Two types:

• nMOS and pMOS

Page 101: Electronic Devices and Circuits

ES154 - Lecture 7 - MOSFETsWei 4

nMOS Transistor

• Four terminal device: gate, source, drain (and body)– No connection between the gate and drain/source (separated by oxide)– Voltage on gate controls current flow between source and drain

• Gate-oxide-body stack looks like a capacitor– Gate and body are conductors– SiO2 (oxide) is a good insulator– Called Metal-Oxide-Semiconductor (MOS) capacitor

• Gate no longer made out of metal, but poly

Page 102: Electronic Devices and Circuits

ES154 - Lecture 7 - MOSFETsWei 5

Basic nMOS Operation

• Body is commonly tied to ground (0V)• When the gate is at a low voltage (VG = 0):

– P-type body is at low voltage– Source-body and drain-body diodes are OFF (reverse bias)

• Depletion region between n+ and p bulk– No current can flow, transistor is OFF

Page 103: Electronic Devices and Circuits

ES154 - Lecture 7 - MOSFETsWei 6

Basic nMOS Operation Cont’d

• When the gate is at a high voltage– Positive charge on gate of MOS capacitor– Negative charge attracted to oxide in the body (under the gate)– Inverts channel under the gate to n-type– Now current can flow through this n-type channel between source and drain– Transistor is ON

Page 104: Electronic Devices and Circuits

ES154 - Lecture 7 - MOSFETsWei 7

pMOS Transistor

• Similar to nMOS, but doping and voltages reversed– Body tied to high voltage (Vdd)– Gate low: transistor is ON

• inverted channel of positively charged holes– Gate high: transistor is OFF– Bubble indicates inverted behavior of the pMOS

Page 105: Electronic Devices and Circuits

ES154 - Lecture 7 - MOSFETsWei 8

MOSFET in More Detail

• An ON transistor passes a finite amount of current– Depends on terminal voltages and mode of operation– We will derive current-voltage (I-V) relationships

• To enhance our understanding of MOS devices, let’s take quick aside to look the characteristics of a MOS capacitor and at banddiagrams

Page 106: Electronic Devices and Circuits

ES154 - Lecture 7 - MOSFETsWei 9

Aside – MOS Capacitor

• Gate and body form a MOS cap• Operating modes

– Accumulation

– Depletion• Repels positive charge

– Inversion• Inversion layer forms under

the gate

Page 107: Electronic Devices and Circuits

ES154 - Lecture 7 - MOSFETsWei 10

Aside – MOSFET Band Diagrams

• A more rigorous look at MOSFETs requires us to again use band diagrams– energy diagram drawn relative to the vacuum level at equilibrium (no voltage applied)– metal work function, ΦM, energy required to completely free an electron from the metal– electron affinity, Χ, is the energy between the conduction band and vacuum level

Vacuum Level

ΦMΧ

Ef

Ei

metal

oxide

semiconductor

N-type semiconductor

Page 108: Electronic Devices and Circuits

ES154 - Lecture 7 - MOSFETsWei 11

Aside – Block Charge diagram

• Provides information about the charge distribution inside a MOS structure– no charges at equilibrium– when bias is applied, charge appears within the metal and semiconductor at

the interfaces to the oxide• voltage drop across the oxide and there is an electric field due to the +Q and –Q

charge separated by the oxide

• We will use band diagrams and block charge diagrams to better understand how MOS devices work

position

charge

M O S

+Q

-Q

Page 109: Electronic Devices and Circuits

ES154 - Lecture 7 - MOSFETsWei 12

Aside – Applying Bias

• Look at a pMOS (n-type bulk) device and see how applying a bias on the gate affects the band and block charge diagrams

Accumulation(VG > 0)

M O S

+Q

-Q

Depletion(small VG < 0)

M O S

+Q

-Q

Onset ofInversion(VG = Vt)

M O S

+Q

-Q

Inversion(VG < Vt)

M O S

+Q

-Q

holes

Page 110: Electronic Devices and Circuits

ES154 - Lecture 7 - MOSFETsWei 13

Terminal Voltages

• The modes of operation depend on terminal voltages Vg, Vd, and Vs

– Vgs = Vg - Vs– Vgd = Vg - Vd– Vds = Vd - Vs = Vgs - Vgd

• Source and drain are symmetric diffusion terminals (transistors are symmetric devices)

– By convention, source is the terminal at the lower (higher) voltage for the nMOS(pMOS) transistor

– Hence, Vds > 0• nMOS body is grounded. First assume that

source is grounded as well• Three regions of operation

– Cutoff– Linear– Saturation

Page 111: Electronic Devices and Circuits

ES154 - Lecture 7 - MOSFETsWei 14

nMOS Cutoff Mode

• Vgs < Vt and so there is no channel• Source tied to body at 0V• Need a channel for current to flow Ids = 0

Page 112: Electronic Devices and Circuits

ES154 - Lecture 7 - MOSFETsWei 15

nMOS Linear Mode

• Vgs > Vt and so a channel forms underneath the gate– Vt is the threshold voltage that sets when a channel forms

• Current flows from d to s– Electrons flow from s to d

• Ids increases with Vds• Similar to a linear resistor

Page 113: Electronic Devices and Circuits

ES154 - Lecture 7 - MOSFETsWei 16

nMOS Saturation Mode

• Vds > Vgs – Vt and channel pinches off at the drain side– b/c Vgd < Vt at the drain side (no channel at drain side)

• We say current saturates and Ids is independent of Vds

• Transistor operates similar to a current source

Page 114: Electronic Devices and Circuits

ES154 - Lecture 7 - MOSFETsWei 17

I-V Characteristics

• In the Linear region of moderation, Ids depends on– How much charge is in the channel– How fast the charge is moving

Page 115: Electronic Devices and Circuits

ES154 - Lecture 7 - MOSFETsWei 18

Channel Charge

• MOS structure looks like a parallel plate capacitor while operating in inversion– Gate-oxide-channel

Page 116: Electronic Devices and Circuits

ES154 - Lecture 7 - MOSFETsWei 19

Carrier Velocity

• Charge is carried by e-

• Carrier velocity v is proportional to the lateral E-field between source and drain

• Time for carriers to cross the channel is

Page 117: Electronic Devices and Circuits

ES154 - Lecture 7 - MOSFETsWei 20

nMOS Linear I-V

• Combine the channel charge and velocity to find the current flow– Current = amount of charge in the channel / time it takes the

carriers to get across the channel

Page 118: Electronic Devices and Circuits

ES154 - Lecture 7 - MOSFETsWei 21

nMOS Saturation I-V

• If Vgd < Vt, channel pinches off near the drain– When Vds > Vdsat = Vgs – Vt

• Now, drain voltage no longer increases current and current saturates (Idsat)

Page 119: Electronic Devices and Circuits

ES154 - Lecture 7 - MOSFETsWei 22

Device Operation Review

• No gate voltage (vGS = 0)– Two back to back diodes both in reverse bias – no current flow between source and drain when voltage

between source and drain is applied (vDS >0)– There is a depletion region between the p (substrate)

and n+ source and drain regions• Apply a voltage on vGS > 0

– Positive potential on gate node pushes free holes away from the region underneath the gate and leave behind a negatively charged carrier depletion region

• transistor in depletion mode– As vGS increases, electrons start to gather at the surface

underneath the gate (onset of inversion)– When vGS is high enough, a n-type channel is induced

underneath the gate oxide where there are more electrons than holes (strong inversion)

• This induced region is called an inversion layer (or channel) and forms when vGS > some threshold voltage Vt and current can flow between S & D

• Transistor is in inversion mode

• When vDS = 0, no current flows between source and drain

Page 120: Electronic Devices and Circuits

ES154 - Lecture 7 - MOSFETsWei 23

Linear Operation

• With vGS large enough to induce a channel, apply a small potential vDS– Causes current to flow between source and drain (electrons flow from source to drain)– Magnitude of iD depends on density of electrons in channel which depends on vGS

(larger vGS = higher density of electrons)– Conductance of channel is proportional to vGS-Vt (called excess gate voltage or

effective voltage or gate overdrive)– Current is proportional to vGS-Vt and vDS that causes current to flow – i-v curve shows the transistor operates like a voltage-controlled linear resistor

• Notice iD = iS and iG = 0 due to the gate oxide

iD

vDS (small)

vGS <= Vt

vGS = Vt + V

vGS = Vt + 2 V

vGS = Vt + 3 V

Page 121: Electronic Devices and Circuits

ES154 - Lecture 7 - MOSFETsWei 24

Triode to Saturation Region

• Assume vGS is at a constant value > Vt and increase vDS– vDS appears as a voltage drop across the channel and at different points along the

channel, the voltage is different– Voltages between the gate and points along the channel are also different ranging from

vGS at the source to vGS-vDS at the drain• Induced channel is a function of voltage across the oxide at the different points and so channel

depth varies across the length of the transistor– i-v curve bends over as vDS increases due to the smaller channel depth – At vDS = vGS-Vt channel depth is almost zero at the drain side

• Current stays flat for higher voltages vDS > vGS-Vt• The transistor is said to now operate in the saturation region (not to be confused with the

saturation region in BJTs)

Page 122: Electronic Devices and Circuits

ES154 - Lecture 7 - MOSFETsWei 25

Saturation Region

• As vDS increases, the channel gets smaller and smaller on the drain side until vDS = vGS – Vtat which point the channel is said to be pinched off

– Increasing vDS beyond this point as little (ideally no) effect on the channel shape– Current remains constant and said to saturate– Transistor enters saturation at vDSsat = vGS – Vt

vDSchannelsource drain

vDS = 0

vDS >= vGS - Vt

Page 123: Electronic Devices and Circuits

ES154 - Lecture 7 - MOSFETsWei 26

Deriving the iD-vDS Relationship

• First consider the linear (triode) region of operation vDS < vGS - Vt (vGS > Vt is assumed)– Consider a point along the channel of infinitesimal width dx at x and voltage v(x)– The electron charge at this point is:

where Cox is the parallel-plate cap formed by the gate electrode and the channel

– vDS produces as electric field along the channel (in the negative x direction)

Page 124: Electronic Devices and Circuits

ES154 - Lecture 7 - MOSFETsWei 27

• The electric field causes electron charge dq(x) to drift with a velocity dx/dt

– Where µn is the electron mobility in the channel– Current is the movement of charge and so…

• Rearrange the equation and integrate along the length of the channel

– Gives the current in the linear (triode) region:

– When vDS=vGS-Vt, we get the saturation current equation

Page 125: Electronic Devices and Circuits

ES154 - Lecture 7 - MOSFETsWei 28

nMOS I-V Summary

• Shockley 1st order model of transistors

– Cutoff

– Linear

– Saturation

Page 126: Electronic Devices and Circuits

ES154 - Lecture 7 - MOSFETsWei 29

+ Ideal Quadratic nMOS i-V

Vds

ids

Vg = 1.0V

Vg = 1.5V

Vg = 2.0V

Vg = 2.5V

saturation starts

linear saturation

Page 127: Electronic Devices and Circuits

ES154 - Lecture 7 - MOSFETsWei 30

nMOS and pMOS

• We’ve just seen how current flows in nMOS devices. A complementary version of the nMOS device is a pMOS shown above

– pMOS operation and current equations are the same except current is due to drift of holes

– The mobility of holes (µp) is lower than the mobility of electrons (µn) – Current is lower in pMOS devices given the same dimension and voltages.

Page 128: Electronic Devices and Circuits

ES154 - Lecture 7 - MOSFETsWei 31

Circuit Symbols

• We represent MOSFETs with the following symbols– The book specifies nMOS vs. pMOS with arrows (direction of current flow)– I will use bubbles b/c they are easier to distinguish quickly

• a digital circuit designer’s way of drawing symbols• These are symmetric devices and so drain and source can be used

interchangeably

nMOS or nFET pMOS or pFET

Page 129: Electronic Devices and Circuits

ES154 - Lecture 7 - MOSFETsWei 32

i-v Characteristics

• For small values of vDS, vDS2 is small and so near the origin, we can approximate

the transistor as a linear resistor

Page 130: Electronic Devices and Circuits

ES154 - Lecture 7 - MOSFETsWei 33

• We can get a relationship between iD and vGSwhen the transistor is in saturation

– Let vGS-Vt = VDS

• MOS vs. BJT– Current is quadratic with voltage in MOS vs.

exponential relationship in BJT

Page 131: Electronic Devices and Circuits

ES154 - Lecture 7 - MOSFETsWei 34

Some Non-Ideal Characteristics

• Channel-length modulation• Body effect• Velocity saturation

Page 132: Electronic Devices and Circuits

ES154 - Lecture 7 - MOSFETsWei 35

Channel-Length Modulation

• Like the Early effect in BJTs, there is an effect in MOSFETs that causes drain current to vary with vDS in saturation (finite output resistance)

• As vDS increases beyond vDSsat, the pinch off point moves away from the drain by ∆L and has the effect of changing the effective channel length in the transistor

– Account for this effect with a (1+λvDS) term in the saturation current equation

Page 133: Electronic Devices and Circuits

ES154 - Lecture 7 - MOSFETsWei 36

• Channel-length modulation makes the output resistance in saturation finite

Page 134: Electronic Devices and Circuits

ES154 - Lecture 7 - MOSFETsWei 37

Body Effect

• So far, we have been ignoring the substrate (or bulk or body) of the transistor and assumed that is it tied to the source. However, we cannot always make that assumption.

– In integrated circuits, the body is common to many MOS transistors and is connected to the most negative (positive) supply for nMOS (pMOS) transistors.

• The resulting reverse-bias voltage between the source and substrate affects device operation.

– Reverse bias will widen the depletion region and reduces channel depth – which can be modeled as changing the threshold voltage

where Vth0 is the threshold voltage when VSB=0, φf is a physical parameter, γ is a fabrication-process parameter…

γ is typically 0.5-V1/2

• As VSB increases, Vt increases which affects the transistor’s i-v characteristics

Page 135: Electronic Devices and Circuits

ES154 - Lecture 7 - MOSFETsWei 38

Temperature Effects

• Vt and mobility µn,p are sensitive to temperature– Vt decreases by 2-mV for every 1ºC rise in temperature– mobility µn,p decreases with temperature

• Overall, increase in temperature results in lower drain currents

Page 136: Electronic Devices and Circuits

ES154 - Lecture 7 - MOSFETsWei 39

Velocity Saturation

• So far, the saturation current equation is quadratic with overdrive voltage (vGS-Vth) and said to obey the “square law” which is valid for long channel length (>1-µm) devices

• As transistor dimensions decrease, gate oxide gets thinner and there is a higher vertical and horizontal electrical field that the electrons moving through the channel experience

– Causes electrons to bounce up to the oxide (more scattering) and saturates the velocity at which current flows across the channel

– Can approximate the effect of velocity saturation with the following power-law equation for saturation current

α ranges from 1 to 2 depending on process technology (transistor length)– This approximation is not rigorous, but convenient to use. More accurate

models of the velocity saturation equation can be found in more advanced courses that cover MOS devices and circuits

Page 137: Electronic Devices and Circuits

ES154 - Lecture 7 - MOSFETsWei 40

Real nMOS i-V Curve

• i-v curves of nMOS transistor in 0.5-µm CMOS technology

• W = 2.5-µm, L = 0.6-µm

Page 138: Electronic Devices and Circuits

ES154 - Lecture 7 - MOSFETsWei 41

Depletion-type MOSFETs

• Depletion-type MOSFETs have a channel with zero vGS (symbol is drawn with channel)

– must apply negative vGS to “turn off” device– Can be used as resistor loads (will see later)

Page 139: Electronic Devices and Circuits

ES154 - Lecture 7 - MOSFETsWei 42

MOSFET at DC Example

• Current Mirror– What is vGS?– How is ID related to ISRC?– What is ID vs. VD?

VD

IDISRC

vGS

Page 140: Electronic Devices and Circuits

ES154 - Lecture 7 - MOSFETsWei 43

MOSFET Amplifier

• The MOSFET can be configured to operate as an amplifier. One of the simplest amplifier configurations one can build with a MOSFET is a common-source amplifier.

• Requirements for proper operation– MOSFET must operate in saturation

• Depends on RD and voltage biasing VGS

Page 141: Electronic Devices and Circuits

ES154 - Lecture 7 - MOSFETsWei 44

Load Line

• Use a load line to see the operating point of the transistor w.r.t. RD and VGS

Page 142: Electronic Devices and Circuits

ES154 - Lecture 7 - MOSFETsWei 45

DC Biasing

• There are many ways to bias the CS nMOS Amp. Here are two ways…

• What is VIN (or VGS) for the circuit on the right?• What is the cap for?

Page 143: Electronic Devices and Circuits

ES154 - Lecture 7 - MOSFETsWei 46

DC Bias

• First bias MOSFET in saturation region (equivalent to active region in BJTs) to operate as an amplifier

– set vgs = 0 and find ID (for now, assume λ=0)

– To be in saturation,

– Apply a small signal, vgs, to the gate

Page 144: Electronic Devices and Circuits

ES154 - Lecture 7 - MOSFETsWei 47

• Three components of iD

– First term = DC current– Second term = current proportional to vgs

– Third term = undesired nonlinear distortion• Make vgs small to reduce effect of third term

– This is the small-signal condition and let’s us use the following approximation

– and we can relate id to vgs with a transconductance

Page 145: Electronic Devices and Circuits

ES154 - Lecture 7 - MOSFETsWei 48

• Small-Signal Voltage Gain (vd/vgs)

– This gain equation hold for small signals– Notice that the output is 180° out of phase w.r.t. the input

• Again, we can separate out the DC bias conditions and the small-signal operation of the circuit

– Look at the small-signal equivalent circuit for a MOSFET biased in the saturation region

Page 146: Electronic Devices and Circuits

ES154 - Lecture 7 - MOSFETsWei 49

Small-Signal Equivalent Circuit

• A MOSFET operates like voltage controlled current source (for small signals)

– Like the Early effect in the BJT, channel length modulation results in an output resistance, ro

– where VA = 1/λ• When using small-signal equivalent circuits, all DC sources are set to 0 since

they do not change

Page 147: Electronic Devices and Circuits

ES154 - Lecture 7 - MOSFETsWei 50

Transconductance

• Let’s take a closer look at transconductance, gm

• Depends on – process technology – µnCox

– physical geometry – W/L • make short and wide for high gm

– DC bias – VGS

• making VGS large increases gm, but can limit voltage range on drain

• Another way to write gm …

– gm is proportional to the square root of the DC bias current

Page 148: Electronic Devices and Circuits

ES154 - Lecture 7 - MOSFETsWei 51

T-Model

• Sometimes easier to analyze circuits using a different model• T-Model and π-Model are equivalent circuits

– Resistance looking into the source is 1/gm

– Resistance looking into G is still ∞ since ig=0

T-Model π-Model

Page 149: Electronic Devices and Circuits

ES154 - Lecture 7 - MOSFETsWei 52

Body Effect

• Body Effect– We saw that the substrate bias VBS affects Vt which has the effect

of influencing current like another gate

vgs vbs

gmvgs gmbvbs

G

S

D

B

ro

Page 150: Electronic Devices and Circuits

ES154 - Lecture 7 - MOSFETsWei 53

Example 1: CS Amp with Resistor Biasing

• Let’s look at another CS amplifier example…– What does the mid-band small-signal

equivalent circuit look like?– What is vbs?– What is Rin seen by the source?– What is Rout?

vin

VDD

RDR1

R2

vDSRs

Rs

vin R1||R2 vgs

gmvgs

vds

gmbvbs

ro RD

Page 151: Electronic Devices and Circuits

ES154 - Lecture 7 - MOSFETsWei 54

Example 1 cont’d

• Use the small-signal equivalent circuit to figure out small-signal gain, Rin and Rout

Page 152: Electronic Devices and Circuits

ES154 - Lecture 7 - MOSFETsWei 55

In Pursuit of More Gain

• How can we make the gain bigger?– Can we arbitrarily increase RD?

– Would like to make the load line shallow and shifted up

Page 153: Electronic Devices and Circuits

ES154 - Lecture 7 - MOSFETsWei 56

Example 2: Common-Source Amplifier w/ Active Load

• Active load – uses current source instead of load resistor

– Biasing so that Q2 in saturation and its output resistance is the effective resistor load for Q1

• Combine the I-V curves

Page 154: Electronic Devices and Circuits

ES154 - Lecture 7 - MOSFETsWei 57

• Look at the Voltage Transfer Characteristics (VTC) of the circuit– Operates like a high-gain amplifier (steep slope) in region III

Page 155: Electronic Devices and Circuits

ES154 - Lecture 7 - MOSFETsWei 58

• CS Amplifier low-frequency small-signal model

• What is the voltage gain?

vgs

gmvgsro1 ro2 vovi

Output Resistance ofCurrent Source

• What are Rin and Rout?

Page 156: Electronic Devices and Circuits

Wei 59

Supplemental Slides on MOS Transistors from CS148

Page 157: Electronic Devices and Circuits

ES154 - Lecture 7 - MOSFETsWei 60

Fabricating CMOS Transistors

• CMOS transistors are fabricated on a silicon wafer• Lithography process similar to printing press• On each step, different materials are deposited and etched

– Multiple steps per layer drawn in layout• Understand by viewing both top and cross section of wafer in a

simplified manufacturing process

Page 158: Electronic Devices and Circuits

ES154 - Lecture 7 - MOSFETsWei 61

Inverter Cross Section

• Typically use p-type substrate (wafer) where nMOS transistors are drawn

• Need to create n-well for body of pMOS transistors

Page 159: Electronic Devices and Circuits

ES154 - Lecture 7 - MOSFETsWei 62

Well and Substrate Taps

• Substrate (p-type) must be tied to Gnd and nwell tied to Vdd• Metal to lightly-doped semiconductor forms a poor contact connection

(Shottky Diode)• Use heavily doped well and substrate contacts (taps)

Page 160: Electronic Devices and Circuits

ES154 - Lecture 7 - MOSFETsWei 63

Inverter Mask Set

• Transistors and wires are defined by masks• Cross section taken along dashed line

Page 161: Electronic Devices and Circuits

ES154 - Lecture 7 - MOSFETsWei 64

Detailed Mask Views

• Six masks– nwell

– polysilicon (gate)

– n+ diffusion

– p+ diffusion– contact

– metal

Page 162: Electronic Devices and Circuits

ES154 - Lecture 7 - MOSFETsWei 65

Fabrication Steps

• Start with blank wafer• Build inverter from bottom up• First step will be form the nwell

– Cover wafer with protective layer of SiO2 (oxide)– Remove layer where nwell should be– Implant or diffuse n dopants into exposed portion of wafer– Strip off SiO2

• Grow SiO2 on top of Si wafer– 900-1200 C with H2O or O2 in oxidation furnace

Page 163: Electronic Devices and Circuits

ES154 - Lecture 7 - MOSFETsWei 66

Photoresist

• Spin on photoresist– Photoresist is a light-sensitive organic polymer– Softens where exposed to light

Page 164: Electronic Devices and Circuits

ES154 - Lecture 7 - MOSFETsWei 67

Lithography

• Expose photoresist through nwell mask• Strip off exposed photoresist

Page 165: Electronic Devices and Circuits

ES154 - Lecture 7 - MOSFETsWei 68

Etch

• Etch oxide with hydrofluoric acid (HF)– Seeps through skin and eats bone… not something you want to

have around in your bathroom– Only attacks oxide where photoresist has been exposed

Page 166: Electronic Devices and Circuits

ES154 - Lecture 7 - MOSFETsWei 69

Strip Photoresist

• Strip off remaining photoresist– Use mixture of acids called piranah etch

• Needed so that resist doesn’t melt in next step

Page 167: Electronic Devices and Circuits

ES154 - Lecture 7 - MOSFETsWei 70

nwell

• Nwell is formed with diffusion or ion implantation• Diffusion

– Place wafer in a furnace with arsenic gas– Heat until As atoms diffuse into exposed Si

• Ion implantation– Blast wafer with beams of As ions– Ions blocked by SiO2, only enter where Si exposed

Page 168: Electronic Devices and Circuits

ES154 - Lecture 7 - MOSFETsWei 71

Strip Oxide

• Strip off the remaining oxide with HF• Back to bare wafer with nwell• Subsequent steps involve similar series of steps

Page 169: Electronic Devices and Circuits

ES154 - Lecture 7 - MOSFETsWei 72

Polysilicon

• Depost very thin later of gate oxide– < 20 angstoms (6-7 atomic layers)

• Chemical vapor deposition (CVD) of silicon layer– Place wafer in furnace with Silane gas (SiH4)– Forms many small Si crystals called polysilicon– Heavily doped to be a good conductor

Page 170: Electronic Devices and Circuits

ES154 - Lecture 7 - MOSFETsWei 73

Polysilicon patterning

• Use same lithography process to pattern polysilicon

Page 171: Electronic Devices and Circuits

ES154 - Lecture 7 - MOSFETsWei 74

Self-Aligned Process

• Use oxide and masking to expose where n+ dopants should be diffused or implanted

• N-diffusion forms nMOS source, drain, and nwell contact

Page 172: Electronic Devices and Circuits

ES154 - Lecture 7 - MOSFETsWei 75

N-diffusion

• Pattern oxide and form n+ regions• Self-aligned process where gate blocks diffusion• Polysilicon is better than metal for self-aligned gates b/c it doesn’t melt

during later processing

Page 173: Electronic Devices and Circuits

ES154 - Lecture 7 - MOSFETsWei 76

N-diffusion cont’d

• Historically, dopants were diffused• Usually ion implantation is used today• But regions still called diffusion

Page 174: Electronic Devices and Circuits

ES154 - Lecture 7 - MOSFETsWei 77

N-diffusion cont’d

• Strip off oxide to complete patterning step

Page 175: Electronic Devices and Circuits

ES154 - Lecture 7 - MOSFETsWei 78

P-Diffusion

• Similar set of steps to form p+ diffusion regions for pMOS source and drain and substrate contact

Page 176: Electronic Devices and Circuits

ES154 - Lecture 7 - MOSFETsWei 79

Contacts

• Now we need to wire the devices together• Cover chip with thick field oxide• Etch oxide where contact cuts are needed

Page 177: Electronic Devices and Circuits

ES154 - Lecture 7 - MOSFETsWei 80

Metalization

• Sputter on aluminum over entire wafer• Patter to remove excess metal, leaving wires

Page 178: Electronic Devices and Circuits

ES154 - Lecture 7 - MOSFETsWei 81

Layout

• Chips are specified with set of masks• Minimum dimensions of masks determine transistor size (and

hence speed, cost, and power)• Feature size f = distance between source and drain

– Set by minimum width of polysilicon (minimum channel length)

• Feature size improves 30% every three years or so• Normalize for feature size when describing design rules• Express rules in terms of λ = f/2

– We will use \lambda = 0.3µm in 0.6 µm process (actually a 0.5 µm process but drawn as 0.6 µm)

• Next time: Learn SUE and Magic to draw your own layouts!

Page 179: Electronic Devices and Circuits

Wei 1

Lecture 8

Single-Stage MOS Amplifiersand High-Frequency Model of MOSFETs

Gu-Yeon WeiDivision of Engineering and Applied Sciences

Harvard [email protected]

Page 180: Electronic Devices and Circuits

ES154 - Lecture 8Wei 2

Overview

• Reading– Chapter 6

• Background– So far, we have gotten a basic understanding of how MOSFET

devices work. We’ve also seen how to build one type of amplifier, a common-source amplifier, using the MOSFET. There are two other single-stage amplifier topologies that we can build with MOSFETs –common-drain and common-gate amplifiers. This lecture presents these two amplifier topologies. We will dig into the details of how they work and understand how and why they may be useful.We will then extend our understanding of amplifier design by augmenting the small-signal equivalent circuit model of a MOSFETs with parasitic capactiors and looking at their high-frequency behavior.

Page 181: Electronic Devices and Circuits

ES154 - Lecture 8Wei 3

Single-Stage Amplifier Configurations

• There are three basic configurations for single-stage MOSFET amplifiers:– Common-Source (CS)

• We saw this in the last lecture– Common-Gate (CG)– Common-Drain (CD)

• Also called a source follower• Let’s look at these amplifier configurations and their small-signal

operation

Page 182: Electronic Devices and Circuits

ES154 - Lecture 8Wei 4

Common-Source Amplifier

• Another way to bias the CS amp (using discrete transistors)– ISRC sets the gm of the transistor,

assuming that device is in saturation for R1,R2 and R3 used

– What are VG, VS, and VD?

– Cbig is needed to make sure source node is a small-signal gnd

DD

in

1

2

OUT

SRC

L

big

Page 183: Electronic Devices and Circuits

ES154 - Lecture 8Wei 5

CS Amp Small-Signal Model

• If nMOS is in saturation, the resulting small-signal model is the same as before…

– Source is grounded (small-signal) through Cbig

in

m gs

D o outgs

1 2

Page 184: Electronic Devices and Circuits

ES154 - Lecture 8Wei 6

Common-Drain Amplifier

• What is VGS? VOUT?– Assuming the nMOS is in saturation…

DD

inL

1

2

OUT

• Source-Follower or CD Amp– Drain node is common (DC)– Input: gate node

• Needs DC biasing. What determines whether nMOS is in saturation?

– Output: source node

Page 185: Electronic Devices and Circuits

ES154 - Lecture 8Wei 7

CD Amp Small-Signal Model

in 1 2

L

m gs mb bs

o

bs

in L o

m gs mb s

gs

gs

out

Page 186: Electronic Devices and Circuits

ES154 - Lecture 8Wei 8

Source Follower Gain

• Solve for the gain using KCL

– If RL and ro are large and gmb is small, gain ≈ 1

in L o

m gs mb s

gs

out

Page 187: Electronic Devices and Circuits

ES154 - Lecture 8Wei 9

Source Follower Rout

• Zero out the input and apply a test voltage

• Source follower has low output impedance– Set by 1/gm– Good for driving low-impedance loads

Page 188: Electronic Devices and Circuits

ES154 - Lecture 8Wei 10

Source Follower Example

• Instead of a resistor load, source followers are often biased with a current source– What is VGS?

– What is VOUT?

Page 189: Electronic Devices and Circuits

ES154 - Lecture 8Wei 11

Example Cont’d

in o

m gs mb s

gs

out

• Current source becomes an open circuit…

• What is gm?

Page 190: Electronic Devices and Circuits

ES154 - Lecture 8Wei 12

Common-Gate Amplifier

• CG Amp– Gate is common (held at DC)– Input: source node (often a current)– Output: drain node

• DC biasing– nMOS must be in saturation– VGS = VBIAS – VIN

IN

BIAS

L

OUT

Page 191: Electronic Devices and Circuits

ES154 - Lecture 8Wei 13

CG Small-Signal Gain

• Notice that vgs = -vs and vin = vs

vin

ro

gmvgs

G

S

Dgmbvs

vgs

vout

RL

iin

Page 192: Electronic Devices and Circuits

ES154 - Lecture 8Wei 14

CG Small-Signal Transimpedance

• What if the input is a current, iin?

• Figure out the input resistance, vin/iin– Let’s assume that ro is large enough to ignore

vin

ro

gmvgs

G

S

Dgmbvs

vgs

vout

RL

iin

Page 193: Electronic Devices and Circuits

ES154 - Lecture 8Wei 15

CG Small-Signal Output Impedance

• What is the output impedance?

o

gmvgs = 0 gmbvs = 0

gs L

Page 194: Electronic Devices and Circuits

ES154 - Lecture 8Wei 16

Common-Gate Amplifier

• Let’s use a current source load again • Bias the gate with a DC voltage and drive

the source– Small signal into the gate is

effectively grounded– Need to consider body effect

• What sets the DC bias conditions?

Page 195: Electronic Devices and Circuits

ES154 - Lecture 8Wei 17

• Small-signal model needs to include body effect• Node equation at the output vo can be written to

calculate the voltage gain

• To find the input resistance…

– Input resistance increases ~2x due to ro

Page 196: Electronic Devices and Circuits

ES154 - Lecture 8Wei 18

Common-Gate Amp Summary

• Basic characteristics– High voltage gain– Transimpedance set by load– Low input impedance– Output impedance set by load

• Often used as a transimpedance amp in combination with a common-source amp… called a cascode configuration– Cascode configuration enables higher gain and BW

Page 197: Electronic Devices and Circuits

ES154 - Lecture 8Wei 19

Cascode Amp Example

• Combine CS and CG amps

• Let’s take a look at the small-signal model

DD

in

1

2

OUT

3

big

CS Amp

CG Amp

ix

D

M1

M2

Page 198: Electronic Devices and Circuits

ES154 - Lecture 8Wei 20

Cascode Amp Small-Signal Model

vin

gm1vgs1

ro1vgs1

R2||R3

G1 D1

S1

gm2vgs2

D2

voutro2

gmb2vbs2

S2

vgs2

G2

RD

ix

vx

Page 199: Electronic Devices and Circuits

ES154 - Lecture 8Wei 21

MOSFET at High Frequencies

• So far, we’ve been looking at MOSFET operating in the midband frequency range

• Let’s augment our understanding of the MOSFET by taking a look at what parasitic capacitances there are in the device

Page 200: Electronic Devices and Circuits

ES154 - Lecture 8Wei 22

MOSFET Internal Capacitances

• From our study of the physical operation of MOSFETs, we can see that there are internal capacitances

– Gate capacitance• from gate oxide (parallel plate and fringing capacitors)• Cgs, Cgd, Cgb

– Junction capacitances• from source-body and drain-body depletion layer capacitances (reverse biased

PN junctions)• Csb, Cdb

Page 201: Electronic Devices and Circuits

ES154 - Lecture 8Wei 23

MOS Gate Cap

• The three gate capacitances (Cgs, Cgd, Cgb) depend on the transistor’s mode (region) of operation

– In triode (linear) region (vDS = small), channel has uniform depth

– In saturation region, channel is tapered and pinched off near the drain. We can approximate the capacitances as follows:

– In cut off, no channel but model capacitance between bulk and gate

– There is also an overlap capacitance that should be added to Cgs and Cgd

Page 202: Electronic Devices and Circuits

ES154 - Lecture 8Wei 24

MOS Junction Cap

• The depletion-layer capacitances of the two reverse-biased pnjunctions are governed by the following equation:

– where V0 is the built-in potential of the pn junctions (approx. 0.6~0.8V, a function of the NA and ND doping concentrations)

Page 203: Electronic Devices and Circuits

ES154 - Lecture 8Wei 25

MOSFET High-Frequency Model

gs

gd db

sb

ds

gb

Page 204: Electronic Devices and Circuits

ES154 - Lecture 8Wei 26

High-Frequency Small-Signal Model

• We must augment our (low-frequency) small-signal model of the MOS transistor with these capacitors in order to accurately model its operation at high frequencies

– when source is connected to the body, model is simplified (remove Csb)– in saturation, Cgb ≅ 0– further simplify model by removing Cdb for hand calculations

complete simplified

Page 205: Electronic Devices and Circuits

ES154 - Lecture 8Wei 27

Aside – MOSFET fT

• We can find the fT as a figure of merit for the transistor’s high-frequency operation (unity current gain frequency)

– Solve for the short circuit output current w.r.t. an input current

assumes Cgd is small and drops out in above eq.

– note that fT is a function of gm

Page 206: Electronic Devices and Circuits

ES154 - Lecture 8Wei 28

High-Frequency Response of CS Amp

• Let’s see how the parasitic capacitances affect circuit operation– First, redraw using a high-frequency small-signal model for the nMOS

• Notice that there is a capacitor bridging the input and output• There are several ways to deal with this capacitor

– Miller’s Theorem– Brute force it– Open-Circuit Time Constant Method (We will see this later)

• Let’s use Miller’s Theorem…

Page 207: Electronic Devices and Circuits

ES154 - Lecture 8Wei 29

Miller’s Theorem

• Consider the circuit network below on the right with two nodes, 1 and 2. An admittance Y (Y=1/Z) is connected between the two nodes and these nodes are also connected to other nodes in the network. Miller’s theorem provides a way for replacing the “bridging” admittance Y with two admittances Y1 and Y2 between node 1 and gnd, and node 2 and gnd.

– The relationship between V2 and V1 is given by K=V2/V1

– To find Y1 and Y2

Y

V1 V2 Y1V1 V2Y2

I1 I2 I1 I21 21 2

Caveat:

The Miller equivalent circuit is valid only as long as the conditions that existed in the network when K was determined are not changed.

Page 208: Electronic Devices and Circuits

ES154 - Lecture 8Wei 30

Using Miller’s Theorem on CS Amplifier

• Redraw the high-frequency small-signal model using Miller’s theorem

– Miller multiplication of Cgd results in a large input capacitance CT

– CT usually the dominant pole• We will spend more time on high-frequency response of amplifiers later

Rs

Cgd(1+gmRL')

Cgs

gmvgs

vgs RL' vovi

Cgd[1+1/(gmRL')]~= Cgd

CT

Page 209: Electronic Devices and Circuits

Wei 1

Lecture 9

Bipolar Junction Transistors (BJTs)

Gu-Yeon WeiDivision of Engineering and Applied Sciences

Harvard [email protected]

Page 210: Electronic Devices and Circuits

ES154 - Lecture 9Wei 2

Overview

• Reading– Chapter 7

• Supplemental Reading– Sedra&Smith: Chapter 4.1~3

• Background– This lecture looks at another type of transistor called the bipolar

junction transistor (BJT). We will spend some time understandinghow the BJT works based on what we know about PN junctions. One way to look at a BJT transistor is two back-to-back diodes, but it has very different characteristics.Once we understand how the BJT device operates, we will take a look at the different circuits (amplifiers) we can build with them.

Page 211: Electronic Devices and Circuits

ES154 - Lecture 9Wei 3

Bipolar Junction Transistor

• NPN BJT shown• 3 terminals: emitter, base, and collector• 2 junctions: emitter-base junction (EBJ) and collector-base junction (CBJ)

– These junctions have capacitance (high-frequency model)• Depending on the biasing across each of the junctions, different modes of

operation are obtained – cutoff, active, and saturation

ForwardForwardSaturation

ReverseForwardActive

ReverseReverseCutoff

CBJEBJMODE

Page 212: Electronic Devices and Circuits

ES154 - Lecture 9Wei 4

BJT in Active Mode

• Two external voltage sources set the bias conditions for active mode– EBJ is forward biased and CBJ is reverse biased

• Operation– Forward bias of EBJ injects electrons from emitter into base (small number

of holes injected from base into emitter)– Most electrons shoot through the base into the collector across the reverse

bias junction (think about band diagram)– Some electrons recombine with majority carrier in (P-type) base region

Page 213: Electronic Devices and Circuits

ES154 - Lecture 9Wei 5

Band Diagrams (1)

• In equilibrium– No current flow– Back-to-back PN diodes

c

v

f

Page 214: Electronic Devices and Circuits

ES154 - Lecture 9Wei 6

Band Diagrams (2)

Active Mode• EBJ forward biased

– Barrier reduced and so electrons diffuse into the base

– Electrons get swept across the base into the collector

• CBJ reverse biased– Electrons roll down

the hill (high E-field)

Ec

Ev

Ef

Emitter Base Collector

N P N

Page 215: Electronic Devices and Circuits

ES154 - Lecture 9Wei 7

Minority Carrier Concentration Profiles

• Current dominated by electrons from emitter to base (by design) b/c of the forward bias and minority carrier concentration gradient (diffusion) through the base

– some recombination causes bowing of electron concentration (in the base)– base is designed to be fairly short (minimize recombination)– emitter is heavily (sometimes degenerately) doped and base is lightly doped

• Drift currents are usually small and neglected

Page 216: Electronic Devices and Circuits

ES154 - Lecture 9Wei 8

Diffusion Current Through the Base

• Diffusion of electrons through the base is set by concentration profile at the EBJ

• Diffusion current of electrons through the base is (assuming an ideal straight line case):

• Due to recombination in the base, the current at the EBJ and current at the CBJ are not equal and differ by a base current

Page 217: Electronic Devices and Circuits

ES154 - Lecture 9Wei 9

Collector Current

• Electrons that diffuse across the base to the CBJ junction are swept across the CBJ depletion region to the collector b/c of the higher potential applied to the collector.

• Note that iC is independent of vCB (potential bias across CBJ) ideally• Saturation current is

– inversely proportional to W and directly proportional to AE• Want short base and large emitter area for high currents

– dependent on temperature due to ni2 term

Page 218: Electronic Devices and Circuits

ES154 - Lecture 9Wei 10

Base Current

• Base current iB composed of two components:– holes injected from the base region into the emitter region

– holes supplied due to recombination in the base with diffusing electrons and depends on minority carrier lifetime τb in the base

And the Q in the base is

So, current is

• Total base current is

Page 219: Electronic Devices and Circuits

ES154 - Lecture 9Wei 11

Beta

• Can relate iB and iC by the following equation

and β is

– Beta is constant for a particular transistor– On the order of 100-200 in modern devices (but can be higher)– Called the common-emitter current gain

• For high current gain, want small W, low NA, high ND

Page 220: Electronic Devices and Circuits

ES154 - Lecture 9Wei 12

Emitter Current

• Emitter current is the sum of iC and iB

α is called the common-base current gain

Page 221: Electronic Devices and Circuits

ES154 - Lecture 9Wei 13

BJT Equivalent Circuits

Page 222: Electronic Devices and Circuits

ES154 - Lecture 9Wei 14

Vertical BJT

• BJTs are usually constructed vertically– Controlling depth of the emitter’s n doping sets the base width

Page 223: Electronic Devices and Circuits

ES154 - Lecture 9Wei 15

Circuit Symbols and Conventions

• BJTs are not symmetric devices– doping and physical dimensions are different for emitter and

collector

npn pnp

IC

IE IC

IEIB IB

Page 224: Electronic Devices and Circuits

ES154 - Lecture 9Wei 16

I-V Characteristics

• Collector current vs. vCB shows the BJT looks like a current source (ideally)– Plot only shows values where BCJ is reverse biased and so

BJT in active region• However, real BJTs have non-ideal effects

VCE

IC

VBE1

VBE2

VBE3

VBE3 > VBE2 > VBE1

VBE

IC

VCE

Page 225: Electronic Devices and Circuits

ES154 - Lecture 9Wei 17

Early Effect

• Early Effect– Current in active region depends (slightly) on vCE– VA is a parameter for the BJT (50 to 100) and called the Early voltage– Due to a decrease in effective base width W as reverse bias increases– Account for Early effect with additional term in collector current equation– Nonzero slope means the output resistance is NOT infinite, but…

• IC is collector current at the boundary of active region

C

Ao I

Vr ≅

VCE

VBE1

VBE2

VBE3Active regionSaturation region

-VA

Page 226: Electronic Devices and Circuits

ES154 - Lecture 9Wei 18

Early Effect Cont’d

• What causes the Early Effect?– Increasing VCB causes depletion region of CBJ to grow and so the

effective base width decreases (base-width modulation)– Shorter effective base width higher dn/dx

EBJ CBJ

dn/dxVCB > VCB

Wbase

Page 227: Electronic Devices and Circuits

ES154 - Lecture 9Wei 19

BJT DC Analysis

• Use a simple constant-VBE model– Assume VBE = 0.7-V regardless of exact current value

• reasonable b/c of exponential relationship• Make sure the BJT current equations and region of operation match

– So far, we only have equations for the active region• Utilize the relationships (β and α) between collector, base, and emitter currents

to solve for all currents

Page 228: Electronic Devices and Circuits

ES154 - Lecture 9Wei 20

BJT Amplifier

• To operate as an amplifier, the BJT must be biased to operate in active mode and then superimpose a small voltage signal vbe to the base

• Under DC conditions,

DC DC + small signal

Page 229: Electronic Devices and Circuits

ES154 - Lecture 9Wei 21

• The DC condition biases the BJT to the point Q on the plot.

• Adding a small voltage signal vbe translates into a current signal that we can write as

• If vbe << VT

• The collector current has two components: ICand ic and we can rewrite the small signal current as

– gm is the transconductance and corresponds to the slope at Q

– For small enough signals, approximate exponential curve with a linear line

Page 230: Electronic Devices and Circuits

ES154 - Lecture 9Wei 22

Small-Signal Model

• We can model the BJT as a voltage controlled current source, but we must also account for the base current that varies with vbe

– so, the small-signal resistance looking into the base is denoted by rπ and defined as

– looking into the emitter, we get an effective small-signal resistance between base and emitter, re

Page 231: Electronic Devices and Circuits

ES154 - Lecture 9Wei 23

• To convert the voltage-controlled current source into a circuit that provides voltage gain, we connect a resistor to the collector and measure the voltage drop across it

• So, the small-signal voltage gain is

– Remember that gm depends on IC

• We can create an equivalent circuit to model the transistor for small signals– Note that this only applies for small signals (vbe < VT)

Page 232: Electronic Devices and Circuits

ES154 - Lecture 9Wei 24

Hybrid-π Model

• We can represent the small-signal model for the transistor as a voltage-controlled current source or a current-controlled current source

• Add a resistor (ro) in parallel with the dependent current source to model the Early effect– From our previous example,

Page 233: Electronic Devices and Circuits

ES154 - Lecture 9Wei 25

T Model

• Sometimes, other small signal models can more convenient to use

Page 234: Electronic Devices and Circuits

ES154 - Lecture 9Wei 26

Using Small-Signal Models

• Steps for using small-signal models1. Determine the DC operating point of the BJT

• in particular, the collector current2. Calculate small-signal model parameters: gm, rπ, re

3. Eliminate DC sources – replace voltage sources with shorts and current sources with open

circuits4. Replace BJT with equivalent small-signal models

– Choose most convenient one depending on surrounding circuitry5. Analyze

Page 235: Electronic Devices and Circuits

ES154 - Lecture 9Wei 27

Graphical Analysis

• Can be useful to understand the operation of BJT circuits• First, establish DC conditions by finding IB (or VBE)• Second, figure out the DC operating point for IC

Page 236: Electronic Devices and Circuits

ES154 - Lecture 9Wei 28

• Apply a small signal input voltage and see ib• See how ib translates into VCE• Can get a feel for whether the BJT will stay in active region of operation

– What happens if RC is larger or smaller?

Page 237: Electronic Devices and Circuits

ES154 - Lecture 9Wei 29

BJT Current Mirror

• We can build current mirrors using BJTs– Q2 must be in active mode– What is IC2? (Assuming Q1 and Q2 are identical)

Page 238: Electronic Devices and Circuits

Wei 1

Lecture 10

Single-Stage BJT Amplifiersand BJT High-Frequency Model

Gu-Yeon WeiDivision of Engineering and Applied Sciences

Harvard [email protected]

Page 239: Electronic Devices and Circuits

ES154 - Lecture 10Wei 2

Overview

• Reading– Chapter 7

• Background– There are three basic single-stage amplifier configurations using

bipolar junction transistors. The three configurations are similar to the ones that we saw for the MOSFET. This lecture will investigate the properties of the common-emitter, common-collector, and common-base amplifier configurations.Once we have these basic amplifier configurations under our belt, we will then look at the high-frequency model of BJTs.

Page 240: Electronic Devices and Circuits

ES154 - Lecture 10Wei 3

Single-Stage BJT Amplifier Configurations

• There are three basic configurations for single-stage BJT amplifiers:– Common-Emitter (Common-Source)– Common-Base (Common-Gate)– Common-Collector (Common-Drain)

• Let’s look at these amplifier configurations and their small-signal operation

Page 241: Electronic Devices and Circuits

ES154 - Lecture 10Wei 4

Common-Emitter Amplifier

• First, assume Re = 0 (this is not re, but an explicit resistor)• The BJT is biased with a current source (with high output impedance) and a

capacitor connects the emitter to ground. – Cap provides an AC short at the emitter for small time-varying signals but

is an open circuit for DC signals• Can redraw the circuit with an equivalent circuit that replaces the BJT with its

hybrid-π model

vs

Rs

gmvπ

rο RCvπ

B

E

C

vo

Page 242: Electronic Devices and Circuits

ES154 - Lecture 10Wei 5

CE Amp with Emitter Degeneration

• Now, assume Re ≠ 0. First, find Ri…– voltage applied to the base is across re and Re

– base current is

– and let’s find Ri

– this tells us adding Re increases the input resistance

– Can design the desired Ri by setting Re

Page 243: Electronic Devices and Circuits

ES154 - Lecture 10Wei 6

• To determine the voltage gain, first find the gain from the base to the collector (ignore ro b/c it complicates the analysis considerably)

– NOTE: Voltage gain between base and collector is equal to ratio of total resistance in the collector to the total resistance in the emitter.

• To find the total gain,

• Characteristics with Re :– gain is lower, but also less dependent on β– input resistance is higher– allows higher input signal voltage

Page 244: Electronic Devices and Circuits

ES154 - Lecture 10Wei 7

Common-Base Amplifier

• Ground the base and drive the input signal into the emitter through a coupling capacitor (only passes ac signals)

• Model the small signal approximation with a T-model– current source is an AC open and CC is an AC short

Page 245: Electronic Devices and Circuits

ES154 - Lecture 10Wei 8

• First, we can see that…

• To find the gain, solve for vo

• The output impedance is just• CB amp characteristics:

– voltage gain has little dependence on β– gain depends critically on Rs– is non-inverting– most commonly used as a unity-gain current amplifier or current

buffer and not as a voltage amplifier: accepts an input signal current with low input resistance and delivers a nearly equal current with high output impedance

– most significant advantage is its excellent frequency response (which we will see later)

Page 246: Electronic Devices and Circuits

ES154 - Lecture 10Wei 9

Common-Collector Amplifier (Emitter Follower)

• The last basic configuration is to tie the collector to a fixed voltage, drive an input signal into the base and observe the output at the emitter

• Also called an emitter follower since the emitter follows the input signal• Used for connecting a source with a large Rs to a load with low resistance

Page 247: Electronic Devices and Circuits

ES154 - Lecture 10Wei 10

• Redraw the circuit to have ro in parallel with RL– now, find Ri

– when re << RL << ro

– notice the amplifier has large input resistance• Find the gain with two voltage dividers

– gain is less than unity, but close (to unity) since βis large and re is small

Page 248: Electronic Devices and Circuits

ES154 - Lecture 10Wei 11

High-Frequency BJT Model

• In BJTs, the PN junctions (EBJ and CBJ) also have capacitances associated with them – Cµ is the reverse-biased CB junction

• Where mjc is between 0.2 and 0.5, V0 is between 0.5V and 1V– Cπ represents the capacitance of the forward-biased EBJ which exhibits both the

junction cap and diffusion cap

• Where Cje is the junction cap and τF is the base-transit time– At high frequencies, the base resistance can also an important role in device operation

Cπ rπ

gmvπrο

rb

B

E

C

Page 249: Electronic Devices and Circuits

Wei 1

Lecture 11

Integrated Circuit Design(Current Mirrors)

Gu-Yeon WeiDivision of Engineering and Applied Sciences

Harvard [email protected]

Page 250: Electronic Devices and Circuits

ES154 - Lecture 11Wei 2

Overview

• Reading– Chapters 8, 9 and 10

• BackgroundSo far, we’ve seen how to design and analyze various amplifier circuits using MOSFETs and BJTs primarily at the discrete level. In this lecture, we will see how some design choices change for integrated circuit designs. For ICs, current mirror circuits play a vital role and so we will focus on them.

Page 251: Electronic Devices and Circuits

ES154 - Lecture 11Wei 3

Integrated Circuits vs. Discrete Circuit Design

• Many advantages to IC design– Put many different components together onto a single chip

• Resistors, capacitors, diodes, transistors (MOS and BJT)– Small size with LOTS of components– Low cost– Better component matching within a chip

• Absolute component values can still vary quite a bit• Some disadvantages

– Limited component value ranges– Design cannot be changed once fabricated– Limited exposure of internal circuit nodes– Limited power capabilities

Page 252: Electronic Devices and Circuits

ES154 - Lecture 11Wei 4

Current Mirrors

• Let’s recap some of the basic current mirrors that we’ve seen

– How do the BJT and MOSFET current mirrors differ?

– What conditions must be met for both forms to operate correctly?

– What kind of non-idealities should we watch for?

– How would you model these current sources for small-signal analysis?

• Let’s take a closer look at some MOSFET and BJT current mirrors.

ILOAD

VLOAD

R1

ILOAD

VLOAD

R1

ISRC

ISRC

Q1 Q2

M1 M2

Page 253: Electronic Devices and Circuits

ES154 - Lecture 11Wei 5

Output Resistance and Matching

• We have seen that current mirrors are used both as current sources and active loads. There is a limitation to current matching arising from the output resistance, ro, of the devices.

• There are some techniques that can be used to increase the effective roof a current mirror circuit – utilizing cascoding

• Let’s look at the a couple of commonly used MOS current mirror circuits– Cascoded current mirror– High-swing (low-voltage) cascode

Page 254: Electronic Devices and Circuits

ES154 - Lecture 11Wei 6

Review of Simple Current Mirror

• Let’s review the original simple current mirror circuit• Currents are governed by the following equations:

– While VGS1=VGS2=VDS1, VDS2 can be different. So,

• For equal W/L’s current mismatch occurs due to differences in VDS and λ

– Using longer L’s can reduce λ– Cascoding can make VDS1 ~= VDS2

IREF

IOUT

(W/L)2(W/L)1

M1 M2

Page 255: Electronic Devices and Circuits

ES154 - Lecture 11Wei 7

Cascoded Current Mirror

• Add a cascode device M3– set VB so that VX = VY

– IOUT set by current through M2– M3 buffers VY from variations in VP through a form

of feedback relying on the gm of M3• Analyze with a small-signal model and find ROUT

– Apply a test vtst, calculate itst to find ROUT=vtst/itst

– notice that vbs3 = vπ= -vx

• Output resistance is significantly increased by the gm3ro3 of M3 (looks like an impedance amplifier)

IREF

IOUT

(W/L)2(W/L)1

M1 M2

M3VB

YX

P

vbs3

ro2

ro3

gmb3vbs3gm3vπ

ROUT

vx

vtst

itst

Page 256: Electronic Devices and Circuits

ES154 - Lecture 11Wei 8

Biasing Cascode Current Mirror

• How do we bias VB?– Use another diode to set bias on B

• What is the minimum voltage that P can fall to while keeping M2 and M3 in saturation?

• Comments:– To keep both M2 and M3 in saturation, requires

high voltage overhead due to the Vt term– If VB can be set arbitrarily, then…

IREFIOUT

M1 M2

M3

YX

P

M0

B

Page 257: Electronic Devices and Circuits

ES154 - Lecture 11Wei 9

High-Swing Cascode

• High-swing cascode b/c it enables large swing on node P

• Also called low-voltage cascode b/c the voltage across the current source can drop to a lower voltage level

• Characteristics– Set VB so that VX and VY just greater

than VGS-Vth for M1 and M2 to be in saturation

– M1 and M2 set the currents and VXand VY are ~equal and so good current matching can be achieved despite VP variations

– VPmin = 2VDSsat

IREFIOUT

M1 M2

M3

YX

P

M0

B

VB generator

Page 258: Electronic Devices and Circuits

ES154 - Lecture 11Wei 10

Alternative Biasing Method

• Here is another way to bias the high-swing cascode current source

– Make source follower have very small current to give a Vt drop • In other words, VGS-Vt ≈ 0

– But, VX not guaranteed equal to VY• worse matching between ISRC and IOUT

IREF

IOUT

M1 M2

M3

YX

PM0

B

Vt

Page 259: Electronic Devices and Circuits

ES154 - Lecture 11Wei 11

Gain Boosting

• Another method for increasing the output resistance of a cascode circuit is to use gain boosting (model M1 as just an output resistance ro1 for simplicity)

– For the gain boosted cascode circuit…

– Similarly, with a regulated cascode

Vin

Vb Vb

ro1

RoutRout

Vb

ro1

Rout

ro1

Rout

Gain Boosting Circuit Regulated Cascode

M1

M2 M2 M2 M2

M3

A3

Page 260: Electronic Devices and Circuits

ES154 - Lecture 11Wei 12

Simple BJT Current Mirror

• Using our assumption that VBE ≅ 0.7V

– If we assume that Q1 and Q2 are identical devices

• For these equations to hold, assume VA = ∞ (no base-width modulation) and β is large

ILOAD

R1

ISRC

Q1 Q2

Page 261: Electronic Devices and Circuits

ES154 - Lecture 11Wei 13

Advanced BJT Current Mirrors

• If you need to drive many current sources and/or base current is appreciable, you can…

– Add a third device where Q_3 supplies the base current

• What is VCE1?• Widlar current source – to generate small currents

– Add an emitter resistor

– Need to use more accurate model…

ILOAD

R1

ISRC

Q1 Q2

VCC

Q3

ILOAD

R1

ISRC

Q1 Q2

VCC

RE

Page 262: Electronic Devices and Circuits

ES154 - Lecture 11Wei 14

BJT Current Source Small-Signal Model

• The small-signal model for a Wildar current source is…

– The dependent current source is fixed (no AC component) and therefore an open circuit

– The output resistance increases by RE

Page 263: Electronic Devices and Circuits

ES154 - Lecture 11Wei 15

Load Options for Amplifiers

• For IC designs, there are several options for implementing the load. Let’s review some of these options…– Resistor– Diode (nMOS or pMOS)– Current source (current mirror)

Page 264: Electronic Devices and Circuits

Wei 1

Lecture 12

The Differential Amplifier

Gu-Yeon WeiDivision of Engineering and Applied Sciences

Harvard [email protected]

Page 265: Electronic Devices and Circuits

ES154 - Lecture 12Wei 2

Overview

• Reading– Chapter 11

• Supplemental reading– Sedra&Smith Chapter 6

• BackgroundThe performance of amplifier circuits can be improved by using adifferential pair topology. Differential pair amplifiers have two inputs – positive and negative terminals. The differential pair amplifier is what we assume for the ideal amplifier when we learned about op amp circuits. We will now investigate how to build these amplifiers.

Page 266: Electronic Devices and Circuits

ES154 - Lecture 12Wei 3

BJT Differential Pair

• Differential pair circuits are one of the most widely used circuit building blocks. The input stage of every op amp is a differential amplifier

• Basic Characteristics– Two matched transistors with emitters

shorted together and connected to a current source

– Devices must always be in active mode– Amplifies the difference between the

two input voltages, but there is also a common mode amplification in the non-ideal case

• Let’s first qualitatively understand how this circuit works.

– NOTE: This qualitative analysis also applies for MOSFET differential pair circuits

RCRC

VCC

αI/2αI/2

I

VCC-αIRC/2VCC-αIRC/2

I/2 I/2

vCM vCM - 0.7

Page 267: Electronic Devices and Circuits

ES154 - Lecture 12Wei 4

Case 1

• Assume the inputs are shorted together to a common voltage, vCM, called the common mode voltage

– equal currents flow through Q1 and Q2

– emitter voltages equal and at vCM-0.7 in order for the devices to be in active mode

– collector currents are equal and so collector voltages are also equal for equal load resistors

– difference between collector voltages = 0

• What happens when we vary vCM?– As long as devices are in active mode, equal

currents flow through Q1 and Q2

– Note: current through Q1 and Q2 always add up to I, current through the current source

– So, collector voltages do not change and difference is still zero….

– Differential pair circuits thus reject common mode signals

RCRC

VCC

αI/2αI/2

I

VCC-αIRC/2VCC-αIRC/2

I/2 I/2

vCM vCM - 0.7

Q1 Q2

Page 268: Electronic Devices and Circuits

ES154 - Lecture 12Wei 5

Case 2 & 3

• Q2 base grounded and Q1 base at +1 V– All current flows through Q1

– No current flows through Q2

– Emitter voltage at 0.3V and Q2’s EBJ not FB– vC1 = VCC-αIRC

– vC2 = VCC

• Q2 base grounded and Q1 base at -1 V– All current flows through Q2

– No current flows through Q1

– Emitter voltage at -0.7V and Q1’s EBJ not FB– vC2 = VCC-αIRC

– vC1 = VCC

RCRC

VCC

0αI

I

VCC-αIRC

I 0

0.3V

Q1 Q2+1V

RCRC

VCC

0 αI

I

VCC

0 I

-0.7V

Q1 Q2-1V

VCC-αIRC

Page 269: Electronic Devices and Circuits

ES154 - Lecture 12Wei 6

Case 4

• Apply a small signal vi– Causes a small positive ∆I to flow in Q1– Requires small negative ∆I in Q2

• since IE1+IE2 = I– Can be used as a linear amplifier for small

signals (∆I is a function of vi)• Differential pair responds to differences in the input

voltage– Can entirely steer current from one side of the

diff pair to the other with a relatively small voltage

• Let’s now take a quantitative look at the large-signal operation of the differential pair

Page 270: Electronic Devices and Circuits

ES154 - Lecture 12Wei 7

• First look at the emitter currents when the emitters are tied together

• Some manipulations can lead to the following equations

• and there is the constraint:

• Given the exponential relationship, small differences in vB1,2 can cause all of the current to flow through one side

BJT Diff Pair – Large-Signal Operation

Page 271: Electronic Devices and Circuits

ES154 - Lecture 12Wei 8

• Notice vB1-vB2 ~= 4VT enough to switch all of current from one side to the other• For small-signal analysis, we are interested in the region we can approximate to

be linear– small-signal condition: vB1-vB2 < VT/2

Page 272: Electronic Devices and Circuits

ES154 - Lecture 12Wei 9

BJT Diff Pair – Small-Signal Operation

• Look at the small-signal operation: small differential signal vd is applied

– expand the exponential and keep the first two terms

multiply top and bottom by

Page 273: Electronic Devices and Circuits

ES154 - Lecture 12Wei 10

Differential Voltage Gain

• For small differential input signals, vd << 2VT, the collector currents are…

• We can now find the differential gain to be…

Page 274: Electronic Devices and Circuits

ES154 - Lecture 12Wei 11

BJT Diff Pair – Differential Half Circuit

• We can break apart the differential pair circuit into two half circuits – which then looks like two common emitter circuits driven by +vd/2 and –vd/2

Virtual Ground

Page 275: Electronic Devices and Circuits

ES154 - Lecture 12Wei 12

Small-Signal Model of Diff Half Circuit

• We can then analyze the small-signal operation with the half circuit, but must remember

– parameters rπ,gm, and ro are biased at I / 2 – input signal to the differential half circuit is vd/2

– voltage gain of the differential amplifier (output taken differentially) is equal to the voltage gain of the half circuit

rπ vπgmvπ

ro RC

vc1

vd/2

Page 276: Electronic Devices and Circuits

ES154 - Lecture 12Wei 13

Common-Mode Gain

• When we drive the differential pair with a common-mode signal, vCM, the incremental resistance of the bias current effects circuit operation and results in some gain (assumed to be 0 when R was infinite)

Page 277: Electronic Devices and Circuits

ES154 - Lecture 12Wei 14

Common Mode Rejection Ratio

• If the output is taken differentially, the output is zero since both sides move together. However, if taken single-endedly, the common-mode gain is finite

• If we look at the differential gain on one side (single-ended), we get…

• Then, the common rejection ratio (CMRR) will be

– which is often expressed in dB

Page 278: Electronic Devices and Circuits

ES154 - Lecture 12Wei 15

CM and Differential Gain Equation

• Input signals to a differential pair usually consists of two components: common mode (vCM) and differential(vd)

• Thus, the differential output signal will be in general…

Page 279: Electronic Devices and Circuits

ES154 - Lecture 12Wei 16

MOS Diff Pair

• The same basic analysis can be applied to a MOS differential pair

– and the differential input voltage is

– With some algebra…

Page 280: Electronic Devices and Circuits

ES154 - Lecture 12Wei 17

• We get full switching of the current when…

Page 281: Electronic Devices and Circuits

ES154 - Lecture 12Wei 18

Another Way to Analyze MOS Differential Pairs

• Let’s investigate another technique for analyzing the MOS differential pair

• For the differential pair circuit on the left (driven by two independent signals), compute the output using superposition

– Start with Vin1, set Vin2=0 and first solve for X w.r.t. Vin1

– Reduces to a degenerated common-source amp

– neglecting channel-length modulation and body-effect, RS = 1/gm2

– so…

X Y Vout2Vout1

Vin1 Vin2

I

RDRD

X Y Vout2Vout1

Vin1

I

RDRD

X Y Vout2Vout1

Vin1

RDRD

RS

XVout1

Vin1

RD

RS

M1M2

Page 282: Electronic Devices and Circuits

ES154 - Lecture 12Wei 19

Cont’d

• Now, solve for Y w.r.t. Vin1

• Replace circuit within box with a Thevenin equivalent– M1 is a source follower with VT=Vin1

– RT=1/gm1

• The circuit reduces to a common-gate amplifier where…

• So, overall (assuming gm1 = gm2)

by symmetry

X Y Vout2Vout1

Vin1

RDRD

Y Vout2

RD

VT

RT

M1 M2

Page 283: Electronic Devices and Circuits

ES154 - Lecture 12Wei 20

Differential Pair with MOS loads

• Can use load resistors or MOS devices as loads– Diode-connected nMOS loads = 1/gm load resistance

• Load resistance looking into the source– Diode-connected pMOS loads = 1/gm load resistance

• Load resistance looking into diode connected drain– pMOS current source loads = ro load resistance

• Has higher gain than diode-connected loads– pMOS current mirror

• Differential input and single-ended output

Page 284: Electronic Devices and Circuits

ES154 - Lecture 12Wei 21

Differential Pair with MOS Loads

• Consider the above two MOS loads used in place of resistors• Left:

– a diode connected pMOS has an effective resistance of 1/gmP

• Right:– pMOS devices in saturation have effective resistance of roP

Vout

Vin

I

Vout

Vin

I

Vb

Page 285: Electronic Devices and Circuits

ES154 - Lecture 12Wei 22

Active-Loaded CMOS Differential Amplifier

• A commonly used amplifier topology in CMOS technologies• Output is taken single-endedly for a differential input

– with a vid/2 at the gate of M1, i1 flows

– i1 is also mirrored through the M3-M4 current mirror– a –vid/2 at the gate of M2 causes i2 to also flow through M2

• Given that ID= I / 2 (nominally)

• The voltage at the output then is given by…

vo

I

M1 M2vid

M3 M4

i1

i1

i2

Page 286: Electronic Devices and Circuits

ES154 - Lecture 12Wei 23

Differential Amp with Linearized Gain

• Use source generation to make the gain linear with respect to the differential input and independent of gm

– Can build in two ways…

Page 287: Electronic Devices and Circuits

ES154 - Lecture 12Wei 24

• Assuming a virtual ground at node X, we can draw the following small-signal half circuit.

– Assume ro is very large (simplifies the math)

vid vπ

gmvπro RD

RS

vο

is vS

Page 288: Electronic Devices and Circuits

ES154 - Lecture 12Wei 25

Offsets in MOS Differential Pair

• There are 3 main sources of offset that affect the performance of MOS differential pair circuits– Mismatch in load resistors– Mismatch in W/L of differential pair devices– Mismatch in Vth of differential pair devices

• Let’s investigate each individually

Page 289: Electronic Devices and Circuits

ES154 - Lecture 12Wei 26

Resistor Mismatch

• For the differential pair circuit shown, consider the case where

– Load resistors are mismatched by ∆RD

– All other device parameters are perfectly matched• With both inputs grounded, I1 = I2= I/2, but VO is not zero

due to differences in the voltages across the load resistors

– It is common to find the input-referred offset which is calculated as

– since Ad = gmRD

VO

RD1 RD2

I

I1 I2

Page 290: Electronic Devices and Circuits

ES154 - Lecture 12Wei 27

W/L Mismatch

• Now consider what happens when device sizes W/L are mismatched for the two differential pair MOS devices M1 and M2

• This mismatch causes mismatch in the currents that flow through M1 and M2

– This mismatch results in VO

– So in the input referred offset is…

Page 291: Electronic Devices and Circuits

ES154 - Lecture 12Wei 28

Vt Mismatch

• Lastly, consider mismatches in the threshold voltage

• Again, currents I1 and I2 will differ according to the following saturation current equation

– For small ∆Vt << 2(VGS-Vth)

– Again, using VOS=VO/Ad (Ad = gmRD and VO =2∆IRD) we get…

Page 292: Electronic Devices and Circuits

ES154 - Lecture 12Wei 29

Mismatch Summary

• The 3 sources of mismatch can be combined into one equation:

– arising from Vt, RD, and W/L mismatches• Notice that offsets due to ∆RD and ∆W/L are functions of the overdrive

voltage VGS – Vt

Page 293: Electronic Devices and Circuits

Wei 1

Lecture 13

High-Gain Differential Amplifier Design

Gu-Yeon WeiDivision of Engineering and Applied Sciences

Harvard [email protected]

Page 294: Electronic Devices and Circuits

ES154 - Lecture 13Wei 2

Overview

• BackgroundThis lecture investigates different topologies (and their characteristics) that can be used to implement differential amplifiers with extremely high gain. We will again be using cascoding.

Page 295: Electronic Devices and Circuits

ES154 - Lecture 13Wei 3

Review of Amplifier Characteristics

• Let’s review some of the characteristics of the different (single-ended) amplifier topologies that we’ve looked at so far.– We will augment this table when we look at the frequency

response characteristics of these amplifiers

High< 1LowHighCommon-drain/collector

· 1HighHighLowCommon-gate/base

HighHighHighHighCommon-source/emitter

AiAvRoutRinAmplifier Type

Page 296: Electronic Devices and Circuits

ES154 - Lecture 13Wei 4

Multi-Stage Amplifiers (Cascading)

• We can cascade different types of amplifiers to get desired overall characteristics. Often want:– High input impedance– High gain– Low output impedance

• Mix and match cascades of different types of amplifiers to get desired result

Page 297: Electronic Devices and Circuits

ES154 - Lecture 13Wei 5

Common-Emitter Emitter-Follower Cascade

• A common configuration (for discrete BJT amplifier design) is a common-emitter emitter-follower (common-collector) cascade

– CE stage has high voltage gain and high input impedance– CC stage has low output impedance to drive various load conditions– CC stage also presents a high impedance load to the CE amplifier which

enables high voltage gain for the CE stage

R1

R2

Rs

vS

RC

REA

REB CERE2 RLD

vOQ1

Q2

CoutCin

Page 298: Electronic Devices and Circuits

ES154 - Lecture 13Wei 6

Common-Source Source-Follower Cascade

• Similarly, cascade a common-source amplifier with a source-follower.

Rs

vS

RD

IS1 CS RLD

vOM1

M2

Cout

IS2

Page 299: Electronic Devices and Circuits

ES154 - Lecture 13Wei 7

Building Op Amps

• Op amps are an important component of modern CMOS IC’s. They used to designed as general purpose amplifiers that can meet a variety of requirements. The main target was extremely high gain (>1e5), high input impedance and low output impedance (like an ideal amplifier). This was done (to some extent) at the expense of different aspects of performance (e.g., speed, output voltage range, power, etc.). Designs these days are much more tailored to have (good enough) performance w.r.t. the specific needs of particular applications. Within an IC, often use Operational Transconductance Amplifiers (OTA).

• Some performance parameters of op amps– Gain and Bandwidth

• Want as large as possible– Output Swing

• Maximize w.r.t. power supply (but supply shrinking in modern processes)– Linearity

• Combat non-linearity with feedback– Noise and Offset

• Can minimize by trading off other parameters– Supply Rejection

• Strong dependence on current source output resistance

Page 300: Electronic Devices and Circuits

ES154 - Lecture 13Wei 8

Simple One-Stage Op Amps

• Two differential pair amplifiers that we have already seen can be used as op amps. The low-frequency, small-signal gain of both is gmN(roN||roP). The capacitive loads (CL) usually determine their bandwidth.

CL

Vout

Vin

CL

Vout

Vin

CL

Vb

Page 301: Electronic Devices and Circuits

ES154 - Lecture 13Wei 9

Cascoded Amplifier

• Use cascoding to increase load resistance• Cascode both the active loads and the

differential pair– Higher effective load resistance– Higher ro for the differential pair– Reduces Miller effect (will see later)

• However, there are some limitations– Reduced output swing (must keep all

devices in saturation)– What is the output dynamic range?

• How might one increase the output swing range for vo?

vo

I

M1 M2vid

VbiasM4M3

M6M5

M8M7

Page 302: Electronic Devices and Circuits

ES154 - Lecture 13Wei 10

Use High-Swing Cascodes

• We can use the high-swing cascode circuit as a load to achieve higher output range in a single-ended output telescopic amp

CL

Vout

Vin

Vb CL

Vout

Vin

Vb1

Vb2

Page 303: Electronic Devices and Circuits

ES154 - Lecture 13Wei 11

Cascode Op Amps

• Amplifiers that use cascoding are often called ‘telescopic’ cascode amps. While gain increases, the output range of these devices are limited.

– Connecting in unity-gain feedback configuration results in significant reduction of output range

CL

Vout

Vin

CL

Vout

Vin

CL

Vb3

Vb

Vb2

Vb1

Page 304: Electronic Devices and Circuits

ES154 - Lecture 13Wei 12

DC Biasing for High-Gain Amplifiers

• One of the challenges of using cascodes for high gain is appropriately setting the DC biasing for the circuit. Let’s look at an example…

• What is the raitio of ILOAD vs. ITAIL?

vd

vOUT

ITAIL

ILOAD’

ILOAD

IREF

VBN

VBNC

VBPC

VBP

Page 305: Electronic Devices and Circuits

ES154 - Lecture 13Wei 13

DC Biasing Cont’d

• Strategy for setting up DC bias– All transistors should be saturation– Set VBNC so that differential input pair in saturation

• Want to set it to the edge with sufficient saturation margin (~300mV)

– Set VBP so that ILOAD = ITAIL/2– Set VBPC so that pMOS currnet source loads are close to

edge of saturation– Need to set VBP and VBPC carefully to keep devices in

saturation and the DC common mode of the output nodes to be in the middle of the output swing range

• This can be challenging to do due to the high output resistance at the output.

• Would be nice if there was a way to automatically set the biasing…

Page 306: Electronic Devices and Circuits

ES154 - Lecture 13Wei 14

Common-Mode Feedback Biasing

• Use an amplifier to set the pMOS current source with respect to some desired output common-mode voltage (VREF).

vd

vOUT

ITAIL

ILOAD

IREF

VBN

VBNC

VBPC

VBP

VREF

Page 307: Electronic Devices and Circuits

ES154 - Lecture 13Wei 15

CM FB Biasing

• Here’s how it works:– Use large resistors to find the average (common-mode)

output voltage– An amplifier compares VREF to VOUT,CM and sets VBP such that

VOUT,CM = VREF

• Let’s understand how it works– What happens to VBP if VREF increases?

– What happens to VBP if VOUT,CM increases?

Page 308: Electronic Devices and Circuits

ES154 - Lecture 13Wei 16

Folded Cascode Circuit

• In order to alleviate some of the drawbacks of telescopic op amps (limited output range), a “folded cascode” can be used

– M1 is common-source transconductance amp and M2 is common-gate transimpedance amp

– Advantage is M2 no longer stacks on top of M1

– Possible for either pMOS or nMOScascodes

• The output resistance for cascode and folded cascode are roughly equivalent (gmro

2)

Vout

Vin

Vb

M1

M2

VoutVinVb

M1

M2

Vout

Vb

M1

M2

Vout

Vin VbM1 M2

Vin

Page 309: Electronic Devices and Circuits

ES154 - Lecture 13Wei 17

Folded Cascode Amplifier

• Turn a differential telescopic cascode amplifier into a folded cascode amplifier

Vb

Vin

Vout

VbVin

Vout

Page 310: Electronic Devices and Circuits

ES154 - Lecture 13Wei 18

Full circuit Implementation of Folded Cascode Amplifier

– Reference current sources are set:• A version with nMOS differential pair inputs also possible (flip upside down)• What sets output common mode?

– Depends on relative output resistances looking up and down– Can vary with process and reference current mismatches

2123 REFREFREF III +=

Vbn2

Vin

Vout

Vbp2

IREF1

IREF2

IREF3

Page 311: Electronic Devices and Circuits

ES154 - Lecture 13Wei 19

Gain of a Folded-Cascode Amplifier

• Calculate gain using the differential half-circuit. Gain can be calculated as GmRout where Gm is the short-circuit transconductance of the overall circuit and Routis the output resistance.

– Short out Vout to ground and solve for Iout/Vin = Gm

– Solve for the output resistance

Vin

-Vx ro45ro3

-gm3Vx

gm1Vin

ro1||ro2

Vout

M4

Vbn2Vin

Vout

Vbp2

Vbp1

Vbn1

M1

M2

M3

M5

ro45

Page 312: Electronic Devices and Circuits

ES154 - Lecture 13Wei 20

Common-Mode Feedback

• Use feedback to set the output common mode of a folded cascode amplifier, called common-mode feedback

– Sense the average (common-mode) voltage at the output, compare to a desired reference voltage (Vref), and use it to set the current source

• For Vin=0, feedback sets IFB=IREF2+IREF1/2 and common-mode voltage = Vref

VbVin

Vout

CMSense

Vref

IREF1 IREF2IREF2

IFB

Page 313: Electronic Devices and Circuits

ES154 - Lecture 13Wei 21

Two-Stage Op Amps

• In order to implement amplifiers with high gain and high swing, we must resort to two-stage amplifier designs

– First stage used to generate high gain– Second stage to generate high swing

• Use any high-gain first stage and high-swing second stage – two simple examples (differential and single-ended output amplifiers)

High-GainStage

High-SwingStageVin Vout

Vin

Vbp

Vbn

Vin

Vbp

VoutVout2Vout1