diff options
Diffstat (limited to 'common/place_common.cc')
-rw-r--r-- | common/place_common.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/common/place_common.cc b/common/place_common.cc index 0a7b29c7..73a320d0 100644 --- a/common/place_common.cc +++ b/common/place_common.cc @@ -529,4 +529,12 @@ int get_constraints_distance(const Context *ctx, const CellInfo *cell) return dist; } +bool check_cell_bel_region(const CellInfo *cell, BelId bel) +{ + if (cell->region != nullptr && cell->region->constr_bels && !cell->region->bels.count(bel)) + return false; + else + return true; +} + NEXTPNR_NAMESPACE_END |