Skip to content

Commit

Permalink
mpl2: avoid messing placement by setting orientation after location
Browse files Browse the repository at this point in the history
Signed-off-by: Arthur Koucher <arthurckoucher@gmail.com>
  • Loading branch information
AcKoucher committed May 24, 2024
1 parent def0a3a commit fab7667
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mpl2/src/hier_rtlmp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6206,8 +6206,8 @@ void HierRTLMP::updateMacroOnDb(const HardMacro* hard_macro)
const int x = block_->micronsToDbu(hard_macro->getRealX());
const int y = block_->micronsToDbu(hard_macro->getRealY());

inst->setLocation(x, y);
inst->setOrient(hard_macro->getOrientation());
inst->setLocation(x, y);

// We don't lock the macros here, because we'll attempt to improve
// orientation next.
Expand Down

0 comments on commit fab7667

Please sign in to comment.