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

Starkzz

03/22/2022, 10:57 PM
For SKYWATER_MODEL we need to give sky130/libs.tech And For SKYWATER_STDCELLS we need to give sky130/libs.ref Is it right? @User
a

Arman Avetisyan

03/23/2022, 5:11 AM
Why does it start with ~ ?
@User I think you need to fix the ~ first
s

Stefan Schippers

03/23/2022, 8:08 AM
@User for these two paths you must give these:
set SKYWATER_MODELS ${PDK_ROOT}/${PDK}/libs.tech/ngspice
set SKYWATER_STDCELLS ${PDK_ROOT}/${PDK}/libs.ref/sky130_fd_sc_hd/spice
I assume you have
open_pdks
installed. The
PDK_ROOT
environment variable is assumed to point to the root of the open_pdks, typically:
/usr/local/share/pdk
the
PDK
variable sets the process variant (
sky130A
or
sky130B
). If unset xschem assumes
sky130A
. Xschem tries to find an open_pdks installation and set
PDK_ROOT
automatically if it is found in
/usr/local/share/pdk
or in user's home
${HOME}/share/pdk
. You also can get rid of PDK_ROOT variable and give absolute paths to the above SKYWATER_MODELS and SKYWATER_STDCELLS:
set SKYWATER_MODELS /usr/local/share/pdk/sky130A/libs.tech/ngspice
set SKYWATER_STDCELLS /usr/local/share/pdk/sky130A/libs.ref/sky130_fd_sc_hd/spice
s

Starkzz

03/24/2022, 4:33 AM
@User do I need to remove ~
a

Arman Avetisyan

03/24/2022, 5:00 AM
yes
s

Starkzz

03/24/2022, 5:19 AM
@User the same error again
a

Arman Avetisyan

03/24/2022, 5:21 AM
just set the xschemrc to one from pdk. Dont need to avoid it.
s

Starkzz

03/24/2022, 5:22 AM
IMG_20220324_105227.jpg
a

Arman Avetisyan

03/24/2022, 5:24 AM
again: run xschem with xschemrc from sky130 Also: always show the error and every input you are supplying (like commands and files)
s

Starkzz

03/24/2022, 5:26 AM
IMG_20220324_105630.jpg
a

Arman Avetisyan

03/24/2022, 5:27 AM
Do: export PDK_ROOT= then run xschem with xschemrc from sky130 supplied. Dont modify any xschem scripts
the pdk root need to be set where your pdk is installed
Where is your pdk installed?
s

Starkzz

03/24/2022, 5:36 AM
Open pdk
Sir can you show an example pictures where to specify the path
a

Arman Avetisyan

03/24/2022, 5:44 AM
export PDK_ROOT=/opt/pdk_root xschem --rcfile $PDK_ROOT/sky130A/libs.tech/xschem/xschemrc The export command needs to be set to the path, where the pdk is installed. PDK_ROOT's content:
s

Starkzz

03/24/2022, 5:54 AM
Wher did you get this armleo_sky130_ip folder
a

Arman Avetisyan

03/24/2022, 5:55 AM
its just the folder with my xschem files
s

Starkzz

03/24/2022, 6:01 AM
Where did you follow the installation process any sources please let me know
a

Arman Avetisyan

03/24/2022, 6:06 AM
Installation process of what?
s

Starkzz

03/24/2022, 6:08 AM
Sky130, Xschem, Magic, Ngspice, Netgen
IMG_20220324_113808.jpg
a

Arman Avetisyan

03/24/2022, 6:11 AM
ngspice looks installed. Xschem seems to be working too. For Magic I followed steps to compile and install described on Magic's website. For OpenPDKs I followed the steps for Open_PDKS on GitHub. It contains the sky130 PDK Netgen is also compiled from source, following guide on the website.
s

Starkzz

03/24/2022, 6:12 AM
IMG_20220324_114201.jpg
a

Arman Avetisyan

03/24/2022, 7:44 AM
You installed the skywater pdk, but you should install open pdks instead
and then use properly set the pdk root to installed pdk path. I showed the example of content of installed open pdk on top
I am saying this, because ngspice tries to load the wrong .spice file, which suggests you misscondigured it.
missconfigured either ngspice of xschem
5 Views