Download presentation
Presentation is loading. Please wait.
1
OpAmp Design and compensation
The design process involves two distinct activities: Architecture Design Find an architecture already available and adapt it to present requirements Create a new architecture that can meet requirements Component Design Determine transistor sizes Determine biasing voltages/currents Design compensation network
2
All op amps used as feedback amplifier:
If not compensated well, closed-loop can be oscillatory or unstable. damping ratio z ≈ phase margin PM / 100 Value of z: Overshoot: 0 5% 10% 16% 25% 37% PM in deg:
4
UGF: frequency at which gain = 1 or 0 dB
PM: phase margin = how much the phase is above critical (-180o) at UGF Closed-loop is unstable if PM < 0 UGF This is the loop-return gain when used in closed-loop. Only in buffer connection this is equal to O.L. gain. PM
5
z
6
UGF GM<0 p1 p2 z1 PM<0
7
UGF p1 p2
8
UGF GM p1 p2 z1 PM
9
Fully differential amplifiers
Have two loops: DM feedback loop CM feedback loop DM loop closed by user, don’t know feedback at design stage, needs stability for all user feedback CM loop closed by designer, knows CMFB exactly, but DM loop and CM loop share significant signal path, needs stability for all user DM feedback
10
Half circuit for DM and half circuit for CM can be used to simplify analysis.
Open loop gain can be analyzed to infer closed loop stability. Will focus on DM path transfer function
11
Types of Compensation Miller - Use of a capacitor feeding back around a high-gain, inverting stage. Miller capacitor only Miller capacitor with an unity-gain buffer to block the forward path through the compensation capacitor. Can eliminate the RHP zero. Miller with a nulling resistor. Similar to Miller but with an added series resistance to gain control over the RHP zero. Self compensating - Load capacitor compensates the op amp (later). Feedforward - Bypassing a positive gain amplifier resulting in phase lead. Gain can be less than unity.
12
Two stage Miller compensation
Miller Effect v2 v1 i v2= AVv1 v1 i= v1/Z1 i= -v2/Z2 i = (v1-v2)/Zf = v1(1-AV)/Zf = v1/{Zf /(1-AV)} = - v2(1-1/AV)/Zf = - v2/{Zf /(1-1/AV)}
13
Nested Miller Compensation (NMC),
Reverse Nested Miller Compensation (RNMC), Multipath Nested Miller Compensation (MNMC), Nested Gm-Cc Compensation (NGCC)
14
Active feedback frequency compensation (AFFC),
Transconductance with capacitance feedback frequency compensation (TCFC)
15
Single ended and differential have very similar Compensation needs
Not quite VBP VBP I2 I1 Vo1 I2 Vo1 Vi Vo Vi- Vo Vi+ VBN I1 VBN
16
VBP VBP Vo1 CC CC Vi Vo Vi+ Vo+ Vo- Vi- Vb1 Vb1 VBN
17
If the first stage is cascode, the analysis stay similar
VBP VBP VBPc Vo1 CC CC VBNc Vo Vo+ Vo- Vi Vi- Vi+ Vb1 Vb1 VBN Composite MOST with large ro
18
Folded cascode same thing, except gm is from a different pair
VDD Folded cascode same thing, except gm is from a different pair IN- IN+ CC CC Vo+ Vo-
19
Generic representative:
VBP Vo1 Vi Vo Vb1
20
What about b? Vi- has two components: When Vin=0, When Vo=0 CL Vo1 Vin
Ri Rf Vi- Vin(s) -Vo + Gin(s) Av(s) - b(s)
22
Open loop simulation incorporating feedback loading
VoQ = Vicm Vo1 Rf Vi- Vi+ Vo V’o CL Ri Obtain freq resp from Vi- to V’o
23
DC gain of first stage: AV1 = -gm1/(gds2+gds4)= -gm1/(I4(l2+ l4)) DC gain of second stage: AV2 = -gm6/(gds6+gds7)=- gm6/(I6(l6+ l7)) Total DC gain: gm1gm6 AV = (gds2+gds4)(gds6+gds7) gm1gm6 AV = I4I6 (l2+ l4)(l6+ l7) GBW = gm1/CC
24
Zf = 1/s(CC+Cgd6) ≈ 1/sCC When considering p1 (low freq), can ignore CL (including parasitics at vo): Therefore, AV6 = -gm6/(gds6+gds7) Z1eq = 1/sCC(1+ gm6/(gds6+gds7)) C1eq=CC(1+ gm6/(gds6+gds7))≈CCgm6/(gds6+gds7) -p1 ≈ w1 ≈ (gds2+gds4)/(C1+C1eq) ≈ (gds2+gds4)/(C1+CCgm6/(gds6+gds7)) ≈ (gds2+gds4)(gds6+gds7)/(CCgm6) Note: w1 decreases with increasing CC
25
At frequencies much higher than w1, gds2
and gds4 can be viewed as open. Total go at vo: M6 CC gds6+gds7+gm6 CC+C1 CC vo Total C at vo: C1CC C1 CL CL+ CC+C1 M7 -p2=w2= CCgm6+(C1+CC)(gds6+gds7) CL(C1+CC)+CCC1
26
As CC is increased, w2 increases also.
gds6+gds7 Note that when CC=0, w2 = CL As CC is increased, w2 increases also. However, when CC is large, w2 does not increase as much with CC. w2 has a upper limit given by: gm6+gds6+gds7 gm6 ≈ CL+C1 CL+C1 When CC=C1, w2 ≈ (½gm6+gds6+gds7)/(CL+½C1) ≈ gm6/(2CL+C1) Hence, once CC is large, its main effect is to lower w1, and hence lower GBW.
27
Also note that, in contrast to single stage
amplifiers for which increasing CL improves PM, for the two stage amplifier increasing CL actually reduces w2 and reduces PM. Hence, needs to design for max CL
28
There are two RHP zeros:
z1 due to CC and M6 z1 = gm6/(CC+Cgd6) ≈ gm6/CC z2 due to Cgd2 and M2 z2 = gm2/Cgd2 >> z1 z1 significantly affects achievable GBW.
29
gm6/(CL+C1) f (I6) A0 z1 ≈ gm6/Cgd6 w1 w2 z2 ≈ gm2/Cgd2 -90 No PM -180
30
z1 ≈ gm6/Cgd6 z2 ≈ gm2/Cgd2 z1 ≈ gm6/Cc gm6/(CL+C1) f (I6) A0 w1 w2
-90 No PM -180
31
gm6/(CL+C1) f (I6) A0 w2 z1 ≈ gm6/CC w1 gm1/CC -90 PM -180
32
PM ≈ 90o – tan-1(UGF/w2) – tan-1(UGF/z1)
It is easy to see: PM ≈ 90o – tan-1(UGF/w2) – tan-1(UGF/z1) To have sufficient PM, need UGF < w2 and UGF << z1 In such case, UGF ≈ GB ≈ gm1/CC = z1 * gm1/gm6. GB < w2 GB << z1 Hence, need: PM requirement decides how much lower: PM ≈ 90o – tan-1(GB/w2) – tan-1(GB/z1)
33
Possible design steps for max GB
For a given CL and Itot Assume a current share ratio q, i.e. I6+I5 = Itot, I5 = qI6 , I1 = I2 = I5/2 Size W6, L6 to achieve max gm6/(CL+Cgs6) which is > w2 C1 W6*L6, gm6 (W6/L6)0.5 Size W1, L1 so that gm1 ≈ 0.1gm6 this make z1 ≈ 10*GBW Select CC to achieve required PM by making gm1/CC < 0.5 w2 Check slew rate: SR = I5/CC Size M5, M7, M3/4 for current ratio, IMCR, etc
34
Comment If we run the same total current Itot through a single stage common source amplifier made of M6 and M7 Single pole go/CL Gain gm6/go Single stage amp GB = gm6/CL >gm6/(CL+C1) > w2 > gm1/CC = GB of two stage amp Two stage amp achieves higher gain but speed is much slower! Can the single stage speed be recovered?
35
Other considerations Output slew rate: SR = I5/CC
Output swing range: VSS+Vdssat7 to VDD – Vdssat6 Min ICM: VSS + Vdssat5 + VTN + Von1 Max ICM: VDD - |VTP| - Von3 + VTN Mirror node approx. pole/zero cancellation Closed-loop pole stuck near by Can cause slow settling
36
When vin is short, the D1 node sees a capacitance CM and a conductance of gm3 through the diode con.
So: p3 = -gm3/CM When vin is float and vo=0. gm4 generate a current in id4=id2=id1. So the total conductance at D1 is gm3 + gm4. So: z3 = -(gm3+gm4)/CM =2*p3 If |p3| << GB, one closed-loop pole stuck nearby, causing slow settling!
37
Eliminating RHP Zero at gm6/CC
icc = vg gm6 = CCdvCC/dt vg= RZCCdvCC/dt +vcc CCdvCC/dt (gm6RZ-1)CCdvCC/dt + gm6vcc=0
38
For the zero at M6 and CC, it becomes
z1 = gm6/[CC(1-gm6Rz)] So, if Rz = 1/gm6, z1 → For such Rz, its effect on the p1 node can be ignored so p1 remains as before. Similarly, p2 does not change very much. similar design approach.
39
Realization of Rz vb
40
VDD M8 M9
41
VDD M8 M9
42
Another choice of Rz is to make z1 cancel w2:
z1=gm6/CC(1-gm6Rz) ≈ - gm6/(CL+C1) CC+CL+C1 Rz = gm6CC CL+C1 1 = ( ) gm6 CC
43
Let ID8 = aID6, size M6 and M8 so that
VSG6 = VSG8 Then VSGz=VSG9 Assume Mz in triode Rz = bz(VSGz – |VT| - VSDz) ≈ bz(VSGz – |VT|) = bz(2ID8/b9)0.5 = bz(2aID6/b6)0.5(b6/b9)0.5 = bz/b6 *b6VON6 *(ab6/b9)0.5 = bz/b6 *1/gm6*(ab6/b9)0.5 Hence need: bz/b6 *(ab6/b9)0.5 =(CC+CL+C1)/CC
44
gm6/(CL+C1) f (I6) A0 -z1 ≈ w2 w1 gm1/CC -90 PM -180
45
With the same CC as before
Z1 cancels p2 P3, z3, z2, not affected P1 not affected much Phase margin drop due to p2 and z1 nearly removed Overall phase margin greatly improved Effects of other poles and zero become more important Can we reduce CC and improve GB?
47
z1 ≈ p2 z2 ≈ gm2/Cgd2 z4 ≈ gm6/Cgd6 A0 gm6/CL
Operate not on this but on this or this z1 ≈ p2 z2 ≈ gm2/Cgd2 z4 ≈ gm6/Cgd6 w1 w2 pz=-1/RZCC -90 -180
48
Increasing GB by using smaller CC
It is possible to reduce CC to increase GB if z1/p2 pole zero cancellation is achieved Can extend to gm6/CL Or even a little bit higher But cannot push up too much higher Other poles, zeros Imprecise mirror pole/zero cancellation P2/z1 cancellation GB cannot be too high relative to these p/z cancellation Z2, z4, and pz=-1/RZCC must be much higher than GB
49
Possible design steps for max GB
For a given CL and Itot Assume a current share ratio q, i.e. I6+I5 = Itot, I5 = qI6 , I1 = I2 = I5/2 Size W6, L6 to achieve max single stage GB1 = gm6/(CL+Coutpara) A good trade off is to size W6 so that Cgs6 ≈ CL If L_overlap ≈ 5% L6, this makes z4=gm6/Cgd6 ≈ 20*GB1 Choose GB = aGB1, e.g. 0.5gm6/(CL+C1) Choose CC to make p2 < GB, e.g. Cc=CL/4, p2 ≈ GB/1.5 Size W1, L1 and adjust q so that gm1/CC ≈ GB Make z2=gm2/Cgd2 > (10~20)GB, i.e. Cgd2 < 0.1Cc Size Mz so that z1 cancels p2 Make sure PM at f=GB is sufficient Size other transistors so that para |p| > GB/(10~20) Check slew rate, and size other transistors for ICMR, OSR, etc
50
If CL=C1=4Cc, -p2=gm6/(C1+CL+C1CL/Cc) =1/3 * gm6/(C1+CL)
-pz=1/RzCc, Rz=1/gm6 *(1+CL/Cc+C1/Cc); -pz=gm6/(Cc+C1+CL) ≈ 3*(-p2) Pole/zero cancellation cancelled p2, but introduced a new pole pz at just a few times the p2 frequency, if done right;
51
For input common mode range
Vi+ = Vi- = Vicm should be allowed to vary over a large range without causing transistors to go triode Vicm_max = (VDD – Vdssat_tail) – VT – Vdssat1 Vicm_min = Vs of M1c – VT = VG of M1c/2c + Vdssat VG of M1c must be low But must be higher than Vo1 – VT1c Room for Vo1 variation: +- VEB of 2nd stage
52
Hence, Vicm_min depends on differential signal
bias M1c adaptively, based on actual input signal
53
For Balanced Slew Rate During output slewing On the otherhand
All of 1st stage current goes to Cc network I-Rz drop ≈ constant 2nd stage Vg variation << Vd or Vo |Cc d(Vo-Vg)/dt| ≈ |Cc dVo/dt| <= |I1st st | Slew rate = max |dVo/dt| <= I1st st /Cc On the otherhand I2nd st bias - I1st st is to charge CL+Cdbs max |dVo/dt| = (I2nd st bias - I1st st )/(CL+Cdbs) Want (I2nd st bias - I1st st )/(CL+Cdbs) = I1st st /Cc I2nd st drive max - I1st st is to discharge CL+Cdbs
54
Two-Stage Cascode Architecture
Why Cascode Op Amps? Control the frequency behavior Increase PSRR Simplifies design Where is the Cascode Technique Applied? First stage - Good noise performance Requires level translation to second stage Requires Miller compensation Second stage - Self compensating Reduces the efficiency of the Miller compensation Increases PSRR
55
Direct (Miller) Compensation
Figure 6: Two Stage Miller Compensation Transfer Function Figure 7: Small Signal Model for SMC Bandwidth Reduction Pole/Zero Locations RHP Zero Figure 8: Pole Splitting effect of SMC
56
Miller Compensation Compensation capacitor is between the output of the two stage. This results in pole splitting between the dominant and non dominant pole A RHP zero exists at Due to the feedforward component of the compensation current (Ic) The second pole exists at The unity gain frequency is at fun = gm1/2πCc ISSUES WITH MILLER COMPENSATION RHP zero reduces the phase margin of the amplifier and thus causes instability Requires large Cc for stability Slow speed for a given load, CL Poor PSRR Supply noise feeds through the compensation capacitor to the output Requires large die area
57
Miller Compensation with Zero Nulling Resistor
A common method to cancel the RHP zero is by using a series resistor with compensation capacitor The new location of the zero is The resistor Rz can be implemented using a transistor in triode region However introduces a third pole to the system
58
Need More Stable Op Amps
We can increase Rz and create a LHP zero to improve phase margin Becomes difficult to manage the location of the Rz over temperature and process variations Stability of the op amp is becoming a problem because of the non-dominant pole associated with the output (f2) is too low Increase f2 requires increase of gm of the output stage Increase area Increase output stage current (Id2)
59
Need a more practical way to Compensate
Avoid using Miller Compensation Avoid connecting a compensation capacitor between two high impedance nodes ! Literature has many examples illustrating how to avoid miller connections for high speed This research develops Indirect Feedback Frequency Compensation A more practical way to compensate Feedback compensation current indirectly using Common Gate Amplifier Cascoded Structures Improved PSRR Smaller Die Area (Compensation capacitor reduced 4~10 times) Much Faster ..!
60
Indirect Feedback - History
First proposed by B.K. Ahuja in “AN IMPROVED FREQUENCY COMPENSATION TECHNIQUE FOR CMOS OPERATIONAL-AMPLIFIERS,” Ieee Journal of Solid-State Circuits, vol. 18, no. 6, pp , 1983 However it is still seldom used in practice ?? Looks very similar to Miller compensation Prompts most designers to use design strategy for Miller-Rz compensation However the Indirect Compensation Scheme has much different pole/zero locations and conditions that need to be satisfied to tap the true potential of the compensation scheme Thus this work Provides analytical model/solution for the architecture Proposes a design procedure based on the analytical results Design Example using the proposed design procedure Simulation Results show the performance is orders of magnitude higher than miller compensation and far better than state of the art
61
Indirect Feedback Frequency Compensation
Improvements due to a simple change The compensation current is indirectly fedback from low impedance node VA to V1 The RHP pole zero can be eliminated as the feedforward current is blocked by the common gate amplifier Node V1 is now not loaded by the compensation capacitor (as previously) and thus results in a much faster second stage and increased unity gain frequency AND MUCH MORE ………
62
Small Signal Analysis TAKING KCL AT EACH NODE
63
Simplified Transfer Function
The transfer function can be simplified and approximated as:- The coefficients can be evaluated as Evaluating the poles and zeros Assuming the pole |p1| >> |p2|, |p3| The denominator can now be approximated Real Poles Complex Poles
64
bserving the Pole/Zero Locations
The third order transfer function as 3 poles and 1 zero Dominant Pole location Non-dominant Real Poles location Condition For Real Poles LHP Zero Location Remains at the same location Large gmc ? Improves Phase Margin
65
Analytical Results Summary
Pole / Zero Location Real Poles Condition Extended by a factor >1 Quick Facts Pole p2 moved to much higher frequency Can use much smaller gm5 Less Power LHP zero improves the phase margin Much faster op-amp with lower power and CC Will EXPLORE more ….
66
Alternative Implementations of Indirect Feedback
The common gate amplifier is embedded in the cascode action Similar to the common gate amplifier analyzed in the previous section, the LHP zero and the three poles are given by Equations provided previously Reduction in Power at cost of Flexibility choosing the transconductance of gmc Similar to cascoded PMOS loads However additional RHP zero located at: RHP zero High Frequency
67
Summarizing the Advantages of Indirect Feedback
Pole splitting can be achieved with a much smaller compensation capacitor (Cc) Faster Op Amp Much Smaller Area Lower Value of second stage transconductance (gm5) value required Lower Power and Less Total Current Required Improved PSRR Analytically the reason the non-dominant pole shifted to a higher frequency is because the compensation capacitor now does not load the first stage output.
68
Pre - Design Procedure Guidelines
Good Region For AMI 0.5CN VEB ≈ V To quantify how good of a job our transistor does, we can therefore define the following “figure of merits (FOM) Tranconductor Efficiency Transit Frequency
69
Indirect Feedback Design Procedure Summary
Noise Specification Gain-Bandwidth Requirement Slew Rate Specification Output Swing Specification Real Poles Requirement
70
Class A Output Stage Design
Bad Output Stage Design Not Controlling current in the output stage leads to: Bad input-referred offset Potential for large power dissipation Not controlling output stage gm (and thus stability) Class A output stages also suffer from poor slew rate
71
Class AB Output Stage Design
The Class AB output stage is realized by have a floating current source biased between the output stages transistors behaving like a push pull: Slew Rate Improved during discharging Controlled output stage current and gm Slew rate limitation shifted to the compensation capacitor which is small in the proposed compensation scheme and thus achieves much higher slew rate
72
Figure of Merit (FOM) To perform a comparison in terms of speed among the many compensation approaches independently of the particular amplifier topology, design choices, and technology, a figure of merit (FOM) that relates the load capacitance CL, the gain-bandwidth product ωGBW, and the total current consumption of the amplifier ITotal has been proposed [ref]. Small Signal FOM DC Transient FOM Single Stage Comparison Total Transcoductance Gm in multi-stage op amp
73
Design Example – Op Amp Specifications
Supply Voltages ± 1.25 V Load Capacitance: CL 100 pF Total Current (max) 30 μA DC gain: Ao 70 dB Unity-gain Frequency: fu 2 MHz Phase Margin: φM 60° Slew Rate: SR 1 V/μs Input Common Mode Range: VCMR ± 1 V Output Swing: Vout {max,min} ± 0.5 V Input Referred Noise 15 nV/√Hz Large Load Very Low Power Good Stability
74
Design Example – Device Sizing
Op Amp Sizing Transistor Multiplier Size (μm) M1,2 2 4.05/0.9 M3,4 3.6/2.4 M5 6 10.05/1.5 M6 12 15/1.05 M7 1.65/1.05 M9,b11 10 1.65/4.05 Mb1 1 Mb2 Mb3 Mb4 2.4/1.05 Mb5 12/1.05 Mb6 Mb7 3/1.2 Mb8 Mb9,10 1.95/0.6 Cc - 5 pF Isupply 1.25uA
75
Summary of Simulated Results
Specification Specifications Simulation DC gain: Ao 70 dB 72.45 dB Unity-Gain Frequency: fu 2 MHz 2.01 MHz Phase Margin: φM 60° 61.83° Slew Rate: SR+/- ± 1 V/μs 1/-2.45 V/μs Input Common Mode Range: VCMR + / VCMR= ± 0.5 V 1.1/-0.75 V Output Swing: Vout MAX/Vout MIN ± 1 V 1.14/-1.1 ITotal 30 μA Power - 75 μW High Speed + Low Power
76
AC Frequency Response (CL = 100pf)
Bandwidth Extension
77
Large Signal Transient Response (CL = 100pf)
78
Sine Wave Transient Response (CL = 100pf)
79
Robustness of Analytical Results
Small Error
80
Alternative Indirect Feedback Compensation Scheme Results
Comparison of Alternative Indirect Feedback Compensation Specification Common Gate Cascode NMOS Cascode PMOS DC gain: Ao 72.45 dB 91.1 dB 86.1 dB Unity-Gain Frequency: fu 2.01 MHz 1.99 MHz 2.2 MHz Phase Margin: φM 61.83˚ 61.29˚ 61.7˚ Improved gain due To cascoding Common Gate Cascode NMOS Cascode PMOS
81
Comparison with Miller Compensation and Single Stage Amplifiers
Performance Comparison to Miller Compensation and Single Stage Amplifiers Comparison with Miller Compensation and Single Stage Amplifiers Specification Single Stage Single Miler Compensation Indirect Feedback Compensation DC gain: Ao 36.93 dB 70.45 dB 72.45 Unity-Gain Frequency: fu 1.098 MHz 293.1 KHz 2.01 MHz Phase Margin: φM 90˚ 60.29˚ 61.7˚ Cc Required -NA- 35 pF 5 pF Winner Miller Compensation Indirect Feedback Single Stage
82
Performance Comparison to Literature
83
Floor Planning Considerations Orientation of Transistors
Power Distribution Routing Ease Current Mirror Matching
84
Final Layout
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.