Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SKY130 klayout -e not loading PDK layers. #313

Open
njcoburn opened this issue Mar 23, 2023 · 4 comments
Open

SKY130 klayout -e not loading PDK layers. #313

njcoburn opened this issue Mar 23, 2023 · 4 comments

Comments

@njcoburn
Copy link

image
This error appears when opening klayout -e
When clicking the SKY130 PDK within klayout, also generates the following error. Layers of .gds are not named appropriately.

(base) nigelcoburn@godemperor:~/MS_SKY130$ klayout -e
ERROR: Reading /usr/local/google/home/nigelcoburn/MS_SKY130/silicon-env/share/pdk/sky130A/libs.tech/klayout/lvs/sky130.lylvs: XML parser error: not well-formed (invalid token) in line 31, column 48
ERROR: Reading /usr/local/google/home/nigelcoburn/MS_SKY130/silicon-env/share/pdk/sky130A/libs.tech/klayout/lvs/sky130.lylvs: XML parser error: not well-formed (invalid token) in line 31, column 48
libGL error: MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
libGL error: failed to load driver: swrast
ERROR: /usr/local/google/home/nigelcoburn/.klayout/salt/gdsfactory/pymacros/klive.lym:19: module 'pya' has no attribute 'QTcpServer'
  /usr/local/google/home/nigelcoburn/.klayout/salt/gdsfactory/pymacros/klive.lym:19 (class AttributeError)
ERROR: /usr/local/google/home/nigelcoburn/MS_SKY130/silicon-env/share/pdk/sky130A/libs.tech/klayout/pymacros/cells/via_generator.py:23: No module named 'gdsfactory'
  /usr/local/google/home/nigelcoburn/MS_SKY130/silicon-env/share/pdk/sky130A/libs.tech/klayout/pymacros/cells/via_generator.py:23
  /usr/local/google/home/nigelcoburn/MS_SKY130/silicon-env/share/pdk/sky130A/libs.tech/klayout/pymacros/cells/vias.py:21
  /usr/local/google/home/nigelcoburn/MS_SKY130/silicon-env/share/pdk/sky130A/libs.tech/klayout/pymacros/cells/__init__.py:22
  /usr/local/google/home/nigelcoburn/MS_SKY130/silicon-env/share/pdk/sky130A/libs.tech/klayout/pymacros/sky130.lym:9 (class ModuleNotFoundError)
Warning: Initialization of layers failed: Unable to open file: /usr/local/google/home/nigelcoburn/.klayout/tech/sky130.lyp (errno=2)
Warning: Initialization of layers failed: Unable to open file: /usr/local/google/home/nigelcoburn/.klayout/tech/sky130.lyp (errno=2)
Warning: Initialization of layers failed: Unable to open file: /usr/local/google/home/nigelcoburn/.klayout/tech/sky130.lyp (errno=2)
@proppy
Copy link
Contributor

proppy commented Mar 31, 2023

Seems similar to:
efabless/sky130_klayout_pdk#3 and RTimothyEdwards/open_pdks#332

@proppy
Copy link
Contributor

proppy commented Mar 31, 2023

@njcoburn

can you try to edit $CONDA_PREFIX/share/pdk/libs.tech/klayout/tech/sky130A.lyt, and replace those three elements:

 <base-path/>
 <original-base-path>$PDK_ROOT/$PDK/libs.tech/klayout</original-base-path>
 <layer-properties_file>sky130A.lyp</layer-properties_file>

@njcoburn
Copy link
Author

Copying the sky130A.lyp file from /usr/local/google/home/nigelcoburn/MS_SKY130/silicon-env/share/pdk/sky130A/libs.tech/klayout/tech to /usr/local/google/home/nigelcoburn/.klayout/tech resolved the layer read issue as shown.
image
I also edited the file sky130A.lyt file [directory: /usr/local/google/home/nigelcoburn/MS_SKY130/silicon-env/share/pdk/sky130A/libs.tech/klayout/tech] line 9 to <layer-properties_file>sky130A.lyp</layer-properties_file>

When running klayout -e I still get the following errors:

ERROR: Reading /usr/local/google/home/nigelcoburn/MS_SKY130/silicon-env/share/pdk/sky130A/libs.tech/klayout/lvs/sky130.lylvs: XML parser error: not well-formed (invalid token) in line 31, column 48
ERROR: Reading /usr/local/google/home/nigelcoburn/MS_SKY130/silicon-env/share/pdk/sky130A/libs.tech/klayout/lvs/sky130.lylvs: XML parser error: not well-formed (invalid token) in line 31, column 48
libGL error: MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
libGL error: failed to load driver: swrast
ERROR: /usr/local/google/home/nigelcoburn/.klayout/salt/gdsfactory/pymacros/klive.lym:19: module 'pya' has no attribute 'QTcpServer'
  /usr/local/google/home/nigelcoburn/.klayout/salt/gdsfactory/pymacros/klive.lym:19 (class AttributeError)
ERROR: /usr/local/google/home/nigelcoburn/MS_SKY130/silicon-env/share/pdk/sky130A/libs.tech/klayout/pymacros/cells/via_generator.py:23: No module named 'gdsfactory'
  /usr/local/google/home/nigelcoburn/MS_SKY130/silicon-env/share/pdk/sky130A/libs.tech/klayout/pymacros/cells/via_generator.py:23
  /usr/local/google/home/nigelcoburn/MS_SKY130/silicon-env/share/pdk/sky130A/libs.tech/klayout/pymacros/cells/vias.py:21
  /usr/local/google/home/nigelcoburn/MS_SKY130/silicon-env/share/pdk/sky130A/libs.tech/klayout/pymacros/cells/__init__.py:22
  /usr/local/google/home/nigelcoburn/MS_SKY130/silicon-env/share/pdk/sky130A/libs.tech/klayout/pymacros/sky130.lym:9 (class ModuleNotFoundError)

@proppy
Copy link
Contributor

proppy commented Jul 12, 2023

Remaining error are related to efabless/sky130_klayout_pdk#6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants