https://open-source-silicon.dev logo
#sky130
Title
# sky130
m

Mayank Gupta

03/24/2022, 12:42 PM
Any help? I followed all the instructions and also installed everything in my home directory Everything seems to be installed yet this error persists Thread in #xschem
v

Vijayan Krishnan

03/24/2022, 12:47 PM
set PDK_ROOT to point where your sky130 pdk got installaed
m

Mayank Gupta

03/24/2022, 12:48 PM
I did this
the error still persists
Screenshot from 2022-03-24 18-18-55.png
v

Vijayan Krishnan

03/24/2022, 12:50 PM
export PDK_ROOT="/home/dcursd/AICD:$PDK_ROOT"
m

Mayank Gupta

03/24/2022, 12:50 PM
Yes, that is exactly what I did...
v

Vijayan Krishnan

03/24/2022, 12:50 PM
do and verify with
echo $PDK_ROOT
m

Mayank Gupta

03/24/2022, 12:51 PM
Nothing prints
so that means this statement is not executed ?
v

Vijayan Krishnan

03/24/2022, 12:52 PM
just check the screenshot and my msg. Is both same
export PDK_ROOT="/home/dcursd/AICD:$PDK_ROOT"
m

Mayank Gupta

03/24/2022, 12:53 PM
Ah okay, my double quotes are in a different place. Lemme change that. Thanks for pointing that our
Still the same issue
Attaching all three screenshots here. SOrry if I made any clumsy error again
v

Vijayan Krishnan

03/24/2022, 1:06 PM
is
dcursd/AICD
contains sky130 pdks?
m

Mayank Gupta

03/24/2022, 1:07 PM
Yes. It's the place where openpdk and skywater pdk exists
And i have checked the locations mentioned in the xschemrc file
v

Vijayan Krishnan

03/24/2022, 1:09 PM
something wrong with your xschemrc. What are the configuration you added after copying xschemrc?
m

Mayank Gupta

03/24/2022, 1:10 PM
Nothing. Just added a pdk root path
a

Arman Avetisyan

03/24/2022, 1:21 PM
Wait, why are you running export from the xschemrc?
its a bash command, not tcl one
m

Mayank Gupta

03/24/2022, 1:21 PM
Oh, was just trying to set PDK_ROOT path.
Lemme search an equivalent for TCL.
a

Arman Avetisyan

03/24/2022, 1:22 PM
Either set it from the terminal then run xschem OR use proper tcl syntax
👍 1
set ::env(PDK_ROOT) "...your path here..."
m

Mayank Gupta

03/24/2022, 1:23 PM
Thanks! Lemme update you soon
@User I added : set ::env(PDK_ROOT)"<my path>" inside the xschemrc file, Yet I get the same popup as above and xschem does not work
Also the above sent me an invalid command error too
a

Arman Avetisyan

03/24/2022, 1:50 PM
without screenshot I won't understand what you mean.
m

Mayank Gupta

03/24/2022, 1:53 PM
This
a

Arman Avetisyan

03/24/2022, 2:01 PM
1. you forgot space 2. post the tcl code + screenshot of an error.
there is a space before double quotes
👍 1
m

Mayank Gupta

03/24/2022, 2:03 PM
I fixed that somehow by just using set PDK_ROOT {/home/dcursd/AICD}
Thanks @User The xschem seems to work now. I have run into some other error but I think it's an issue with the library files location and test model location.
m

Matt Venn

03/24/2022, 4:17 PM
I don't think this is good: export PDK_ROOT="/home/dcursd/AICD:$PDK_ROOT"
you need to export PDK_ROOT to an absolute path, but the above is a circular reference
anyway, after fixing that you should be able to source the .bashrc like this:
Copy code
. ~/.bashrc
and then
Copy code
echo $PDK_ROOT
ls $PDK_ROOT
should print what the variable is set to and the list the files inside the pdk
m

Mayank Gupta

03/24/2022, 4:29 PM
Okay let me try this. Thanks Matt