From 5a4d23f8fd6b84969e24bcd2bc756d9a821cf218 Mon Sep 17 00:00:00 2001 From: Jean-Paul Chaput Date: Wed, 15 Apr 2020 10:42:38 +0200 Subject: [PATCH] Fix bad direction for segments in ApDriver. * Bug: In CRL::ApDriver::DumpSegments(), reset the direction field to NULL between iterations so it is recomputed for each component and not keeping the first one ever guessed. --- crlcore/src/ccore/alliance/ap/ApDriver.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crlcore/src/ccore/alliance/ap/ApDriver.cpp b/crlcore/src/ccore/alliance/ap/ApDriver.cpp index e4eba082..0910aa1a 100644 --- a/crlcore/src/ccore/alliance/ap/ApDriver.cpp +++ b/crlcore/src/ccore/alliance/ap/ApDriver.cpp @@ -245,6 +245,8 @@ void DumpContacts(ofstream& ccell, Cell *cell) if (net->isFused()) netName = "*"; for ( Component* component : net->getComponents() ) { + direction = NULL; + if ( (rp = dynamic_cast(component)) ) { if (not net->isExternal()) continue; if (not cell->isRouted()) continue;