Skip to content

[Flow] Fix potential division-by-zero crash in report_metrics.tcl - #4042

Merged
maliberty merged 1 commit into
The-OpenROAD-Project:masterfrom
Vi-shub:report-metrics-div-zero
Mar 24, 2026
Merged

maliberty merged 1 commit into
The-OpenROAD-Project:masterfrom
Vi-shub:report-metrics-div-zero

Conversation

@Vi-shub

@Vi-shub Vi-shub commented Mar 23, 2026

Copy link
Copy Markdown
Contributor
  • Added a protective check before calculating path_slack / path_delay percentage.
  • Prevents TCL fatal errors on designs with 0-delay critical paths.

Hi @luarss and @maliberty this is quick fix for the 0 division error can you review and merge it. Thanks for your time.

- Added a protective check before calculating path_slack / path_delay percentage.
- Prevents TCL fatal errors on designs with 0-delay critical paths.

Signed-off-by: Vi-shub <smsharma3121@gmail.com>
@Vi-shub

Vi-shub commented Mar 23, 2026

Copy link
Copy Markdown
Contributor Author

Closes #4041

@maliberty
maliberty enabled auto-merge March 24, 2026 00:05
@maliberty
maliberty merged commit 180459b into The-OpenROAD-Project:master Mar 24, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants