report -max_fanout do not report constant nets
This commit is contained in:
parent
0bc7169bd3
commit
9ff2d20e05
|
|
@ -20,6 +20,7 @@
|
||||||
#include "Liberty.hh"
|
#include "Liberty.hh"
|
||||||
#include "Network.hh"
|
#include "Network.hh"
|
||||||
#include "Sdc.hh"
|
#include "Sdc.hh"
|
||||||
|
#include "Sim.hh"
|
||||||
#include "PortDirection.hh"
|
#include "PortDirection.hh"
|
||||||
|
|
||||||
namespace sta {
|
namespace sta {
|
||||||
|
|
@ -259,10 +260,14 @@ CheckFanoutLimits::pinMinFanoutLimitSlack(Instance *inst,
|
||||||
float &min_slack)
|
float &min_slack)
|
||||||
{
|
{
|
||||||
const Network *network = sta_->network();
|
const Network *network = sta_->network();
|
||||||
|
const Sim *sim = sta_->sim();
|
||||||
InstancePinIterator *pin_iter = network->pinIterator(inst);
|
InstancePinIterator *pin_iter = network->pinIterator(inst);
|
||||||
while (pin_iter->hasNext()) {
|
while (pin_iter->hasNext()) {
|
||||||
Pin *pin = pin_iter->next();
|
Pin *pin = pin_iter->next();
|
||||||
if (network->direction(pin)->isAnyOutput()) {
|
if (stringEq(network->pathName(pin),"rdrv/Q"))
|
||||||
|
printf("luse\n");
|
||||||
|
if (network->direction(pin)->isAnyOutput()
|
||||||
|
&& !sim->logicZeroOne(pin)) {
|
||||||
float fanout;
|
float fanout;
|
||||||
float limit, slack;
|
float limit, slack;
|
||||||
checkFanout(pin, min_max, fanout, limit, slack);
|
checkFanout(pin, min_max, fanout, limit, slack);
|
||||||
|
|
|
||||||
|
|
@ -4907,6 +4907,8 @@ Sta::checkFanoutLimitPreamble()
|
||||||
{
|
{
|
||||||
if (check_fanout_limits_ == nullptr)
|
if (check_fanout_limits_ == nullptr)
|
||||||
makeCheckFanoutLimits();
|
makeCheckFanoutLimits();
|
||||||
|
// Sim values required to suppress reporting constant nets.
|
||||||
|
ensureLevelized();
|
||||||
}
|
}
|
||||||
|
|
||||||
Pin *
|
Pin *
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue