From 9475997a2df199d6dc27375978b56a08908d096e Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Wed, 20 Jun 2018 19:22:03 +0200 Subject: Improve --tmfuzz mode and iCE40 delay estimator Signed-off-by: Clifford Wolf --- common/route.cc | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'common') 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, -- cgit v1.2.3