mirror of https://github.com/YosysHQ/nextpnr.git
Revert "Be cognisant that delay_t could be a non-integer type (if so, truncate to integer)"
This reverts commit b07f0eebc8.
This commit is contained in:
parent
b07f0eebc8
commit
76a7d67f74
|
|
@ -27,7 +27,7 @@
|
|||
NEXTPNR_NAMESPACE_BEGIN
|
||||
|
||||
typedef std::vector<const PortRef *> PortRefVector;
|
||||
typedef std::map<int, unsigned> DelayFrequency;
|
||||
typedef std::map<delay_t, unsigned> DelayFrequency;
|
||||
|
||||
struct Timing
|
||||
{
|
||||
|
|
@ -239,9 +239,9 @@ void timing_analysis(Context *ctx, bool print_histogram, bool print_path)
|
|||
if (print_histogram) {
|
||||
constexpr unsigned num_bins = 20;
|
||||
unsigned bar_width = 60;
|
||||
int min_slack = slack_histogram.begin()->first;
|
||||
int max_slack = slack_histogram.rbegin()->first;
|
||||
int bin_size = (max_slack - min_slack) / num_bins;
|
||||
auto min_slack = slack_histogram.begin()->first;
|
||||
auto max_slack = slack_histogram.rbegin()->first;
|
||||
auto bin_size = (max_slack - min_slack) / num_bins;
|
||||
std::vector<unsigned> bins(num_bins + 1);
|
||||
unsigned max_freq = 0;
|
||||
for (const auto &i : slack_histogram) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue