aboutsummaryrefslogtreecommitdiffstats
path: root/common/place_sa.cc
diff options
context:
space:
mode:
Diffstat (limited to 'common/place_sa.cc')
-rw-r--r--common/place_sa.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/common/place_sa.cc b/common/place_sa.cc
index 55ec9b9a..0a60adc8 100644
--- a/common/place_sa.cc
+++ b/common/place_sa.cc
@@ -101,6 +101,7 @@ class SAPlacer
}
cell->bel = bel;
+ cell->belStrength = STRENGTH_USER;
ctx->bindBel(bel, cell->name);
locked_bels.insert(bel);
placed_cells++;
@@ -215,9 +216,9 @@ class SAPlacer
}
// Final post-pacement validitiy check
for (auto bel : ctx->getBels()) {
+ IdString cell = ctx->getBelCell(bel, false);
if (!checker->isBelLocationValid(bel)) {
std::string cell_text = "no cell";
- IdString cell = ctx->getBelCell(bel, false);
if (cell != IdString())
cell_text = std::string("cell '") + cell.str(ctx) + "'";
log_error("post-placement validity check failed for Bel '%s' "
@@ -277,6 +278,7 @@ class SAPlacer
all_placed = true;
}
cell->bel = best_bel;
+ cell->belStrength = STRENGTH_WEAK;
ctx->bindBel(cell->bel, cell->name);
// Back annotate location