report_checks -max_fanout non-liberty ports

This commit is contained in:
James Cherry 2020-06-30 19:24:30 -07:00
parent cc35414dcf
commit eefd98482a
1 changed files with 12 additions and 8 deletions

View File

@ -182,6 +182,7 @@ CheckFanoutLimits::fanoutLoad(const Pin *pin) const
Pin *pin = pin_iter->next(); Pin *pin = pin_iter->next();
if (network->isLoad(pin)) { if (network->isLoad(pin)) {
LibertyPort *port = network->libertyPort(pin); LibertyPort *port = network->libertyPort(pin);
if (port) {
float fanout_load; float fanout_load;
bool exists; bool exists;
port->fanoutLoad(fanout_load, exists); port->fanoutLoad(fanout_load, exists);
@ -192,6 +193,9 @@ CheckFanoutLimits::fanoutLoad(const Pin *pin) const
if (exists) if (exists)
fanout += fanout_load; fanout += fanout_load;
} }
else
fanout += 1;
}
} }
delete pin_iter; delete pin_iter;
} }