In DRC, with '@+' as target layout, maintain the original active cell view. This way, DRC can be re-run on the original layout, but each time generating a new output cellview.

This commit is contained in:
Matthias Koefferlein 2024-10-06 19:08:38 +02:00
parent f25693373e
commit 8dab13eb42
1 changed files with 6 additions and 0 deletions

View File

@ -3450,7 +3450,13 @@ CODE
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