Can anyone help me with this? After running simul...
# sky130-pv-workshop
r
Can anyone help me with this? After running simulation ngspice is not selecting any compatibility mode. How and where to change this setting??
s
@Radheshyam Sharma its not very necessary. You may ignore
If you want to change, you can add them after .control
y
You haven't changed the v1 voltage.
t
@Radheshyam Sharma, @SUMANTO KAR: Compatibility mode in ngspice can be ignored, but without it, ngspice can take a very long time to start up when parsing the sky130 technology. The solution is to copy the
spinit
file from the sky130 PDK (
libs.tech/ngspice/spinit
) to the local directory where you are running ngspice, and rename it to
.spiceinit
. Then you should see the compatibility message appear when you run ngspice, and the simulation should be much faster.
๐Ÿ‘ 2
r
Sir how to know from which location ngspice has launched?? I can find 2 paths for ngspice.. /usr/local/lib/ngspice And /usr/local/bin/ngspice And Since I'm not the root user I'm unable to copy and paste to this directories.. even Im unable to create a link of the directory lib.tech/ngspice/spinit
s
@Radheshyam Sharma follow this
t
@Radheshyam Sharma: The
.spiceinit
file (or symbolic link to the technology
spinit
file, like Sumanto has, above) should be in the local directory where you have your schematic, although if that doesn't work, xschem might be using its default location for simulations, which would be
~/.xschem/simulations/
, which would mean that the
.spiceinit
file needs to be there.
๐Ÿ‘ 2
r
done.. now compatiility mode is hs a... Can I know more about what is compatibility mode? and what do we mean by hs a mode?? what are other modes??
s
@Radheshyam Sharma have a look here https://ngspice.sourceforge.io/docs/ngspice-manual.pdf
Search for the compatibility mode
r
Ok sir thankyou
๐Ÿ‘ 1