diff options
author | Eddie Hung <eddieh@ece.ubc.ca> | 2018-08-03 23:44:55 -0700 |
---|---|---|
committer | Eddie Hung <eddieh@ece.ubc.ca> | 2018-08-03 23:44:55 -0700 |
commit | 0a14e20f7332344d4c2f73c7ede54ef0258997f7 (patch) | |
tree | 37250740746ae2a6f19fff60891ba42846569f85 /common/place_common.h | |
parent | 45304d049f1c939ca3ac9782a1108f17e784a1cd (diff) | |
parent | 65d73eb9838e0bb8e6d089ecde3d4ffaf34e9e29 (diff) | |
download | nextpnr-0a14e20f7332344d4c2f73c7ede54ef0258997f7.tar.gz nextpnr-0a14e20f7332344d4c2f73c7ede54ef0258997f7.tar.bz2 nextpnr-0a14e20f7332344d4c2f73c7ede54ef0258997f7.zip |
Merge branch 'master' into slack_histogram
Conflicts:
common/placer1.cc
Diffstat (limited to 'common/place_common.h')
-rw-r--r-- | common/place_common.h | 5 |
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 |