exception -from/to match internal pins

Signed-off-by: James Cherry <cherry@CerezoM1Book.local>
This commit is contained in:
James Cherry 2021-11-25 11:38:35 -08:00
parent 378020d2bd
commit ab652b12cc
3 changed files with 8 additions and 5 deletions

View File

@ -1421,7 +1421,7 @@ ExceptionTo::matchesFilter(const Pin *pin,
const RiseFall *end_rf,
const Network *network) const
{
// "report -to reg" does match clock pins.
// "report -to reg" matches clock pins.
return matches(pin, clk_edge, end_rf, true, network);
}
@ -1456,7 +1456,8 @@ ExceptionTo::matches(const Pin *pin,
&& (inst_matches_reg_clk_pin
|| !network->isRegClkPin(pin))
&& insts_->hasKey(network->instance(pin))
&& network->direction(pin)->isAnyInput()
&& (network->direction(pin)->isAnyInput()
|| network->direction(pin)->isInternal())
&& rf_->matches(end_rf)
&& end_rf_->matches(end_rf))
|| (pins_ == nullptr

View File

@ -3939,7 +3939,8 @@ Sdc::exceptionToInvalid(const Pin *pin)
Net *net = network_->net(pin);
// Floating pins are invalid.
if ((net == nullptr
&& !network_->isTopLevelPort(pin))
&& !(network_->isTopLevelPort(pin)
|| network_->direction(pin)->isInternal()))
|| (net
// Pins connected to power/ground are invalid.
&& (network_->isPower(net)

View File

@ -2027,11 +2027,12 @@ Sta::exceptionFromInvalid(const Pin *pin) const
|| (net
// Pins connected to power/ground are invalid.
&& (network_->isPower(net)
|| network_->isGround(net)))
|| network_->isGround(net)))
|| !((network_->isTopLevelPort(pin)
&& network_->direction(pin)->isAnyInput())
|| network_->isRegClkPin(pin)
|| network_->isLatchData(pin));
|| network_->isLatchData(pin)
|| network_->direction(pin)->isInternal());
}
void