Skip to content

Commit 95da0ce

Browse files
authored
Merge pull request #3933 from The-OpenROAD-Project-staging/save-images-scenes
Call save_clocktree_image for each scene's clock(s)
2 parents 75efeff + e86d02a commit 95da0ce

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

flow/scripts/save_images.tcl

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,17 @@ save_image -resolution $resolution $::env(REPORTS_DIR)/final_clocks.webp
6262
gui::clear_selections
6363

6464
gui::show_widget "Clock Tree Viewer"
65-
foreach clock [get_clocks *] {
66-
if { [llength [get_property $clock sources]] > 0 } {
67-
set clock_name [get_name $clock]
68-
save_clocktree_image -clock $clock_name \
69-
-width 1024 -height 1024 \
70-
$::env(REPORTS_DIR)/cts_$clock_name.webp
71-
gui::select_clockviewer_clock $clock_name
72-
save_image -resolution $resolution $::env(REPORTS_DIR)/cts_${clock_name}_layout.webp
65+
foreach scene [get_scenes] {
66+
foreach clock [get_clocks *] {
67+
if { [llength [get_property $clock sources]] > 0 } {
68+
set clock_name [get_name $clock]
69+
save_clocktree_image -clock $clock_name \
70+
-width 1024 -height 1024 \
71+
-scene $scene \
72+
$::env(REPORTS_DIR)/cts_$clock_name.webp
73+
gui::select_clockviewer_clock $clock_name
74+
save_image -resolution $resolution $::env(REPORTS_DIR)/cts_${scene}_${clock_name}_layout.webp
75+
}
7376
}
7477
}
7578
gui::hide_widget "Clock Tree Viewer"

0 commit comments

Comments
 (0)