diff options
Diffstat (limited to 'common')
-rw-r--r-- | common/route.cc | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/common/route.cc b/common/route.cc index 39e420d3..6a410397 100644 --- a/common/route.cc +++ b/common/route.cc @@ -162,6 +162,22 @@ struct Router src_wires[src_wire] = 0; route(src_wires, dst_wire); routedOkay = visited.count(dst_wire); + + if (ctx->verbose) { + log("Route (from destination to source):\n"); + + WireId cursor = dst_wire; + + while (1) { + log(" %8.3f %s\n", ctx->getDelayNS(visited[cursor].delay), + ctx->getWireName(cursor).c_str(ctx)); + + if (cursor == src_wire) + break; + + cursor = ctx->getPipSrcWire(visited[cursor].pip); + } + } } Router(Context *ctx, IdString net_name, bool ripup = false, |