We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5114b0e commit ac3ea19Copy full SHA for ac3ea19
src/odb/src/3dblox/3dblox.cpp
@@ -293,8 +293,10 @@ void ThreeDBlox::createBump(const BumpMapEntry& entry,
293
inst = dbInst::create(block, master, entry.bump_inst_name.c_str());
294
}
295
auto bump = dbChipBump::create(chip_region, inst);
296
- inst->setOrigin(entry.x * db_->getDbuPerMicron(),
297
- entry.y * db_->getDbuPerMicron());
+ Rect bbox;
+ inst->getMaster()->getPlacementBoundary(bbox);
298
+ inst->setOrigin((entry.x * db_->getDbuPerMicron()) - bbox.xCenter(),
299
+ (entry.y * db_->getDbuPerMicron()) - bbox.yCenter());
300
inst->setPlacementStatus(dbPlacementStatus::FIRM);
301
if (entry.net_name != "-") {
302
auto net = block->findNet(entry.net_name.c_str());
0 commit comments