bashrc
The two environment variables every tool in this repository assumes.
export PDK_ROOT=/opt/pdk/share/pdk
export PDK=sky130A
PDK_ROOT is the open_pdks install prefix, the directory that holds the sky130A/ tree with libs.tech and libs.ref. PDK names the process variant inside it.
Source it from your own ~/.bashrc, or copy the two lines:
source ~/path/to/tech_sky130A/bash/bashrc
The paths match the aicex container, where the PDK is installed under /opt/pdk. On a hand built toolchain the prefix is whatever was passed to open_pdks as --prefix (see tools_install.make, which suggests /usr/local/eda), so change PDK_ROOT to match.
Everything downstream depends on these:
magic/.magicrcsources$PDK_ROOT/sky130A/libs.tech/magic/sky130A.magicrcxschem/xschemrcsources$PDK_ROOT/sky130A/libs.tech/xschem/xschemrcand uses$PDKto find the start windowmake/core.makebuildsPDKPATH=${PDK_ROOT}/sky130Afor the netgen setup and the KLayout DRC deck