Does anybody know how to "include" resistor models...
# analog-design
a
Does anybody know how to "include" resistor models? I tried to just use the name of resistor problem is, it says its not found
t
With a default install of open_pdks (traditionally
/usr/share/pdk/sky130A
, but recently it changed to
/usr/local/share/pdk/sky130A
), you would want to use the following line at the top of your SPICE testbench:
.lib /usr/share/pdk/sky130A/libs.tech/nsgpice/sky130.lib.spice tt
, where
tt
is the process corner you want to simulate. If you use this with ngspice, be sure to copy
/usr/share/pdk/sky130A/libs.tech/ngspice/spinit
to the local directory and rename it to
.spiceinit
or else ngspice will take ages to read in the device models. The
sky130.lib.spice
file will include all of the SkyWater device models, including resistors, transistors, capacitors, etc.