aboutsummaryrefslogtreecommitdiffstats
path: root/common/timing.cc
diff options
context:
space:
mode:
authorEddie Hung <eddieh@ece.ubc.ca>2018-08-06 12:30:24 -0700
committerEddie Hung <eddieh@ece.ubc.ca>2018-08-06 12:30:24 -0700
commit1b9a664bb1e86d6dea2df3315bb536c44f674501 (patch)
tree0b5ef5a445ea464a98403e4648771f23f58df8a7 /common/timing.cc
parentdaedf732911bc6d149e7c6db14f4fd976c79bbac (diff)
parent4f79b32c96497c107ee6838bcf8a25f65b7c359c (diff)
downloadnextpnr-1b9a664bb1e86d6dea2df3315bb536c44f674501.tar.gz
nextpnr-1b9a664bb1e86d6dea2df3315bb536c44f674501.tar.bz2
nextpnr-1b9a664bb1e86d6dea2df3315bb536c44f674501.zip
Merge branch 'master' into assign_budget_speedup
Diffstat (limited to 'common/timing.cc')
-rw-r--r--common/timing.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/common/timing.cc b/common/timing.cc
index eb3cdc55..11383cee 100644
--- a/common/timing.cc
+++ b/common/timing.cc
@@ -2,6 +2,7 @@
* nextpnr -- Next Generation Place and Route
*
* Copyright (C) 2018 David Shah <david@symbioticeda.com>
+ * Copyright (C) 2018 Eddie Hung <eddieh@ece.ubc.ca>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -432,9 +433,11 @@ void timing_analysis(Context *ctx, bool print_histogram, bool print_path)
log_break();
log_info("Slack histogram:\n");
log_info(" legend: * represents %d endpoint(s)\n", max_freq / bar_width);
+ log_info(" + represents [1,%d) endpoint(s)\n", max_freq / bar_width);
for (unsigned i = 0; i < bins.size(); ++i)
- log_info("%6d < ps < %6d |%s\n", min_slack + bin_size * i, min_slack + bin_size * (i + 1),
- std::string(bins[i] * bar_width / max_freq, '*').c_str());
+ log_info("[%6d, %6d) |%s%c\n", min_slack + bin_size * i, min_slack + bin_size * (i + 1),
+ std::string(bins[i] * bar_width / max_freq, '*').c_str(),
+ (bins[i] * bar_width) % max_freq > 0 ? '+' : ' ');
}
}