adapt bsimbulk example files to ngspice
This commit is contained in:
parent
258dd7ad93
commit
ece8a0b10d
|
|
@ -14,10 +14,16 @@ vb b 0 dc=0
|
||||||
m1 d g s b nch W=10u L=10u
|
m1 d g s b nch W=10u L=10u
|
||||||
|
|
||||||
.dc vd -0.1 0.1 0.001 vg 0.0 1.0 0.2
|
.dc vd -0.1 0.1 0.001 vg 0.0 1.0 0.2
|
||||||
.probe dc ids=par'-i(vd)'
|
|
||||||
.probe dc gx=deriv(ids)
|
.control
|
||||||
.probe dc gx2=deriv(gx)
|
run
|
||||||
.probe dc gx3=deriv(gx2)
|
plot -i(vd)
|
||||||
.print dc par'ids' par'gx' par'gx2' par'gx3'
|
let gx=deriv(-i(vd))
|
||||||
|
let gx2=deriv(gx)
|
||||||
|
let gx3=deriv(gx2)
|
||||||
|
plot gx
|
||||||
|
plot gx2
|
||||||
|
plot gx3
|
||||||
|
.endc
|
||||||
|
|
||||||
.end
|
.end
|
||||||
|
|
|
||||||
|
|
@ -14,15 +14,16 @@ vb b 0 dc=0
|
||||||
m1 d g s b pch W=10e-6 L=10e-6
|
m1 d g s b pch W=10e-6 L=10e-6
|
||||||
|
|
||||||
.dc vd -0.1 0.1 0.001 vg -1 -0.4 0.3
|
.dc vd -0.1 0.1 0.001 vg -1 -0.4 0.3
|
||||||
*.probe dc ids=par'-i(vd)'
|
|
||||||
*.probe dc gx=deriv(ids)
|
|
||||||
*.probe dc gx2=deriv(gx)
|
|
||||||
*.probe dc gx3=deriv(gx2)
|
|
||||||
*.print dc par'ids' par'gx' par'gx2' par'gx3'
|
|
||||||
|
|
||||||
.control
|
.control
|
||||||
run
|
run
|
||||||
plot i(es)
|
plot -i(vd)
|
||||||
|
let gx=deriv(-i(vd))
|
||||||
|
let gx2=deriv(gx)
|
||||||
|
let gx3=deriv(gx2)
|
||||||
|
plot gx
|
||||||
|
plot gx2
|
||||||
|
plot gx3
|
||||||
.endc
|
.endc
|
||||||
|
|
||||||
.end
|
.end
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue