PySpice icon indicating copy to clipboard operation
PySpice copied to clipboard

spice simulations not found

Open joamatab opened this issue 3 years ago • 3 comments

Hi!

im trying to add spice models into the skywater open source pdk

https://github.com/gdsfactory/skywater130/issues/16

what is the format for loading spice simulations in pyspice?

@proppy

joamatab avatar Jun 21 '22 18:06 joamatab

this is what i get

.title sky130_fd_sc_hd__a2111o_1
.lib /home/jmatres/sky130/sky130/spice/sky130_fd_sc_hd.spice sky130_fd_sc_hd__a2111o_1
Vgnd VGND 0 0
Vdd VPWR VGND 1.8
R VPWR DRAIN 10k
VVin GATE VGND DC 0V PULSE(0V 1.8V 1ns 10ps 10ps 1ns 2ns)

spinit was not found
Note: can't find init file.
Unsupported Ngspice version 36
ERROR, library file /home/jmatres/sky130/sky130/spice/sky130_fd_sc_hd.spice, section definition sky130_fd_sc_hd__a2111o_1 not found
Error: ngspice.dll cannot recover and awaits to be detached

@helgegehring

joamatab avatar Jun 28 '22 18:06 joamatab

related to issue https://github.com/google/skywater-pdk/issues/375

joamatab avatar Jun 28 '22 18:06 joamatab

See https://gist.github.com/proppy/964fa4b9277c3baf9e731872bbad93e4 for an example that load the spice model from an "install"-ed version of the SKY130 pdk (either thru https://anaconda.org/LiteX-Hub/open_pdks.sky130a or https://github.com/efabless/volare).

proppy avatar Jul 01 '22 05:07 proppy