diff options
author | Eddie Hung <eddieh@ece.ubc.ca> | 2018-08-06 07:29:42 -0700 |
---|---|---|
committer | Eddie Hung <eddieh@ece.ubc.ca> | 2018-08-06 07:29:42 -0700 |
commit | dc685f2061c1436aed598184934b532d205a56a2 (patch) | |
tree | 70437ddb90ed5c74542f644ced418f13ffb06dd4 /common | |
parent | 6c8319e29a68d8d54b747e95c3f4a8df8a14d3ba (diff) | |
download | nextpnr-dc685f2061c1436aed598184934b532d205a56a2.tar.gz nextpnr-dc685f2061c1436aed598184934b532d205a56a2.tar.bz2 nextpnr-dc685f2061c1436aed598184934b532d205a56a2.zip |
Enhance slack histogram with '+' to indicate less-than-granularity
Diffstat (limited to 'common')
-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 d37a0f59..d214793c 100644 --- a/common/timing.cc +++ b/common/timing.cc @@ -256,9 +256,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 ? '+' : ' '); } } |