Comment out non-ngspice compatible commands

Otherwise error messages would have beeen generated
This commit is contained in:
Holger Vogt 2021-12-15 16:33:45 +01:00
parent 4f73c27d86
commit 8bf28b5aee
6 changed files with 33 additions and 28 deletions

View File

@ -19,16 +19,17 @@ m1 drain gate source bulk 0 nmos1 TFIN=15n L=30n NFIN=10 NRS=1 NRD=1
* --- DC Analysis ---
.dc vdrain -0.1 0.1 0.001 vgate 0.0 1.0 0.2
.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'
*.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
save @m1[VDSSAT]
save @m1[GDS]
save vdrain#branch
run
show all
let ids = -i(vdrain)

View File

@ -20,12 +20,12 @@ m1 drain gate source bulk 0 pmos1 TFIN=15n L=30n NFIN=10 NRS=1 NRD=1
* --- DC Analysis ---
.dc vdrain -0.1 0.1 0.001 vgate 0.0 -1.0 -0.2
.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'
*.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

View File

@ -16,13 +16,15 @@ vbs bulk 0 dc=0.2
m1 drain gate 0 bulk 0 nmos1 TFIN=15n L=40n NFIN=10 NRS=1 NRD=1 D=40n
* --- DC Analysis ---
.dc vds 0 1 0.01 vgs 0 1.0 0.1
.probe dc ids=par`-i(vds)`
.probe dc gds=deriv(ids)
.print dc par'ids' par'gds'
.dc vds -0.1 1 0.01 vgs 0 1.0 0.1
*.probe dc ids=par`-i(vds)`
*.probe dc gds=deriv(ids)
*.print dc par'ids' par'gds'
.control
save @m1[gds]
save vds#branch
set temp = -55
run
let ids = -i(vds)
@ -31,7 +33,6 @@ plot ids
plot xgds
plot @m1[gds]
save @m1[gds]
set temp = 27
run
let ids = -i(vds)

View File

@ -17,14 +17,15 @@ m1 drain gate 0 bulk 0 pmos1 TFIN=15n L=40n NFIN=10 NRS=1 NRD=1
+ D = 40n
* --- DC Analysis ---
.dc vds 0 -1 -0.01 vgs 0 -1.0 -0.1
.probe dc ids=par`i(vds)`
.probe dc gds=deriv(ids)
.print dc par'ids' par'-gds'
.dc vds 0.1 -1 -0.01 vgs 0 -1.0 -0.1
*.probe dc ids=par`i(vds)`
*.probe dc gds=deriv(ids)
*.print dc par'ids' par'-gds'
.control
save @m1[gds]
save vds#branch
set temp = 27
run

View File

@ -18,9 +18,11 @@ m1 supply gate 0 bulk t nmos1 TFIN=15n L=30n NFIN=10 NRS=1 NRD=1 D=40n
* --- DC Analysis ---
.dc vgs -0.5 1.0 0.01 vds 0.05 1 0.95
.probe dc par'-i(vds)'
.probe dc par'-i(vbs)'
.print dc i(X1.d)
*.probe dc par'-i(vds)'
*.probe dc par'-i(vbs)'
*.print dc i(X1.d)
.save i(vds) i(vbs)
.control
set temp = 27

View File

@ -18,13 +18,13 @@ m1 supply gate 0 bulk 0 pmos1 TFIN=15n L=30n NFIN=10 NRS=1 NRD=1
* --- DC Analysis ---
.dc vgs 0.5 -1.0 -0.01
.probe dc ids=par`i(vds)`
.probe dc gds=deriv(ids)
.print dc par'ids' par'-gds'
*.probe dc ids=par`i(vds)`
*.probe dc gds=deriv(ids)
*.print dc par'ids' par'-gds'
.control
save @m1[gm]
save @m1[gm] i(vds)
set temp = 27
run