Hello, I have been following these instructions to...
# xschem
c
Hello, I have been following these instructions to get started. http://opencircuitdesign.com/~tim/reference/analog_mixed_signal_flow/analog_design_flow.html I have everything installed and compiled, I’m trying to figure out the canonical directory structure for a project. This command doesn’t work anymore:
ln -s /usr/local/share/pdk/sky130A/libs.tech/xschem/xschemrc
d
Hi @Colin Weltin-Wu I think /usr/local/share/pdk should link back to where you installed the PDK. Look to see if that's true.
c
Thanks it was an issue with the open_pdk installer, once I fixed that it worked. I think I figured out the xschem startup sequence, so I can make all my config in my local work dir. Thanks!
l
@Colin Weltin-Wu I would recommend not to link/copy the PDKs xschemrc file, but to source it from a projects xschemrc file. This is portable and when you change the PDK version, you will automatically use the newest version. See this template for an example project xschemrc under `xschem/`: https://github.com/efabless/sky130_ef_ip__template You need to start xschem in the
xschem/
folder in order for the project xschemrc to be automatically sourced, otherwise you need to specify
--rcfile
manually.
s
@Colin Weltin-Wu As @Leo Moser wrote above now the correct way to setup the project xschemrc file is to create an empty
xschemrc
file and add one line in it:
source /path/to/pdk/xschemrc
of course you must provide the correct path either by using the shell PDK_ROOT var:
source $env(PDK_ROOT)/sky130A/libs.tech/xschem/xschemrc
or using the absolute path:
source /usr/local/share/pdk/sky130A/libs.tech/xschem/xschemrc
After this
source
line you can add your own customizations of course.
c
This is exactly what I needed, thank you all! Now my config can be hierarchical.
🙌 1
t
I'm going to take this as an action item to update the instructions on my website that Colin cited at top. Updated.
👍 1