Skip to content

Commit 5687e05

Browse files
authored
Merge pull request #8796 from eder-matheus/grt_null
grt: check if instance is inside die area
2 parents b47291e + 71eb0a2 commit 5687e05

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/grt/src/GlobalRouter.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3888,6 +3888,14 @@ void GlobalRouter::makeItermPins(Net* net,
38883888
if (!inst->isPlaced()) {
38893889
logger_->error(GRT, 10, "Instance {} is not placed.", inst->getName());
38903890
}
3891+
3892+
if (!die_area.contains(inst->getBBox()->getBox())) {
3893+
logger_->error(GRT,
3894+
280,
3895+
"Instance {} is completely outside the die area.",
3896+
inst->getName());
3897+
}
3898+
38913899
const odb::dbTransform transform = inst->getTransform();
38923900

38933901
odb::Point pin_pos;

0 commit comments

Comments
 (0)