aboutsummaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2018-07-22 10:59:21 +0200
committerClifford Wolf <clifford@clifford.at>2018-07-22 10:59:21 +0200
commit62b66e02085371c456dee95dc08d2cd41351c91f (patch)
tree0c0abbc804421dbb2ef8f80ec722e1976a4ba0d6 /common
parentc6e4ad322745b478f0f289f4cc5f3668e05700ac (diff)
downloadnextpnr-62b66e02085371c456dee95dc08d2cd41351c91f.tar.gz
nextpnr-62b66e02085371c456dee95dc08d2cd41351c91f.tar.bz2
nextpnr-62b66e02085371c456dee95dc08d2cd41351c91f.zip
Rename getWireBelPin to getBelPinWire
Signed-off-by: Clifford Wolf <clifford@clifford.at>
Diffstat (limited to 'common')
-rw-r--r--common/nextpnr.cc4
-rw-r--r--common/place_common.cc4
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)