Krzysztof Herman
07/19/2023, 7:30 PMTim Edwards
07/20/2023, 6:13 PMwnflag
setting is something that Holger Vogt added to ngspice after I (and others) complained that ngspice was not interpreting W and NF as defined in the BSIM specification. According to the BSIM specification, the value W
is the total width of all fingers, and model bins should be selected on the basis of the width of a single finger, not the total width (which makes perfect sense).
However, you should not be setting wnflag
yourself; you should use set ngbehavior=hsa
(although the interpretation of W and NF is not an Hspice-compatibility issue). But you shouldn't be doing that, either; you should be copying the spinit
file from the PDK libs.tech/ngspice/
directory to your simulation directory and renaming it to .spiceinit
.
If ngspice is run with the correct configuration options, then all tools should be in agreement.Krzysztof Herman
07/20/2023, 8:03 PM.spiceinit
file in the user home directory. So it works correctly without wnflag
.