aboutsummaryrefslogtreecommitdiffstats
path: root/common/place_common.h
diff options
context:
space:
mode:
authorDavid Shah <davey1576@gmail.com>2018-08-04 08:32:42 +0200
committerGitHub <noreply@github.com>2018-08-04 08:32:42 +0200
commit65d73eb9838e0bb8e6d089ecde3d4ffaf34e9e29 (patch)
treed54ab5bb7926e7965cf23bb066c126bfeaa39565 /common/place_common.h
parentaffc6da1af7afccba1da8cdf3b9e57a01b1fb5e5 (diff)
parent2215ace1dcc9d16f3661c8f95dff56f5f582b6bc (diff)
downloadnextpnr-65d73eb9838e0bb8e6d089ecde3d4ffaf34e9e29.tar.gz
nextpnr-65d73eb9838e0bb8e6d089ecde3d4ffaf34e9e29.tar.bz2
nextpnr-65d73eb9838e0bb8e6d089ecde3d4ffaf34e9e29.zip
Merge pull request #23 from daveshah1/use_placeconstr
Making use of relative constraints
Diffstat (limited to 'common/place_common.h')
-rw-r--r--common/place_common.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/common/place_common.h b/common/place_common.h
index 32250604..79dec067 100644
--- a/common/place_common.h
+++ b/common/place_common.h
@@ -44,6 +44,11 @@ wirelen_t get_cell_metric_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);
+// Modify a design s.t. all relative placement constraints are satisfied
+bool legalise_relative_constraints(Context *ctx);
+
+// Get the total distance from satisfied constraints for a cell
+int get_constraints_distance(const Context *ctx, const CellInfo *cell);
NEXTPNR_NAMESPACE_END
#endif