diff options
author | David Shah <dave@ds0.me> | 2019-11-20 11:46:14 +0000 |
---|---|---|
committer | David Shah <dave@ds0.me> | 2020-02-03 11:38:31 +0000 |
commit | 363d664f273976e1d1e23bd272329dbff3c858ce (patch) | |
tree | f63cbdafeafc2d26e5af7ddabf37b9a7a8d4d312 | |
parent | ffd679cd368225cde6621efd78bea89a034cfc1c (diff) | |
download | nextpnr-363d664f273976e1d1e23bd272329dbff3c858ce.tar.gz nextpnr-363d664f273976e1d1e23bd272329dbff3c858ce.tar.bz2 nextpnr-363d664f273976e1d1e23bd272329dbff3c858ce.zip |
router2: tweaks
Signed-off-by: David Shah <dave@ds0.me>
-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 |