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

Regression in DRC detection #307

Closed
donn opened this issue May 12, 2024 · 6 comments
Closed

Regression in DRC detection #307

donn opened this issue May 12, 2024 · 6 comments

Comments

@donn
Copy link
Contributor

donn commented May 12, 2024

Magic version 8.3.466 correctly finds DRC issues in a gds file, but 8.3.479 reports no DRC errors. Are we missing something…?

reproducible.tgz

@d-m-bailey
Copy link

@RTimothyEdwards 8.3.471 is the commit that stops extracting errors.
8.3.470 shows

Magic 8.3 revision 470 - Compiled on Sun May 12 06:24:50 PDT 2024.
...
DRC style is now "drc(full)"
Loading DRC CIF style.
[INFO] COUNT: 171

8.3.471

Magic 8.3 revision 471 - Compiled on Sun May 12 06:27:30 PDT 2024.
...
DRC style is now "drc(full)"
Loading DRC CIF style.
No errors found.
[INFO] COUNT: 0

@RTimothyEdwards
Copy link
Owner

The only thing I changed in 8.3.471 is the parsing of arguments to the "select" command. My best guess is that in fixing the parsing of some of the "select" syntax that was broken, I broke something else. Is there a critical "select" command in the DRC script?

@RTimothyEdwards
Copy link
Owner

If I run the script commands individually, then the issue is clearly with the "select" command since "select top cell" returns "PHY_EDGE_ROW_1_Left_14" and not "inverter". Not sure why yet---I ran other quick tests and "select top cell" appeared to be doing the right thing.

@RTimothyEdwards
Copy link
Owner

The problem seems to be specific to using "magic -dnull".

@RTimothyEdwards
Copy link
Owner

Version 8.3.482 should fix this. The "select top cell" was behaving like "select cell" because there was no specific code handling the "top" option. The change to be more systematic about handling the various arguments like "more", "less", etc., caused this issue to suddenly manifest itself. The new code simply registers the fact that "top" has been issued and selects the top level cell as it should.

I have tested this on the reproducible case and it works.

@donn
Copy link
Contributor Author

donn commented May 19, 2024

Confirmed fixed. Thanks, Tim!

@donn donn closed this as completed May 19, 2024
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

3 participants