diff options
author | David Shah <davey1576@gmail.com> | 2018-06-17 14:36:19 +0200 |
---|---|---|
committer | David Shah <davey1576@gmail.com> | 2018-06-17 14:36:19 +0200 |
commit | 681c9654d7c49d407a999b2b03c980d66bcefd8f (patch) | |
tree | a0a29eb9249aba6bdfc0c9f44a2b50531b412972 /ice40/arch_place.cc | |
parent | 153b800f6a5da9af277e64b4cd4aee1c10ca0a01 (diff) | |
download | nextpnr-681c9654d7c49d407a999b2b03c980d66bcefd8f.tar.gz nextpnr-681c9654d7c49d407a999b2b03c980d66bcefd8f.tar.bz2 nextpnr-681c9654d7c49d407a999b2b03c980d66bcefd8f.zip |
place_sa: Add a rip-up feature when initial placement fails
Signed-off-by: David Shah <davey1576@gmail.com>
Diffstat (limited to 'ice40/arch_place.cc')
-rw-r--r-- | ice40/arch_place.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ice40/arch_place.cc b/ice40/arch_place.cc index 1c6361a1..276a9378 100644 --- a/ice40/arch_place.cc +++ b/ice40/arch_place.cc @@ -38,7 +38,8 @@ static bool logicCellsCompatible(const std::vector<const CellInfo *> &cells) { bool dffs_exist = false, dffs_neg = false; const NetInfo *cen = nullptr, *clk = nullptr, *sr = nullptr; - std::unordered_set<const NetInfo *> locals; + static std::unordered_set<const NetInfo *> locals; + locals.clear(); for (auto cell : cells) { if (bool_or_default(cell->params, "DFF_ENABLE")) { |