diff options
author | David Shah <davey1576@gmail.com> | 2018-06-20 20:14:08 +0200 |
---|---|---|
committer | David Shah <davey1576@gmail.com> | 2018-06-20 20:14:08 +0200 |
commit | 93ed8ca40519cc07b4719ea97a32f51d1a5631cb (patch) | |
tree | 1edddf2071d155b2818dfe3b212db25bdeb9264f /common | |
parent | c27c96f4f0ec66d13bea7d7cdea25fbeb2e189b7 (diff) | |
parent | f2ae9a713ba02f8160e64e199ea4203793f6ed90 (diff) | |
download | nextpnr-93ed8ca40519cc07b4719ea97a32f51d1a5631cb.tar.gz nextpnr-93ed8ca40519cc07b4719ea97a32f51d1a5631cb.tar.bz2 nextpnr-93ed8ca40519cc07b4719ea97a32f51d1a5631cb.zip |
Merge branch 'master' of gitlab.com:SymbioticEDA/nextpnr
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, |