-
Notifications
You must be signed in to change notification settings - Fork 571
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
ant: refactor logs and write report #5470
ant: refactor logs and write report #5470
Conversation
Signed-off-by: Eder Monteiro <[email protected]>
Signed-off-by: Eder Monteiro <[email protected]>
Signed-off-by: Eder Monteiro <[email protected]>
Signed-off-by: Eder Monteiro <[email protected]>
Signed-off-by: Eder Monteiro <[email protected]>
clang-tidy review says "All clean, LGTM! 👍" |
Signed-off-by: Eder Monteiro <[email protected]>
clang-tidy review says "All clean, LGTM! 👍" |
Signed-off-by: Eder Monteiro <[email protected]>
clang-tidy review says "All clean, LGTM! 👍" |
clang-tidy review says "All clean, LGTM! 👍" |
Signed-off-by: Eder Monteiro <[email protected]>
clang-tidy review says "All clean, LGTM! 👍" |
@maliberty Now this is ready to review. I checked that both pipelines are generating the same result, and testing with sky130hd/microwatt also shows stable results. |
src/ant/src/AntennaChecker.cc
Outdated
if (report_file.is_open() && (violation || verbose)) { | ||
report_file << par_report << "\n"; | ||
} | ||
net_to_report_[db_net].report += par_report + "\n"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As it required for MT that db_net be present it would be better to use net_to_report_.at(db_net)
to enforce it. Likewise elsewhere.
Signed-off-by: Eder Monteiro <[email protected]>
Signed-off-by: Eder Monteiro <[email protected]>
clang-tidy review says "All clean, LGTM! 👍" |
Signed-off-by: Eder Monteiro <[email protected]>
clang-tidy review says "All clean, LGTM! 👍" |
I created a map to store the report per net, sorting it by the net IDs. The report is written at the end of the ant flow, creating consistent reports independently of threading.
The downside is that the nets with violations will have all the ratio information in their report.