From 5d1b87b0a4e138726d751590728cdcc2f12f6192 Mon Sep 17 00:00:00 2001 From: David Shah Date: Wed, 20 Jun 2018 11:19:25 +0200 Subject: [PATCH] place_sa: Set placement strengths Signed-off-by: David Shah --- common/place_sa.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common/place_sa.cc b/common/place_sa.cc index 0fead5d8..442559b0 100644 --- a/common/place_sa.cc +++ b/common/place_sa.cc @@ -100,6 +100,7 @@ class SAPlacer } cell->bel = bel; + cell->belStrength = STRENGTH_USER; ctx->bindBel(bel, cell->name); locked_bels.insert(bel); placed_cells++; @@ -214,9 +215,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' " @@ -276,6 +277,7 @@ class SAPlacer all_placed = true; } cell->bel = best_bel; + cell->belStrength = STRENGTH_WEAK; ctx->bindBel(cell->bel, cell->name); // Back annotate location