Professional Documents
Culture Documents
16
the unity-gain frequency of the loop gain, 0 6 the closed-loop transfer function, V V A s out in the slew rate, SR
The bias point is studied with the help of DC-analysis. fb A s , 0 and m are measured in an open-loop linearized frequency (AC) simulation, with the positive input signal connected to a DC voltage 7 and an AC-voltage source connected to the negative input. Since in AC simulations only the linearized models of the components at a certain bias point are used, non-linear phenomena like distortion, clipping, and slewing can not be captured with AC simulation. The value of AC magnitude in the AC source denition only works as a scaling factor. SR is best measured with a closed-loop transient simulation. A step of 0.5V is applied at the input (pay attention to the DC-level and the vpulse source voltages), and a transient analysis is performed.
Homework
Read through the manual for this laboratory, including the design example, and read relevant sections of the text book or other sources. Work on the schematic as
this manual fb is used instead of f as used in the book (e.g. section 8.1). a(s) is the open-loop amplier gain, A(s) is the closed-loop gain. 6 See e.g. g. 9.9 in the textbook 7 If the amplier is supplied with 0V and 1.2V, a signal ground at around 0.6V would be suitable. However, this DC voltage also sets the common node voltage at the drain of Q5 ; Thus, it is more suitable to choose VDC = 0.5 V so Q5 operates in saturation.
5 In
17
much as possible before the lab; This will save you time. Answer the questions below: Twostage Operational Amplier 1. Give the equation for the gain A(s) in a non-inverting feedback amplier with capacitive feedback (see g.8), and show that A s = 2 for C1 C2 . 2. Draw a schematic of the twostage amplier, as in g. 10. Follow the design example and calculate all bias currents and device sizes. Make sure the following specications are met: Vout Vin A s 2 (in-band) 2 18 106 rad/s 3dB CL SR 25 V s m > 60 For the capacitors in the loop and the load, the following specication can be used: CL 2pF, C1 C2 2pF. Choose Q16 so that the zero introduced by CC is at innity, and choose CC to be 1pF, 2pF, or 3pF. The supply voltage VDD 1 2V . 3. What is the order of magnitude of the input offset voltage, and how does it impact open-loop simulations and measurements? 4. How can the loop gain be measured? Indicate this in g. 9.
Laboratory Exercises
Twostage Operational Amplier 1. Create a cell with the necessary views for the twostage amplier you designed in the homework exercise (g. 10). Pick the compensation capacitor,
R1 C2 C1
Vout Vin CL
18
Figure 9: Open loop conguration. MIMCAPS_MML130E, from the library umc130nmrfE. For the transistors use P_12_MML130E and N_12_MML130E. For the capacitors C 1 , C2 and CL capacitors from the library analogLib can be used. 2. Prepare for open-loop simulations by building a suitable test bench (g. 9). Start with a DC-analysis to study the bias points and measure the DC-offset voltage of the input of the amplier. Connect a DC voltage source, vdc from AnalogLib, between the inputs and dene the DC voltage as variable Voffset. Sweep this voltage in a small range until the output reaches 0.5V (see footnote 7): Set up for DC analysis (DC) (Analyses > Choose ...). Choose Task: sweep, press Select variable and choose Voffset. Dont forget to select Enabled. Set up relevant Probes (see Lab 2). 3. Examine the result by choosing Results > GoldenGate Results > opamp_open_tb_DC. In the DC Analysis Result window, choose Plot type waveform Probes Vout Plot mode Append Then click Plot. The x axis variable should be Voffset. It may be necessary to perform several sweeps in order to nd a precise enough value.
19
Figure 10: Twostage operational amplier. Do the simulated I5 , I7 , gm1 2 , and gm7 match the calculated values? Adjust the dimensions of the transistors if needed. 4. Verify your design by measuring f b a s , 0 and m with an AC measurement. Change your test bench and connect the earlier simulated offset voltage between the inputs. Set AC Magnitude to 1V and sweep between 10 Hz and 1 GHz. With the command Modify > Mag or Phase in the AC Analysis Results window you can get a pair of curves from which these data can be extracted. 5. Make a new closed-loop test bench. Close the feedback loop (g. 11) and nd A s . 6. Now apply a symmetrical 0.5V input step, and check the value of SR with a transient analysis. Use vpulse from the library AnalogLib. 7. Increase and decrease the capacitive load by a factor of 10 and repeat the transient analysis. What happens to the output?
Laboratory Report
Compose a report containing the difference of calculated and simulated values. Include the values of f b a s , 0 , m , A s , and SR. The report should also answer the questions in the homework section, and explain the results. Add plots of the interesting curves.
20
21
A s
2 in band 0
3dB CL
SR 30 V s m
70 R1
100 M
8 Note:
2 19 106 rad s
CL 1 5 pF C1 C2 1 pF
The specications and resulting values are different from the laboratory assignment.
R1 C2 C1
Vout Vin CL
22
We start by choosing CC 2 pF , which is approximately the same value as the total capacitance between the opamp output and ground. First, let us look at the current levels in the stages. The slew-rate specications determine the value of the currents in both the input and output stage: If the rst stage is limiting the slew rate, we have SR I5 CC and if the second stage is limiting the slew rate we have SR I7 CC CL C1 C2 . And thus: I5
SRCC 30 V s 2 pF 60A I7
SR CC CL C1 C2
120A Second, the transconductances are determined by bandwidth, gain and phase margin considerations. For a compensated opamp we can use Eq. 9.47 in the text book, combined with the schematic in g. 10: p1 p2 1 gm7 R2 R1CC
g m7 Cgs7 CL C1 C2 1 p3 R16Cgs7
1 gm7
1 R16 CC
In the above equations some parts have been neglected such as transistor parasitic capacitance other than Cgs . Resistances R1 and R2 are given by: R1 ro2 ro4 R2 ro6 ro7 and R16 is the resistance of Q16 in the linear region (eq. 2.53): R16 L16 1 W16 kn VGS16 Vt VDS16
The opamp should be designed so that the open loop -3dB bandwidth is mainly determined by the rst pole. The third pole is usually at such high frequencies that it can be neglected, and the zero should be put at innity by designing Q 16 right.
23
The transconductances of the input differential pair, g m1 2 are related to the GainBandwidth product (GWB, or unity-gain frequency, see eq. 9.49) of the open-loop opamp by the equality GBW Hz a0 f p1 as well as GBW A0 0 2 g m1 2 1 CC 2 1 0 fb 2
(combine Fig. 9.2, Eq. 9.47a and 9.50 in the book). Thus, g m1 2 0CC fb 2 19 106 2 10 0 5
12
480S
W L 1 2
g2 m1 2 2k p I5 2
480 2 38 2 100 10 6 60 10 6 2
This can be rounded off to W L 1 2 40. The phase margin 9 is impacted by the second pole: m 0
180 arctan
0 arctan 0 p1 p2
Thus, for a phase margin of at least 70 we need to place p2 at least at 30 . We can now derive a relation for gm7 . Using the above equation for p2 , and assuming that Cgs7 is in the range of 100fF, we can derive that gm7 30 Cgs7 CL C1 C2
3 2 20 106 2 2 10 We can now nd the dimensions of Q7 :
12
750 S
W L
g2 m7 2kn I7
6
This is quite a small ratio, and we can afford to increase the above ratios (rather arbitrarily), without loading the output of the differential stage too much: W L 7 50. The new value for gm7 becomes 2 2 mS. This will also increase the phase margin.
phase margin is dened as the phase compared to loop gain T j0 is 1.
9 The
24
Since the mirror-load transistor pair Q 3 Q4 ideally has the same gate-source voltage as Q7 , we can write the relation (see also Eq. 6.62, 6.63 in the textbook):
W L 7 W L 3 4
I7 I5 2
W L 3 4
I5 2 30 10 6 W L 7 50 12 5 I7 120 10 6
Q16 is working in the linear region, so we easily can implement a resistance of suitable value.10 Now that we know the dimensions of Q7 , we set Ron1 16 gm7 In the linear region, we have 11 (see Eq. 2.53 in the textbook)
W L Ron1 16 kn
Note that VS16 VG7 Vt 7
16
VGS16 Vt 16
2I7 W L kn
0 3 0 11 0 41 V "! !
2 f n VS16
2 f n 0 3 0 58
0 7 0 41
0 7 0 43V
W L
16
kn VGS16 Vt 16
g m7
2 2 10 3 15 400 10 6 0 79 0 43
Finally, the current sources Q5 and Q6 can be made so large that they require a small gate overdrive Vov . If we set Vov to 0 14 V , we obtain
and
W L
W L
16 is made somewhat larger), in order to increase the phase margin. This is easier to do after simulating the transfer function of the amplier, since the location of the zero depends on the position of the non-dominant poles/zeros. 11V DS16 is ignored; We assume a small AC signal.
25
For convenience we choose W L 8 = W L 5 and Ibias =I5 . As usual, it is good practice to choose transistor lengths and widths (much) larger then the smallest allowed by the process, since in this way we obtain a better match between transistors, and the transistors behave more in accordance with the long-channel approximation. A possible choice is a common length of 0 5 m, resulting in the following dimensions: Transistor Q1 Q2 Q3 Q4 Q5 Q6 Q7 Q8 Q16 W 20 20 6 6 30 60 25 30 7 5 L 0 5 0 5 0 5 0 5 0 5 0 5 0 5 0 5 0 5
Now we can try to estimate the dc-gain of the opamp: ao gm1 2 ro2 ro4 # gm7 ro6 ro7 From the book (Eq. 1.163, 1.164 and 1.194) we see that ro dXd dVDS
1L ef f
ID
where the effective transistor length L e f f = L - 2Ld - 2Xd . Thus, ro2 ro4 ro6 ro7 and thus ao
480 10