StefanSchippers / xschem_sky130

XSCHEM symbol libraries for the Google-Skywater 130nm process design kit.
Apache License 2.0
55 stars 12 forks source link

test_inv.sch references $::SKYWATER_MODEL but when you run a NGSPICE simulation it does not exist #10

Closed armleo closed 2 years ago

armleo commented 2 years ago

For some reason, the variable here errors out. Version: e34045bca1b14e405a366a6ab5464c48969c8971

Screenshot: image

Code: https://github.com/StefanSchippers/xschem_sky130/blob/e34045bca1b14e405a366a6ab5464c48969c8971/sky130_tests/test_inv.sch#L117

StefanSchippers commented 2 years ago

I assume you installed open_pdks, then, make sure you copy the xschemrc into the directory where you start xschem: something like: cp .../share/pdk/sky130A/libs.tech/xschem/xschemrc . Before starting xschem set the PDK_ROOT variable: export PDK_ROOT=.../share/pdk In above examples replace the '...' with the actual path where your open_pdks is installed.

armleo commented 2 years ago

Can this be documented somewhere? A lot of people ask the following questions: How to install XSCHEM, How to make a XSCHEM project directory (as they need to copy the .spiceinit and from your suggestion xschemrc), How to install XSCHEM sky130 library.

Maybe it's documented somewhere, but I couldn't navigate there from README.md of the Open PDKs.

StefanSchippers commented 2 years ago

The process is explained in this video (at 5:40) which is linked in the pinned posts in the #xschem slack channel of skywater-pdk. There is one recent addition: if you installed open_pdks in an unusual place you have to setup a PDK_ROOT variable that tells xschem where open_pdks is installed.

armleo commented 2 years ago

I just wish this was documented in the text form, so I could refer to it when people asked.