From 363d664f273976e1d1e23bd272329dbff3c858ce Mon Sep 17 00:00:00 2001 From: David Shah Date: Wed, 20 Nov 2019 11:46:14 +0000 Subject: router2: tweaks Signed-off-by: David Shah --- common/router2.cc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'common/router2.cc') 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 -- cgit v1.2.3