Dear Support team,
May I have your support in running the specter netlist .
Finding compatibility issue with the specter model,
Simple inverter spice code,
vdd 3 0 dc 5v
c1 2 0 5pf
set ngbehavior=spe
vin 1 0 pulse 0v 5v 1ns 1ns 1ns 10ns 20ns
m2 2 1 0 0 nfet w=1u l=40n
m1 2 1 3 3 pfet w=2u l=40n
.include "/cad/tech//MODELS/current_version/Spectre/models/design.scs"
.include "/cad/tech//MODELS/current_version/Spectre/models/include_fet_models.scs"
.tran 0.1ns 100ns
.control
run
.save v(1) v(2)
plot v(1) v(2)
.endc
.end
Kindly guide thru,
Thanks
set ngbehavior=spe
has to be moved into user definable initialization file .spiceinit
There is no dot command allowed inside of a .control section.
ngspice does not find models named nfet and pfet. As you do not show us what is insinde of the model files you are including, we cannot give any clue to this problem.
Dear Holger,
As suggested, I placed the
set ngbehavior=spe in . spiceinit initialization file. ,hope the tool accepts the spectre Model.
When I include the direct FET models , may I know why ngspice can`t able to find the model .
Kindly let me know , Thanks
vdd 3 0 dc 5v
c1 2 0 5pf
vin 1 0 pulse 0v 5v 1ns 1ns 1ns 10ns 20ns
m2 2 1 0 0 nfet w=1u l=40n
m1 2 1 3 3 pfet w=2u l=40n
include "/cad/tech//MODELS/current_version/Spectre/models/design.scs"
include "/cad/tech//MODELS/current_version/Spectre/models/include_fet_models.scs"
include "/cad/tech//MODELS/current_version/Spectre/models/FET/nfet.scs"
include "/cad/tech//MODELS/current_version/Spectre/models/FET/pfet.scs"
tran 0.1ns 100ns
run
save v(1) v(2)
plot v(1) v(2)
endc
end
Instead of using the spectre models, you may start a first simulation with the ngspice intrinsic models
Next you have too look at your model files. Do they contain model descriptions starting with a line
?
If you do not find such a model description, then you will need to publish the model files here, or nobody can give you any more help.
Dear Holger,
yes I did the same with the sample model files, but still the issue is same,
here by attached the model & the spice netlist FYR,
vdd 3 0 dc 5v
c1 2 0 5pf
vin 1 0 pulse 0v 5v 1ns 1ns 1ns 10ns 20ns
m2 2 1 0 0 N1 w=1u l=40n
m1 2 1 3 3 P1 w=2u l=40n
include /home/vlsicad3/open_src/spice/ngspice/ngspice-38/examples/modelcard.nmos
include /home/vlsicad3/open_src/spice/ngspice/ngspice-38/examples/modelcard.pmos
tran 0.1ns 100ns
run
save v(1) v(2)
plot v(1) v(2)
endc
end
ERROR:
Note: Compatibility modes selected: spe
warning, can't find model 'n1' from line
m2 2 1 0 0 n1 w=1u l=40n
warning, can't find model 'p1' from line
m1 2 1 3 3 p1 w=2u l=40n
Error: bad syntax of line
endc
No circuit loaded!
A ngspice netlist is a mixture of device (instance) lines starting with a letter and lines starting with a dot (.). In your netlist above there no dots. This cannot work.
In my previous post I have noted two things to do. You did not follw my advice. So please do this first and report your findings. Please also have a look at chapter 11 of the current ngspice manual.
Dear Holger ,
Thanks a lot for the advice , I can able to run the simulation with the example models got from ngspice sync version.
May I know how the spectre models can be supported by ngspice, as even when we give the compatibility behavior to spe
set ngbehavior=spe
my spectre model will be looks like the attached snapshot,kindly advice
Unfortunately ngspice cannot read such a model file, even not with compat mode spe.
You will have to modify it according to the example model.txt. So first you have to get model.txt up and running, and then try to edit the spectre file accordingly.
Dear Holger,
From Ngspice tutorials I find it can support the BSIM models, so I downloaded the BSIM4 to include the model files but notice to be the C files so May I have your guidance.
Rgds
KumaranS
Please have a look at the ngspice manual, chapter 11.2, where you will detect that BSIM4 is already supported with several versions.
Dear Holger,
Yes I do read the chapter , my query is when I untar the BSIM model , the files are in C language .C files so how to use those file , do we have any conversion tool or May I have some example to guide on how to include these models.
Last edit: KumaranS 2023-02-02
Please have a look at ngspice/examples/mos or https://sourceforge.net/p/ngspice/ngspice/ci/master/tree/examples/mos/