Beruflich Dokumente
Kultur Dokumente
0 CMOS OPAMP
Cc
Vin A1 -A2 A3 VO
V1 V2
Differential Inverter Buffer
stage gain stage gain stage gain
Note the second stage needs to have a negative gain because of the feedback capacitor. With a positive
gain an oscillator or unstable system will be implemented instead. The last stage is a buffer to convert the
high output impedance of the inverter stage to a low output impedance. This is needed in developing a
good opamp. Ideal opamp requires rin =∞ and ro=0.
V1 − V2 1 V1 + AV1 1 V1 (1 + A) 1 V1 1
= ; = ; = ; =
I1 sC c I1 sC c I1 sC c I1 sC c (1 + A)
This is known as the miller capacitance. The feedback capacitance value appears at the input side of the
gain stage with a value magnified by (1+A).
V2 1
V2 + V2 (1 + )
V2 − V1 1 A = 1 ; A = 1 ; V2 = 1 1
= ; = ; when A >> 1
I2 sC c I2 sC c I2 sC c I 2 1 sC c
sC c (1 + )
A
1
Due to Miller effect, the load of the first stage is effectively the compensation capacitance Cc magnified by
(1+A2)
Vin A1 V1
Cc(1+A2)=Ceq
=A2Cc
The gain
V1
A1 = = −g m1 Z o1 = g m2 Z o1
Vin
where:
1 1 1 1
Z o1 ≅ rds2 / /rds4 / / ≅ = ≅
sC eq sC eq s(1 + A2)C C sA2C C
The voltage gain of the opamp, assuming the output buffer has unity gain (A3=1),
Vo g g g
Av(s) = = A3A2A1 = A3A2 m2 = A3 m2 = m2
Vin sA2Cc sCc sCc
The unity gain bandwidth, wGB is the radian frequency when the gain is 1. That is,
g m2
Av(s) = Av(jw GB ) = =1
jw GB Cc
Solving for wGB,
g m2
w GB =
CC
2
VDD
Vbias M5
Cc
Vin- Vin+
M1 M2
V1
-A2 V2
M3 M4
Inverter stage gain
Slew rate is the maximum rate at which the output changes when input signals are large. When
vin+ >>0 (vin-<<0) is large positive (negative), M1 is on and M2 is off. Hence ISD1=ISD5, since ISD2=0. The
current flows through M3 which is then mirrored to M4, therefore ISD1=IDS3=IDS4=ISD5. The current in the
compensation capacitor can only flows through M4, since M2 is off and the input impedance of the second
stage A2 is ∞. That is ICc=IDS4=ISD5.
On the other hand, when vin+<<0 (vin->>0) is large negative (positive), M1 is off and M2 is on. Hence,
ISD1=0 which flows through M3 and mirrored to M4, therefore IDS3=IDS4=0. That is, current source ISD5
flows through M2, then to Cc directly, since M4 is off.
q
d
d (Vo ) Cc I 2I
SR = = = SD5 = SD1
dt dt Cc Cc
3
A VO
Av(s) =
s
1+
p1
where:
AVO is the dc gain of the opamp, and p1 is the real axis dominant pole.
DB
AVO
-20db/dec
w
wBW =p1 wGB
The relation between the unity gain bandwidth, wGB, and the dominant pole p1 can be obtained by the
finding the radian frequency when the magnitude of the voltage gain is equal to 1. That is,
A VO A VO
Av(jw GB ) = ≅ =1
w GB w GB
1+ j j
p1 p1
w GB ≅ A VO p1
A VO A A p w
Av(s) = ≅ VO = VO 1 = GB
s s s s
1+
p1 p1
4
Vin + Av(s) Vo
VO = A V Vin − βA V VO
VO (1+ βA V ) = A V Vin
Av(s) w GB /s 1 1
A CL (s) = = =
1 + βAv(s) 1 + βw GB /s β s
1+
βw GB
where: (1/β) is the dc gain of the closed loop system. LG(s)=βAv(s) is the loop gain. The frequency when
the closed gain is 3 Db down occurs when the LG becomes unity. That is,
w GB
LG(s) = β =1
jw -3db
That is,
w -3db = βw GB = w GB ; β = 1
Opamps are compensated to behave as a simple pole system up to a radian frequency of wGB. This
is the case whenever the PM of the Opamp is designed for at least 60°. The settling time is the time needed
for the output of the opamp to reach a final value to within a predetermined tolerance. This can be
determined using the first order model of the opamp given by:
A VO
A V (s) =
s
(1 + )
p1
5
A V ( s) A VO 1
A CL ( s ) = = =
1 + A V ( s) s 1 s
1 + + A VO (1 + )+
p1 A VO A VO p1
1
1 1 −1
1+ (1 + )
A VO A VO
= ≈
s s
1+ 1+
1 A VO p1
A VO p1 (1 + )
A VO
1 −1
(1 + )
A VO
VO ( s ) = A CL ( s ) U( s ) =
s
s (1 + )
A VO p1
1 −1
VO ( t) = (1 + ) (1 − e − w GB t )u(t)
A VO
1 −1 1
VO (∞) = (1 + ) = 1− = 1− ε
A VO A VO
For large AVO,
VO ( t) = (1 − e − w GB t )u(t)
VO ( t s ) = (1 − e − w GB t s ) ≈ VO (∞) = 1 − ε
1 1 1 1 1
t s (ε ) = ln( ) = ln( ) = τ ln( )
w GB ε A VO p1 ε ε
For a step input the output initially slews, then slowly settles toward its final value, determined by the gain
bandwidth product.
ε ts (settling time)
<1% 4.6τ ≅ 5τ
<.5% 5.3τ ≅ 6τ
6
1.6. Opamp Second Order Model
For compensation of an Opamp, we need at least a second order model
A VO
Av(s) =
(1 + s/p1 )(1 + s/p 2 )
DB
AVO
-20db/dec
w
p1 wGB p2
-40db/dec
A VO A VO p1 w GB
Av(s) ≅ = =
(s/p1 )(1 + s/p 2 ) s(1 + s/p 2 ) s(1 + s/p 2 )
The loop gain for this second order model is given by:
βw GB
LG(s) = βAv(s) =
s(1 + s/p 2 )
The radian frequency at 3db down is obtained by setting the magnitude of LG(s) to 1.
7
βw GB
LG(jw -3db ) = =1
jw -3db (1 + jw -3db /p 2 )
w -3db w -3db
w GB = 1 + ( w -3db / p 2 ) 2 ≅ = w -3db ; β = 1
β β
Phase margin is the phase angle between the loop gain phase angle and -180 degree. It is a measure of
stability. First let us determine the loop gain phase angle:
βw GB
LG(jw) =
(jw)(1 + jw/p 2 )
Av(s) A CL0
A CL (s) = =
1 + βAv(s) (1/p1 + 1 / p 2 ) 1
1+ s+ s2
1 + βA VO (1 + βA VO )(p1 p 2 )
where:
A VO 1
A CL0 = ≅ ; A VO >> 1
1 + βA VO β
A VO
H 2 (s) =
1 1
1+ s+ 2
s2
w 0Q (w 0 )
where:
wo is the resonant frequency, and Q is the Q factor. We obtain,
w 0 = (1 + βA VO )(p1 p 2 ) ≅ βw GB p 2
8
1 + βA VO
w 0Q =
(1 / p1 + 1 / p 2 )
(1 + βA VO ) /(p1 p 2 ) (1 + βA VO )(p1 p 2 )
Q= =
(1/p1 + 1 / p 2 ) (p1 + p 2 )
(1 + βA VO )p1 βA VO p1 βw GB
= ≅ =
p1 p2 p2
( + p2 )
p2
The step response overshoot is a function of Q,
−π
4 Q 2 −1
%overshoot = 100e
PM wp2/wGB Q %overshoot
55° 1.4285 0.925 13.3%
60° 1.733 0.817 8.7%
65° 2.1459 0.717 4.7%
70° 2.748 0.622 1.4%
75° 3.733 0.527 0.008%
For no overshoot, select PM=75°. Note that Q is proportional to β. That is the worst case PM occurs when
β=1. Thus for opamp compensation where 0<β(s)<=1 is frequency dependent , if the opamp is
compensated for β=1, it is guaranteed to be stable for all other β.
9
(3) VDD
M5 M7
(5)
V- V+
(1) M1 M2 (2)
(6) Yc (9)
(7)
M3 M4 M6
(4) VSS
10
YC
Vx
+ + +
gm6V1b
gm1V1a
g ds7
g ds2
g ds6
g ds4
V1a=vid V2a=V1b C2 Vo
C1 - -
-
(a)
YC
Vx
+ + +
gm2V1a
gm6V1b
g ds7
g ds2
g ds6
V1a=vid g ds4 V2a=V1b C2 Vo
C1
- - -
(b)
Vx YC
+ + +
gm2V1a
gm6V1b
(c)
VX Y3
I1 I2
+ I3 +
gm6VX
gm2V1
V1 Y1 Y2 V2
(d)
Figure 8. Opamp Small Signal Equivalent Circuit of the First Two Stages.
In Figure 8(a) each amplifier stage is replaced by its equivalent circuit. C1 and C2 are the parasitic
capacitances of the Opamp at node 6 and 9 respectively. The second stage of an opamp is an inverter stage.
The overall gain of the opamp can be made positive, by switching the positive and negative inputs of the
differential gain stage. That is the positive input is now the gate of M2. Figure 8(b) shows this by reversing
the polarity of the first controlled current source and replacing gm1 by gm2 to indicate M2 gate is the
positive input. Figure 8(c) simplify the equivalent circuit by combining the resistances and
capacitances.That is,
11
1 1
R1 = =
g ds2 + g ds4 (λ 2 + λ 4 )I SD2
1 1
R2 = =
g ds6 + g ds7 (λ 6 + λ 7 )I DS6
From Figure 8(c), the port current equations are derived to obtain the Y parameters:
I1 = 0
I 2 = g m6 Vx + Y2 V2 + Y3 (V2 - Vx ) = (Y2 + Y3 )V2 + (g m6 - Y3 )Vx
At node Vx
I 3 + g m2 V1 + Y3 (Vx - V2 ) = 0
I 3 = Y1 Vx
Substitute I 3 and solve for Vx ,
Y1 Vx + g m2 V1 + Y3 (Vx - V2 ) = 0
(Y1 + Y3 )Vx + g m2 V1 - Y3 V2 = 0
g m2 Y3
Vx = - V1 + V2
Y1 + Y3 Y1 + Y3
Substituting Vx to I 2
g m2 Y3
I 2 = (Y2 + Y3 )V2 + (g m6 - Y3 ) - V1 + V2
Y1 + Y3 Y1 + Y3
(Y - g )g Y Y + Y1 Y3 + Y2 Y3 + g m6 Y3
= 3 m6 m2 V1 + 1 2 V2
Y1 + Y3 Y1 + Y3
0 0
Y = (Y3 - g m6 )g m2 ∆ + g m6 Y3
Y +Y Y1 + Y3
1 3
where ∆ = Y1 Y2 + Y1 Y3 + Y2 Y3
V2 - y 21 (g - Y3 )g m2
Av = = = m6
V1 y 22 + YL ∆ + g m6 Y3
12
Case1: Y3 = 0, or C c = 0
Y1 = G 1 + sC1
Y2 = G 2 + sC 2
∆ = Y1 Y2
V2 − y 21 (g - Y3 )g m2 g m2 g m6 g m2 g m6 g m2 g m6
Av = = = m6 = = =
V1 y 22 + YL ∆ + g m6 Y3 Y1 Y2 (G 1 + sC1 )(G 2 + sC 2 ) G 1G 2 (1 + sR 1C1 )(1 + sR 2 C 2 )
g m1g m2 R 1 R 2 A V0
Av = =
(1 + R 1C1s)(1 + R 2 C 2 s) s s
(1 - )(1 - )
p1 p2
where:
A V0 = g m1g m2 R 1 R 2
−1
p1 =
R 1 C1
−1
p2 =
R 2C2
Case2: Y3 = sC 3 = sC C
(g m6 - Y3 )g m2 (g m6 - sC 3 )g m2
Av = =
∆ + g m6 Y3 G 1G 2 + [G 1 (C 2 + C 3 ) + G 2 (C1 + C 3 )]s + ∆ C s 2 + sg m6 C 3
C3
g m2 g m6 R 1 R 2 (1 - s
)
g m6
=
1 + s[(C 2 + C 3 )R 2 + (C1 + C 3 )R 1 + g m6 R 1 R 2 C 3 ] + s 2 R 1 R 2 ∆ C
s s 1 1 1 1 1
D(s) = (1 - )(1 - ) = 1 − s( + ) + s 2 ≅ 1− s + s2
p1 p2 p1 p 2 p1 p 2 p1 p1 p 2
13
−1 −1
p1 ≅ ≅
(C 2 + C C )R 2 + (C1 + C C )R 1 + g m6 R 1 R 2 C C g m6 R 1 R 2 C C
- g m6 C C − g m6 − g m6
p2 ≅ = = ; C 2 >> C1 C C >> C1 C 2 ≈ C L
C1 C 2 + C 2 C C + C 1 C C C2 CL
g
z 1 = m6
CC
AV0
-20db/dec
w
p1 wGB p2 z
-40db/dec
-20db/dec
For good stability a phase margin of at least 60° is desirable This can be achieved as follows:
w GB = A V0 p1 ; A V0 ≈ ∞
z ≥ 10w GB
Then
14
p 2 = 2.2 w GB
or
CL
g m6 = 2.2 g m2
CC
That is, the transfer function has two poles and one RHP zero. The RHP zero contributes a negative phase
angle.
s
A V0 (1 − )
A V (s) = z
s s
(1 + )(1 + )
p1 p2
The phase angle at the unity gain radian frequency (wGB) is
∠A V ( w GB ) = − tan −1 ( w GB / z ) − tan −1 ( w GB / p1 ) − tan −1 ( w GB / p 2 )
g m6 g m6
In addition, p 2 < z ⇒ < ⇒ C C < C L . Hence,
CL CC
0.22C L < C C < C L
1 1 1 1 1 sG 3 C 3
Case 3: Z3 = R 3 + = + = + ; Y3 =
sC 3 G 3 sC 3 G C sC C G 3 + sC 3
15
∆ = Y1 Y2 + Y1 Y3 + Y2 Y3
sG 3 C 3 sG 3 C 3
= (G 1 + sC1 )(G 2 + sC 2 ) + (G 1 + sC1 ) + (G 2 + sC 2 )
G
3 + sC 3 G
3 + sC 3
sG 3 C 3
(g m6 - )g m1
(g m6 - Y3 )g m1 G 3 + sC 3
AV = =
∆ + g m6 Y3 sG 3 C 3
∆ + g m6
G 3 + sC 3
[g m6 G 3 + (g m6 C 3 - G 3 C 3 )s]g m1
=
G 1G 2 G 3 + (∆ G C 3 + G 1G 3 C 2 + G 2 G 3 C1 + g m6 G 3 C 3 )s + (G∆ C + G 2 C1C 3 + G 1C 2 C 3 )s 2 + C1C 2 C 3s 3
g C - G 3C 3
g m1g m6 G 3 1 + m6 3 s
g m6 G 3
=
{
G 1G 2 G 3 1 + cs + bs 2 + as 3 }
where :
c = [(R 1 + R 2 + R 3 )C 3 + R 2 C 2 + R 1C1 + g m6 R 1 R 2 C 3 ]
b = [R 1 R 2 ∆ C + R 1 R 3 C1C 3 + R 2 R 3 C 2 C 3 ]
a = R 1 R 2 R 3 C1 C 2 C 3
C
g m1g m6 R 3 1 + R 3 C 3 - 3 s
g m6
AV =
1 + c' s + b' s 2 + a' s 3
where :
c' = [(C 2 + C 3 )R 2 + (C1 + C 3 )R 1 + g m6 R 1 R 2 C 3 + R 3 C 3
b' = R 1 R 2 ∆ C + R 1 R 3 C1C 3 + R 2 R 3 C 2 C 3
a' = R 1 R 2 R 3 C1C 2 C 3
16
(3) VDD
M10
w=300u
l=6.6u
(8)
M5 M7 M9
w=30u w=90u w=300u
l=6.6u l=6.6u l=6.6u
Vo
(5) (10)
V- V+
(1) M1 M2 (2)
w=36.6u w=36.6u Cc
IB=100uA l=6.6u l=6.6u (6) (9)
M8
w=873.6u
l=6.6u
(7)
M6
M3 M4
w=32.4u
w=5.4u w=5.4u
l=6.6u
l-6.6u l-6.6u
(4) VSS
Figure 10
17
From wGB specification,
g m1 1
w GB = = 2K P ( W/L)1 I SD1
CC CC
g m1 = C C w GB = (1E - 12)(2π 5E6) = 31.4umho
W (g m1 ) 2 [31.4E - 6] 2
= = = 6.57
L 1 2K P I SD1 2(15E - 6)(5E - 6)
To satisfy both specifications select the higher (W/L) ratio. For matching and symmetry, we also choose
(W/L)2 = (W/L)1=6.57
PM = 90 - tan -1 ( w GB / z) - tan -1 ( w GB / p 2 )
g m2 g g m6
w GB = ; z = m6 ; p 2 = ; z < p 2 ; since C C > C1 + C 2
CC CC C1 + C 2
A pessimistic estimate of PM is obtained by assuming z = p 2 . That is,
18
g /C g
PM < 90 - 2tan -1 m2 C = 90 − 2 tan -1 m2
g m6 /C C g m6
g 90 − PM
tan -1 m2 <
g m6 2
g m2 90 − PM
< tan
g m6 2
g m2
g m6 >
90 − PM
tan
2
To achieve PM>60,
31.4E − 6
g m6 > = 117.122E - 6 ≈ 120E - 6
tan((90 - 60)/2)
W g m6 120E - 6
= = =6
L 6 K N VDS6(SAT) (40E - 6)(0.5)
g 2m6 (120E - 6) 2
I DS6 = = = 30uA
2K N ( W/L) 6 2(40E - 6)(6)
For balance condition the current through M6 must be properly ratioed with the current through M3,
( W/L) 6 6
I DS6 = I DS3 = (5uA) = 30uA
(W/L) 3 1
(5) Determine (W/L)7 from the balance condition and that ISD7=IDS6
I SD7 30uA
(W/L) 7 = ( W/L) 5 = (5.333) = 15.999 ≈ 16
I SD5 10uA
19
(7) From the output resistance specification Ro ≤ 1.46k, (W/L)8 can be determined. The output resistance
is given by:
1 1 1
RO = = =
g m8 2 β 8 I SD8 2K P (W/L)8 I SD8
Solving for (W/L)8 , assuming ISD8 = 100uA and Pspice parameter KP=15 uA/V2
1 1
(W/L)8 = 2
= = 156
2K P R O I SD8 2(15E - 6)(1.46E + 3) 2 (100E - 6)
(8) Determine the (W/L) of the current mirrors. First set up the current source M10 to 100uA using the
biasing current source IB. The VGS8 is set up to guarantee it operates at saturation by adding -0.5v beyond
its threshold voltage of Vtp=-1v . That is VSG10 = 1.5v. (W/L)10 can now be determined as follows:
2I SD10 2(100E - 6)
( W/L)10 = = = 53.33
K P (VSG10 − | Vtp |) 2
(15E - 6)(1.5 - (-1)) 2
This complete the design. The results is summarized in the following table:
PAR M1 M2 M3 M4 M5 M6 M7 M8 M9 M10
I(Ua) 5 5 5 5 10 30 30 100 100 100
T P P N N P N P P P P
W/L 6.57 6.57 1 1 5.333 6 16 156 53.33 53.33
W(u) 36.792 36.792 5.6 5.6 29.865 33.6 89.6 873.6 298.65 298.65
L(u) 6.6 6.6 6.6 6.6 6.6 6.6 6.6 6.6 6.6 6.6
Leff(u) 5.6 5.6 5.6 5.6 5.6 5.6 5.6 5.6 5.6 5.6
PAR M1 M2 M3 M4 M5 M6 M7 M8 M9 M10
I(Ua) 5 5 5 5 10 30 30 100 100 100
T P P N N P N P P P P
W/L 6.57 6.57 1 1 5.333 6 16 156 53.33 53.33
W(u) 36.6 36.6 5.4 5.4* 30* 32.4* 90* 873.6 300 300
L(u) 6.6 6.6 6.6 6.6 6.6 6.6 6.6 6.6 6.6 6.6
Leff(u) 5.6 5.6 5.6 5.6 5.6 5.6 5.6 5.6 5.6 5.6
20
* Adjusted to satisfy the balance condition to minimize the input offset voltage, Vos:
( W/L) 6 ( W/L) 7
=2
(W/L) 4 (W/L) 5
32.4 90
=2
5.4 30
6=6
* Input Signals
VID 11 0 DC 0V
E- 1 12 11 0 -0.5
E+ 2 12 11 0 0.5
VIC 12 0 DC 0V
* Power Supplies
VDD 3 0 DC 5VOLT
VSS 4 0 DC -5VOLT
*Bias current
IB 8 4 100UA
* SPICE Parameters
21
.MODEL NMOS1 NMOS VTO=1 KP=40U
+ GAMMA=1.0 LAMBDA=0.02 PHI=0.6
+ TOX=0.05U LD=0.5U CJ=5E-4 CJSW=10E-10
+ U0=550 MJ=0.5 MJSW=0.5 CGSO=0.4E-9 CGDO=0.4E-9
.MODEL PMOS1 PMOS VTO=-1 KP=15U
+ GAMMA=0.6 LAMBDA=0.02 PHI=0.6
+ TOX=0.05U LD=0.5U CJ=5E-4 CJSW=10E-10
+ U0=200 MJ=0.5 MJSW=0.5 CGSO=0.4E-9 CGDO=0.4E-9
*Analysis
.OP
.DC VID -300uV 300uV .1uV
.TF V(10) VID
.PROBE
.END
22
voltage Vo=V(10)=0. From the above graph, this is equal to –8.2484uV. The resulting output
voltage from simulation is –2.753E-6V, as shown below:
VID 11 0 DC –8.2484uV
4.4048 − (−2.8356)
A vd = = 1.833E + 4
(225.5E - 6) - (-169.4E - 6)
This is very closed to the value obtained using TF analysis of 1.810E+4,
as shown below:
V(10)/VID = 1.810E+04
23
M3 7 7 4 4 NMOS1 W=5.4U L=6.6U
M4 6 7 4 4 NMOS1 W=5.4U L=6.6U
M5 5 8 3 3 PMOS1 W=30U L=6.6U
M6 9 6 4 4 NMOS1 W=32.4U L=6.6U
M7 9 8 3 3 PMOS1 W=90U L=6.6U
M8 4 9 10 10 PMOS1 W=873.6U L=6.6U
M9 10 8 3 3 PMOS1 W=300U L=6.6U
M10 8 8 3 3 PMOS1 W=300U L=6.6U
Cc 9 6 1pF
* Bias current
IB 8 4 100UA
* SPICE Parameter
.MODEL NMOS1 NMOS VTO=1 KP=40U
+ GAMMA=1.0 LAMBDA=0.02 PHI=0.6
+ TOX=0.05U LD=0.5U CJ=5E-4 CJSW=10E-10
+ U0=550 MJ=0.5 MJSW=0.5 CGSO=0.4E-9 CGDO=0.4E-9
.MODEL PMOS1 PMOS VTO=-1 KP=15U
+ GAMMA=0.6 LAMBDA=0.02 PHI=0.6
+ TOX=0.05U LD=0.5U CJ=5E-4 CJSW=10E-10
+ U0=200 MJ=0.5 MJSW=0.5 CGSO=0.4E-9 CGDO=0.4E-9
* Analysis
.DC VIC -5V 5V .05V
.TF V(10) VIC
.PROBE
.END
24
The common-mode input range is determined when the output cease to follow the input linearly. At the
low end, it determines VG1(min)=-4.4255, and at the high end, it determines VG1(max)=3.1383. These are
very closed to the corresponding design specifications of VG1(min=-4.5 and VG1(max)=3.
The common-mode gain is obtained by locating two points as far apart in the linear range about the
operating point. This is shown in the graph above, and computed as follows:
1.6406 − (−2.0677)
A cm = = 0.49373
3.1915 − (−4.3192)
This is very closed to the value obtained using the TF analysis of 0.4984, as shown below:
V(10)/VIC = 4.984E-01
A vd 1.833E + 4
CMRR = = = 37125.5
A cm 0.49373
* Filename="opamp33.cir"
* MOS Diff Amp with PMOS Input and Current Mirror Load
* Input Signals
VID 11 0 DC –8.2484uV AC 1V
E- 1 12 11 0 -0.5
E+ 2 12 11 0 0.5
VIC 12 0 DC 0V
* Power Supplies
VDD 3 0 DC 5VOLT
VSS 4 0 DC -5VOLT
* Netlist for Frequency Response Measurement
M1 7 1 5 5 PMOS1 W=36.6U L=6.6U
M2 6 2 5 5 PMOS1 W=36.6U L=6.6U
M3 7 7 4 4 NMOS1 W=5.4U L=6.6U
M4 6 7 4 4 NMOS1 W=5.4U L=6.6U
M5 5 8 3 3 PMOS1 W=30U L=6.6U
M6 9 6 4 4 NMOS1 W=32.4U L=6.6U
M7 9 8 3 3 PMOS1 W=90U L=6.6U
M8 4 9 10 10 PMOS1 W=873.6U L=6.6U
M9 10 8 3 3 PMOS1 W=300U L=6.6U
M10 8 8 3 3 PMOS1 W=300U L=6.6U
25
Cc 9 6 1pF
CL 10 0 2pF
*Bias current
IB 8 4 100UA
* SPICE Parameters
.MODEL NMOS1 NMOS VTO=1 KP=40U
+ GAMMA=1.0 LAMBDA=0.02 PHI=0.6
+ TOX=0.05U LD=0.5U CJ=5E-4 CJSW=10E-10
+ U0=550 MJ=0.5 MJSW=0.5 CGSO=0.4E-9 CGDO=0.4E-9
.MODEL PMOS1 PMOS VTO=-1 KP=15U
+ GAMMA=0.6 LAMBDA=0.02 PHI=0.6
+ TOX=0.05U LD=0.5U CJ=5E-4 CJSW=10E-10
+ U0=200 MJ=0.5 MJSW=0.5 CGSO=0.4E-9 CGDO=0.4E-9
* Analysis
.AC DEC 10 0.1HZ 10000MegHz
.TF V(10) VID
.PROBE
.END
V(10)/VID = 1.810E+04
26
OUTPUT RESISTANCE AT V(10) = 1.342E+03
g m2 = 31.4umho
g m6 = 140umho
1 1
R1 = = = 5M
(λ 2 + λ 4 )I 2 (.02 + .02)(5E - 6)
1 1
R2 = = = .714M
(λ 6 + λ 7 )I 6 (.02 + .02)(35E - 6)
-1 −1
p1 ≅ = = 2000
g m2 R 1 R 2 C C (140E - 6)(5E6)(.714E6)(1E - 12)
p1 2000
f1 = = = 318Hz
2π 2π
f GB = A V0 f 1 = (15700)(318) = 5M
g m6 (140E - 6)
z= = = 140E6
CC (1E - 12)
z 140E6
fz = = = 22.3M
2π 2π
Simulation results are : f1 =258Hz, fGB=5.16M, fz and f2 are difficult to obtain accurately from bode plot.
*Power Supplies
VDD 3 0 DC 5VOLT
VSS 4 0 DC -5VOLT
* Bias current
IB 8 4 100UA
27
* External Component for Slew Rate Measurement
VSH 1 10 DC 0V
* SPICE Parameters
.MODEL NMOS1 NMOS VTO=1 KP=40U
+ GAMMA=1.0 LAMBDA=0.02 PHI=0.6
+ TOX=0.05U LD=0.5U CJ=5E-4 CJSW=10E-10
+ U0=550 MJ=0.5 MJSW=0.5 CGSO=0.4E-9 CGDO=0.4E-9
.MODEL PMOS1 PMOS VTO=-1 KP=15U
+ GAMMA=0.6 LAMBDA=0.02 PHI=0.6
+ TOX=0.05U LD=0.5U CJ=5E-4 CJSW=10E-10
+ U0=200 MJ=0.5 MJSW=0.5 CGSO=0.4E-9 CGDO=0.4E-9
*Analysis
.TRAN .1ns 40us
.PROBE
.END
The positive slew rate is the slope of the rising edge of the output. This is computed from the two points on
the rising edge. That is,
3.4386 − (−3.2985)
SR + = = 7.96 V/us
10.931 − 10.085
Similarly, the new slew rate is computed as follows:
28
− 2.7368 − 3.6491
SR - = = −10.55 V/us
30.619 − 30.014
The current I SD2 is half the bias current I SD5 and is independent of ( W/L) 2 . That is, the gain can be
adjusted by simply adjusting ( W/L) 2 while I SD2 remains constant. The gain A V1 is proportional to
(W/L) 2 . For example to increase the overall gain by 2, one needs to increase (W/L)1 , (W/L) 2 by a
factor of 4.
PAR M1 M2 M3 M4 M5 M6 M7 M8 M9 M10
I(Ua) 5 5 5 5 10 30 30 100 100 100
T P P N N P N P P P P
29
W/L 6.57 6.57 1 1 5.333 6 16 156 53.33 53.33
W(u) 4*36.6 4*36.6 5.4 5.4 30 32.4 90 873.6 300 300
L(u) 6.6 6.6 6.6 6.6 6.6 6.6 6.6 6.6 6.6 6.6
Leff(u) 5.6 5.6 5.6 5.6 5.6 5.6 5.6 5.6 5.6 5.6
Increasing Av1
* Filename="opamp331.cir"
* MOS Diff Amp with PMOS Input and Current Mirror Load
* Increasing Overall Gain By Increasing W/L of M1 & M2
* Input Signals
VID 11 0 DC –8.2484uV AC 1V
E- 1 12 11 0 -0.5
E+ 2 12 11 0 0.5
VIC 12 0 DC 0V
* Power Supplies
VDD 3 0 DC 5VOLT
VSS 4 0 DC -5VOLT
*Bias current
IB 8 4 100UA
* SPICE Parameters
.MODEL NMOS1 NMOS VTO=1 KP=40U
+ GAMMA=1.0 LAMBDA=0.02 PHI=0.6
+ TOX=0.05U LD=0.5U CJ=5E-4 CJSW=10E-10
+ U0=550 MJ=0.5 MJSW=0.5 CGSO=0.4E-9 CGDO=0.4E-9
.MODEL PMOS1 PMOS VTO=-1 KP=15U
+ GAMMA=0.6 LAMBDA=0.02 PHI=0.6
+ TOX=0.05U LD=0.5U CJ=5E-4 CJSW=10E-10
+ U0=200 MJ=0.5 MJSW=0.5 CGSO=0.4E-9 CGDO=0.4E-9
* Analysis
.AC DEC 10 0.1HZ 10000MegHz
30
.TF V(10) VID
.PROBE
.END
V(10)/VID = 1.810E+04
V(10)/VID = 3.590E+04
31
AV0=3.590E+4; PM=29°; fGB=10.596M
The second stage gain can not be used to increase the overall gain but is used to adjust the phase margin as
shown below:
Since I DS6 is determined by current mirror, increasing ( W/L) 6 increases I DS6 proportionately as shown
below:
PAR M1 M2 M3 M4 M5 M6 M7 M8 M9 M10
I(Ua) 5 5 5 5 10 2*30 2*30 100 100 100
T P P N N P N P P P P
W/L 6.57 6.57 1 1 5.333 6 16 156 53.33 53.33
W(u) 4*36.6 4*36.6 5.4 5.4 30 2*32.4 2*90 873.6 300 300
L(u) 6.6 6.6 6.6 6.6 6.6 6.6 6.6 6.6 6.6 6.6
Leff(u) 5.6 5.6 5.6 5.6 5.6 5.6 5.6 5.6 5.6 5.6
V(10)/VID = 3.590E+04
32
The phase margin can be increased further by increasing both ( W/L) 6 and ( W/L) 7 . The desired phase
margin of 65° is approached when ( W/L) 6 and ( W/L) 7 are increased by a factor of 4
PAR M1 M2 M3 M4 M5 M6 M7 M8 M9 M10
I(Ua) 5 5 5 5 10 4*30 4*30 100 100 100
T P P N N P N P P P P
W/L 6.57 6.57 1 1 5.333 6 16 156 53.33 53.33
W(u) 4*36.6 4*36.6 5.4 5.4 30 4*32.4 4*90 873.6 300 300
L(u) 6.6 6.6 6.6 6.6 6.6 6.6 6.6 6.6 6.6 6.6
Leff(u) 5.6 5.6 5.6 5.6 5.6 5.6 5.6 5.6 5.6 5.6
* Filename="opamp331.cir"
* MOS Diff Amp with PMOS Input and Current Mirror Load
* Increasing Overall Gain By Increasing W/L of M1 & M2
* Input Signals
VID 11 0 DC –8.2484uV AC 1V
E- 1 12 11 0 -0.5
E+ 2 12 11 0 0.5
VIC 12 0 DC 0V
* Power Supplies
VDD 3 0 DC 5VOLT
VSS 4 0 DC -5VOLT
33
* Netlist for Frequency Response Measurement
M1 7 1 5 5 PMOS1 W={4*36.6U} L=6.6U
M2 6 2 5 5 PMOS1 W={4*36.6U} L=6.6U
M3 7 7 4 4 NMOS1 W=5.4U L=6.6U
M4 6 7 4 4 NMOS1 W=5.4U L=6.6U
M5 5 8 3 3 PMOS1 W=30U L=6.6U
M6 9 6 4 4 NMOS1 W={4*32.4U} L=6.6U
M7 9 8 3 3 PMOS1 W={4*90U} L=6.6U
M8 4 9 10 10 PMOS1 W=873.6U L=6.6U
M9 10 8 3 3 PMOS1 W=300U L=6.6U
M10 8 8 3 3 PMOS1 W=300U L=6.6U
Cc 9 6 1pF
*Bias current
IB 8 4 100UA
* SPICE Parameters
.MODEL NMOS1 NMOS VTO=1 KP=40U
+ GAMMA=1.0 LAMBDA=0.02 PHI=0.6
+ TOX=0.05U LD=0.5U CJ=5E-4 CJSW=10E-10
+ U0=550 MJ=0.5 MJSW=0.5 CGSO=0.4E-9 CGDO=0.4E-9
.MODEL PMOS1 PMOS VTO=-1 KP=15U
+ GAMMA=0.6 LAMBDA=0.02 PHI=0.6
+ TOX=0.05U LD=0.5U CJ=5E-4 CJSW=10E-10
+ U0=200 MJ=0.5 MJSW=0.5 CGSO=0.4E-9 CGDO=0.4E-9
* Analysis
.AC DEC 10 0.1HZ 10000MegHz
.TF V(10) VID
.PROBE
.END
V(10)/VID = 3.590E+04
34
5.0 Phase Margin Correction By Moving the Zero from RHP to
LHP
The location of zero is given by:
1 1
z= =
1 1
C3 ( − R3) CC ( − RC)
g m6 g m6
1
The zero can be moved from the RHP to the LHP by selecting R C >> , with this choice the zero
g m6
is approximately given by:
-1
z≈
R CCC
A zero in the LHP increase the phase margin rather decrease as in the case of RHP zero. The transfer
function of an op amp compensated by resistor R C and capacitor C C connected in series is given by:
35
s
A V0 1 -
A V (s) = z
s s s
1 − 1 − 1 −
p1 p 2 p 3
where:
−1
p1 ≈
g m6 R 1 R 2 C C
− g m6
p2 ≈
C1 + C 2
−1
p3 ≈
R C C1
−1
z ≈
R CCC
s
A V0 1 -
A V (s) ≈ z ; since p1 << p 2 << p 3
s s
1 − 1 −
p1 p 2
w w w
∠A V ( w GB ) = tan -1 GB − tan -1 GB − tan -1 GB
z p1 p2
w w w
PM = 180 o + ∠A V ( w GB ) = 180 o + tan -1 GB − tan -1 GB − tan -1 GB
z p1 p2
With extra phase margin introduced by the LHP zero, the phase margin can be increased without
increasing the sizes of M6 and M7. To make sure that the op amp behaves as single order system within the
gain bandwidth, w GB . One positions the zero 20% ( z = 1.2w GB ) over the gain bandwidth. In the
previous example, the non-dominant pole was position at p 2 = 1.1w GB = 2.2 w GB . Where w GB is the
' '
original gain bandwidth prior to doubling g m2 which double the gain bandwidth. The new phase margin
gain be calculated as follows:
w w w
PM = 180 o + ∠A V ( w GB ) = 180 o + tan -1 GB − tan -1 GB − tan -1 GB
z p1 p2
w GB A p w GB
= 180 o + tan -1 − tan -1 V0 1 − tan -1
1.2w GB p1 1.1w GB
≈ 180 o + tan -1 (.833) − tan -1 (A V0 ) − tan -1 (0.909 ) ≈ 87.53
36
The value of R C to place the zero is calculated as follows:
1 g
z= = 1.2 w GB = 1.2 m2
R CCC CC
1 1
RC = = = 13.25k
1.2g m2 1.2(2x31.4E - 6)
PAR M1 M2 M3 M4 M5 M6 M7 M8 M9 M10
I(Ua) 5 5 5 5 10 35 35 100 100 100
T P P N N P N P P P P
W/L 6.57 6.57 1 1 5.333 7 18.665 156 53.33 53.33
W(u) 4*36.6 4*36.6 5.4 5.4 30 37.8 105 873.6 300 300
L(u) 6.6 6.6 6.6 6.6 6.6 6.6 6.6 6.6 6.6 6.6
Leff(u) 5.6 5.6 5.6 5.6 5.6 5.6 5.6 5.6 5.6 5.6
R C = 13.25k, C C = 1pF
(3) VDD
M10
w=300u
l=6.6u
(8)
M5 M7 M9
w=30u w=90u w=300u
l=6.6u l=6.6u l=6.6u
Vo
(5) (10)
V- V+
(1) M1 M2 (2)
w=4*36.6u w=4*36.6u Rc Cc
l=6.6u l=6.6u (6a) (6b) (9)
IB=100uA M8
w=873.6u
l=6.6u
(7)
M6
M3 M4
w=32.4u
w=5.4u w=5.4u
l=6.6u
l-6.6u l-6.6u
(4) VSS
Fig 10a
* Filename="opamp33z.cir"
* MOS Diff Amp with PMOS Input and Current Mirror Load
* Input Signals
37
VID 11 0 DC -8.2484uV AC 1V
E- 1 12 11 0 -0.5
E+ 2 12 11 0 0.5
VIC 12 0 DC 0V
* Power Supplies
VDD 3 0 DC 5VOLT
VSS 4 0 DC -5VOLT
*Bias current
IB 8 4 100UA
* SPICE Parameters
.MODEL NMOS1 NMOS VTO=1 KP=40U
+ GAMMA=1.0 LAMBDA=0.02 PHI=0.6
+ TOX=0.05U LD=0.5U CJ=5E-4 CJSW=10E-10
+ U0=550 MJ=0.5 MJSW=0.5 CGSO=0.4E-9 CGDO=0.4E-9
.MODEL PMOS1 PMOS VTO=-1 KP=15U
+ GAMMA=0.6 LAMBDA=0.02 PHI=0.6
+ TOX=0.05U LD=0.5U CJ=5E-4 CJSW=10E-10
+ U0=200 MJ=0.5 MJSW=0.5 CGSO=0.4E-9 CGDO=0.4E-9
* Analysis
.AC DEC 10 0.1HZ 10000MegHz
.TF V(10) VID
.PROBE
.END
V(10)/VID = 3.590E+04
38
INPUT RESISTANCE AT VID = 1.000E+20
( 6b) -3.4842
Transistor M11 has VDS11=0 since no dc bias current flows through its because of capacitor Cc.
Therefore, it is operating at the ohmic or triode region. That is,
39
VTN = VTO + γ [ 2φ + VSB − 2φ F ]
[
= 1 + 1 2(0.6) + (−3.4836 − (−5) − 2(0.6) = 1.65 ]
−1
∂I 1
R C = rDS10 = D =
∂VDS K N (W/L)(VGS − VTN )
1 1 6u
( W/L) = = = 0.276 =
K N R C (VGS − VTN ) 40E - 6(13.25E + 3)(5 - (-3.4842) - 1.65) 27u
(3) VDD
(8)
M10 M9
M5 M7
(5)
(10)
V- V+
M1 M2
(1) (2) VDD
IB M11 Cc
(6a) (6b) (9)
M8
M3 M4 M6
(7)
(4) VSS
* Filename="opamp33m.cir"
* MOS Diff Amp with PMOS Input and Current Mirror Load
* Input Signals
VID 11 0 DC -8.2484uV AC 1V
E- 1 12 11 0 -0.5
40
E+ 2 12 11 0 0.5
VIC 12 0 DC 0V
* Power Supplies
VDD 3 0 DC 5VOLT
VSS 4 0 DC -5VOLT
*Bias current
IB 8 4 100UA
* SPICE Parameters
.MODEL NMOS1 NMOS VTO=1 KP=40U
+ GAMMA=1.0 LAMBDA=0.02 PHI=0.6
+ TOX=0.05U LD=0.5U CJ=5E-4 CJSW=10E-10
+ U0=550 MJ=0.5 MJSW=0.5 CGSO=0.4E-9 CGDO=0.4E-9
.MODEL PMOS1 PMOS VTO=-1 KP=15U
+ GAMMA=0.6 LAMBDA=0.02 PHI=0.6
+ TOX=0.05U LD=0.5U CJ=5E-4 CJSW=10E-10
+ U0=200 MJ=0.5 MJSW=0.5 CGSO=0.4E-9 CGDO=0.4E-9
* Analysis
.PROBE
.AC DEC 10 0.1HZ 10000MegHz
.TF V(10) VID
.END
V(10)/VID = 3.590E+04
41
NODE VOLTAGE NODE VOLTAGE NODE VOLTAGE NODE VOLTAGE
( 6b) -3.4843
42
7.0 Opamp with ClassAB Output Buffer
(3) VDD
I k*I
(8)
M10 M7
M5 (W/L)p
(14)
(5)
M13 M9
(W/L)n k*(W/L)n
V- V+
M1 M2 (13) (10)
(1) (2)
VDD (W/L)p
IB M11 M12 M8
Cc k*(W/L)p
(6a) (6b) (9)
M3 M4 M6
(7) (W/L)n
(4) VSS
Figure 12b
k=3
* Filename="op33zab2.cir"
* MOS Diff Amp with PMOS Input and Current Mirror Load
* Input Signals
VID 11 0 DC -8.2484uV AC 1V
E- 1 12 11 0 -0.5
E+ 2 12 11 0 0.5
VIC 12 0 DC 0V
* Power Supplies
VDD 3 0 DC 5VOLT
VSS 4 0 DC -5VOLT
43
M4 6a 7 4 4 NMOS1 W=5.4U L=6.6U
M5 5 8 3 3 PMOS1 W=30U L=6.6U
M6 9 6a 4 4 NMOS1 W={32.4U} L=6.6U
M7 14 8 3 3 PMOS1 W={90U} L=6.6U
M8 4 9 10 10 PMOS1 W={3*90U} L=6.6U
M9 3 14 10 4 NMOS1 W={3*32.4U} L=6.6U
M10 8 8 3 3 PMOS1 W=300U L=6.6U
M11 6b 3 6a 4 NMOS1 W=6U L=27U
M12 9 9 13 13 PMOS1 W=90U L=6.6U
M13 14 14 13 4 NMOS1 W=32.4U L=6.6U
Cc 9 6b 1pF
*Bias current
IB 8 4 100UA
* SPICE Parameters
.MODEL NMOS1 NMOS VTO=1 KP=40U
+ GAMMA=1.0 LAMBDA=0.02 PHI=0.6
+ TOX=0.05U LD=0.5U CJ=5E-4 CJSW=10E-10
+ U0=550 MJ=0.5 MJSW=0.5 CGSO=0.4E-9 CGDO=0.4E-9
.MODEL PMOS1 PMOS VTO=-1 KP=15U
+ GAMMA=1.0 LAMBDA=0.02 PHI=0.6
+ TOX=0.05U LD=0.5U CJ=5E-4 CJSW=10E-10
+ U0=200 MJ=0.5 MJSW=0.5 CGSO=0.4E-9 CGDO=0.4E-9
* Analysis
.PROBE
.DC VID -5V 5V .1V
.AC DEC 10 0.1HZ 10000MegHz
.TF V(10) VID
.END
V(10)/VID = 3.065E+04
44
( 14) .6098 ( 6a) -3.4843 ( 6b) -3.4843
45
8.0 Process and Temperature Independent Opamp Design Using Widlar
Current Source
(3) VDD
MB2
I I 2I 3I
(W/L)p
(8)
Msrc1 Msrc3 Vsrc
MB1 Msrc2 +
(W/L)p (W/L)p 2(W/L)p 3(W/L)p
(2)
(15)
(5)
I 3I
I 2I +
MB4 Vsnk
MB3
(16) 4(W/L)n (W/L)n Msnk1 Msnk2 Msnk3
(W/L)n 2(W/L)n 3(W/L)n
Rb
(4) VSS
Figure 12
I D3 = I D4 = I
VGS3 = VGS4 + IR b
Subtracting the threshold voltage VTN0 (neglecting body effect) from both sides, one obtains:
46
Solve for Rb,
2 (W/L) 3
1 − = Rb
2K N (W/L) 3 I (W/L) 4
or
(W/L) 3
2 1 −
(W/L) 4
g m3 =
Rb
1
g m3 = ; If (W/L) 4 = 4(W/L) 3
Rb
Thus g m3 is determined by geometric ratio only. It is independent of power supply voltage, process
parameter, and temperature. This is only true to the first order of approximation, since the body effect is
neglected. In addition all other transconductance are also stabilized since all transistor currents are derived
from the same biasing network. That is,
(W/L) i I Di
g mi = g m3 ; for n - channel transistor
(W/L) 3 I D3
K P (W/L) i I Di
g mi = g m3 ; for p - channel transistor
K N (W/L) 3 I D3
Design a 10uA widlar current source with the minimum transistor sizes for biasing an opamp circuit.
Assuming all transistors are of the same length L=6.6u. The minimum width corresponding to (W/L)=1
and λ = 0.6 is obtained as follows:
W W W
= = =1
L eff L - 2LD 6.6u - 2(0.5)
W ≈ 5.4u
The minimum W for the widlar current source is 2(5.4u)=10.8u, since the differential amplifier input stage
load current is half of the widlar design current value. The minimum pmos transistor (W/L) is calculated to
achieve the same transconductance. That is,
W K W
= N
L eff
P K P L
eff N
K 40u
WP = N WN = (10.8u) = 28.8u ≈ 30u
KP 15u
The widlar cu
* Filename="op33zab4.cir"
* Widlar Source = Supply Independent
47
* Input Signals
* Power Supplies
VDD 3 0 DC 5VOLT
VSS 4 0 DC -5VOLT
VSNK 5 0 DC 0VOLT
VSRC 2 0 DC 0VOLT
* SPICE Parameters
.MODEL NMOS1 NMOS VTO=1 KP=40U
+ GAMMA=1.0 LAMBDA=0.02 PHI=0.6
+ TOX=0.05U LD=0.5U CJ=5E-4 CJSW=10E-10
+ U0=550 MJ=0.5 MJSW=0.5 CGSO=0.4E-9 CGDO=0.4E-9
.MODEL PMOS1 PMOS VTO=-1 KP=15U
+ GAMMA=1.0 LAMBDA=0.02 PHI=0.6
+ TOX=0.05U LD=0.5U CJ=5E-4 CJSW=10E-10
+ U0=200 MJ=0.5 MJSW=0.5 CGSO=0.4E-9 CGDO=0.4E-9
* Analysis
.PROBE
.OP
.DC VSNK -5V 5V .1V
*.DC VSRC -5V 5V .1V
.END
48
49
NAME MB1 MB2 MB3 MB4 Msrc1
MODEL PMOS1 PMOS1 NMOS1 NMOS1 PMOS1
ID -9.89E-06 -8.70E-06 9.89E-06 8.70E-06 -9.30E-06
VGS -1.46E+00 -1.46E+00 1.50E+00 1.33E+00 -1.46E+00
VDS -8.50E+00 -1.46E+00 1.50E+00 8.37E+00 -5.00E+00
VBS 0.00E+00 0.00E+00 0.00E+00 -1.74E-01 0.00E+00
VTH -1.00E+00 -1.00E+00 1.00E+00 1.11E+00 -1.00E+00
VDSAT -4.59E-01 -4.59E-01 4.99E-01 2.20E-01 -4.59E-01
50
(3) VDD
MB2
I I
(W/L)p
(8)
MB1 Msrc1
(W/L)p (W/L)p
NOTE: V(5)=V(15)
(15)
(6)
I I I
(5) +
MB4 Vsnk
Msnk
MB3
(W/L)n
(16) 4(W/L)n (W/L)n Msnk1
(W/L)n
Rb
(4) VSS
Figure 12a
* Filename="op33zab5.cir"
* Widlar Source = Supply Independent
* Input Signals
* Power Supplies
VDD 3 0 DC 5VOLT
VSS 4 0 DC -5VOLT
VSNK 6 0 DC 0VOLT
51
MB3 15 15 4 4 NMOS1 W={10.8U} L=6.6U
MB4 8 15 16 4 NMOS1 W={4*10.8U} L=6.6U
Msrc1 5 8 3 3 PMOS1 W=30U L=6.6U
Msnk1 5 5 4 4 NMOS1 W=10.8U L=6.6U
Msnk 6 5 4 4 NMOS1 W=10.8U L=6.6U
Rb 16 4 20K
* SPICE Parameters
.MODEL NMOS1 NMOS VTO=1 KP=40U
+ GAMMA=1.0 LAMBDA=0.02 PHI=0.6
+ TOX=0.05U LD=0.5U CJ=5E-4 CJSW=10E-10
+ U0=550 MJ=0.5 MJSW=0.5 CGSO=0.4E-9 CGDO=0.4E-9
.MODEL PMOS1 PMOS VTO=-1 KP=15U
+ GAMMA=1.0 LAMBDA=0.02 PHI=0.6
+ TOX=0.05U LD=0.5U CJ=5E-4 CJSW=10E-10
+ U0=200 MJ=0.5 MJSW=0.5 CGSO=0.4E-9 CGDO=0.4E-9
* Analysis
.PROBE
.OP
.DC VSNK -5V 5V .1V
*.DC VSRC -5V 5V .1V
.END
52
53
(3) VDD
MB2
I
(W/L)p
(8b)
MB1
(W/L)p
MB2a (13)
(W/L)p
8a) MB1a
(W/.L)p
(2)
(15a) +
Msnkb Vsnk
(15a) MB3a (W/L)n
MB4a (W/L)n
(W/L)n
(14) (12)
I
(15b) Msnka
MB4
(W/L)n
(15b) MB3
(16) 4(W/L)n
(W/L)n
Rb
(4) VSS
54
Figure 12b
* Filename="op33zab6.cir"
* Widlar Source = Supply Independent
* Input Signals
* Power Supplies
VDD 3 0 DC 5VOLT
VSS 4 0 DC -5VOLT
VSNK 2 0 DC 0VOLT
Rb 16 4 15.5K
* SPICE Parameters
.MODEL NMOS1 NMOS VTO=1 KP=40U
+ GAMMA=1.0 LAMBDA=0.02 PHI=0.6
+ TOX=0.05U LD=0.5U CJ=5E-4 CJSW=10E-10
+ U0=550 MJ=0.5 MJSW=0.5 CGSO=0.4E-9 CGDO=0.4E-9
.MODEL PMOS1 PMOS VTO=-1 KP=15U
+ GAMMA=1.0 LAMBDA=0.02 PHI=0.6
+ TOX=0.05U LD=0.5U CJ=5E-4 CJSW=10E-10
+ U0=200 MJ=0.5 MJSW=0.5 CGSO=0.4E-9 CGDO=0.4E-9
* Analysis
.PROBE
.OP
.DC VSNK -5V 5V .1V
.TF V(2) VSNK
.END
V(2)/VSNK = 1.000E+00
55
NODE VOLTAGE NODE VOLTAGE NODE VOLTAGE NODE VOLTAGE
56
11.0 Opamp Design with Process and Temperature Independent
Implementation 1
(3) VDD
MB2 I k*I
(W/L)p
(8)
M7
MB1 M5 (W/L)p
(W/L)p
(14)
(5)
M13 M9
(W/L)n k*(W/L)n
V- V+
(15) M1 M2 (13) (10)
(1) (2)
VDD (W/L)p
M11 M12 M8
Cc k*(W/L)p
(6a) (6b) (9)
MB4 MB3 M3 M4 M6
(W/L)n (7) (W/L)n
(16) 4(W/L)n
Rb
(4) VSS
Figure 12c
* Filename="op33zab3.cir"
* MOS Diff Amp with PMOS Input and Current Mirror Load
* Input Signals
VID 11 0 DC -8.2484uV AC 1V
E- 1 12 11 0 -0.5
E+ 2 12 11 0 0.5
VIC 12 0 DC 0V
* Power Supplies
VDD 3 0 DC 5VOLT
VSS 4 0 DC -5VOLT
57
M2 6a 2 5 5 PMOS1 W={4*36.6U} L=6.6U
M3 7 7 4 4 NMOS1 W=5.4U L=6.6U
M4 6a 7 4 4 NMOS1 W=5.4U L=6.6U
M5 5 8 3 3 PMOS1 W=30U L=6.6U
M6 9 6a 4 4 NMOS1 W={32.4U} L=6.6U
M7 14 8 3 3 PMOS1 W={90U} L=6.6U
M8 4 9 10 10 PMOS1 W={3*90U} L=6.6U
M9 3 14 10 4 NMOS1 W={3*32.4U} L=6.6U
M11 6b 3 6a 4 NMOS1 W=6U L=27U
M12 9 9 13 13 PMOS1 W=90U L=6.6U
M13 14 14 13 4 NMOS1 W=32.4U L=6.6U
MB1 15 8 3 3 PMOS1 W=30U L=6.6U
MB2 8 8 3 3 PMOS1 W=30U L=6.6U
MB3 15 15 4 4 NMOS1 W={10.8U} L=6.6U
MB4 8 15 16 4 NMOS1 W={4*10.8U} L=6.6U
Rb 16 4 19K
Cc 9 6b 1pF
* SPICE Parameters
.MODEL NMOS1 NMOS VTO=1 KP=40U
+ GAMMA=1.0 LAMBDA=0.02 PHI=0.6
+ TOX=0.05U LD=0.5U CJ=5E-4 CJSW=10E-10
+ U0=550 MJ=0.5 MJSW=0.5 CGSO=0.4E-9 CGDO=0.4E-9
.MODEL PMOS1 PMOS VTO=-1 KP=15U
+ GAMMA=1.0 LAMBDA=0.02 PHI=0.6
+ TOX=0.05U LD=0.5U CJ=5E-4 CJSW=10E-10
+ U0=200 MJ=0.5 MJSW=0.5 CGSO=0.4E-9 CGDO=0.4E-9
* Analysis
.PROBE
.DC VID -5V 5V .1V
.AC DEC 10 0.1HZ 10000MegHz
.TF V(10) VID
.END
V(10)/VID = 3.180E+04
58
( 5) 1.1533 ( 7) -3.4964 ( 8) 3.5174 ( 9) -3.5295
( 6b) -3.4936
59
12.0 Opamp Design with Process and Temperature Independent
Implementation 2
(3) VDD
MB2 MB1
(W/L)p (W/L)p
(8)
M7 M9
M5
MB4a
(W/L)n (10)
(13) (5)
V- V+
M1 M2
MB3a (1) (2)
(W/L)n
M11 Cc
(15) (6a) (6b) (9)
M8
MB3 M3 M4
(14) (W/L)n (7) M6
(16) MB4
4(W/L)n
Rb
(4) VSS
Figure 12a
* Filename="opamp33b.cir"
* MOS Diff Amp with PMOS Input and Current Mirror Load
* Input Signals
VID 11 0 DC -8.2484uV AC 1V
E- 1 12 11 0 -0.5
E+ 2 12 11 0 0.5
VIC 12 0 DC 0V
* Power Supplies
VDD 3 0 DC 5VOLT
VSS 4 0 DC -5VOLT
60
M6 9 6a 4 4 NMOS1 W={32.4U} L=6.6U
M7 9 8 3 3 PMOS1 W={90U} L=6.6U
M8 4 9 10 10 PMOS1 W=873.6U L=6.6U
M9 10 8 3 3 PMOS1 W=300U L=6.6U
M11 6b 13 6a 4 NMOS1 W={20.4U} L=6.6U
MB1 13 8 3 3 PMOS1 W=30U L=6.6U
MB2 8 8 3 3 PMOS1 W=30U L=6.6U
MB3a 13 13 14 4 NMOS1 W=10.8U L=6.6U
MB3 14 14 4 4 NMOS1 W=10.8U L=6.6U
MB4a 8 13 15 4 NMOS1 W=10.8U L=6.6U
MB4 15 14 16 4 NMOS1 W=43.2U L=6.6U
Cc 9 6b 1pF
* SPICE Parameters
.MODEL NMOS1 NMOS VTO=1 KP=40U
+ GAMMA=1.0 LAMBDA=0.02 PHI=0.6
+ TOX=0.05U LD=0.5U CJ=5E-4 CJSW=10E-10
+ U0=550 MJ=0.5 MJSW=0.5 CGSO=0.4E-9 CGDO=0.4E-9
.MODEL PMOS1 PMOS VTO=-1 KP=15U
+ GAMMA=1.0 LAMBDA=0.02 PHI=0.6
+ TOX=0.05U LD=0.5U CJ=5E-4 CJSW=10E-10
+ U0=200 MJ=0.5 MJSW=0.5 CGSO=0.4E-9 CGDO=0.4E-9
* Analysis
.DC VID -5V 5V .1V
.AC DEC 10 0.1HZ 10000MegHz
.TF V(10) VID
.PROBE
.END
V(10)/VID = 3.790E+04
61
( 10) -.2603 ( 11)-8.310E-06 ( 12) 0.0000 ( 13) -1.3042
( 6b) -3.4979
VTN = VTO + γ [ ]
2φ + VSB − 2φ F = VTO + γ [ 2φ + V(6a) - VSS − 2φ F ]
[
= 1 + 1 2(0.6) + (−3.4979 − (−5) − 2(0.6) = 1.64 ]
−1
∂I 1 1
R C = rDS10 = D = =
∂VDS K N (W/L)(VGS − VTN ) K N (W/L)(V(13) − V(6a ) − VTN )
1 1 20.4u
( W/L) = = = 3.4 ≈
K N R C (V(13) − V(6a) − VTN ) 40E - 6(13.25E + 3)(-1.3042 - (-3.4979) - 1.64) 6.6u
62