techie12
Newbie level 5
how to find dc gain,cmrr and bandwith for differential amplifier in hspice
I have written a code positive feedback diff amp for gain enhancement but not getting correct output.Please correct it
I have written a code positive feedback diff amp for gain enhancement but not getting correct output.Please correct it
Code:
.title'differential amplifier'
Vdd 12 0 1V
Vb3 6 0 1V
V0 12 10 0V
Vin1 2 0 sin(2V 0.3V 1Meg)
Vin2 5 0 0V
Vb1 11 0 1V
vb2 8 0 1V
CA 1 0 1uf
CB 4 0 1uf
M1 1 2 3 3 NCH L=32n W=12u
M2 4 5 3 3 NCH L=32n W=12u
M3 1 11 10 10 PCH L=32n W=60u
M4 4 11 10 10 PCH L=32n W=60u
M5 3 6 0 0 NCH L=32n W=150u
M1C 1 4 7 7 NCH L=32n W=12u
M2C 4 1 9 9 NCH L=32n W=12u
M3C 7 8 0 0 NCH L=32n W=12u
M4C 9 8 0 0 NCH L=32n W=12u
.model NCH NMOS level=1
.model PCH PMOS level=1
.tran 0.01us 10us
*.dc vdd 0 1V 0.2V
.print v(1) v(2) v(4) v(5) v(V0) i(vdd)
.print p(vdd)
.measure pwr avg p(vdd) from=0us to=10us
.end
Last edited by a moderator: