Skip to content

Add warning for poor activities convergence #118

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

povik
Copy link
Contributor

@povik povik commented Nov 4, 2024

Please consider having a warning like this.

I've found on some designs in OpenROAD-flow-scripts the propagated activities don't converge mostly due to bad features in the input netlist. Having a warning like this would help uncover these cases.

I've picked an arbitrary value of 0.20 for the max change threshold, and as for the mesage number I picked one above the existing Power.cc message. Not sure if messages.txt is maintained by some automated tooling but I tried inserting the message manually.

@akashlevy
Copy link
Contributor

akashlevy commented Nov 5, 2024

@povik (For future reference, etc/FindMessages.tcl regenerates doc/messages.txt)

pass, visitor.maxChange());
pass++;
}
if (visitor.maxChange() > 0.20) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This warns for nearly every power regression I have even though the activities indeed do converge. Consider a circuit with no feedback. When the activities propagate on the first pass they change by whatever the input activity is (with may be > .2). Since there is no feedback they are not re-queued and regs is empty. The activities are converged but it still warns about non-convergence. I think the true criteria for non-convergence is "pass == max_activity_passes_". All of the opensta regressions I have converge, so maybe the place to start is to make a test case and submit it as an issue.

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.

3 participants