aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Shah <dave@ds0.me>2019-12-03 14:07:24 +0000
committerDavid Shah <dave@ds0.me>2020-02-03 11:38:31 +0000
commit17256c680a669faab618905555bf6721cfd943c1 (patch)
tree8cf30bc6fc46112e4ad09c8edb335e46dbf366c9
parent3d739b5916277357283da225d98255aaad85e70c (diff)
downloadnextpnr-17256c680a669faab618905555bf6721cfd943c1.tar.gz
nextpnr-17256c680a669faab618905555bf6721cfd943c1.tar.bz2
nextpnr-17256c680a669faab618905555bf6721cfd943c1.zip
router2: debugging
Signed-off-by: David Shah <dave@ds0.me>
-rw-r--r--common/router2.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/common/router2.cc b/common/router2.cc
index 496a4bfc..7724f581 100644
--- a/common/router2.cc
+++ b/common/router2.cc
@@ -356,8 +356,11 @@ struct Router2
std::unordered_set<WireId> rsv;
WireId cursor = sink;
bool done = false;
+ log("resevering wires for arc %d of net %s\n", int(i), ctx->nameOf(net));
while (!done) {
auto &wd = wires.at(cursor);
+ if (ctx->debug)
+ log(" %s\n", ctx->nameOfWire(cursor));
wd.reserved_net = net->udata;
if (cursor == src)
break;
@@ -648,7 +651,9 @@ struct Router2
auto res2 = route_arc(t, net, i, is_mt, false);
// If this also fails, no choice but to give up
if (res2 != ARC_SUCCESS)
- log_error("Failed to route arc %d of net '%s'.\n", int(i), ctx->nameOf(net));
+ log_error("Failed to route arc %d of net '%s', from %s to %s.\n", int(i), ctx->nameOf(net),
+ ctx->nameOfWire(ctx->getNetinfoSourceWire(net)),
+ ctx->nameOfWire(ctx->getNetinfoSinkWire(net, net->users.at(i))));
}
}
}