ESE 568: Mixed Signal Design and Modeling Basic 2-stage Opamp Lec 6: September 19th, 2018 Basic 2-stage Opamp (con’t) and Advanced Opamp Design Penn ESE 568 Fall 2018 – Khanna adapted from Perrot CPPSim Lecture notes Basic 2-Stage Opamp Basic 2-Stage Opamp ! Key issue: two-stages lead to two poles that are relatively close to each other " ! " ! This leads to very poor phase margin Inclusion of a compensation capacitor across the second stage leads to pole splitting such that stable performance can be achieved A compensation resistor is also desirable to help eliminate the impact of a RHP zero that occurs due to compensation This is a common “workhorse” opamp for medium performance applications " Relatively simple structure with reasonable performance Penn ESE 568 Fall 2018 - Khanna 3 2-Stage Opamp Frequency Response Penn ESE 568 Fall 2018 - Khanna Key Specifications of Opamps (Open Loop) ! ! ! ! Penn ESE 568 Fall 2018 - Khanna 4 5 DC small signal gain Unity gain frequency Dominant pole frequency Parasitic pole frequencies Penn ESE 568 Fall 2018 - Khanna 6 1 2-Stage Opamp Frequency Response 2-Stage Opamp Frequency Response Unity-gain frequency g ω 0 = m1 CC DC gain DC gain Dominant pole Dominant Pole Parasitic pole Parasitic pole Unity-gain frequency Penn ESE 568 Fall 2018 - Khanna 7 Penn ESE 568 Fall 2018 - Khanna 2-Stage Opamp Key Specifications of Opamps (Closed Loop) ! ! ! ! ! ! 8 Settling Time/Slew Rate Offset voltage Settling time (closed loop bandwidth) Common-Mode Rejection Ratio (CMRR) Power Supply Rejection Ratio (PSRR) Equivalent Input-Referred Noise Penn ESE 568 Fall 2018 - Khanna 9 2-Stage Opamp – Slew Rate Penn ESE 568 Fall 2018 - Khanna 10 2-Stage Opamp ! Settling Time/Slew Rate SR ≡ Penn ESE 568 Fall 2018 - Khanna 11 Penn ESE 568 Fall 2018 - Khanna dvout dt = max I CC max CC = I D5 CC 12 2 Finite Slew Rate Effect ! Unity Gain Freq and Slew Rate Ex. Unity-gain Follower ! Relationship between unity gain frequency and slew rate: ω0 = g m1 CC SR = I D5 CC vI = Asin(ω t) dvo dt = Aω MAX Penn ESE 568 Fall 2018 - Khanna 13 Unity Gain Freq and Slew Rate ! 14 2-Stage Opamp Offset: Systematic Relationship between unity gain frequency and slew rate: ω0 = ! Penn ESE 568 Fall 2018 - Khanna g m1 CC SR = I D5 CC For 45° phase margin: SR = SR = I D5 ω g m1 0 ω 0 = p2 I D5 p2 gm1 p2 ≈ − gm 7CC −g ≈ m7 C1C2 + C1CC + CC C2 C2 Penn ESE 568 Fall 2018 - Khanna 15 2-Stage Opamp Offset: Systematic Penn ESE 568 Fall 2018 - Khanna 16 2-Stage Opamp Offset: Random VOS = ΔVt (1−2) #g & +ΔVt (3−4) % m3 ( $ gm1 ' + Penn ESE 568 Fall 2018 - Khanna 17 Penn ESE 568 Fall 2018 - Khanna # W W & Δ % −Δ ( (VGS −Vt )(1−2) % L(1−2) L(3−4) ( − W W % ( 2 % L L(3−4) (' $ (1−2) 18 3 2-Stage Opamp Offset: Random 2-Stage Opamp CMRR Minimize by making gm3,4<gm1,2 VOS = ΔVt (1−2) #g & +ΔVt (3−4) % m3 ( $ gm1 ' Minimize by operating input transistors at small Vgs-Vt Penn ESE 568 Fall 2018 - Khanna + # W W & Δ % −Δ ( (VGS −Vt )(1−2) % L(1−2) L(3−4) ( − W ( % W 2 % L L(3−4) (' $ (1−2) 19 21 2-Stage Opamp PSRR+ Penn ESE 568 Fall 2018 - Khanna 20 2-Stage Opamp PSRR+ 2-Stage Opamp CMRR Penn ESE 568 Fall 2018 - Khanna Penn ESE 568 Fall 2018 - Khanna Penn ESE 568 Fall 2018 - Khanna 22 2-Stage Opamp PSRR- 23 Penn ESE 568 Fall 2018 - Khanna 24 4 2-Stage Opamp PSRR- 2-Stage Opamp Noise Analysis ! Each opamp stage will contribute noise " @ high frequencies M6 looks diode connected Penn ESE 568 Fall 2018 - Khanna 25 2-Stage Opamp Noise Analysis Penn ESE 568 Fall 2018 - Khanna Shot Noise " ! Thermal Noise ! Flicker Noise: 1/F Noise Typically the spectral density of the noise will be of the same order at each stage " Input referral of the noise reveals that the second stage noise will have much less impact than the first stage noise " Discrete random event of charge jumping potential barrier (i.e PN junction) ! " Each opamp stage will contribute noise " 26 Noise Sources ! ! Typically the spectral density of the noise will be of the same order at each stage Random thermal motion of electrons Usually due to impurities causing traps in material which capture and emit carriers randomly Input-referred noise calculations of an opamp need only focus on the first stage Penn ESE 568 Fall 2018 - Khanna 27 MOSFET Noise Model Penn ESE 568 Fall 2018 - Khanna MOSFET Noise Model ! Flicker noise as voltage on the gate ! Flicker noise as voltage on the gate ! Thermal noise as current in the channel ! Thermal noise as current in the channel Penn ESE 568 Fall 2018 - Khanna 28 29 Penn ESE 568 Fall 2018 - Khanna 30 5 Input-referred MOSFET Noise Penn ESE 568 Fall 2018 - Khanna Input-referred MOSFET Noise 31 Analysis of Opamp Noise (First Stage) Penn ESE 568 Fall 2018 - Khanna 32 Analysis of Opamp Noise (First Stage) 33 Analysis of Opamp Noise (First Stage) Penn ESE 568 Fall 2018 - Khanna Penn ESE 568 Fall 2018 - Khanna Penn ESE 568 Fall 2018 - Khanna 34 Analysis of Opamp Noise (First Stage) 35 Penn ESE 568 Fall 2018 - Khanna 36 6 Input-referred Opamp Noise (First Stage) Penn ESE 568 Fall 2018 - Khanna Input-referred Opamp Noise (First Stage) 37 Penn ESE 568 Fall 2018 - Khanna 38 Opamps Utilized in Wide Range of Applications Advanced Opamp Topologies ! Each application comes with different opamp requirements " Integrated opamps are typically custom designed for their specific application Penn ESE 568 Fall 2018 - Khanna Fully Differential Basic Two Stage Opamp Single-Ended Vs. Fully Differential Topologies ! ! Analog circuits are sensitive to noise from the power supply and other coupling mechanisms Fully differential topologies can offer rejection of commonmode noise (such as from supplies) " " ! We can separate this into differential and common mode circuits, similar to a single-ended differential amplifier " Differential behavior same as the single-ended opamp " Common mode setting needs to be dealt with (Vbias) " Information is encoded as the difference between two signals More complex implementation than single-ended designs Penn ESE 568 Fall 2018 - Khanna 40 41 Note that we have twice the effective range in input/output swing due to the differential signaling Penn ESE 568 Fall 2018 - Khanna 42 7 Common-Mode Gain From Input Common Mode Influence ! ! Maximum swing for fully differential signals requires " " " Can be simplified to common-mode “half-circuit” " Common-mode output is sensitive to common mode input Accurate setting of the common mode value Suppression of common mode noise Penn ESE 568 Fall 2018 - Khanna 43 Common-Mode Gain From Input Bias ! Analysis is same as for single-ended design Penn ESE 568 Fall 2018 - Khanna Common Mode Feedback Biasing (CMFB) Common mode “half circuit” can still be used ! Use an auxiliary circuit to accurately set the common mode output value to a controlled value Vref " " Common-mode output is extremely sensitive to Vbias! Penn ESE 568 Fall 2018 - Khanna " 45 " 46 Improved CMRR and PSRR across a wide frequency range Twice the effective signal swing Disadvantages of fully differential topologies " ! Penn ESE 568 Fall 2018 - Khanna Advantages of fully differential topologies " ! Need to be careful not to load the outputs with the common mode sensing circuit (Rlarge in this case) Need to design CMFB to be stable Cascoded Current Source Single-Ended Versus Fully Differential ! 44 Power and complexity Most opamp topologies can be modified to support either single-ended or fully differential signaling Penn ESE 568 Fall 2018 - Khanna 47 Penn ESE 568 Fall 2018 - Khanna 48 8 Cascoded Current Source Cascode Current Mirror ! Offers increased output resistance " " ! Penn ESE 568 Fall 2018 - Khanna 49 Cascode Current Mirror ! Reduces small signal dependence of output current on the output voltage of the current source We derived: Output resistance boosted by intrinsic gain of M3, gm3ro3 Penn ESE 568 Fall 2018 - Khanna 50 Telescopic Opamp (Fully Differential) What is Z0? ! Popular for high frequency applications " " Penn ESE 568 Fall 2018 - Khanna 51 Telescopic Opamp Frequency Response Single stage design Limitation: input and output swing quite limited Penn ESE 568 Fall 2018 - Khanna 52 Telescopic Opamp Frequency Response DC gain Dominant pole Parasitic pole Unity-gain frequency Penn ESE 568 Fall 2018 - Khanna 53 Penn ESE 568 Fall 2018 - Khanna 54 9 Telescopic Opamp Frequency Response Penn ESE 568 Fall 2018 - Khanna Telescopic Opamp Frequency Response 55 Telescopic Opamp Frequency Response Penn ESE 568 Fall 2018 - Khanna Folded Cascode Opamp ! Modified version of telescopic opamp " " " Penn ESE 568 Fall 2018 - Khanna 57 Significantly improved input/output swing High BW (better than two stage, worse than telescopic) Only single stage of gain (lower than telescopic) Penn ESE 568 Fall 2018 - Khanna 58 Two Stage with Cascoded Output Stage Folded Cascode Frequency Response ! Higher DC gain than with two stage or folded cascode ! Same output swing as folded cascode " " Penn ESE 568 Fall 2018 - Khanna 56 59 Two gain stages with boosted gain on the output stage Lower than for basic two stage Penn ESE 568 Fall 2018 - Khanna 60 10 Two Stage with Cascoded Input Stage Two Stage with Cascoded Output Stage –Frequency Response ! Compared to two stage with cascoded output " " " Penn ESE 568 Fall 2018 - Khanna 61 Similar DC gain Improved output swing Reduced input swing Penn ESE 568 Fall 2018 - Khanna Big Ideas Two Stage with Cascoded Input Stage –Frequency Response ! Opamp topologies can be configured to process fully differential signals " " " ! Provides improved immunity to noise from commonmode perturbations such as power supply noise Increases effective signal swing by a factor of two Carries additional complexity for CMFB and increased power consumption Integrated opamps are often custom designed for a given application " " Each application places different demands on DC gain, bandwidth, signal swing, etc. Opamp topologies considered today include telescopic, folded cascode, and modified two stage (cascoded input/output) " Penn ESE 568 Fall 2018 - Khanna 63 Admin ! ! Each carries different tradeoffs on the above specifications Penn ESE 568 Fall 2018 - Khanna 64 More Advanced Techniques (Extras) HW 2 and HW 3 ! Due Sunday ! " 62 Gain boosting technique Nested Miller technique HW 4 posted Sunday " Characterize and design an opamp Penn ESE 568 Fall 2018 – Khanna 65 Penn ESE 568 Fall 2018 - Khanna 66 11 Gain Boosting of Current Sources ! We can achieve increased output impedance of a current source with an amplifier " ! A Simple Gain Boosting Amplifier ! The amplifier essentially increases gm1 by factor K: Key issue: what is a convenient implementation of the above circuit? Penn ESE 568 Fall 2018 - Khanna ! 67 Folded Cascode Gain Boosting Amplifier Issue: current source requires significant headroom due to the fact that Vds2 = Vgs4 Penn ESE 568 Fall 2018 - Khanna Folded cascode yields Leverage fully differential nature of current sources within the opamp " " " Improved headroom and higher gain! Penn ESE 568 Fall 2018 - Khanna 69 Penn ESE 568 Fall 2018 - Khanna ! We can apply this to the overall folded cascode opamp Penn ESE 568 Fall 2018 - Khanna PMOS gain devices are now part of a differential pair Need CMFB to set common-mode gate voltages of M1 and M2 (I.e. to set Vbias0) 70 Folded Cascode with Gain Boosting Symbolic View of Folded Cascode Gain Boosting Amp ! 68 Differential Version of Gain Boosting Amp ! ! Common source amplifier utilized Pro: Gain boosting provides substantial increase of DC gain while maintaining good input and output swing " ! 71 Gain is on the order of (gmro)4 Con: very complex! Penn ESE 568 Fall 2018 - Khanna 72 12 Nested Miller Compensation ! ! Nested Miller Example Advantage: increased DC gain with high input and output swing Issue: more parasitic poles to deal with " ! ! Leads to lower unity gain bandwidth for reasonable phase margin Penn ESE 568 Fall 2018 - Khanna Intermediate gain stages must be non-inverting in order to achieve stable feedback Compensation resistors should also be included to eliminate the impact of RHP zeros " 73 Not shown for simplicity Penn ESE 568 Fall 2018 - Khanna 74 13