Stefan Schippers
08/09/2022, 2:04 PM/home/username/.xschem/simulations/test_mim_cap.spice
Did you install open_pdks? Now the right way to use sky130 and xschem is to install the spice models via open_pdks, as explained in this . Consider that you don't need anymore to manually clone the skywater-pdk repository, it will be pulled in automatically by open_pdks, just give it the --enable-sky130-pdk
option when running configure:
./configure --enable-sky130-pdk --prefix=/pdk/root/dir
in above line /pdk/root/dir must be replaced by you to the place on the system where you want to install the pdk. If you don't give a --prefix it will be installed in /usr/local. A good choice for a single user setup is to add --prefix=/home/username
.
After installing open_pdks (which requires magic and xschem as prerequisites) create an empty directory, copy the file /pdk/root/dir/share/pdk/sky130A/libs.tech/xschem/xschemrc into this directory and start xschem from there.
Things to check in the xschem tcl prompt after starting xschem:
1. `puts $netlist_dir`; check this directory exists and is read/writeable.
2. `puts $XSCHEM_LIBRARY_PATH`; Do all the directories listed exist on the system?
3. `puts $SKYWATER_MODELS`: is this path correct? inside this path there must be the top sky130.lib.spice
file.fil
08/09/2022, 2:20 PMputs $netlist_dir
returns /home/username/.xschem/simulations, which has read/write/execute permission
2. puts $XSCHEM_LIBRARY_PATH
has a few directories, all of which exist: ~/.xschem/xschem_library, ~/share/pdk/sky130A/libs.tech/xschem, and ~/example_xschem_sky130 (the last one is the directory I made and copied the xschemrc into from the open_pdks install)
3. puts $SKYWATER_MODELS
seems correct. when I navigate to that folder there is a file called sky130.lib.spice
which I included to test ngspicefil
08/09/2022, 2:28 PMfil
08/09/2022, 3:07 PMStefan Schippers
08/09/2022, 9:55 PMfil
08/11/2022, 9:58 AMfil
08/11/2022, 10:08 AMStefan Schippers
08/11/2022, 2:04 PMlibs.tech/xschem
tree? or only libs.tech/xschem/sky130_tests/devices
?fil
08/11/2022, 2:17 PM