Skip to content

Commit

Permalink
Merge pull request The-OpenROAD-Project#5735 from Pinata-Consulting/r…
Browse files Browse the repository at this point in the history
…tlmp-error-message

rtlmp: improve error message
  • Loading branch information
maliberty authored Sep 11, 2024
2 parents 848cb4f + a487b9b commit 55c3345
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/mpl2/src/rtl_mp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,17 @@ void MacroPlacer2::placeMacro(odb::dbInst* inst,
if (!core_area.contains(macro_new_bbox)) {
logger_->error(MPL,
34,
"Specified location results in illegal placement. Cannot "
"place macro outside of the core.");
"Cannot place {} at ({}, {}) ({}, {}), outside of the core "
"({}, {}) ({}, {}).",
inst->getName(),
block->dbuToMicrons(macro_new_bbox.xMin()),
block->dbuToMicrons(macro_new_bbox.yMin()),
block->dbuToMicrons(macro_new_bbox.xMax()),
block->dbuToMicrons(macro_new_bbox.yMax()),
block->dbuToMicrons(core_area.xMin()),
block->dbuToMicrons(core_area.yMin()),
block->dbuToMicrons(core_area.xMax()),
block->dbuToMicrons(core_area.yMax()));
}

// Orientation must be set before location so we don't end up flipping
Expand Down

0 comments on commit 55c3345

Please sign in to comment.