From 93ac03af07a88fc3f2c9d8085ff47f721fb1d357 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Thu, 27 May 2021 13:57:08 +0000 Subject: [PATCH] repeat debug information when net direction changes some debug info is printed out if an OUTPUT net direction is reversed repeated the same code for an INPUT net --- crlcore/src/ccore/toolbox/ToolBox.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/crlcore/src/ccore/toolbox/ToolBox.cpp b/crlcore/src/ccore/toolbox/ToolBox.cpp index 962c2937..50946850 100644 --- a/crlcore/src/ccore/toolbox/ToolBox.cpp +++ b/crlcore/src/ccore/toolbox/ToolBox.cpp @@ -677,6 +677,17 @@ void ConnectPlugHooks(Cell* cell) , sinks ) << endl; net->setDirection( Net::Direction::DirIn ); + for ( Occurrence occurrence : HyperNet(Occurrence(net)).getComponentOccurrences() ) { + Plug* plug = dynamic_cast( occurrence.getEntity() ); + if (plug) { + cerr << " | " << occurrence.getPath().getCompactString(false) + << "." << plug->getInstance()->getName() + << ":" << plug->getMasterNet()->getName() + << " (" << plug->getMasterNet()->getCell()->getName() << ")" << endl; + } else { + cerr << " | " << occurrence << endl; + } + } } continue; }