diff options
Diffstat (limited to 'common')
| -rw-r--r-- | common/placer1.cc | 6 | 
1 files changed, 6 insertions, 0 deletions
| diff --git a/common/placer1.cc b/common/placer1.cc index 01f822a5..0d7c0701 100644 --- a/common/placer1.cc +++ b/common/placer1.cc @@ -118,6 +118,12 @@ class SAPlacer                                loc_name.c_str(), bel_type.c_str(ctx), cell->name.c_str(ctx), cell->type.c_str(ctx));                  } +                auto bound_cell = ctx->getBoundBelCell(bel); +                if (bound_cell) { +                    log_error("Cell \'%s\' cannot be bound to bel \'%s\' since it is already bound to cell \'%s\'\n", +                              cell->name.c_str(ctx), loc_name.c_str(), bound_cell->name.c_str(ctx)); +                } +                  ctx->bindBel(bel, cell, STRENGTH_USER);                  locked_bels.insert(bel);                  placed_cells++; | 
