I am trying to run xschem but i am getting missing...
# xschem
d
I am trying to run xschem but i am getting missing symbols and this terminal error: daniel-herrera@daniel-herrera-Inspiron-5593:~/Desktop/projects$ xschem Using run time directory XSCHEM_SHAREDIR = /usr/local/share/xschem Sourcing /usr/local/share/xschem/xschemrc init file Sourcing /home/daniel-herrera/Desktop/projects/xschemrc init file Warning: PDK_ROOT env. var. not found or empty, trying to find an open_pdks install open_pdks installation: using /usr/local/share/pdk SKYWATER_MODELS: /usr/local/share/pdk/sky130A/libs.tech/combined SKYWATER_STDCELLS: /usr/local/share/pdk/sky130A/libs.ref/sky130_fd_sc_hd/spice setup_tcp_bespice: success : listening to TCP port: 2022 l_s_d(): Symbol not found: sky130_tests/test_nmos.sym etc etc........ I checked the file path where its looking for the symbols and I am the .sym files are there. Any idea what is going on?
m
@Daniel Herrera Try setting
PDK_ROOT
to the pdk installation before running xschem. You may also need to set
PDKPATH
(
export PDKPATH=$PDK_ROOT/$PDK
).
d
I now set the PDK_ROOT and PDKPATH like you described. Now I am getting this error: Using run time directory XSCHEM_SHAREDIR = /usr/local/share/xschem Sourcing /usr/local/share/xschem/xschemrc init file Sourcing /home/daniel-herrera/Desktop/projects/xschemrc init file Warning: PDK_ROOT environment variable is set but path not found on the system. open_pdks installation: using /home/Desktop/skywater-pdk SKYWATER_MODELS: /home/Desktop/skywater-pdk/sky130A/libs.tech/combined SKYWATER_STDCELLS: /home/Desktop/skywater-pdk/sky130A/libs.ref/sky130_fd_sc_hd/spice setup_tcp_bespice: success : listening to TCP port: 2022 load_schematic(): unable to open file: /home/Desktop/skywater-pdk/sky130A/libs.tech/xschem/sky130_tests/top.sch, fname=/home/Desktop/skywater-pdk/sky130A/libs.tech/xschem/sky130_tests/top.sch
m
Is the pdk installed at /home/Desktop/skywater-pdk/sky130A?
d
The skywater-pdk is in my Desktop folder. /home/Desktop/
m
Should it be
/home/daniel-herrera/Desktop/
?
s
@Daniel Herrera
/home/Desktop
is a very strange path. Sure you forgot your username in PDK_ROOT, as @Mitch Bailey pointed out.
n
@Mitch Bailey I also have this same error, but I am confused as to how I can set the PDK_ROOT and in which files can I set it?
m
@Nitin Indukuri Are you using xschem as part of a Efabless sky130 tapeout?
n
Yes, I was planning on using it for a tapeout. I already have magic updated with the sky130 tech file and xschem downloaded, but the symbols aren't showing up
m
If you’ve cloned the caravel_user_project repo and are working there, you should be able to install the pdk with make pdk-with-volare The pdk will be installed in the dependencies/pdks directory by default. export PDK_ROOT=$PWD/dependencies/pdks
n
oh i didn't use the caravel repo since I tried installing all the tools seperately. I installed the pdk through the open-pdks repo: https://github.com/RTimothyEdwards/open_pdks/tree/master I currently have the pdk in this path: /Desktop/nitin/chip_design/open_pdks/sky130 Do I just use that export command in the correct folder in terminal or do I add it to the xschemrc file that gets initialized and sets up the PDK_ROOT. I tried adding that command to that file as shown in this picture but I'm not sure if I did it correctly?
m
@Nitin Indukuri I don’t think that will work.
export
is a shell command and that file is a tcl file. I think the recommended way is to leave
Copy code
set PDK_ROOT $env(PDK_ROOT)
in the tcl file and add
Copy code
export PDK_ROOT=<path-to-pdks>
to your
~/.bashrc
file (if you’re using bash).
133 Views