diff options
Diffstat (limited to 'common/placer_heap.cc')
-rw-r--r-- | common/placer_heap.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/common/placer_heap.cc b/common/placer_heap.cc index dbb8d36c..27144316 100644 --- a/common/placer_heap.cc +++ b/common/placer_heap.cc @@ -401,6 +401,14 @@ class HeAPPlacer // Initial constraints placer for (auto &cell_entry : ctx->cells) { CellInfo *cell = cell_entry.second.get(); + + if (cell->bel != BelId()) { + if (ctx->verbose) + log_error("Cell \'%s\' (%s) has already been constrianed by arch implementation", + cell->name.c_str(ctx), cell->type.c_str(ctx)); + continue; + } + auto loc = cell->attrs.find(ctx->id("BEL")); if (loc != cell->attrs.end()) { std::string loc_name = loc->second.as_string(); |