diff options
author | David Shah <davey1576@gmail.com> | 2018-06-21 11:59:20 +0200 |
---|---|---|
committer | David Shah <davey1576@gmail.com> | 2018-06-21 11:59:20 +0200 |
commit | 56ed679f831f703ad2f170713e0b127a97da40b3 (patch) | |
tree | 5ba34e16424301e38bf44b94376e5a8a558dd0c2 /common/timing.cc | |
parent | 9e28e45bd5e1f322f11f4759e8174d861df2eb2c (diff) | |
download | nextpnr-56ed679f831f703ad2f170713e0b127a97da40b3.tar.gz nextpnr-56ed679f831f703ad2f170713e0b127a97da40b3.tar.bz2 nextpnr-56ed679f831f703ad2f170713e0b127a97da40b3.zip |
Add frequency setting and fix slack calculation
Signed-off-by: David Shah <davey1576@gmail.com>
Diffstat (limited to 'common/timing.cc')
-rw-r--r-- | common/timing.cc | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/common/timing.cc b/common/timing.cc index 8da26077..a7b37f9d 100644 --- a/common/timing.cc +++ b/common/timing.cc @@ -101,7 +101,6 @@ void assign_budget(Context *ctx, float default_clock) } } } - const bool debug = true; // Post-allocation check for (auto net : ctx->nets) { @@ -111,11 +110,11 @@ void assign_budget(Context *ctx, float default_clock) "timing budget of %fns\n", user.cell->name.c_str(ctx), user.port.c_str(ctx), net.first.c_str(ctx), ctx->getDelayNS(user.budget)); - if (debug) - log_warning("port %s.%s, connected to net '%s', has " - "timing budget of %fns\n", - user.cell->name.c_str(ctx), user.port.c_str(ctx), - net.first.c_str(ctx), ctx->getDelayNS(user.budget)); + if (ctx->verbose) + log_info("port %s.%s, connected to net '%s', has " + "timing budget of %fns\n", + user.cell->name.c_str(ctx), user.port.c_str(ctx), + net.first.c_str(ctx), ctx->getDelayNS(user.budget)); } } } |