Skip to content

Commit

Permalink
In DRC, with '@+' as target layout, maintain the original active cell…
Browse files Browse the repository at this point in the history
… view. This way, DRC can be re-run on the original layout, but each time generating a new output cellview.
  • Loading branch information
Matthias Koefferlein committed Oct 6, 2024
1 parent f256933 commit 8dab13e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/drc/drc/built-in-macros/_drc_engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3450,7 +3450,13 @@ def _make_target(arg, cellname = nil)
view = RBA::LayoutView::current
view || raise("No view open")
if $1 == "+"
prev_cv = view.active_cellview_index
n = view.create_layout(true)
if prev_cv >= 0
# make the original cellview the active one again - this way
# we can re-run DRC without using the new output.
view.active_cellview_index = prev_cv
end
cellname ||= (@def_cell ? @def_cell.name : "TOP")
else
n = $1.to_i - 1
Expand Down

0 comments on commit 8dab13e

Please sign in to comment.