Skip to content

Commit 7113097

Browse files
authored
Merge pull request #10793 from gudeh/dpl-dpo-load-macro-flipping
dpl/dpo: properly load fixed instances orientation
2 parents 355a498 + 4699de9 commit 7113097

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

src/dpl/src/Optdp.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ void Opendp::improvePlacement(const int seed,
7373
// to dbInst in its post-flush orient loop, so use this orientation for
7474
// DetailedMgr DRC checks
7575
for (const auto& node : network_->getNodes()) {
76-
if (node->getType() == Node::CELL && !node->isFixed()) {
76+
if (node->getType() == Node::CELL) {
7777
odb::dbInst* inst = node->getDbInst();
7878
if (inst && inst->getPlacementStatus().isPlaced()) {
7979
node->adjustCurrOrient(inst->getOrient());
@@ -107,6 +107,10 @@ void Opendp::improvePlacement(const int seed,
107107
// improvement. If it errors or prints a warning when
108108
// given a legal placement, that likely means there is
109109
// a bug in my code somewhere.
110+
if (debug_observer_) {
111+
logger_->report("Pause before \"legalize\" DPO initialization.");
112+
debug_observer_->redrawAndPause();
113+
}
110114
ShiftLegalizer lg;
111115
lg.legalize(mgr);
112116

src/dpl/src/graphics/Graphics.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ void Graphics::drawObjects(gui::Painter& painter)
202202
const odb::Rect core = grid->getCore();
203203
const DbuX site_width = grid->getSiteWidth();
204204

205-
auto color = gui::Painter::kWhite;
205+
auto color = gui::Painter::kOrange;
206206
color.a = 100;
207207
painter.setPen(color);
208208
painter.setBrush(color);

0 commit comments

Comments
 (0)