From 63f9e0544fcb793dcc47b9c5a6d8b0e46d84a225 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marcelina=20Ko=C5=9Bcielnicka?= Date: Wed, 4 Aug 2021 03:33:41 +0200 Subject: [PATCH] memory_share: Don't skip ports with EN wired to input for SAT sharing. Fixes #2912. --- passes/memory/memory_share.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/passes/memory/memory_share.cc b/passes/memory/memory_share.cc index 846583c2c..4e6a30ef1 100644 --- a/passes/memory/memory_share.cc +++ b/passes/memory/memory_share.cc @@ -288,8 +288,7 @@ struct MemoryShareWorker for (auto bit : bits) if (bit == RTLIL::State::S1) goto port_is_always_active; - if (modwalker.has_drivers(bits)) - eligible_ports.insert(i); + eligible_ports.insert(i); port_is_always_active:; } @@ -310,7 +309,6 @@ struct MemoryShareWorker if (checked_ports.count(i)) continue; - std::vector group; group.push_back(i); -- 2.30.2