Analog Integrated Circuit Design: Nagendra Krishnapura
Analog Integrated Circuit Design: Nagendra Krishnapura
Analog Integrated Circuit Design: Nagendra Krishnapura
Nagendra Krishnapura
Address: Dept. of Electrical Engg., IIT Madras, Chennai, 600036, India.
Phone/Fax: +91-44-2257-4444/+91-44-2257-4402
e-mail: nagendra@iitm.ac.in
Contents
1 Negative feedback systems
Opamp circuits
10
12
Miscellaneous
15
17
Oscillators
19
Bandgap reference
20
21
11 Continuous-time filters
22
12 Switched-capacitor filters
24
13 Appreciating approximations
26
2
Nagendra Krishnapura, Dept. of EE
Indian Institute of Technology, Madras
Topic 1
vo
u
s
+
-
Vi
Ve
f(Ve)
+
-
f()
e-sTd
Vo
(a)
Vi
f()
1+f(0)
1.
Vnl
Vi
+
+
Vo
(b)
Vo
(c)
f (0) = 0.
(b) Fig. 1.2(c) shows the linear small signal equivalent circuit from Vi to Vo with an additional
attenuation factor.
Vi
+
-
Ve
Vo
u dt
(k-1)R
Vf
R
(a)
+
-
Ve
Vo
u dt
(k-1)R
Vf
R
(b)
Vi
u,loop
1
PN
m
s
m=0 am s
a0 = 1. What does the loop gain step response (inverse laplace transform of L(s)/s) look
like after an initial transient period? Give your answer in terms of the poles of the additional factor (Hint: Split L(s) into a sum of two parts, one of
which is u,loop /s)
Topic 2
Gi
Vo
+
GL
Gm2vo1 Go2
1
+
vo1
-
vd
CL
Cc
out
(a)
current controlled current source
Ci1
Rc
Gm2 Go2
ic
out
+
Gm2vo1 Go2
+
vo1
-
vd
Cc
ic
out
(b)
+
Gm2vo1 Go2
+
vo1
-
vd
-
Cc
out
(c)
opamp (Fig. 2.2(c)). Calculate their transfer functions and compare them to that of the conventional
tion symbolically and extracting the roots numerically. Comment on the accuracy of approximations.
Determine the closed loop transfer function and calculate its poles and zeros. How do these relate to
poles and zeros of the loop gain function.
Plot the unit step response and the loop gain magnitude and phase response.
Change each (one at a time) of Cc , Rc , GL = Gf =
stage opamp?
5
6
Cm1
Cm2
Gm1
Vi
Ro1
C1
Gm2
Ro2
C2
Gm3
Ro3
Vf
C3
+
Ve
-
+
Vo
-
(a)
Cm1
Gm1
Vi
Vf
Ro1
C1
A(s)
+
+
Ve
-
Vo
(b)
Gs
Cgs Cgd g g
ds
m
CL
GL
+
Vo
-
+
Vs
-
Topic 3
Opamp circuits
(k-1)R
Vi
kR
Rin
Rin
Rout
Rout
Vo
Vo
(k-1)R
Vo
+
Vi
Vi
(a)
R
Ii
Vo
R
(a)
Vi
(b)
Rin
(b)
vopa
Rout
Rin
vopa
+
vopa
R
(c)
Io
Io
+
vopa
Ii
load
Rout
(k-1)R
load
(d)
(b) Bandwidth
the step response, the criterion here is the bandwidth. Find the conditions to maximize the band-
using an opamp. Model the opamp as an integrator u /s. For each of these, calculate the transfer ratio (output/input), input impedance, and output
impedance at (a) dc, and (b) an arbitrary frequency
. For (b), set Rout = 0 when calculating the input
tute the values from the transfer function of the amplifier. How does it compare to a critically damped
system?
impedance and Rin = while calculating the output impedance. What happens to these three quanti-
Llarge
Cf
Clarge
Rf
Vi(j)
Vi(j)
Vo
Vo(j)
Vo1(j)
(a)
(b)
Ao=10
fu=100MHz
p2=400MHz
response
1pF
Is
ing controlled sources and passive elements. A parameterized macromodel of the opamp is very useful
the frequency response Vo /Is ? Show the ac magnitude response and the transient response to a current
Vi
R1
(a)
Vi=0 R1
R2
Vtest(j)
-L(j)Vtest(j)
the step response. What does the loop gain look like
for this circuit?
Calculate the expression for the gain-bandwidth
Vo
(b)
R2
Vi=0 R1
(For analytical calculations of maximally flat magnitude response, itll be simpler to use an ideal integra-
-L(j)Vtest(j)
Llarge
Clarge
Vtest(j)
(c)
tor model for the opamp, and then adjust the values
to account for the second pole).
OPA656 and 5 V supplies. Simulate these amplifiers with 10 MHz sinusoidal inputs of 400 mV peak.
Compute the distortion components upto the fifth
harmonic and compare the distortion performance of
the two amplifiers.
Plot the differential and common mode inputs of the
opamp in the two cases and explain the results using
the results from the previous problem.
When taking the DFT for distortion analysis, ensure that steady state is reached (wait
for a sufficiently long time before taking the
first point) and that you use an integer number of cycles to avoid spectral leakage (Refer to
http://www.ee.iitm.ac.in/nagendra/E6316/current/handouts.html
or the relevant lecture from EE658 at
http://www.ee.iitm.ac.in/nagendra/videolectures/)
OPA656
model
is
available
at
http://www.ee.iitm.ac.in/nagendra/cadinfo.html
Topic 4
V0-vx/2
V0+vx/2
and determine W (with L = 0.18 m) to get a current of 200 A. Simulate SID the noise spectral density of drain current from 100 Hz to 100 MHz.
V0-vx/2
200k
lay the spectral density plots (log y axis) and identify the 1/f noise corners. Plot the 1/f noise corners vs. L. Briefly explain the results. Plot ID vs.
between the exact expression and its linear approximation) in the resistor should be at most 5%. Cal-
slope . The current in a MOS transistor in the subthreshold region is proportional to exp(VGS /Vt )
10
Nagendra Krishnapura, Dept. of EE
Indian Institute of Technology, Madras
11
Topic 5
does the simulated noise compare to analytical calculations? What fraction of noise is contributed by
Rf ? (The relative contribution of different compo-
Vo
Sv,opa
R
Rf/k
Vpcos(t)
-
Iin
R/k
Vo
Sv,opa
Sv,opa
Rf
Iin
Rx
C vo
-
Vo
mean squared noise voltages), and the power dissipated in the circuit. If the impedances of all com-
Sv,opa
dissipation?
Derive a relationship between the signal to noise ra1. Determine the output noise spectral density and input
referred (current) noise spectral density of the transimpedance amplifiers in Fig. 5.1. The opamp has
an input referred voltage noise spectral density of
tio, power dissipation, and the bandwidth of the circuit (in Hz). What tradeoffs does this relationship
represent?
4. Determine the rms signal, rms noise, signal to noise
12
Nagendra Krishnapura, Dept. of EE
Indian Institute of Technology, Madras
13
Vdd
Ibias=max(iout)
R
R/k
+
Vi=(Vpp/2k)cos(t)
+Vs/2
Vo
+
-Vs/2
+Vs/2
Ibias
I0/n
I0/n
Iout
iout
-Vs/2
W/4n
M
L 2
W
M4
W/n
(a)
(b)
+Vs/2
W
M1
M3
gm4, gds4
gm3, gds3
+Vs/2
-Vs/2
-Vs/2
(c)
Vdd=1.8V
M1
M2 100A
max. voltage=1.1V
1A
(a)
Vdd=1.8V
M1
M2 100A
Iout
W/n
Vout
M3
M4
Vbiasp2
max. voltage=1.1V
1A
(b)
14
ID+ID/2
+ Vout
+ Vout
+
VGS
-
Topic 6
Miscellaneous
1. The circuit in Fig. 6.1(b) is the miller equivalent
of Fig. 6.1(a). Determine the transfer functions of
Fig. 6.1(a) and Fig. 6.1(b)? Are they the same?
Determine the transfer function of Fig. 6.1(c). Replace Fig. 6.1(c) by its miller equivalent Fig. 6.1(d)
and determine its transfer function. Are the results
the same? If not, what are the differences and why?
Carry out this exercise by first omitting Cgs and CL ,
and then including them in the analysis.
Vdd
RL
Vdd
RL
Vo
Vdd
Vi
I0
Vo
Vo
Vi
VG
Rs
Vi
I0
(a)
I0
(b)
I0
(c)
15
Nagendra Krishnapura, Dept. of EE
Indian Institute of Technology, Madras
16
C
Rs
Rs C(1+A)
-A
+
Vi
-
+
Vo
-
C(1+1/A)
-A
+
Vi
-
Co
C
Rs
+
Vi
-
+
Vo
-
CL
Cgs
+
Vo
-
Rs
+
Vo
-
Ci
+
Vi
-
gm, gds
gm, gds
Topic 7
Vdd
M4
M3
vo
Vcm+vcm
Vdd
M4
R1
vo
Vcm+vcm
M1
M2
M1
R2
Vcm+vi/2
M2
Vcm-vi/2
vx
I0
I0/2
I0
gds0
gds0
(a)
(b)
4.
2
press the answer in terms of the small signal parameters of: M0 (gm0 , gds0 ), M1,2 (gm0 , gds1 = ),
Vcm+vi/2
1
Vcm vi /2
I0/2
- vo +
Vcm+vi/2
8 pF
+v
o
-
vi = Vip cos(2fin t)
I0
1
2
(b)
(a)
Vcm
Vcm-vi/2
I0
8 pF
+
vout
8 pF
I0/2
Vcm-vi/2
8 pF
1/fs
5. Sample and hold: Design the sample and hold circuit in Fig. 7.4 using the fully differential folded cas-
17
Nagendra Krishnapura, Dept. of EE
Indian Institute of Technology, Madras
18
10 k
Vcm
vin
10 k
10 k
8 pF
Vcm = 0.9 V
10 k
vip
Vcm
Vcm
vin
differential step
vip , vin
1 Vppd:
Topic 8
Oscillators
Vdd
Rs
L
Vdd
Rs
Rdiff
Rs
vom
C
vop
Rs
ix
vom
Vdd
vx
vop
L
ix
I0
Rs
I0
(a)
C1
C2
I0
(b)
the condition for this to be infinity? What is the frequency at which this happens? Model the transistor
using only its gm .
the condition for this to be infinity? What is the frequency at which this happens?
Vdd
Figure 8.4: Problem 4
Zin
C1
C2
4. In Fig. 8.4, assume that all nodes are at the self bias
voltage of the inverter. Model the small signal gain
of each inverter as A0 /(1 + s/p1 ) and calculate the
I0
condition for instability (i.e. when the loop gain becomes 1). Hint: Among the roots of 1, pick the
one which satisfies the above for the lowest value of
A0 .
19
Nagendra Krishnapura, Dept. of EE
Indian Institute of Technology, Madras
Topic 9
Bandgap reference
Bias a 1x sized diode connected PNP1 at 5 A as shown
in Fig. 9.1(a) and sweep the temperature from 0 to 100 C.
Vdd
C1
5A
+
Vbe
(a)
(b)
Vdd
W/L
W/L
Vbg
R2
Vx
Vy
+
Cc
R1
and Vbg change? What is the purpose of this modification? Resimulate with the opamp model as before and
output.
model of the
single stage opamp
R3
C2
1.0
R1
gm1
1G
1x
1A pulse for
transient test
8x
(c)
Vdd
W/L
W/L
Vz or Vx
Vbg
Vz
Vw or Vy
Vw
+
R2
R3
Vx
Cc
1A pulse for
transient test
Vy
R1
connect the opamp inputs to
1x
8x
(d)
20
Nagendra Krishnapura, Dept. of EE
Indian Institute of Technology, Madras
Topic 10
1.2V
output voltage is constant over time. These are departures from conventional amplifiers.
Isup
IL
Vout
Load
R2
R1
(a)
Bandgap
reference
1.2V
Vdd
M1
+
Vout
20A
IL
Load
CL
(b)
Use the model in Fig. 9.1(b) for the single stage opamp.
Use a 50 A quiescent current in M1 . Adjust the
width (with minimum length) of M1 for a dropout of
300 mV with a 50 mA current. You can use a 1.2V voltage
source in place of the bandgap reference. Compensate the
Zout
A voltage regulator is nothing but a noninverting amplifier the following (except the last one) for two cases (IL = 0
whose input is the bandgap voltage from a reference. In and IL = 50 mAyou can use a current source for the
Fig. 10.1(a), the output voltage is (R2 /R1 )Vbg . By mak- load):
ing R2 variable, one can get a variable voltage output.
Topic 11
Continuous-time filters
(a) Compute the transfer functions Vo /Vi in terms
cuits bilinear and biquad in a circuit simulator1 with the required parameters. You can
then use these subcircuits to realize ideal cascade realizations of any transfer function.
1.
0dB
0dB
-1dB
-1dB
-40dB
-40dB
response of the prototype (last column of Table 11.1). If this filter were scaled such that it
had an attenuation As = 40 dB at 2 MHz (the
stopband edge), what would be its attenuation
at the passband edge (1 MHz)?2 Does it meet
the specs in Fig. 11.2(a)?
(a)
2 rad/s
1 rad/s
2MHz
1MHz
(b)
(c) For each filter, determine the maximum transfer function magnitude from the input to each
of the stage (first or second order) outputs. If
each output were limited to 1 V, what is the
2 You dont need to rescale the filter and simulate. You should be able
to answer this by looking at the prototype response.
3 Plot the magnitude responses of the 5 filters in the same plot; same
for the phase response and the group delay. Plot the magnitude response (in dB) twiceonce showing the whole picture and once zoomed
in on the passband. Use sensible scales so that the details of the response
can be seen. e.g. with notches, the response goes down to dB and
the default scale may be totally unsuitable.
22
Nagendra Krishnapura, Dept. of EE
Indian Institute of Technology, Madras
+
Vi
-
+
C=1/p R=1
+
-
b1IC
+
-
b0IR
Vo
Vi
IC
23
transconductance=1S
transconductance=1S
+
Vi
-
C=1/p R=Q
L=1/p
Vi
IR
IC
(a)
IR
+
-
b2IC
+
-
b1IR Vo
+
-
b0IL
IL
(b)
"bilinear"
"biquad"
Butterworth
Chebyshev
Inverse Chebyshev
Elliptic
Bessel
poles
poles
zeros
poles
zeros
poles
poles
1.1031 j0.2194
0.0895 j0.9901
j3.0671
0.2811 j1.1013
j3.5251
0.3643 j0.4786
0.3868 j1.0991
0.9351 j0.6248
0.2342 j0.6119
j1.8956
0.9461 j0.8751
j1.6095
0.1053 j0.9937
0.6127 j0.8548
0.6248 j0.9351
0.2895
1.4202
0.2194 j1.1031
0.7547 j0.6319
0.8453 j0.4179
0.8964 j0.2080
0.9129
Topic 12
Switched-capacitor filters
1. A continous time first order filter has a transfer function
Hc (s) =
2
1 + s/p
time transfer functions Hd (z) using bilinear transformation. The sampling frequency fs = 1 MHz.
H(s) =
N (s)
1 + (s/Qp p ) + (s/p )2
results.
pling frequency.
(d) Noninverting delayed switched capacitor integrator whose magnitude response is equal to
bandpass filter into a DT(discrete time) bandpass filter using bilinear transformation. The gain at center
formed filter).
Do it for both p = 2 20 krad/sand p = 2
200 krad/s. In each case, give the schematic and the
component values.
24
Nagendra Krishnapura, Dept. of EE
Indian Institute of Technology, Madras
25
E
2
1
2
Vi
n+2
n+1
1
H
V1
n-1
2
1
1
2
2
1
J
V2
Vi[n-1]
Vi[n]
Vi[n+1]
Vi[n+2]
V1[n-1]
V1[n]
V1[n+1]
V1[n+2]
V2[n-1]
V2[n]
V2[n+1]
V2[n+2]
(input)
Topic 13
Appreciating approximations
Approximations are key to understanding anything complicated. Exact expressions, even when possible, may be
too complicated to give any insight to the problem. Approximating is not the same as being sloppy. On the contrary, a greater understanding of the problem is required
to judiciously use approximations than plug in the whole
formula (e.g. see the quadratic eq. example below).
Evaluate the conditions for 1% and 10% accuracy for the
quantities mentioned using the approximations below.