Fixed "share" for memory read ports
authorClifford Wolf <clifford@clifford.at>
Sun, 3 Aug 2014 18:19:50 +0000 (20:19 +0200)
committerClifford Wolf <clifford@clifford.at>
Sun, 3 Aug 2014 18:22:33 +0000 (20:22 +0200)
passes/sat/share.cc

index 4484d6771b03975163ba83e249f0eeb75128edae..0c88b4d3cca7b4c199fafc42fc5f8c7a3baee57a 100644 (file)
@@ -419,6 +419,13 @@ struct ShareWorker
                        return supercell;
                }
 
+               if (c1->type == "$memrd")
+               {
+                       RTLIL::Cell *supercell = module->addCell(NEW_ID, c1);
+                       module->connect(c2->getPort("\\DATA"), supercell->getPort("\\DATA"));
+                       return supercell;
+               }
+
                log_abort();
        }