diff options
author | Eddie Hung <e.hung@imperial.ac.uk> | 2018-07-21 13:05:09 -0700 |
---|---|---|
committer | Eddie Hung <e.hung@imperial.ac.uk> | 2018-07-21 13:05:09 -0700 |
commit | 926c186ec78efb086364a05ba7e83e68fa116301 (patch) | |
tree | ee25b6376879c7add61b02a73a882d8518353afe /common | |
parent | e44dc25f098194c970d1a516fbaa0a5e911a50e1 (diff) | |
download | nextpnr-926c186ec78efb086364a05ba7e83e68fa116301.tar.gz nextpnr-926c186ec78efb086364a05ba7e83e68fa116301.tar.bz2 nextpnr-926c186ec78efb086364a05ba7e83e68fa116301.zip |
Add Arch::getBudgetOverride() to eliminate hack for COUT
Diffstat (limited to 'common')
-rw-r--r-- | common/timing.cc | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/common/timing.cc b/common/timing.cc index 6b4a8b64..9723550b 100644 --- a/common/timing.cc +++ b/common/timing.cc @@ -215,12 +215,8 @@ void update_budget(Context *ctx) auto pi = &user.cell->ports.at(user.port); auto it = updates.find(pi); if (it == updates.end()) continue; - user.budget = delays.at(pi) + it->second; - - // HACK HACK HACK - if (net.second->driver.port == ctx->id("COUT")) - user.budget = 0; - // HACK HACK HACK + auto budget = delays.at(pi) + it->second; + user.budget = ctx->getBudgetOverride(net.second->driver, budget); // Post-update check if (ctx->verbose) { |