diff options
| -rw-r--r-- | common/router2.cc | 8 | 
1 files changed, 5 insertions, 3 deletions
| diff --git a/common/router2.cc b/common/router2.cc index 0782c403..fcd52bb3 100644 --- a/common/router2.cc +++ b/common/router2.cc @@ -196,7 +196,7 @@ struct Router2          };      }; -    int bb_margin_x = 2, bb_margin_y = 2; // number of units outside the bounding box we may go +    int bb_margin_x = 4, bb_margin_y = 4; // number of units outside the bounding box we may go      bool hit_test_pip(ArcBounds &bb, Loc l)      {          return l.x >= (bb.x0 - bb_margin_x) && l.x <= (bb.x1 + bb_margin_x) && l.y >= (bb.y0 - bb_margin_y) && @@ -671,8 +671,10 @@ struct Router2  #endif              // Ripup wires and pips used by the net in nextpnr's structures              net_wires.clear(); -            for (auto &w : net->wires) -                net_wires.push_back(w.first); +            for (auto &w : net->wires) { +                if (w.second.strength <= STRENGTH_STRONG) +                    net_wires.push_back(w.first); +            }              for (auto w : net_wires)                  ctx->unbindWire(w);              // Bind the arcs using the routes we have discovered | 
