Or Dicker
03/10/2024, 9:59 AMError on line:
m.x1.xm20.msky130_fd_pr__pfet_g5v0d10v5 out x1.pdrv1 vdd3v3 vdd3v3 x1.xm20:sky130_fd_pr__pfet_g5v0d10v5__model l= 5.000000000000000e-01 w= 2.000000000000000e+02 nf= 2.000000000000000e+02 ad= 2.900000000000000e+01 as= 2.929000000000000e+01 pd= 2.580000000000000e+02 ps= 2.605800000000000e+02 nrd= 1.450000000000000e-03 nrs= 1.450000000000000e-03 sa= 0.000000000000000e+00 sb= 0.000000000000000e+00 sd= 0.000000000000000e+00 m= 1.000000000000000e+00
could not find a valid modelname
Simulation interrupted due to error!Tim Edwards
03/10/2024, 4:09 PM.spiceinit
file. By default, ngspice uses an interpretation of W
meaning "width per finger", while the BSIM model documentation says W
is "total width". The mode that switches between these interpretations is in the .spiceinit
file.
If you are running directly from CACE, it should find that file from the PDK and use it. However, if you just run xschem directly on the schematic, then you'll need to copy the file yourself. It's in $PDK_ROOT/sky130A/libs.tech/ngspice/spinit
. If you are using defaults in xschem, then it will simulate from ~/.xschem/simulations/
, so copy the file there and rename it from spinit
to .spiceinit
.Or Dicker
03/10/2024, 4:41 PMTim Edwards
03/10/2024, 5:31 PM.spiceinit
file needs to be in the directory ~/.xschem/simulations/
, which is where ngspice is launched from.
From the error, it is nearly certain that the problem is the lack of the set ngbehavior=hsa
option, which gets set from .spiceinit
.Or Dicker
03/10/2024, 7:56 PM