aboutsummaryrefslogtreecommitdiffstats
path: root/ice40
diff options
context:
space:
mode:
authorDavid Shah <davey1576@gmail.com>2018-07-16 17:13:40 +0200
committerDavid Shah <davey1576@gmail.com>2018-07-16 17:13:40 +0200
commit56fa8cc669f07194527e171474a514ef80af48e1 (patch)
tree56c76852b0d3297542612875636aab77f49c1af3 /ice40
parent29df566a60e575462a8dd96a1d405f7d5632f38d (diff)
downloadnextpnr-56fa8cc669f07194527e171474a514ef80af48e1.tar.gz
nextpnr-56fa8cc669f07194527e171474a514ef80af48e1.tar.bz2
nextpnr-56fa8cc669f07194527e171474a514ef80af48e1.zip
refactor: Remove incorrect uses of the term 'wirelength'
Signed-off-by: David Shah <davey1576@gmail.com>
Diffstat (limited to 'ice40')
-rw-r--r--ice40/place_legaliser.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/ice40/place_legaliser.cc b/ice40/place_legaliser.cc
index 559358c7..5fffb4fb 100644
--- a/ice40/place_legaliser.cc
+++ b/ice40/place_legaliser.cc
@@ -246,7 +246,7 @@ class PlacementLegaliser
std::tuple<int, int, int> find_closest_bel(float target_x, float target_y, CellChain &chain)
{
std::tuple<int, int, int> best_origin = std::make_tuple(-1, -1, -1);
- wirelen_t best_wirelength = std::numeric_limits<wirelen_t>::max();
+ wirelen_t best_metric = std::numeric_limits<wirelen_t>::max();
int width = ctx->chip_info->width, height = ctx->chip_info->height;
// Slow, should radiate outwards from target position - TODO
int chain_size = int(chain.cells.size());
@@ -260,11 +260,11 @@ class PlacementLegaliser
valid = false;
break;
} else {
- wirelen += get_cell_wirelength_at_bel(ctx, chain.cells.at(k), lb.first);
+ wirelen += get_cell_metric_at_bel(ctx, chain.cells.at(k), lb.first, MetricType::COST);
}
}
- if (valid && wirelen < best_wirelength) {
- best_wirelength = wirelen;
+ if (valid && wirelen < best_metric) {
+ best_metric = wirelen;
best_origin = std::make_tuple(x, y, 0);
}
}