aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgatecat <gatecat@ds0.me>2021-12-12 18:48:39 +0000
committergatecat <gatecat@ds0.me>2021-12-12 18:49:14 +0000
commit0dafcc44ffcbe747babdadbb33d4dc140b5ea87c (patch)
treeb7170587ee41e2e73795d34ef1346047ad830868
parentc76e1be39748d947fa99839063b677b0450891cd (diff)
downloadnextpnr-0dafcc44ffcbe747babdadbb33d4dc140b5ea87c.tar.gz
nextpnr-0dafcc44ffcbe747babdadbb33d4dc140b5ea87c.tar.bz2
nextpnr-0dafcc44ffcbe747babdadbb33d4dc140b5ea87c.zip
router2: Improve reservation debug logging
Signed-off-by: gatecat <gatecat@ds0.me>
-rw-r--r--common/router2.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/common/router2.cc b/common/router2.cc
index 051aa7f8..d713cce2 100644
--- a/common/router2.cc
+++ b/common/router2.cc
@@ -453,12 +453,14 @@ struct Router2
{
bool did_something = false;
WireId src = ctx->getNetinfoSourceWire(net);
- for (auto sink : ctx->getNetinfoSinkWires(net, net->users.at(i))) {
+ auto &usr = net->users.at(i);
+ for (auto sink : ctx->getNetinfoSinkWires(net, usr)) {
pool<WireId> rsv;
WireId cursor = sink;
bool done = false;
if (ctx->debug)
- log("reserving wires for arc %d of net %s\n", int(i), ctx->nameOf(net));
+ log("reserving wires for arc %d (%s.%s) of net %s\n", int(i), ctx->nameOf(usr.cell),
+ ctx->nameOf(usr.port), ctx->nameOf(net));
while (!done) {
auto &wd = wire_data(cursor);
if (ctx->debug)