How to get Transient simulation from this circuit and how to plot AC simulation from code

Thread Starter

Agapios Devi

Joined Dec 31, 2017
5
this is the circuit coding
*

* Low current dual stage operational amplifier
M1 2 2 1 1 CMOSP L=5U W=25U
M2 0 0 2 1 CMOSP L=50U W=5U
M3 3 2 1 1 CMOSP L=5U W=25U
M4 4 9 3 1 CMOSP L=5U W=75U
M6 5 10 3 1 CMOSP L=5U W=75U
M5 4 4 0 0 CMOSN L=5U W=10U
M7 5 4 0 0 CMOSN L=5U W=10U
M8 6 2 1 1 CMOSP L=5U W=50U
M9 6 5 0 0 CMOSN L=5U W=40U
C1 5 6 0.5PF
* CLOAD 6 0 10PF
VDD 1 0 DC 5.0
* v- 9
* v+ 10
* vout 6
* Vdd 1
* These SCN-2.0um parameters taken from MOSIS
.MODEL CMOSN NMOS LEVEL=2 LD=0.250000U TOX=408.000001E-10
+ NSUB=6.264661E+15 VTO=0.77527 KP=5.518000E-05 GAMMA=0.5388
+ PHI=0.6 UO=652 UEXP=0.100942 UCRIT=93790.5
+ DELTA=1.000000E-06 VMAX=100000 XJ=0.250000U LAMBDA=2.752568E-03
+ NFS=2.06E+11 NEFF=1 NSS=1.000000E+10 TPG=1.000000
+ RSH=31.020000 CGDO=3.173845E-10 CGSO=3.173845E-10 CGBO=4.260832E-10
+ CJ=1.038500E-04 MJ=0.649379 CJSW=4.743300E-10 MJSW=0.326991 PB=0.800000
.MODEL CMOSP PMOS LEVEL=2 LD=0.213695U TOX=408.000001E-10
+ NSUB=5.574486E+15 VTO=-0.77048 KP=2.226000E-05 GAMMA=0.5083
+ PHI=0.6 UO=263.253 UEXP=0.169026 UCRIT=23491.2
+ DELTA=7.31456 VMAX=17079.4 XJ=0.250000U LAMBDA=1.427309E-02
+ NFS=2.77E+11 NEFF=1.001 NSS=1.000000E+10 TPG=-1.000000
+ RSH=88.940000 CGDO=2.712940E-10 CGSO=2.712940E-10 CGBO=3.651103E-10
+ CJ=2.375000E-04 MJ=0.532556 CJSW=2.707600E-10 MJSW=0.252466 PB=0.800000
* To run the specific set of simulations, edit out the appropriate
* section's comment columns (*).
* DC Transfer Characteristic: 2.0 Volt Offset
vplus 10 0 dc 2.0
vminus 9 0
.dc vminus 0 5 0.1
* AC Transfer Characteristic: 2.0 Volt Offset
*vplus 10 0 dc 2.0
*vminus 9 0 dc 2.0 ac 1e-6
*.ac dec 10 100 1e9
* The following "probe" line is for those using PSPICE with PROBE Option
.probe
.end
*
 

Attachments

Thread Starter

Agapios Devi

Joined Dec 31, 2017
5
I have to do it by coding :( , I don't have choice. I got AC Magnitude plot, but I can't get the AC phse plot ... I add trace VP(6),VP(9) but I didn't get the plot like in the document. In document the phase in Y-axis is close to 3 ,, but for me it is near 180d what do I need to do in that case? I attached my plot but it is wrong I think.
 

Attachments

Thread Starter

Agapios Devi

Joined Dec 31, 2017
5
Yes, That is for DC, I got DC plot from it document, but I have a problem with AC phase plot and I don't know where do I need to put two resistors to get the transient plot, If you know , help me please
 
Top