32 lines
628 B
SourcePawn
32 lines
628 B
SourcePawn
*Sample netlist for BSIM6.0
|
|
*Drain current symmetry
|
|
* (exec-spice "ngspice %s" t)
|
|
.option abstol=1e-6 reltol=1e-6 post ingold
|
|
|
|
.include "modelcard.pmos"
|
|
|
|
* --- Voltage Sources ---
|
|
vdrain drain 0 dc=0
|
|
esource source 0 drain 0 -1
|
|
vgate gate 0 dc=-0.5
|
|
vbulk bulk 0 dc=0
|
|
|
|
|
|
* --- Transistor ---
|
|
M1 drain gate source bulk mp W=10e-6 L=10e-6
|
|
|
|
* --- DC Analysis ---
|
|
.dc vdrain -0.1 0.1 0.001 vgate -1 -0.4 0.3
|
|
.probe dc ids=par'-i(vdrain)'
|
|
.probe dc gx=deriv(ids)
|
|
.probe dc gx2=deriv(gx)
|
|
.probe dc gx3=deriv(gx2)
|
|
.probe dc gx4=deriv(gx3)
|
|
.print dc par'ids' par'gx' par'gx2' par'gx3' par 'gx4'
|
|
|
|
.control
|
|
run
|
|
plot -i(vdrain)
|
|
.endc
|
|
.end
|