diff options
author | Eddie Hung <eddieh@ece.ubc.ca> | 2018-11-13 15:52:06 -0800 |
---|---|---|
committer | Eddie Hung <eddieh@ece.ubc.ca> | 2018-11-13 16:33:01 -0800 |
commit | 519bcd31bfe076ff0d89ed1d2ec832ec140f58a2 (patch) | |
tree | a0f5189b9b1e1fc204ec3095997e241606c69e01 | |
parent | 42d1990784b95710e16d3892399262877ab18502 (diff) | |
download | nextpnr-519bcd31bfe076ff0d89ed1d2ec832ec140f58a2.tar.gz nextpnr-519bcd31bfe076ff0d89ed1d2ec832ec140f58a2.tar.bz2 nextpnr-519bcd31bfe076ff0d89ed1d2ec832ec140f58a2.zip |
[placer1] Fix require_legal polarity
-rw-r--r-- | common/placer1.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/common/placer1.cc b/common/placer1.cc index 0d7c0701..8c467162 100644 --- a/common/placer1.cc +++ b/common/placer1.cc @@ -244,9 +244,9 @@ class SAPlacer } // Once cooled below legalise threshold, run legalisation and start requiring // legal moves only - if (temp < legalise_temp && !require_legal) { + if (temp < legalise_temp && require_legal) { legalise_relative_constraints(ctx); - require_legal = true; + require_legal = false; autoplaced.clear(); for (auto cell : sorted(ctx->cells)) { if (cell.second->belStrength < STRENGTH_STRONG) @@ -486,7 +486,7 @@ class SAPlacer std::unordered_map<IdString, int> bel_types; std::vector<std::vector<std::vector<std::vector<BelId>>>> fast_bels; std::unordered_set<BelId> locked_bels; - bool require_legal = false; + bool require_legal = true; const float legalise_temp = 1; const float post_legalise_temp = 10; const float post_legalise_dia_scale = 1.5; |