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.
This commit is contained in:
Jean-Paul Chaput 2020-04-15 10:42:38 +02:00
parent 05c0907d5c
commit 5a4d23f8fd
1 changed files with 2 additions and 0 deletions

View File

@ -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<RoutingPad*>(component)) ) {
if (not net->isExternal()) continue;
if (not cell->isRouted()) continue;