Analysis and Simulation of Variable Gain Bandwidth Product
Analysis and Simulation of Variable Gain Bandwidth Product
M. Maidul Islam
Tasmia Tahmid
Sayeda Salma Nahar
A THESIS
SUBMITTED TO
MILITARY INSTITUTE OF SCIENCE AND TECHNOLOGY
MIST, DHAKA
DECEMBER, 2006
ii
Declaration
We declare that this thesis entitled “Analysis and Simulation of
Variable Gain Bandwidth product Amplifiers” is a piece of original research
work. This work has not been presented any where before for the award of
any degree or diploma.
………………………….
M. Maidul Islam
………………………. St. No - 200316029
Assistant professor Hamidur Rahman
.......................................
Tasmia Tahmid
St. No – 200316037
.......................................
Sayeda Salma Nahar
St. No – 200316021
iii
Abstract
This thesis presents the analysis and simulation of variable gain
bandwidth product (GBP) amplifiers. It was previously explored that current
feedback amplifier can provide variable GBP. This does not apply to the all
encountered feedback configurations. In the thesis paper “Novel Design
Approaches for Low–Voltage CMOS Current Feedback and
Transconductance Feedback Amplifier” (-by Md. Ataur Rahman Sarker) we
found some tables (chapter – 2, page - 25) that directed to the way of our
exploration. There we found that there are six possible combinations of the
amplifying elements and the feedback configurations where we can find
constant bandwidth. Then we carried on our research on those configurations
to design practical amplifiers with variable GBP.
Then we tried to simulate the circuits which were built by the theories
we derived. After that we discussed the results obtained form the simulation.
Then finally we concluded with the suggestions for the future works
based on our research.
iv
Acknowledgement
Lastly but not the least we would like to thank our parents for their
moral support and encouragement.
v
Contents
Declaration …………………………………………………………… ii
Abstract …………………………………………………………… iii
Acknowledgement ............................................................................................ iv
Contents ............................................................................................ v
1 Introduction
1.1 Brief history …………………………….. 1
1.2 Recent development in this field .............................................. 4
1.3 Why are we concerned with our work ……………………………. 11
1.4 Outline of the thesis ……………………………. 11
3 Our works
Chapter – 1
Introduction
Topology 2
Chapter - 2
2.1 Introduction
voltage fed back in series with the input signal, resulting in an over
all gain reduction.
Vf = βV0 ………………………….(2.4)
V i = V s – Vf ………………….………(2.5)
If = βI0 …………………………………(2.8)
21
Ii = Is – If ………………………………………….(2.9)
I0 = Ai Ii ………………………………………...(2.10)
Ii = Is – If …………………………………… (2.13)
Vi = V s …………………………... (2.17)
VFA CFA
1. Lower noise 1. Lower distortion
2. Better DC performance 2. Better linear phase
performance
3. Feedback freedom 3. Feedback restriction
4. Constant GBP 4. BW almost independent of
closed loop gain
5. Relatively lower BW 5. Higher potential BW than
VFA
6. Lower slew rate 6. Higher slew rate
7. Low input offset voltage 7. Nonzero input offset voltage
8. High input impedance 8.Unequal input stage
impedance
9. Matched input bias current 9. Unmatched input bias current
10. Low output impedance 10. High output impedance
26
Or
GBP1 = GBP2 ………………………………………………...(2.20)
And this is due to the constant loop gain TL. In conclusion, the
CFA has a variable GBP and the bandwidth ideally remains
constant irrespective of the demanded closed loop gain.
3.Transimpedance BW potentially
Amplifier constant
4.Transconductance BW potentially
Amplifier constant
It can be observed from the previous Tables that all the four
cases where the amplifying element and the feedback type are
similar, produces constant GBP. These are the cases most
commonly discussed with feedback amplifiers as summarized in
Table 2.2. For example, a current amplifier designed applying
current shunt feedback around a current amplifying element will
always give constant GBP. Similarly, when voltage,
transimpedance and transconductance amplifying elements are
33
2.6 Conclusion
Chapter – 3
Our works
3.1 Introduction
In the previous chapter we saw that current feedback
amplifier has a variable gain bandwidth product and ideally the
bandwidth remains constant irrespective of the closed loop gain it
is providing. The ICs which are designed employing current
feedback topology can provide constant bandwidth even at higher
gain levels than those in the voltage feedback amplifier. But this
phenomenon does not apply to the four most commonly used
feedback configurations, where the amplifier and the feedback
arrangement are of the same type which we observed in the
previous chapter. In the previous chapter we saw that the constant
bandwidth behavior is potentially obtainable whenever the
amplifier type and the feedback used are not similar. There we saw
in the tables under the topic “Gain bandwidth behavior in feedback
amplifier” that in every case (except for the cases where the
feedback is voltage series in voltage amplifier and current shunt in
current amplifier) using voltage and current amplifying elements
provide constant loop gain. This is how these configurations will
provide gain independent band width without having any effect of
the gain defining elements. Constant bandwidth behavior can be
experienced only when one of the gain defining elements is kept
constant.
36
3.3 Topology – 1
Feedback current, if = Vo ;
Rf
Input current to current conveyor, iin = Vin ;
Ri
The voltage gain of the total combination of the proposed topology
– 1 is given as follows -
Gv = Vo = − AiωtRoRf ………………………………..(3.1)
Vin Ri{(S + ωt )( Rf + Ro) + AiωtRo}
f = ft{1+ Ai ⋅ Ro } ...................................................................(3.2)
Rf + Ro
40
Gv = Vo = AiωtRoRf …………………………………(3.3)
Vin Ri{(S + ωt )( Rf + Ro) + AiωtRo}
41
f = ft{1+ Ai ⋅ Ro }
Rf + Ro
3.4 Topology – 2
Gi = io
iin
=− RfRzAoωtgm
RoRzAoωtgm + ωt ( Rf + Ro) + S (1+ ωtCzRz)( Rf + Ro) + S 2CzRz( Rf + Ro)
………………………………..(3.4)
........................................................(3.5)
Gi = RfRzAoωtgm
RoRzAoωtgm + ωt ( Rf + Ro) + S (1+ ωtCzRz)( Rf + Ro) + S 2CzRz( Rf + Ro)
…………………………………(3.6)
3.5 Topology – 3
⇒ Rm = Vo = − RfRzAoωt
iin Rf ωt + RzAoωt + S 2 RfCzRz + SRf (1+ ωtCzRz)
………………………..(3.7)
3.6 Topology – 4
Rm = Vo = − RfRmAiωt ………..(3.10)
iin Rf ωt + RmAiωt + S 2CzRiARf + SRf (1+ CzRiAωt )
Rm = RfRmAiωt …………………(3.12)
Rf ωt + RmAiωt + S CzRiARf + SRf (1+ CzRiAωt )
2
Gv = Vo = − AiωtRoRf
Vin Ri{(S + ωt )( Rf + Ro) + AiωtRo}
Now we will vary the input resistance Ri. The bode plot
below shows the variation of Ri with the other parameters remain
unchanged as defined initially. Used values of the input resistance
Ri in the bode plot are 10Ω, 100Ω, 1kΩ, 10kΩ.
56
Now we will vary the feedback resistance Rf. The bode plot
below shows the variation of Rf with the other parameters remain
unchanged as defined initially. Used values of the feedback
resistance Rf in the bode plot are 10Ω, 100Ω, 1kΩ, 10kΩ.
57
Now we will vary the output resistance Ro. The bode plot
below shows the variation of Ro with the other parameters remain
unchanged as defined initially. Used values of the output resistance
Ro in the bode plot are 10Ω, 100Ω, 1kΩ, 10kΩ.
58
Our observation on the above bode plots found that for the
variation of input resistance Ri there is no variation in the 3dB
bandwidth. But constant bandwidth is not available for the
variation the other external resistances. This supports our previous
comments on the gain bandwidth behavior of the toplogy-1, which
we did by observing the gain equation.
The MATLAB code for the above bode plots is provided in
the appendix – B.1.
59
Gi = − RfRzAoωtgm
RoRzAoωtgm + ωt ( Rf + Ro) + S (1+ ωtCzRz)( Rf + Ro) + S 2CzRz( Rf + Ro)
Now we will vary the feedback resistance Rf. The bode plot
below shows the variation of Rf with the other parameters remain
unchanged as defined initially. Used values of the feedback
resistance Rf in the bode plot are 10Ω, 100Ω, 1kΩ, 10kΩ.
61
Now we will vary the output resistance Ro. The bode plot
below shows the variation of Ro with the other parameters remain
unchanged as defined initially. Used values of the output resistance
Ro in the bode plot are 10Ω, 100Ω, 1kΩ, 10kΩ.
62
Rm = − RfRzAoωt
Rf ωt + RzAoωt + S 2 RfCzRz + SRf (1+ ωtCzRz)
Now we will vary the feedback resistance Rf. The bode plot
below shows the variation of Rf with the other parameters remain
unchanged as defined initially. Used values of the feedback
resistance Rf in the bode plot are 10Ω, 100Ω, 1kΩ, 10kΩ.
65
Rm = − RfRmAiωt
Rf ωt + RmAiωt + S CzRiARf + SRf (1+ CzRiAωt )
2
Now we will vary the feedback resistance Rf. The bode plot
below shows the variation of Rf with the other parameters remain
unchanged as defined initially. Used values of the feedback
resistance Rf in the bode plot are 10Ω, 100Ω, 1kΩ, 10kΩ.
68
3.8 Conclusion
Chapter – 4
4.1 Introduction
4.2 Tools
We used PSpice student version and orcad 9.1 (Evolution
Version) to simulate the circuits under our research. But PSpice
student version can not simulate the schematics having larger
circuits. But it can generate schematics netlist of larger circuits. All
the CMOS designs of our concern for this thesis fall in larger
circuit category. So, we used PSpice student version to obtain
schematic netlist. Because writing schematic netlist is cumbersome
to us for the larger circuits. Ultimately the obtained netlists are
simulated in the orcad 9.1. Actually we tried to use the resources
available to us.
Fig 4.3: I(R1) is the current flowing through the input resistance
and I(R8) is the current flowing through the output resistance.
Fig 4.4: V(vin) is the input voltage and V(vout) is the output
voltage.
74
Fig 4.7: I(R7) is the current flowing through the input resistance
and I(R6) is the current flowing through the output resistance.
Fig 4.8: V(vin) is the input voltage and V(vout) is the output
voltage.
Now we will vary the feedback resistance Rf. The bode plot
below shows the variation of Rf with the other parameters remain
unchanged as defined initially. Used values of the feedback
resistance Rf in the bode plot are 10Ω, 100Ω, 1kΩ, 10kΩ.
Now we will vary the output resistance Ro. The bode plot
below shows the variation of Ro with the other parameters remain
unchanged as defined initially. Used values of the output resistance
Ro in the bode plot are 10Ω, 100Ω, 1kΩ, 10kΩ.
W/L (μm/μm)
M1, M2 100/1
M3, M4 40/1
M5, M11, M13 20/1
M6 45/1
M7 10/1
M10, M12 60/1
M8 2.7/1
M9 5/1
Fig 4.14: I(I_I1) is the input current and I(R_R1) is the output
current.
From the above figure we found that the CCII+ provides zero
current for the negative half cycle of the input current and gain is
also less than zero. It may happen for improper biasing.
The schematics netlist of the circuit of the fig-4.13 is
provided in the appendix C.1.
86
W/L (μm/μm)
M1 20/1
M2 20/1
M3 20/1
M4 20/1
M5 20/1
M6 20/1
M7 80/1
M8 20/1
M9 20/1
M10 80/1
Fig 4.16: I(I1) is the input current and I(R1) is the output current.
Another thing here we can note that our output is not inverted
though it is in the inverting configuration. The reason of this
phenomenon can be realized if we compare carefully the direction
of the output current of current amplifier in both small signal
model and in the CMOS design. The comparison says that output
current of the CMOS current amplifier is in opposite direction to
that of the small signal model of the current amplifier.
90
*model specification:
*MCE 3 Micron CMOS processes parameters-process 2
*N channel type
.model nenh nmos level=2 vto=0.85 kp=30e-6 tox=470e-10 nsub=38e14
+ld=0.6e-6 uo=624 uexp=0.055 vmax=20e4 neff=9.8 delta=2.0 cj=160e-6
cjsw=430e-12 mj=0.5 mjsw=0.33 pb=0.81
*p channel typ
.model penh pmos level=2 vto=-0.85 kp=12e-6 tox=470e-10 nsub=8.7e14
+ld=0.5e-6 uo=200 uexp=0.18 vmax=12e4 neff=4.0 delta=2.0
+cj=100e-6 cjsw=180e-12 mj=0.5 mjsw=0.33 pb=0.7
.ac DEC 10000 10 10000GHz
the circuit of the fig - 4.17 with other external resistances kept
constant.
feedback resistance does not have any effect on the 3dB bandwidth.
But our gain equation and simulation of the small signal model
says that we should have obtain constant bandwidth for the
variation of input resistance to control gain.
Gv = − AiωtRoRf
Ri{S 2CzRiA + S ( Rf + Ro + RiA + CzRiA) + [ωt ( Rf + Ro) + AiωtRo + ωt ( RiA )]}
Rz Rz
………………………(4.2)
Now we will vary the input resistance Ri. The bode plot
below shows the variation of Ri with the other parameters remain
unchanged as defined initially. Used values of the input resistance
Ri in the bode plot are 10Ω, 100Ω, 1kΩ, 10kΩ.
101
Now we will vary the feedback resistance Rf. The bode plot
below shows the variation of Rf with the other parameters remain
unchanged as defined initially. Used values of the feedback
resistance Rf in the bode plot are 10Ω, 100Ω, 1kΩ, 10kΩ.
102
Now we will vary the output resistance Ro. The bode plot
below shows the variation of Ro with the other parameters remain
unchanged as defined initially. Used values of the output resistance
Ro in the bode plot are 10Ω, 100Ω, 1kΩ, 10kΩ.
103
Our observation on the above bode plots found that for the
variation of input resistance Ri there is no variation in the 3dB
bandwidth. But constant bandwidth is not available for the
variation the other external resistances. This supports our previous
comments on the gain bandwidth behavior of the toplogy-1, which
we did by observing the gain equation.
4.5 Conclusion
Chapter – 5
5.2 Conclusion
Bibliography
[1] Sharker,Md. Ataur Rahman, “Nobel Design Approaches for
Low voltage CMOS Current Feedback and Transconductance
Feedback Amplifiers, August 2004.
Appendix A
Formula Derivations
Inverting Configuration:
∴From equation – 2 :
iiA ≈ 1 × ix ………………………………(5)
1+ SCzRiA
The output resistance (Rio) of the current amplifier is very high, so
considered it as an open circuit.
∴Output current,
iout ≈ Ai(S )iiA
………………………………………………………(6)
= Ai(S )ix
1+ SCzRiA
112
And,
iout = io + if
⇒ io = iout − if
………………………………………………………………….(7)
Vo = Ro × io
= Ro(iout − if )
[From equation - 7]
Ai(S ) Ro
⇒ Vo = − Ri(1+ SCzRiA)
Vin [ Rf (1+ SCzRiA) + Ai(S ) Ro + Ro(1+ SCzRiA) ]
Rf (1+ SCzRiA)
Ai(S ) RoRf
=−
Ri{Rf (1+ SCzRiA) + Ai(S ) Ro + Ro(1+ SCzRiA)}
Ai(S ) RoRf
=− ………………(8)
Ri{( Rf + Ro) + Ai(S ) Ro + ( Rf + Ro)(1+ SCzRiA)}
113
We know that at the 3dB point the real part and the imaginary part
of the gain equation will become equal.
⇒ f ( Rf + Ro) = ft ( Rf + Ro) + Ai ⋅ ft ⋅ Ro
⇒ f = ft + Ai ⋅ ft ⋅ Ro
( Rf + Ro)
∴For the inverting configuration the 3dB bandwidth is -
f = ft{1+ Ai ⋅ Ro } ………………………………………………………..(12)
Rf + Ro
114
Inverting Configuration:
iin + if + ix = 0
⇒ ix = −(iin + if )
⇒ ix = −(iin + Vo )
Rf
…………………………………………(14)
= −(iin + Vo ) × Rz ………………………………………..(15)
Rf 1+ SCzRz
Let the gain of the voltage amplifier is Ao(S).
RzAo(S )
= −(iin + Vo ) × ………………………………………….(16)
Rf 1+ SCzRz
RzAo(S ) gm(S )
= −(iin + Vo ) × ………………………………………………..(17)
Rf 1+ SCzRz
116
igo = io + if
⇒ io = igo − if
RzAo(S ) gm(S ) Vo Ro
⇒ io = −(iin + Vo Ro ) × ( )− [From equation (17) & (13)]
Ro Rf 1+ SCzRz Ro Rf
RzAo(S ) gm(S )
⇒ io = −(iin + io × Ro ) × ( ) − io × Ro [∵io = Vo ]
Rf 1+ SCzRz Rf Ro
RzAo(S ) gm(S ) Ro RzAo(S ) gm(S )
⇒ io{1+ Ro × + } = −iin × ( )
Rf 1+ SCzRz Rf 1+ SCzRz
RzAo(S ) gm(S )
i
⇒ =−
o 1+ SCzRz
iin Rf (1+ SCzRz) + RoRzAo(S ) gm(S ) + Ro(1+ SCzRz)
Rf (1+ SCzRz)
RfRzAo(S ) gm(S )
⇒ io = − ……………(18)
iin Rf (1+ SCzRz) + RoRzAo(S ) gm(S ) + Ro(1+ SCzRz)
Gi = io = − RfRzAoωtgm
iin Rf (1+ SCzRz)(S + ωt ) + RoRzAoωtgm + Ro(1+ SCzRz)(S + ωt )
=− RfRzAoωtgm
RoRzAoωtgm + ωt ( Rf + Ro) + S (1+ ωtCzRz)( Rf + Ro) + S 2CzRz ( Rf + Ro)
………………………...(20)
Gi = − RfRzAoωtgm
RoRzAoωtgm + ωt ( Rf + Ro) + jω (1+ ωtCzRz)( Rf + Ro) − ω 2CzRz( Rf + Ro)
..............................……(21)
We know that at the 3dB point the real part and the
imaginary part of the gain equation will become equal.
Inverting Configuration:
Feedback current,
if = Vo ; ……………………………………………...(23)
Rf
119
iin + if + ix = 0
⇒ ix = −(iin + if )
⇒ ix = −(iin + Vo )
Rf
…………………………..……………………(24)
= −(iin + Vo ) × Rz …………………………………………..(25)
Rf 1+ SCzRz
Vo = Ao(S )VA
RzAo(S )
= −(iin + Vo ) × ………………………………………….(26)
Rf 1+ SCzRz
120
RzAo(S ) RzAo(S )
⇒ Vo{1+ } = −iin ×
Rf (1+ SCzRz) 1+ SCzRz
RfRzAo(S )
⇒ Vo = − ………………………………….(27)
iin Rf (1+ SCzRz) + RzAo(S )
⇒ Rm = V o = − RfRzAoωt
iin Rf (1+ SCzRz)(S + ωt ) + RzAoωt
=− RfRzAoωt ………………….(29)
Rf ωt + RzAoωt + S 2 RfCzRz + SRf (1+ ωtCzRz)
We know that at the 3dB point the real part and the imaginary part
of the gain equation will become equal.
Inverting Configuration:
∴From equation – 34 :
iiA ≈ 1 × ix ………………………………………………(35)
1+ SCzRiA
123
Rm(S ) Ai(S )
= −(iin + Vo ) ×
Rf 1+ SCzRiA
Rm(S ) Ai(S ) Rm(S ) Ai(S )
⇒ Vo{1+ } = −iin ×
Rf (1+ SCzRiA) 1+ SCzRiA
RfRm(S ) Ai(S )
⇒ Vo = − ……………………………………(37)
iin Rf (1+ SCzRiA) + Rm(S ) Ai(S )
Rm = Vo = − RfRmAiωt
iin Rf (1+ SCzRiA)(S + ωt ) + RmAiωt
=− RfRmAiωt ………………………(39)
Rf ωt + RmAiωt + S CzRiARf + SRf (1+ CzRiAωt )
2
Rm = − RfRmAiωt ………………..(40)
Rf ωt + RmAiωt − ω 2CzRiARf + jω Rf (1+ CzRiAωt )
We know that at the 3dB point the real part and the
imaginary part of the gain equation will become equal.
Appendix B
Prm(4)=rstr1;
figure
for n=1:1:4
Prm(3)=10^(n);
[M0_2,N0_2,N1_2]=params_config1(Prm);
g=tf([M0_2],[N1_2 N0_2]);
bode(g)
title('Varing Ro');
grid on
hold on
end
legend('1st','2nd','3rd','4th',4);
function[M0,N0,N1]=params_config1(Prm)
M0=-1*(Prm(1)*Prm(2)*Prm(3)*Prm(4))/Prm(5);
N0=Prm(2)*(Prm(4)+Prm(3)+Prm(1)*Prm(3));
N1=Prm(4)+Prm(3);
clear all
Prm=input('Enter Ao, Wt, Gm, Cz, Rz, Ro, Rf : ');
[M0,N0,N1,N2]=params_config2(Prm);
g=tf([M0],[N2 N1 N0]);
bode(g)
grid on
figure
rstr1=Prm(7);
for m=1:1:4
Prm(7)=10^(m);
[M0_1,N0_1,N1_1,N2_1]=params_config2(Prm);
g=tf([M0_1],[N2_1 N1_1 N0_1]);
bode(g)
title('Varing Rf');
grid on
hold on
end
legend('1st','2nd','3rd','4th',4);
Prm(7)=rstr1;
127
figure
for n=1:1:4
Prm(6)=10^(n);
[M0_2,N0_2,N1_2,N2_2]=params_config2(Prm);
g=tf([M0_2],[N2_2 N1_2 N0_2]);
bode(g)
title('Varing Ro');
grid on
hold on
end
legend('1st','2nd','3rd','4th',4);
function[M0,N0,N1,N2]=params_config2(Prm)
M0=-1*Prm(7)*Prm(5)*Prm(1)*Prm(2)*Prm(3);
N0=Prm(6)*Prm(5)*Prm(1)*Prm(2)*Prm(3)+Prm(2)*(Prm(7)+Prm(6));
N1=(1+Prm(4)*Prm(5)*Prm(2))*(Prm(7)+Prm(6));
N2=Prm(4)*Prm(5)*(Prm(7)+Prm(6));
clear all
Prm=input('Enter Ao, Wt, Cz, Rz, Rf : ');
[M0,N0,N1,N2]=params_config3(Prm);
g=tf([M0],[N2 N1 N0]);
bode(g)
grid on
figure
for m=1:1:4
Prm(5)=10^(m);
[M0_1,N0_1,N1_1,N2_1]=params_config3(Prm);
g=tf([M0_1],[N2_1 N1_1 N0_1]);
bode(g)
title('Varing Rf');
grid on
hold on
end
legend('1st','2nd','3rd','4th',4);
128
function[M0,N0,N1,N2]=params_config3(Prm)
M0=-1*Prm(5)*Prm(4)*Prm(1)*Prm(2);
N0=Prm(2)*(Prm(5)+Prm(4)*Prm(1));
N1=Prm(5)*(1+Prm(3)*Prm(4)*Prm(2));
N2=Prm(3)*Prm(4)*Prm(5);
clear all
Prm=input('Enter Ai, Wt, ,Rm, Cz, Ria, Rf : ');
[M0,N0,N1,N2]=params_config4(Prm);
g=tf([M0],[N2 N1 N0]);
bode(g)
grid on
figure
for m=1:1:4
Prm(6)=10^(m);
[M0_1,N0_1,N1_1,N2_1]=params_config4(Prm);
g=tf([M0_1],[N2_1 N1_1 N0_1]);
bode(g)
title('Varing Rf');
grid on
hold on
end
legend('1st','2nd','3rd','4th',4);
function[M0,N0,N1,N2]=params_config4(Prm)
M0=-1*Prm(6)*Prm(3)*Prm(1)*Prm(2);
N0=Prm(2)*(Prm(6)+Prm(3)*Prm(1));
N1=Prm(6)*(1+Prm(4)*Prm(5)*Prm(2));
N2=Prm(4)*Prm(5)*Prm(6);
grid on
figure
rstr=Prm(5);
for x=1:1:4
Prm(5)=10^(x);
[M0_,N0_,N1_,N2_]=params_config1(Prm);
g=tf([M0_],[N2_ N1_ N0_]);
bode(g)
title('Varing Ri');
grid on
hold on
end
legend('1st','2nd','3rd','4th',4);
Prm(5)=rstr;
rstr1=Prm(4);
figure
for m=1:1:4
Prm(4)=10^(m);
[M0_1,N0_1,N1_1,N2_1]=params_config1(Prm);
g=tf([M0_1],[N2_1 N1_1 N0_1]);
bode(g)
title('Varing Rf');
grid on
hold on
end
legend('1st','2nd','3rd','4th',4);
Prm(4)=rstr1;
figure
for n=1:1:4
Prm(3)=10^(n);
[M0_2,N0_2,N1_2,N2_2]=params_config1(Prm);
g=tf([M0_2],[N2_2 N1_2 N0_2]);
bode(g)
title('Varing Ro');
grid on
hold on
end
legend('1st','2nd','3rd','4th',4);
function[M0,N0,N1,N2]=params_config1(Prm)
M0=-1*(Prm(1)*Prm(2)*Prm(3)*Prm(4))/Prm(5);
N0=Prm(2)*(Prm(4)+Prm(3))+Prm(1)*Prm(2)*Prm(3)+Prm(2)*(Prm(6)/Prm(7));
N1=Prm(4)+Prm(3)+(Prm(6)/Prm(7))+Prm(8)*Prm(6);
N2=Prm(8)*Prm(6);
130
Appendix C
Schematic Netlists
************************************************************************
M_M8 $N_0001 $N_0001 +V +V MbreakP
+ L=1u
+ W=20u
M_M10 $N_0002 $N_0001 +V +V MbreakP
+ L=1u
+ W=80u
M_M9 $N_0003 $N_0001 +V +V MbreakP
+ L=1u
132
+ W=20u
M_M2 $N_0001 $N_0003 $N_0004 $N_0004 MbreakN
+ L=1u
+ W=20u
M_M1 $N_0006 $N_0005 $N_0004 $N_0004 MbreakP
+ L=1u
+ W=20u
M_M6 $N_0005 $N_0006 -V -V MbreakN
+ L=1u
+ W=20u
M_M5 $N_0006 $N_0006 -V -V MbreakN
+ L=1u
+ W=20u
M_M7 $N_0002 $N_0006 -V -V MbreakN
+ L=1u
+ W=80u
I_I1 $N_0004 0 DC 0mA AC 0.7071mA
+SIN 0V 1mA 100Hz 0 0 0
M_M3 $N_0005 $N_0005 0 0 MbreakP
+ L=1u
+ W=20u
M_M4 $N_0003 $N_0003 0 0 MbreakN
+ L=1u
+ W=20u
R_R1 0 $N_0002 5k
V_V2 0 -V 5V
V_V1 +V 0 5V
.lib
.tran 1us 0.1s
.probe
.OP
.END
133
+ L=1u
+ W=20u
M_M29 $N_0011 $N_0011 +V +V penh
+ L=1u
+ W=20u
V_V7 +V 0 5V
M_M24 chk1 $N_0004 0 0 nenh
+ L=1um
+ W=20um
M_M22 $N_0002 0 chk1 chk1 penh
+ L=1um
+ W=5um
M_M21 $N_0002 +V chk1 chk1 nenh
+ L=1um
+ W=2.7um
M_M23 chk1 $N_0001 +V +V penh
+ L=1um
+ W=60um
M_M14 $N_0003 chk1 $N_0006 $N_0006 nenh
+ L=1um
+ W=100um
M_M28 $N_0008 $N_0011 +V +V penh
+ L=1u
+ W=20u
M_M36 $N_0012 $N_0011 +V +V penh
+ L=1u
+ W=80u
R_Rload 0 $N_0012 0.5k
R_Rfeedback chk1 $N_0012 1k
R_Rgncntrl $N_0013 chk1 100
V_V6 $N_0013 0 DC 0v AC 0.7071v
+SIN 0v 1v 5kHz 0 0 0
M_M31 $N_0009 $N_0010 0 0 nenh
+ L=1u
+ W=20u
M_M33 $N_0012 $N_0010 0 0 nenh
+ L=1u
+ W=80u
M_M32 $N_0010 $N_0010 0 0 nenh
+ L=1u
+ W=20u
*model specification:
*MCE 3 Micron CMOS processes parameters-process 2
*N channel typ
.model nenh nmos level=2 vto=0.85 kp=30e-6 tox=470e-10 nsub=38e14
135