Skip to content

Commit 3b47fd8

Browse files
committed
pdn: dont warn on macros with no iterms
Signed-off-by: Peter Gadfort <[email protected]>
1 parent c100734 commit 3b47fd8

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/pdn/src/grid.cpp

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1673,10 +1673,13 @@ void InstanceGrid::report() const
16731673
bool InstanceGrid::isValid() const
16741674
{
16751675
if (getNets(startsWithPower()).empty()) {
1676-
getLogger()->warn(utl::PDN,
1677-
231,
1678-
"{} is not connected to any power/ground nets.",
1679-
inst_->getName());
1676+
if (!inst_->getITerms().empty()) {
1677+
// only warn when instance has something that could be connected to
1678+
getLogger()->warn(utl::PDN,
1679+
231,
1680+
"{} is not connected to any power/ground nets.",
1681+
inst_->getName());
1682+
}
16801683
return false;
16811684
}
16821685
return true;

0 commit comments

Comments
 (0)