From 681c9654d7c49d407a999b2b03c980d66bcefd8f Mon Sep 17 00:00:00 2001 From: David Shah Date: Sun, 17 Jun 2018 14:36:19 +0200 Subject: place_sa: Add a rip-up feature when initial placement fails Signed-off-by: David Shah --- ice40/arch_place.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ice40/arch_place.cc') 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 &cells) { bool dffs_exist = false, dffs_neg = false; const NetInfo *cen = nullptr, *clk = nullptr, *sr = nullptr; - std::unordered_set locals; + static std::unordered_set locals; + locals.clear(); for (auto cell : cells) { if (bool_or_default(cell->params, "DFF_ENABLE")) { -- cgit v1.2.3