Skip to content

Bugfix/issue 2553 - #2556

Open
klayoutmatthias wants to merge 5 commits into
masterfrom
bugfix/issue-2553
Open

klayoutmatthias wants to merge 5 commits into
masterfrom
bugfix/issue-2553

Conversation

@klayoutmatthias

Copy link
Copy Markdown
Collaborator

Fixing issue #2553 (DRC bug with clip)

The problem was twofold:

  • While translating results back into the original layout, the
    clip condition was not considered properly.
    This caused the error markers appearing outside the clip zone.
  • With clip in place, two layouts are generated internally for
    the different input layers. While using "foreign" or "subject"
    as intruder layers, the correct layout has to be selected.
    That caused the wrong DRC output.

This patch has some side effects:

  • Cell variants may be created differently when sending a deep
    layer to an output layout in DRC or inserting a deep region into
    a layout. Specifically, less empty cells may be created.
  • CellMapping#create_cell_mapping now has a parameter
    called "skip_empty_cells". With this parameter set to true,
    empty cells are not transferred to the target layout.
    Cells are empty, if they have no shapes and are either
    leaf cells or call other empty cells only.

Matthias Koefferlein added 5 commits November 14, 2026 23:32
The problem was twofold:
* While translating results back into the original layout, the
  clip condition was not considered properly.
  This caused the error markers appearing outside the clip zone.
* With clip in place, two layouts are generated internally for
  the different input layers. While using "foreign" or "subject"
  as intruder layers, the correct layout has to be selected.
  That caused the wrong DRC output.
With the new back-annotation (aka "output to original layout"), the
clip variants are back-ported to the original layout. While doing so,
empty cells are now skipped.

For this, the cell mapping generator ("create_missing_mapping")
got a new parameter "skip_empty_cells" which is also available
in the GSI binding.

Yet, one test case needs to be adapted, and will still contain
empty cells in the output. This however is because the original
cells are not deleted, but are empty after the operation.
Fixing problems found with the unit tests.
Side effects:
- inserting empty deep layers into a layout will
  shortcut and the hierarchy will not be changed
- empty cells may not be transferred to the
  target layout when inserting a deep layer
  into a layout.
@klayoutmatthias klayoutmatthias linked an issue Nov 15, 2026 that may be closed by this pull request
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

Successfully merging this pull request may close these issues.

DRC functions not working properly with clip in place

1 participant