diff options
Diffstat (limited to 'common')
-rw-r--r-- | common/nextpnr.cc | 4 | ||||
-rw-r--r-- | common/place_common.cc | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/common/nextpnr.cc b/common/nextpnr.cc index ac292e77..74747642 100644 --- a/common/nextpnr.cc +++ b/common/nextpnr.cc @@ -67,7 +67,7 @@ WireId Context::getNetinfoSourceWire(NetInfo *net_info) const if (driver_port_it != net_info->driver.cell->pins.end()) driver_port = driver_port_it->second; - return getWireBelPin(src_bel, portPinFromId(driver_port)); + return getBelPinWire(src_bel, portPinFromId(driver_port)); } WireId Context::getNetinfoSinkWire(NetInfo *net_info, int user_idx) const @@ -85,7 +85,7 @@ WireId Context::getNetinfoSinkWire(NetInfo *net_info, int user_idx) const if (user_port_it != user_info.cell->pins.end()) user_port = user_port_it->second; - return getWireBelPin(dst_bel, portPinFromId(user_port)); + return getBelPinWire(dst_bel, portPinFromId(user_port)); } delay_t Context::getNetinfoRouteDelay(NetInfo *net_info, int user_idx) const diff --git a/common/place_common.cc b/common/place_common.cc index 370eff23..95b7b2aa 100644 --- a/common/place_common.cc +++ b/common/place_common.cc @@ -36,7 +36,7 @@ wirelen_t get_net_metric(const Context *ctx, const NetInfo *net, MetricType type if (driver_cell->bel == BelId()) return 0; ctx->estimatePosition(driver_cell->bel, driver_x, driver_y, driver_gb); - WireId drv_wire = ctx->getWireBelPin(driver_cell->bel, ctx->portPinFromId(net->driver.port)); + WireId drv_wire = ctx->getBelPinWire(driver_cell->bel, ctx->portPinFromId(net->driver.port)); if (driver_gb) return 0; float worst_slack = 1000; @@ -48,7 +48,7 @@ wirelen_t get_net_metric(const Context *ctx, const NetInfo *net, MetricType type if (load_cell->bel == BelId()) continue; if (ctx->timing_driven && type == MetricType::COST) { - WireId user_wire = ctx->getWireBelPin(load_cell->bel, ctx->portPinFromId(load.port)); + WireId user_wire = ctx->getBelPinWire(load_cell->bel, ctx->portPinFromId(load.port)); delay_t raw_wl = ctx->estimateDelay(drv_wire, user_wire); float slack = ctx->getDelayNS(load.budget) - ctx->getDelayNS(raw_wl); if (slack < 0) |