aboutsummaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2018-11-13 17:30:49 +0100
committerClifford Wolf <clifford@clifford.at>2018-11-13 17:30:49 +0100
commitcaca485cfff7f999a19e86e2f00187550b0c92f4 (patch)
tree72cd8daaedd26a352c30920e708fcbadf9b30f78 /common
parent51b09f2407549ced10edc831ac5d0787e492713c (diff)
downloadnextpnr-caca485cfff7f999a19e86e2f00187550b0c92f4.tar.gz
nextpnr-caca485cfff7f999a19e86e2f00187550b0c92f4.tar.bz2
nextpnr-caca485cfff7f999a19e86e2f00187550b0c92f4.zip
Minor router1 debug log improvements
Signed-off-by: Clifford Wolf <clifford@clifford.at>
Diffstat (limited to 'common')
-rw-r--r--common/router1.cc10
1 files changed, 8 insertions, 2 deletions
diff --git a/common/router1.cc b/common/router1.cc
index 0481a95e..adad37e9 100644
--- a/common/router1.cc
+++ b/common/router1.cc
@@ -666,12 +666,18 @@ struct Router1
WireId cursor = dst_wire;
delay_t accumulated_path_delay = 0;
+ delay_t last_path_delay_delta = 0;
while (1) {
auto pip = visited[cursor].pip;
if (ctx->debug) {
- log(" node %s (%+.1f)\n", ctx->nameOfWire(cursor),
- ctx->getDelayNS(ctx->estimateDelay(cursor, dst_wire)) - ctx->getDelayNS(accumulated_path_delay));
+ delay_t path_delay_delta = ctx->estimateDelay(cursor, dst_wire) - accumulated_path_delay;
+
+ log(" node %s (%+.2f %+.2f)\n", ctx->nameOfWire(cursor), ctx->getDelayNS(path_delay_delta),
+ ctx->getDelayNS(path_delay_delta - last_path_delay_delta));
+
+ last_path_delay_delta = path_delay_delta;
+
if (pip != PipId())
accumulated_path_delay += ctx->getPipDelay(pip).maxDelay();
accumulated_path_delay += ctx->getWireDelay(cursor).maxDelay();