Skip to content

Commit 7d20a8d

Browse files
committed
pad: add net highlights to debug
Signed-off-by: Peter Gadfort <[email protected]>
1 parent d818368 commit 7d20a8d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/pad/src/PadPlacer.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -951,6 +951,15 @@ void PlacerPadPlacer::debugPause(const std::string& msg) const
951951
{
952952
if (gui::Gui::enabled() && getLogger()->debugCheck(utl::PAD, "Pause", 1)) {
953953
debugPrint(getLogger(), utl::PAD, "Pause", 1, msg);
954+
auto* gui = gui::Gui::get();
955+
gui->clearHighlights();
956+
for (const auto& [inst, iterms] : iterm_connections_) {
957+
for (auto* iterm : iterms) {
958+
if (iterm->getNet() != nullptr) {
959+
gui->addNetToHighlightSet(iterm->getNet()->getConstName());
960+
}
961+
}
962+
}
954963
gui::Gui::get()->pause();
955964
}
956965
}

0 commit comments

Comments
 (0)