-
Notifications
You must be signed in to change notification settings - Fork 52
Support Input/output internal power #344
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
base: master
Are you sure you want to change the base?
Support Input/output internal power #344
Conversation
| PowerResult(); | ||
| void clear(); | ||
| float internal() const { return internal_; } | ||
| float inputinternal() const { return inputinternal_; } |
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.
the function and variable names do not follow the naming conventions.
see doc/CodiingGuidelines.txt
| map<const char*, float, StringLessIf> pg_duty_sum; | ||
| int numArcs = 0; | ||
| for (InternalPower *pwr : corner_cell->internalPowers(to_corner_port)) { | ||
| numArcs += 1; |
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.
the variable does not follow the coding guidelines.
look around. you will never see "num" anything.
It should be arc_count
| } | ||
| } | ||
| // The number of pins that consume internal power in total | ||
| float numInternalPowerPins = numArcs / (float) pg_duty_sum.size(); |
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.
no nums
| } | ||
| } | ||
|
|
||
| define_cmd_args "report_internal_power_components" { [> filename] [>> filename] } |
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.
why does this require a reporting function? none of the other power types have unique reporting functions.
Adds support for querying both input and output internal power in gate power analysis.
Features:
get_input_internal_power()andget_output_internal_power()commandsBased on Silimate/OpenSTA implementation with upstream integration.