internal power weights

This commit is contained in:
James Cherry 2020-05-07 17:23:38 -07:00
parent 862aa3cc2e
commit ba28f7e99c
1 changed files with 2 additions and 2 deletions

View File

@ -706,8 +706,8 @@ Power::findOutputInternalPower(const Pin *to_pin,
for (InternalPower *pwr : *cell->internalPowers(to_port)) {
float duty = findInputDuty(to_pin, inst, func, pwr);
const char *related_pg_pin = pwr->relatedPgPin();
if (related_pg_pin)
pg_duty_sum[related_pg_pin] += duty;
// Note related_pg_pin may be null.
pg_duty_sum[related_pg_pin] += duty;
}
float internal = 0.0;