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
Tim Edwards
02/17/2022, 10:44 PM
Thanks. I'll pull the latest and make sure open_pdks is parsing it correctly.
s
Stefan Schippers
02/17/2022, 10:45 PM
Thank you , just have a quick look at the end of the xschemrc, if you need changes let me know.
t
Tim Edwards
02/17/2022, 10:46 PM
Will do. I probably won't get around to it until tomorrow.
👍 1
Tim Edwards
02/18/2022, 6:31 PM
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.
Tim Edwards
02/18/2022, 9:11 PM
My latest open_pdks commit should cleanly handle sky130A vs. sky130B by removing reram references from sky130A, as mentioned above.
👍 1
s
Stefan Schippers
02/19/2022, 10:58 AM
I am updating my install. Will check it out. Thanks
Linen is a search-engine friendly community platform. We offer integrations with existing Slack/Discord communities and make those conversations Google-searchable.