diff options
author | David Shah <davey1576@gmail.com> | 2018-08-06 21:26:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-06 21:26:09 +0200 |
commit | 4f79b32c96497c107ee6838bcf8a25f65b7c359c (patch) | |
tree | 12a84b67f055eddd6a90a5df27cbc197695e0ebb | |
parent | 88d2c49440c952a097107b6299fd09034532a8db (diff) | |
parent | dc685f2061c1436aed598184934b532d205a56a2 (diff) | |
download | nextpnr-4f79b32c96497c107ee6838bcf8a25f65b7c359c.tar.gz nextpnr-4f79b32c96497c107ee6838bcf8a25f65b7c359c.tar.bz2 nextpnr-4f79b32c96497c107ee6838bcf8a25f65b7c359c.zip |
Merge pull request #39 from eddiehung/slack_histogram
Improve slack histogram clarity
-rw-r--r-- | common/timing.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/common/timing.cc b/common/timing.cc index d6c46632..c00e1ba5 100644 --- a/common/timing.cc +++ b/common/timing.cc @@ -263,9 +263,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 ? '+' : ' '); } } |