aboutsummaryrefslogtreecommitdiffstats
path: root/common/place_common.h
diff options
context:
space:
mode:
authorDavid Shah <davey1576@gmail.com>2018-06-29 17:04:22 +0200
committerDavid Shah <davey1576@gmail.com>2018-06-29 17:04:22 +0200
commit27e7bc3b4bb04b395db6456b71f31f98607a4298 (patch)
tree2e936cb9c61140719fa58120423e63007ea07e17 /common/place_common.h
parentd908928b56917c02db4d8127b7c594b1225ba974 (diff)
downloadnextpnr-27e7bc3b4bb04b395db6456b71f31f98607a4298.tar.gz
nextpnr-27e7bc3b4bb04b395db6456b71f31f98607a4298.tar.bz2
nextpnr-27e7bc3b4bb04b395db6456b71f31f98607a4298.zip
Improving the SA+legalisation flow
Signed-off-by: David Shah <davey1576@gmail.com>
Diffstat (limited to 'common/place_common.h')
-rw-r--r--common/place_common.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/common/place_common.h b/common/place_common.h
index f58da450..67956072 100644
--- a/common/place_common.h
+++ b/common/place_common.h
@@ -32,6 +32,9 @@ wirelen_t get_net_wirelength(const Context *ctx, const NetInfo *net, float &tns)
// Return the wirelength of all nets connected to a cell
wirelen_t get_cell_wirelength(const Context *ctx, const CellInfo *cell);
+// Return the wirelength of all nets connected to a cell, when the cell is at a given bel
+wirelen_t get_cell_wirelength_at_bel(const Context *ctx, CellInfo *cell, BelId bel);
+
// Place a single cell in the lowest wirelength Bel available, optionally requiring validity check
bool place_single_cell(Context *ctx, CellInfo *cell, bool require_legality);