This commit is contained in:
James Cherry 2020-07-02 08:46:13 -07:00
commit 0a01faa36c
2 changed files with 19 additions and 10 deletions

View File

@ -182,15 +182,19 @@ CheckFanoutLimits::fanoutLoad(const Pin *pin) const
Pin *pin = pin_iter->next();
if (network->isLoad(pin)) {
LibertyPort *port = network->libertyPort(pin);
float fanout_load;
bool exists;
port->fanoutLoad(fanout_load, exists);
if (!exists) {
LibertyLibrary *lib = port->libertyLibrary();
lib->defaultFanoutLoad(fanout_load, exists);
if (port) {
float fanout_load;
bool exists;
port->fanoutLoad(fanout_load, exists);
if (!exists) {
LibertyLibrary *lib = port->libertyLibrary();
lib->defaultFanoutLoad(fanout_load, exists);
}
if (exists)
fanout += fanout_load;
}
if (exists)
fanout += fanout_load;
else
fanout += 1;
}
}
delete pin_iter;

View File

@ -382,7 +382,7 @@ proc report_net_pin { pin verbose corner digits } {
puts -nonewline [port_capacitance_str $liberty_port $digits]
}
}
puts ""
puts "[pin_location_str $pin]"
} elseif [$pin is_top_level_port] {
puts -nonewline " [get_full_name $pin] [pin_direction $pin] port"
if { $verbose } {
@ -404,12 +404,17 @@ proc report_net_pin { pin verbose corner digits } {
puts -nonewline " pin [capacitances_str $cap_r_min $cap_r_max $cap_f_min $cap_f_max $digits]"
}
}
puts ""
puts "[pin_location_str $pin]"
} elseif [$pin is_hierarchical] {
puts " [get_full_name $pin] [pin_direction $pin]"
}
}
# default handler
proc pin_location_str { pin } {
return ""
}
################################################################
proc report_pin_ { pin } {