From 17256c680a669faab618905555bf6721cfd943c1 Mon Sep 17 00:00:00 2001 From: David Shah Date: Tue, 3 Dec 2019 14:07:24 +0000 Subject: router2: debugging Signed-off-by: David Shah --- common/router2.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 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)))); } } } -- cgit v1.2.3