Fix: some AutoSegments where wrongly flagged as reduced.

* Bug: In Anabatic::AutoSegment::canReduce(), when looking at a fixed
    segment we were unconditionally flagging it as reduced if it was
    a "jumper", regardless of it's length.
      It was wrong, now also check for a length below the P-Pitch.
      This was introduced when implementing the channel routing.
This commit is contained in:
Jean-Paul Chaput 2022-10-23 15:23:22 +02:00
parent a6f61c1044
commit bba364eecc
1 changed files with 1 additions and 1 deletions

View File

@ -1802,7 +1802,7 @@ namespace Anabatic {
AutoContact* source = getAutoSource();
AutoContact* target = getAutoTarget();
if (isFixed()) {
if (isFixed() and (length < getPPitch())) {
if (isSpinTopOrBottom() and source->isTurn() and target->isTurn())
return true;
return false;