aboutsummaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorEddie Hung <eddieh@ece.ubc.ca>2018-08-05 23:00:15 -0700
committerEddie Hung <eddieh@ece.ubc.ca>2018-08-05 23:00:15 -0700
commit9b414594d2aad06e8cd9a6b767d90dcaa2b90597 (patch)
tree4670cd08530d5a14d672921d7e6d28886d7afae4 /common
parentf048deb33dcc1f334fbe54877bdeb4ce4a5ca35d (diff)
downloadnextpnr-9b414594d2aad06e8cd9a6b767d90dcaa2b90597.tar.gz
nextpnr-9b414594d2aad06e8cd9a6b767d90dcaa2b90597.tar.bz2
nextpnr-9b414594d2aad06e8cd9a6b767d90dcaa2b90597.zip
Unless slack_redist is enabled, ignore net delays so that budget gets evenly divided between all nets on path
Diffstat (limited to 'common')
-rw-r--r--common/timing.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/timing.cc b/common/timing.cc
index d37a0f59..3fa67122 100644
--- a/common/timing.cc
+++ b/common/timing.cc
@@ -58,7 +58,7 @@ struct Timing
net_budget = budget;
pl = std::max(1, path_length);
}
- auto delay = ctx->getNetinfoRouteDelay(net, usr);
+ auto delay = ctx->slack_redist_iter > 0 ? ctx->getNetinfoRouteDelay(net, usr) : delay_t();
net_budget = std::min(net_budget, follow_user_port(usr, pl, slack - delay));
if (update)
usr.budget = std::min(usr.budget, delay + net_budget);