Skip to content

Commit 6b0a7f3

Browse files
committed
floorplan: move metrics code into report_metrics utility fn
Heeds SKIP_REPORT_METRICS=1 now, useful with Bazel testing since report_units_metrics isn't supported in Bazel OpenROAD builds yet. Signed-off-by: Øyvind Harboe <[email protected]>
1 parent 867bc65 commit 6b0a7f3

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

flow/scripts/floorplan.tcl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,6 @@ if { [env_var_equals RESYNTH_TIMING_RECOVER 1] } {
148148

149149
puts "Default units for flow"
150150
report_units
151-
report_units_metric
152151
report_metrics 2 "floorplan final" false false
153152

154153
if { [env_var_equals RESYNTH_AREA_RECOVER 1] } {

flow/scripts/report_metrics.tcl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ proc report_metrics { stage when {include_erc true} {include_clock_skew true} }
1010
if {[env_var_equals SKIP_REPORT_METRICS 1]} {
1111
return
1212
}
13+
if {$stage == 2} {
14+
report_units_metric
15+
}
1316
puts "Report metrics stage $stage, $when..."
1417
set filename $::env(REPORTS_DIR)/${stage}_[string map {" " "_"} $when].rpt
1518
set fileId [open $filename w]

0 commit comments

Comments
 (0)