aboutsummaryrefslogtreecommitdiffstats
path: root/ice40/arch.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ice40/arch.cc')
-rw-r--r--ice40/arch.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/ice40/arch.cc b/ice40/arch.cc
index bdfb13fe..18887a3c 100644
--- a/ice40/arch.cc
+++ b/ice40/arch.cc
@@ -642,11 +642,10 @@ delay_t Arch::predictDelay(const NetInfo *net_info, const PortRef &sink) const
return xscale * abs(xd) + yscale * abs(yd) + offset;
}
-delay_t Arch::getBudgetOverride(NetInfo *net_info, int user_idx, delay_t budget) const
+delay_t Arch::getBudgetOverride(const NetInfo *net_info, const PortRef& sink, delay_t budget) const
{
const auto &driver = net_info->driver;
if (driver.port == id_cout) {
- const auto &sink = net_info->users[user_idx];
auto driver_loc = getBelLocation(driver.cell->bel);
auto sink_loc = getBelLocation(sink.cell->bel);
if (driver_loc.y == sink_loc.y)