Skip to content

Commit 81fb5cf

Browse files
committed
metrics: use sta API for violation count
Signed-off-by: Vitor Bandeira <[email protected]>
1 parent 3f9740e commit 81fb5cf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

flow/scripts/report_metrics.tcl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ proc report_metrics { when {include_erc true} {include_clock_skew true} } {
2929
report_clock_skew_metric
3030
report_clock_skew_metric -hold
3131
}
32-
32+
3333
puts "\n=========================================================================="
3434
puts "$when report_checks -path_delay min"
3535
puts "--------------------------------------------------------------------------"
@@ -121,12 +121,12 @@ proc report_metrics { when {include_erc true} {include_clock_skew true} } {
121121
puts "\n=========================================================================="
122122
puts "$when setup_violation_count"
123123
puts "--------------------------------------------------------------------------"
124-
puts "setup violation count [llength [find_timing_paths -path_delay max -slack_max 0]]"
124+
puts "setup violation count [sta::endpoint_violation_count min]"
125125

126126
puts "\n=========================================================================="
127127
puts "$when hold_violation_count"
128128
puts "--------------------------------------------------------------------------"
129-
puts "hold violation count [llength [find_timing_paths -path_delay min -slack_max 0]]"
129+
puts "hold violation count [sta::endpoint_violation_count min]"
130130

131131
set critical_path [lindex [find_timing_paths -sort_by_slack] 0]
132132
if {$critical_path != ""} {

0 commit comments

Comments
 (0)