Stefan Schippers
08/02/2022, 8:59 AMsource ./iic-init.sh
to initialize environment?
If you did:
Do you have in your home directory a ~/.xschem/xschemrc
file? can you send this file?
The above error happens when in a tcl script (the xschemrc file) you attempt to use a variable that has never been set/defined before.
The original xschem_sky130 xschemrc file always tests if PDK_ROOT exists before using it, however open_pdks does some processing on this file and may be it assumes the tcl PDK_ROOT variable is set from a shell variable PDK_ROOT.
Before starting xschem try to set the PDK_ROOT shell variable to point to your pdk install path:
export PDK_ROOT=.../.../share/pdk
If you start xschem from the terminal and no pdk is found you probably see this message:
No open_pdks installation found, set PDK_ROOT env. var. and restart xschem
Ashutosh Kumar
08/02/2022, 9:10 AMAshutosh Kumar
08/02/2022, 9:20 AMStefan Schippers
08/02/2022, 9:23 AM.../...
i wrote above should not be copied as is. You need to set PDK_ROOT to point to the actual path on your system. It can be /usr/local/share/pdk
or any other path. You need to provide the right location of the open_pdks installation.Ashutosh Kumar
08/03/2022, 4:40 AMStefan Schippers
08/03/2022, 7:26 AMputs $XSCHEM_LIBRARY_PATH
and send me the result
Where is libs.tech
located on your system? it seems your install is different from a plain open_pdks
install. If install paths are different you must ask to people who have arranged this setup. If the pdk is installed in a different directory structure the xschemrc must be set up accordingly, expecially the XSCHEM_LIBRARY_PATH list of directories, that must point to the installed xschem symbols.
If things keep failing delete EVERYTHING, ensure no xschem and magic executables are on the system. no dockers, containers or other stuff are lying around, delete .xschem/
directory in your home directory, ensure no xschem starts if you type xschem and proceed with open_pdks installation (see Download and INSTALL), including all prerequisites (magic and xschem). When finished, create an empty directory, copy the xschemrc
from open_pdks installation (/installation/path/share/pdk/sky130A/libs.tech/xschem/xschemrc
, where /installation/path
must be replaced with the actual path where open_pdks did the install on your system) and start xschem from that directory. This is the right way to start xschem on a sky130 project.