Skip to content

Commit 8e37e49

Browse files
authored
Merge pull request #8761 from The-OpenROAD-Project-staging/odb-bump-centering
odb: the bmap gives the center point of the bump so shift the instance
2 parents 5114b0e + ac3ea19 commit 8e37e49

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/odb/src/3dblox/3dblox.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,8 +293,10 @@ void ThreeDBlox::createBump(const BumpMapEntry& entry,
293293
inst = dbInst::create(block, master, entry.bump_inst_name.c_str());
294294
}
295295
auto bump = dbChipBump::create(chip_region, inst);
296-
inst->setOrigin(entry.x * db_->getDbuPerMicron(),
297-
entry.y * db_->getDbuPerMicron());
296+
Rect bbox;
297+
inst->getMaster()->getPlacementBoundary(bbox);
298+
inst->setOrigin((entry.x * db_->getDbuPerMicron()) - bbox.xCenter(),
299+
(entry.y * db_->getDbuPerMicron()) - bbox.yCenter());
298300
inst->setPlacementStatus(dbPlacementStatus::FIRM);
299301
if (entry.net_name != "-") {
300302
auto net = block->findNet(entry.net_name.c_str());

0 commit comments

Comments
 (0)