memory_share: Don't skip ports with EN wired to input for SAT sharing.
authorMarcelina Kościelnicka <mwk@0x04.net>
Wed, 4 Aug 2021 01:33:41 +0000 (03:33 +0200)
committerMarcelina Kościelnicka <mwk@0x04.net>
Wed, 4 Aug 2021 02:47:43 +0000 (04:47 +0200)
Fixes #2912.

passes/memory/memory_share.cc

index 846583c2ca2653226d9416b23cb6adc23e14d502..4e6a30ef1af4a053db6d621bb771554f54f3afa6 100644 (file)
@@ -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<int> group;
                        group.push_back(i);