diff --git a/flow/scripts/report_metrics.tcl b/flow/scripts/report_metrics.tcl index edfa501dd9..5accb72a34 100644 --- a/flow/scripts/report_metrics.tcl +++ b/flow/scripts/report_metrics.tcl @@ -224,7 +224,11 @@ proc report_metrics { stage when { include_erc true } { include_clock_skew true report_puts "\n==========================================================================" report_puts "$when slack div critical path delay" report_puts "--------------------------------------------------------------------------" - report_puts "[format "%4f" [expr $path_slack / $path_delay * 100]]" + if { $path_delay != 0.0 } { + report_puts "[format "%4f" [expr $path_slack / $path_delay * 100]]" + } else { + report_puts "N/A (0 delay)" + } } report_puts "\n=========================================================================="