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/place_sa.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/place_sa.cc')
-rw-r--r-- | common/place_sa.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/place_sa.cc b/common/place_sa.cc index e792474d..2f8fb122 100644 --- a/common/place_sa.cc +++ b/common/place_sa.cc @@ -334,7 +334,7 @@ class SAPlacer load_cell->bel, ctx->portPinFromId(load.port)); delay_t raw_wl = ctx->estimateDelay(drv_wire, user_wire); float slack = - ctx->getDelayNS(raw_wl) - ctx->getDelayNS(load.budget); + ctx->getDelayNS(load.budget) - ctx->getDelayNS(raw_wl); worst_slack = std::min(slack, worst_slack); int load_x, load_y; bool load_gb; |