<@U016EM8L91B> PDK_ROOT query is in <xschemrc> in the `xschem_sky130` repo. if this env var exists (...
s
@User PDK_ROOT query is in xschemrc in the
xschem_sky130
repo. if this env var exists (pointing one level above SKY130[AB]) it is used to build the xschem variables SKYWATER_MODELS and SKYWATER_STDCELLS. For convenience a PDK_ROOT tcl global is also created from the env var. the xschemrc also queries a PDK env var (If you have already a similar env var i can rename it) that is supposed to hold the process variant (SKY130A or SKY130B). If such variable is not found it defaults to SKY130A. If no PDK_ROOT env var is found xschem tries to locate a open_pdks install in /usr/local/share/pdk or in ${HOME}/share/pdk.
t
Thanks. I'll pull the latest and make sure open_pdks is parsing it correctly.
s
Thank you , just have a quick look at the end of the xschemrc, if you need changes let me know.
t
Will do. I probably won't get around to it until tomorrow.
👍 1
I think I have a proper resolution for this. I no longer need anything that was in the original open_pdks/sky130 Makefile recipe for xschem. Now, I only need to do two things: (1) replace "sky130A" with "TECHNAME" and then process with preproc.py to convert back to either "sky130A" or "sky130B" as appropriate, and (2) add a few lines at the bottom of xschemrc after PDK_ROOT and PDK are defined:
Copy code
set XSCHEM_START_WINDOW ${PDK_ROOT}/${PDK}/libs.tech/xschem/sky130_tests/top.sch
append XSCHEM_LIBRARY_PATH :${PDK_ROOT}/${PDK}/libs.tech/xschem
I guess I will also try to remove the reram files from the sky130A variant and the reference to them in top.sch.
My latest open_pdks commit should cleanly handle sky130A vs. sky130B by removing reram references from sky130A, as mentioned above.
👍 1
s
I am updating my install. Will check it out. Thanks