diff options
author | Eddie Hung <eddieh@ece.ubc.ca> | 2018-07-26 22:49:08 -0700 |
---|---|---|
committer | Eddie Hung <eddieh@ece.ubc.ca> | 2018-07-26 22:49:08 -0700 |
commit | 4c40541484f0f0b571e1c7e4604c39c74dd5c93d (patch) | |
tree | 2dea519e47cf4181cc9d18cab3b2ae821a963da1 /common | |
parent | 69ef533db35e67198ba7051cfd8920e73d960912 (diff) | |
download | nextpnr-4c40541484f0f0b571e1c7e4604c39c74dd5c93d.tar.gz nextpnr-4c40541484f0f0b571e1c7e4604c39c74dd5c93d.tar.bz2 nextpnr-4c40541484f0f0b571e1c7e4604c39c74dd5c93d.zip |
Even if there is no updates, set budget to current delay
Diffstat (limited to 'common')
-rw-r--r-- | common/timing.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/common/timing.cc b/common/timing.cc index 2873f017..afaddbdf 100644 --- a/common/timing.cc +++ b/common/timing.cc @@ -193,10 +193,10 @@ void update_budget(Context *ctx) for (size_t i = 0; i < net.second->users.size(); ++i) { auto &user = net.second->users[i]; auto pi = &user.cell->ports.at(user.port); + auto budget = ctx->getNetinfoRouteDelay(net.second.get(), i); auto it = updates.find(pi); - if (it == updates.end()) - continue; - auto budget = ctx->getNetinfoRouteDelay(net.second.get(), i) - it->second; + if (it != updates.end()) + budget -= it->second; user.budget = ctx->getBudgetOverride(net.second.get(), i, budget); // Post-update check |