Skip to content

Commit f517bc4

Browse files
committed
pdn: check for zero area
Signed-off-by: Peter Gadfort <[email protected]>
1 parent 78af416 commit f517bc4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/pdn/src/grid.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1749,6 +1749,12 @@ void InstanceGrid::checkSetup() const
17491749
inst_->getName());
17501750
}
17511751
}
1752+
1753+
if (total_pin_area == 0) {
1754+
// should not occur, implies all blocked pins have 0 area
1755+
continue;
1756+
}
1757+
17521758
const float pct
17531759
= 100 * static_cast<float>(total_overlap) / total_pin_area;
17541760
getLogger()->warn(utl::PDN,

0 commit comments

Comments
 (0)