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

GDS files empty in magic when edited with klayout #6

Closed
w32agobot opened this issue Feb 4, 2023 · 4 comments
Closed

GDS files empty in magic when edited with klayout #6

w32agobot opened this issue Feb 4, 2023 · 4 comments
Assignees

Comments

@w32agobot
Copy link

Describe the bug
GDS files can not be viewed with magic if they were edited with klayout

To Reproduce
Preparation:

  • Start container
  • Open terminal in /foss/designs
  • cp -r /foss/tools/openlane/2023.01/designs/spm /foss/designs/spm
  • flow.tcl -design spm -tag foo
  • cd spm/runs/foo/results/final/gds/

Check if gds can be opened with magic

  • magic spm.gds
  • Everything's okay, close magic

Force issue:

  • ke spm.gds
  • Warning: Initialization of layers failed: Unable to open file: /headless/.klayout/tech/sky130/sky130.lyp (errno=2)
  • File - Save
  • close klayout

Check again if gds can be opened with magic

  • magic spm.gds
  • magic view is empty

Expected behavior
Magic can open the modified gds file

Environment:

  • OS: Windows
  • Operating mode: VNC
  • Version tag 2023.01

Additional context

  • My workaround is using version tag 2022.12
  • Also happens in tag next with 2023.02
@hpretl
Copy link
Member

hpretl commented Feb 5, 2023

This might be related to this issue, to be further investigated: KLayout/klayout#1279

@w32agobot
Copy link
Author

I tiried to workaround by:
copy /headless/.klayout/tech/sky130 in 2022.12
paste /headless/.klayout/tech/sky130 in latest

The warning is gone but magic still can't display the modified gds file.

In 2022.12 the folder /headless/.klayout/tech/sky130 with sky130.lyp exists, but in latest it does not. I suspect there's information about the sky130 path embedded in the openLane-generated gds file (see file - layout properties and tools - manage technologies), therefore klayout still searches for sky130.lyp despite the command line option

@hpretl
Copy link
Member

hpretl commented Feb 5, 2023

I think I have found the issue, will try a patch of the klayout techfiles.

@hpretl
Copy link
Member

hpretl commented Feb 10, 2023

Closed, for explanation see here RTimothyEdwards/magic#221

@hpretl hpretl closed this as completed Feb 10, 2023
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