Amplifiers 21
Amplifiers 21
Amplifiers 21
1)
To show that the small signal resistance of a gate drain connected PMOS device behaves
like a resistor with a value of 1/gm .
The small signal equivalent circuit to determine the small signal resistance is shown above.
Vgs = Vx
Vx
Ix = + g mV x
ro
1
=V x( + gm )
ro
Therefore from the above relation we can write the small signal resistance of the gate drain
connected MOSFET is given as
Vx 1
=
Ix 1
+ gm
ro
From table 9.2 the small signal resistance is found out to be gm-1 which is equal to 6.66 KΩ.
Netlist:
.option scale=1u
.control
destroy all
run
plot vt/I(Vt)
.endc
.ac DEC 10 100 1MEG
Vdd vdd 0 DC=5
Vt vt 0 DC=0 AC=1m
C1 vs vt 1
R1 vdd vs 200k
M1 0 0 vs vs pmos L=2 W=30
21.2
The circuit used to calculate the transfer function for this circuit
would be as below
1
f1 =
2π [(C gs1 + C gd 1 ) Rs + C gd 1 g m1 Ro Rs ]
The second frequency pole is located at [from Eq. 21.61 removing the Co
terms].
1
g m1C gd1 + (C gs1 + C gd 1 )
Ro
f2 =
2πC gs1C gd 1
We have,
Cgs1=23.3fF, Cgd1=2fF, Rs= 100k,
Ro=ro1 ro2= 5MΩ 100k = 98K.
Substituting, we get
fz = 12 GHz,
f1= 28.8 MHz,
f2= 1.91 GHz.
.control
destroy all
run
plot 20*log(mag(vout/vs))
set units=degrees
plot ph(vout/vs)
.endc
.option scale=1u
.AC DEC 100 10MEG 100G
VDD VDD 0 DC 5
Vs Vs 0 DC 0 AC 1
Rs Vs Vss 100k
M1 Vout Vin 0 0 NMOS L=2 W=10
Rp vdd vout 100k
Rbig Vbias4 Vin 10G
Cbig Vss Vin 10
Xbias VDD Vbias1 Vbias2 Vbias3 Vbias4 Vhigh Vlow Vncas Vpcas biasckt
*from fig. 20.43*
.subckt biasckt VDD Vbias1 Vbias2 Vbias3 Vbias4 Vhigh Vlow Vncas Vpcas
--------
.ends
*BSIM models
--------
.end
SIMULATION RESULTS
f1 f2
fz
Problem 21.3
Rs Cgd
Vin Vout
Ro
Cgs gmVin CL
Vs
where, Ro = R // r01
1
[ ]
Vin jwC gd − gm = Vout + jw(C gd + C L )
Ro
1
Vout + jw(C gd + C L )
∴Vin = Ro → (1)
[
jwC gd − gm ]
and
[
Vs − Vin = Rs Vin ( jw(C gs + C gd )) −V out ( jwC gd )]
[ ]
Vs = Vin jwR s (C gs + C gd ) −V out ( jwR s C gd ) → (2)
sC gd
− gmRo 1 −
Vout
= gm
Vs [
1 + s Rs (C gd ] [ ]
+ C gs ) + Ro (C L + C gd ) + Ro Rs C gd gm + s 2 Ro Rs (C L C gs + C L C gd + C gs C gd )
gm
fz = → (3)
2π ∗ C gd
1
f1 = → (4)
[
2π Rs (C gd + C gs ) + Ro (C L + C gd ) + Ro Rs C gd gm ]
Rs (C gd + C gs ) + Ro (C L + C gd ) + Ro Rs C gd gm
f2 = → (5)
[
2π Ro Rs (C L C gs + C L C gd + C gs C gd ) ]
Using the values from Table 9.1, i.e.,
Cgd = 2 fF
Cgs = 23.3 fF
gm = 150 µA/V
r01 = 5 MΩ
Ro = r01 // R
Ro ≈ R since r01 >> R
f −1 f −1 f
∠Av = 180 o − tan −1 − tan − tan
11.9G 10.1M 97 M
The following figures from SPICE simulations show the frequency response of the circuit.
f z = 10GHz
f 1 = 10MHz
f 2 = 100MHz
Problem 21.4
For the circuit in Fig 21.12:
id = gmvgs
vin = vgs +id R
1
id ( + R) = vin
gm
id 1
=
v in 1
+R
gm
1
Gm,eff =
1
+R
gm
1
Gm,eff = =17.6µA/V
1
+50k
150µ
For sizes in Table 9.1 with bias currents of 20uA the effective transconductance from
hand calculations is 17.6uA/V.
From SIMS (Refer to Figure 21.13 used for the SIMS where
Vgs = 2.05V ,Vds = 5V ,vin =1V ,R = 50K ) the effective transconductance with body effect is
14.73uA/V and without body effect is 17.47uA/V.
Netlist
*** Figure 21.29 CMOS: Circuit Design, Layout, and Simulation ***
.control
destroy all
run
let id=mag(vdd#branch)
let gm=id/mag(vin)
plot gm
.endc
VDD VDD 0 DC 5
Vin Vin 0 DC 2.05 AC 1
Av = Rout/Rin=gm1/gm2
So Av=1
Figure 1 and Figure 2 show WinSpice simulation results for Common gate amplifier with
parameters from table 9.1 and biasing circuit in figure 20.43. For low frequencies gain is
approximately 1.
.control
destroy all
run
plot 20*log(mag(vout/vin))
plot Vout/vin
set units=degrees
plot ph(vout/Vin)
.endc
.option scale=1u
*.dc Von 0 5 1m
.AC DEC 100 10MEG 100g
**.op
VDD VDD 0 DC 5
Vin Vin 0 DC 0 AC 1
Xbias VDD Vbias1 Vbias2 Vbias3 Vbias4 Vhigh Vlow Vncas Vpcas bias
.subckt bias VDD Vbias1 Vbias2 Vbias3 Vbias4 Vhigh Vlow Vncas Vpcas
Rbias Vr 0 6.5k
.ends
Problem 21.6:
Using eq.21.64 that is
f1 = 1
[2π [(Cc + C 2).R 2 + (C 1 + CC (1 + gmR 2 )).R1]]
f
Vout (( f ) (1 − j. )
Therefore = 333. 11.9GHz
Vin ( f ) f f
(1 − j. )(1 − j. )
0.44 MHz1 80.9MHz
.
Magnitude of the transfer function:
f1 f2
fz
.option scale=1u
.AC dec 100 100k 100G
VDD VDD 0 DC 5
Vs Vs 0 DC 0 AC 1
Xbias VDD Vbias1 Vbias2 Vbias3 Vbias4 Vhigh Vlow Vncas Vpcas bias
.subckt bias VDD Vbias1 Vbias2 Vbias3 Vbias4 Vhigh Vlow Vncas Vpcas
Rbias Vr 0 6.5k
.ends
.end
Problem 21.7
Csg2
R1 M2
100k
Cdg2
Vac
Cgd1
Vout
M1
ac equivalent circuit
The model parameters for the above circuit (with the help of table 9.1) are
R1 = RS = 100k
C1 = Csg2 = 70 fF
CC = Cdg2 = 6 fF
C2 = Cgd1 = 2 fF
R2 = r01 (parallel with) r02 = 2.22 MΩ
gm2 = 150µA/V
gm1 = 1/RS = 10µA/V
f Z = 3.97 GHz
Form Eq : 21.65 ( page no : 23)
1
f1= = 0.79 MHz
2πg m 2 R2 R1CC
Form Eq : 21.66
1
f 2= = 0.25 GHz
2π [CC C1 + C1C 2 + CC C 2 ]
SIMULATION RESULTS
From the above simulations we have
NETLIST
.control
destroy all
run
plot 20*log(mag(vout/vs))
set units=degrees
plot ph(vout/vs)
.endc
.option scale=1u
.AC dec 100 100k 100G
VDD VDD 0 DC 5
Vs Vs 0 DC 0 AC 1
Xbias VDD Vbias1 Vbias2 Vbias3 Vbias4 Vhigh Vlow Vncas Vpcas bias
.subckt bias VDD Vbias1 Vbias2 Vbias3 Vbias4 Vhigh Vlow Vncas Vpcas
Rbias Vr 0 6.5k
.ends
Problem 21.8)
Repeat Example 21.9 (page 21-26) using bias circuit from fig 20.47 & sizes in Table 9.2.
Use the pole splitting equations (page 21-23) to solve this problem.
R1 = Rs = 100kΩ
R 2 = ron // rop = 111kΩ
C1 = C gs1 = 4.17fF
C2 = C dg2 = 3.7fF
C c = 1 pF + C gd 1 ≅ 1 pF
1 1
gm1 = =
Rs 100kΩ
µA
gm 2 = gm n = 150
V
1
f1 ≅ = 84 .8kHz
2π [(C c + C 2 )R2 + (C1 + C c (1 + gm 2 R2 ))R1 ]
gm 2 ⋅ C c
f2 ≅ = 3.0GHz
2π (C c ⋅ C1 + C1 ⋅ C 2 + C c ⋅ C 2 )
gm 2
fz ≅ = 23 .9 MHz
2π ⋅ C c
1
f un ≅ = 1.59 MHz
2π ⋅ Rs ⋅ Cc
vout ( f ) V
≅ gm1 ⋅ gm 2 ⋅ R1 ⋅ R2 = 16 .65 = 24 .4 dB
vin ( f ) V
Plot of Magnitude response in Problem 21.8
f1 ≅ 80kHz
f2 ≅ 1.5GHz
fz ≅ 30MHz
fun ≅ 1.4MHz
gain ≅ 25.5dB
The simulation results are seen above. The value of the gain is 25.5dB (we calculated 24.4dB).
The values of the poles, zero, and unity gain in the simulations are relatively close to the
calculated values. The small discrepancies are most likely the result of differences in the actual
circuit parameters compares to the values we used in the formulas.
*** Problem 21.8 CMOS: Circuit Design, Layout, and Simulation ***
.control
destroy all
run
plot 20*log(mag(vout/vs))
set units=degrees
plot ph(vout/vs)
.endc
.option scale=50n
.AC dec 100 1k 10G
VDD VDD 0 DC 1
Vs Vs 0 DC 0 AC 1
.subckt bias VDD Vbias1 Vbias2 Vbias3 Vbias4 Vhigh Vlow Vncas Vpcas
Rbias Vr 0 5.5k
*amplifier
MA1 Vamp Vreg 0 0 NMOS L=2 W=50
MA2 Vbiasp Vbiasn 0 0 NMOS L=2 W=50
MA3 Vamp Vamp VDD VDD PMOS L=2 W=100
MA4 Vbiasp Vamp VDD VDD PMOS L=2 W=100
*start-up stuff
MSU1 Vsur Vbiasn 0 0 NMOS L=2 W=50
MSU2 Vsur Vsur VDD VDD PMOS L=20 W=10
MSU3 Vbiasp Vsur Vbiasn 0 NMOS L=1 W=10
.ends
Netlist Problem 21.8 (excluding the NMOS and PMOS models)
HOMEWORK PROBLEM – 21.9.
Find the frequency response of the circuit in 21.10 using Table 9.2 and the bias circuit
from Figure 20.47. The schematic was converted into the Figure 21.25 format for the AC
equivalent model and is shown below. This model should be used whenever pole splitting
is present. Equation 21.63 on page 21-23 was used to calculate the zero and equations
21.64 and 21.66 were used to calculate the two poles. The calculations are shown below:
Av = gma * roa || rob * gmb * roc || rod = (150u * 111.2K) ** 2 = 278.3 = 48.8 dB
*** Homework 21.9 CMOS: Circuit Design, Layout, and Simulation ***
.control
destroy all
run
.endc
.option scale=50n
.option gmin=1e-15
VDD VDD 0 DC 1
*Vs Vs 0 DC 0 AC 10m sin 0 10m 400MEG
Vs Vs 0 DC 0 AC 10m sin 0 10m 10MEG
Xbias VDD Vbias1 Vbias2 Vbias3 Vbias4 Vhigh Vlow Vncas Vpcas bias
CL Vout 0 100f
Cc Vout V1 1p
Cbig1 Vs Vss 1u
Rbig1 V1 Vss 75Meg
.subckt bias VDD Vbias1 Vbias2 Vbias3 Vbias4 Vhigh Vlow Vncas Vpcas
Rbias Vr 0 5.5k
*amplifier
MA1 Vamp Vreg 0 0 NMOS L=2 W=50
MA2 Vbiasp Vbiasn 0 0 NMOS L=2 W=50
MA3 Vamp Vamp VDD VDD PMOS L=2 W=100
MA4 Vbiasp Vamp VDD VDD PMOS L=2 W=100
MCP VDD Vbiasp VDD VDD PMOS L=100 W=100
*start-up stuff
MSU1 Vsur Vbiasn 0 0 NMOS L=2 W=50
MSU2 Vsur Vsur VDD VDD PMOS L=20 W=10
MSU3 Vbiasp Vsur Vbiasn 0 NMOS L=1 W=10
.ends
Calculated Values
Av = 48.8 dB, f1 = 5.2 KHz, f2 = 220 MHz, fz = 23.9 MHz, fun = 23.9 MHz
Measured Values
Av = 49.8 dB, f1 = 90 KHz, f2 = 200 MHz, fz = 50 MHz, fun = 50 MHz & -160 deg
The transient simulation results for 50 MHz are shown below. From the frequency
response plot above, at 50 MHz, the gain of the amplifier is one and the phase is -160
degrees. Since the phase = 360 * tD / T where tD is the time difference and T is the
period, tD = phase * T / 360.
Simulations verified that the gain of the amplifier at 50 MHz was one since the input and
output had the same voltage swing (20 mV). The time point for the maximum voltage of
Vout occurs 9 ns after the maximum voltage of Vss which matches our calculated tD
value.
21.10)
Repeat Ex.21.12 using the biasing circuit from fig. 20.43 and the sizes in Table
9.1.
.option scale=1u
.AC DEC 100 100 1G
**.op
VDD VDD 0 DC 5
Vs Vs 0 DC 0 AC 1
Xbias VDD Vbias1 Vbias2 Vbias3 Vbias4 Vhigh Vlow Vncas Vpcas bias
.subckt bias VDD Vbias1 Vbias2 Vbias3 Vbias4 Vhigh Vlow Vncas Vpcas
Rbias Vr 0 6.5k
.ends
Problem21.11
Given: An ideal current source of 10uA driving a PMOS load.
To investigate: Gain of the amplifier with and without body effect.
The schematic of the circuit is as shown in the figure below:
Theory:
Without body effect:
The gain of the amplifier without body effect can be calculated from the circuit
shown below. Disregard the dependent current source Gm.Vsb.
Therefore the gain of the amplifier can be calculated as
Vsg=-(Vin-Vout)=Vout-Vin.
Vout= Gm.Vsg.Ro = gm Ro (Vout – Vin)
Vout gmRo
⇒ = ≅1
Vin 1 + gmRo
The gain of the amplifier is positive because of the direction of the current flowing
in the device.
Vout gm 1 gm
≅ = 〈1 where η= ≅ 0.4
Vin gm + gmb 1 + η gmb
Simulations:
Vdd Vdd 0 DC 1
Rbig bias in 10G
vbias bias 0 DC 0
Cbig vs in 10
Vin vs 0 DC 0 AC 1m
Hw 21.12
The combination of cascode and source follower circuit should not
exhibit slew rate limitation in the discharge path. This is because the
cascode has a very high gain, so any small increase input voltage
should pull the input of M7 significantly low and turning on the
transistor M7 more (meaning operating deep in saturation). While the
charging path for the output capacitor is a fixed current source which
has the slew rate limitation. Also we should take into consideration
the 10K output resistor which helps in the discharge. Still we have a
small slew rate during the discharge which is significantly low when
compared with the slew rate during the charging.
The below attached sims shows this.
*** HW 21.12 CMOS: Circuit Design, Layout, and Simulation ***
.control
destroy all
run
plot v(vs)
plot vout
.endc
VDD VDD 0 DC 1
Vs Vs 0 DC .5 pulse 0 10m 300n 0 0 300n
Xbias VDD Vbias1 Vbias2 Vbias3 Vbias4 Vhigh Vlow Vncas Vpcas bias
Cload Vout 0 1p
Rload Vout 0 10k
Cbig Vin Vss 10u IC=362m
Rbig Voutcas Vin 10MEG
Rs Vs Vss 100k
.subckt bias VDD Vbias1 Vbias2 Vbias3 Vbias4 Vhigh Vlow Vncas Vpcas
Rbias Vr 0 5.5k
*amplifier
MA1 Vamp Vreg 0 0 NMOS L=2 W=50
MA2 Vbiasp Vbiasn 0 0 NMOS L=2 W=50
MA3 Vamp Vamp VDD VDD PMOS L=2 W=100
MA4 Vbiasp Vamp VDD VDD PMOS L=2 W=100
.ends
Problem 21.13
*** Problem 21.13 CMOS: Circuit Design, Layout, and Simulation ***
.control
destroy all
run
plot vout
.endc
Xbias VDD Vbias1 Vbias2 Vbias3 Vbias4 Vhigh Vlow Vncas Vpcas bias
.subckt bias VDD Vbias1 Vbias2 Vbias3 Vbias4 Vhigh Vlow Vncas Vpcas
Rbias Vr 0 5.5k
*amplifier
MA1 Vamp Vreg 0 0 NMOS L=2 W=50
MA2 Vbiasp Vbiasn 0 0 NMOS L=2 W=50
MA3 Vamp Vamp VDD VDD PMOS L=2 W=100
MA4 Vbiasp Vamp VDD VDD PMOS L=2 W=100
*start-up stuff
MSU1 Vsur Vbiasn 0 0 NMOS L=2 W=50
MSU2 Vsur Vsur VDD VDD PMOS L=20 W=10
MSU3 Vbiasp Vsur Vbiasn 0 NMOS L=1 W=10
.ends
From simulations results we see that output voltage swing between 620mV and down to 20mv
where as in hand calculations it should swing from 750mv to 250mv.
M4A
Vbias1
MOP 1000/2
M4B
Vbias2
MFCP
MFCN
Vpcas
MON, 500/2
Vncas
M3B
Vbias3
M3A
Vbias4
Ans) When a load resistor is connected, the PMOS device has to supply current to load to
maintain output high and also current dissipated by NMOS device. So a PMOS device
has to supply much larger current than an NMOS device.
Simulate if above device drives a 1K resistor and MON is reduced in size to 50/2. Is it a
better design? Why or Why Not.
Ans) Simulations results are given below for MON W=500 and W=100 (Convergence
problem with W=50) and I didn’t see much difference in simulations. So its not a bad
design to have a smaller W for MON
Theoretically, if the gain of first stage (floating gate op-amp) is less then vin may not
toggle fully and in turn may create problems by turning on both the devices (MOP and
MON) simultaneously for long time. But with reasonable first stage gain there shouldn’t
be any problems with a smaller width MON device.
Also the above configuration is push pull configuration. So if MOP turns on MON turns
off and vice versa. This allows us to design the circuit with smaller MON widths. The
same is not true for MOP transistors because it has to supply atleast Iload current to
maintain output high (Iload=VDD/outputload resistance).
Gain of the Op-Amp (Looks very similar for W=100 and W=500)
*** Figure 21.14 CMOS: Circuit Design, Layout, and Simulation ***
.control
destroy all
run
plot out
let Av=deriv(out)
plot 20*log(mag(out/vin))
plot Av
.endc
VDD VDD 0 DC 1
Vin Vin 0 DC 0
RL out 0 1k
Xbias VDD Vbias1 Vbias2 Vbias3 Vbias4 Vhigh Vlow Vncas Vpcas bias
.subckt bias VDD Vbias1 Vbias2 Vbias3 Vbias4 Vhigh Vlow Vncas Vpcas
Rbias Vr 0 5.5k
*amplifier
MA1 Vamp Vreg 0 0 NMOS L=2 W=50
MA2 Vbiasp Vbiasn 0 0 NMOS L=2 W=50
MA3 Vamp Vamp VDD VDD PMOS L=2 W=100
MA4 Vbiasp Vamp VDD VDD PMOS L=2 W=100
*start-up stuff
MSU1 Vsur Vbiasn 0 0 NMOS L=2 W=50
MSU2 Vsur Vsur VDD VDD PMOS L=20 W=10
MSU3 Vbiasp Vsur Vbiasn 0 NMOS L=1 W=10
.ends
Problem 21.15
Using simulations show the problem of using an inverter output buffer without a floating
current source as seen in Fig. 21.53 (the quiescent current that flows in the MOSFETs is
huge and not accurately controlled as it is in Fig. 21.50)
First lets simulate the circuit of Figure 21.51 with a load resistor of 1k and a floating
current source. The current that flows through the MOSFETs, MON and MOP, can be
seen in the plot below:
Now we will simulate the same circuit but this time we will remove the floating current
source from the output buffer. The currents now flowing through MON and MOP are
shown in the plot below:
Examining the two plots we can see that the current flowing through the MOSFETs has
essentially gone up by about a factor of 10. They are both conducting currents near a
milli-Amp. This is a huge amount of current flowing and is a problem that can be solved
by using the floating current source on the output buffer.
.control
destroy all
run
plot out
let Av=deriv(out)
plot Av
.endc
VDD VDD 0 DC 1
Vin Vin 0 DC 0
Vmop vdd mop DC=0
Vmon mon 0 DC=0
RL out 0 1k
Xbias VDD Vbias1 Vbias2 Vbias3 Vbias4 Vhigh Vlow Vncas Vpcas bias
.subckt bias VDD Vbias1 Vbias2 Vbias3 Vbias4 Vhigh Vlow Vncas Vpcas
Rbias Vr 0 5.5k
*amplifier
MA1 Vamp Vreg 0 0 NMOS L=2 W=50
MA2 Vbiasp Vbiasn 0 0 NMOS L=2 W=50
MA3 Vamp Vamp VDD VDD PMOS L=2 W=100
MA4 Vbiasp Vamp VDD VDD PMOS L=2 W=100
*start-up stuff
MSU1 Vsur Vbiasn 0 0 NMOS L=2 W=50
MSU2 Vsur Vsur VDD VDD PMOS L=20 W=10
MSU3 Vbiasp Vsur Vbiasn 0 NMOS L=1 W=10
.ends
.include C:.\50nm_models.txt
.end
P21.16
Pictured in figure 1 are the time domain Vin and Vout for figure 21.56. These figures and
the table will be used to prove that the distortion the output of figure 21.56 introduces into
the signal is NOT a function of load resistance.
When the input amplitude is changed to 1 volt and the load resistance is left the same, (figure 2,
and table 2,) the THD increases to 42.6%, and the output voltage is distorted to the point of
becoming a square wave.
Table 2.
Below, in figure 3 and table 3, the resistance is decreased to 500Ω, but the THD and the
output waveform stay the same.
In figure 4 and table 4, the resistance is increased to 10kΩ. Comparing figure 4 and table 4
with figure 3 and table 3 above, there is no change in either one. Therefore it can be
concluded that the distortion at the output of figure 21.56 is not a function of the load
resistance, but is a function of the amplitude of the input signal, (as discussed in the text.)
Figure 4. Vin = 1V * sin( 2 * π *1Meg * t )
R=100kΩ
Fourier analysis for vout:
No. Harmonics: 10, THD: 42.6124 %, Gridsize: 200, Interpolation Degree: 1
Table 4.
*** Figure 21.56 CMOS: Circuit Design, Layout, and Simulation ***
.option scale=50n
.tran 10n 2u UIC
.four 1MEG Vout
VDD VDD 0 DC 1
Vin Vin 0 DC 0 sin 0 1 1MEG
RL out 0 100k
Rbigp Vbias1 vgp 1G
Cbigp vgp vin 1 IC=0.643
Rbign Vout vgn 1G
Cbign Vgn vin 1 IC=0.362
Xbias VDD Vbias1 Vbias2 Vbias3 Vbias4 Vhigh Vlow Vncas Vpcas bias
MON Vout vgn 0 0 NMOS L=2 W=500
MOP Vout vgp VDD VDD PMOS L=2 W=1000
.subckt bias VDD Vbias1 Vbias2 Vbias3 Vbias4 Vhigh Vlow Vncas Vpcas
MP1 Vbias3 Vbiasp VDD VDD PMOS L=2 W=100
MP2 Vbias4 Vbiasp VDD VDD PMOS L=2 W=100
MP3 vp1 vp2 VDD VDD PMOS L=2 W=100
MP4 vp2 Vbias2 vp1 VDD PMOS L=2 W=100
MP5 Vpcas Vpcas vp2 VDD PMOS L=2 W=100
MP6 Vbias2 Vbias2 VDD VDD PMOS L=10 W=20
MP7 Vhigh Vbias1 VDD VDD PMOS L=2 W=100
MP8 Vbias1 Vbias2 Vhigh VDD PMOS L=2 W=100
MP9 vp3 Vbias1 VDD VDD PMOS L=2 W=100
MP10 Vncas Vbias2 vp3 VDD PMOS L=2 W=100
MN1 Vbias3 Vbias3 0 0 NMOS L=10 W=10
MN2 Vbias4 Vbias3 Vlow 0 NMOS L=2 W=50
MN3 Vlow Vbias4 0 0 NMOS L=2 W=50
MN4 Vpcas Vbias3 vn1 0 NMOS L=2 W=50
MN5 vn1 Vbias4 0 0 NMOS L=2 W=50
MN6 Vbias2 Vbias3 vn2 0 NMOS L=2 W=50
MN7 vn2 Vbias4 0 0 NMOS L=2 W=50
MN8 Vbias1 Vbias3 vn3 0 NMOS L=2 W=50
MN9 vn3 Vbias4 0 0 NMOS L=2 W=50
MN10 Vncas Vncas vn4 0 NMOS L=2 W=50
MN11 vn4 Vbias3 vn5 0 NMOS L=2 W=50
MN12 vn5 vn4 0 0 NMOS L=2 W=50
Rbias Vr 0 5.5k
*amplifier
MA1 Vamp Vreg 0 0 NMOS L=2 W=50
MA2 Vbiasp Vbiasn 0 0 NMOS L=2 W=50
MA3 Vamp Vamp VDD VDD PMOS L=2 W=100
MA4 Vbiasp Vamp VDD VDD PMOS L=2 W=100
.ends
* BSIM4 models