aboutsummaryrefslogtreecommitdiffstats
path: root/ice40/arch_place.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ice40/arch_place.cc')
-rw-r--r--ice40/arch_place.cc3
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")) {