Skip to content

Commit c8e599d

Browse files
committed
Refactored to use getSigType().isSupply().
Signed-off-by: Jaehyun Kim <[email protected]>
1 parent 58e1029 commit c8e599d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/dbSta/src/dbNetwork.cc

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4287,8 +4287,7 @@ void dbNetwork::checkSanityTermConnectivity()
42874287

42884288
for (odb::dbInst* inst : block_->getInsts()) {
42894289
for (odb::dbITerm* iterm : inst->getITerms()) {
4290-
if (iterm->getSigType() == dbSigType::POWER
4291-
|| iterm->getSigType() == dbSigType::GROUND) {
4290+
if (iterm->getSigType().isSupply()) {
42924291
continue; // Skip power/ground pins
42934292
}
42944293

@@ -4354,8 +4353,7 @@ void dbNetwork::checkSanityNetConnectivity()
43544353
}
43554354

43564355
// Skip power/ground net
4357-
if (net_db->getSigType() == odb::dbSigType::POWER
4358-
|| net_db->getSigType() == odb::dbSigType::GROUND) {
4356+
if (net_db->getSigType().isSupply()) {
43594357
continue; // OK: Unconnected power/ground net
43604358
}
43614359

0 commit comments

Comments
 (0)