Fixed flatten $meminit handling
authorClifford Wolf <clifford@clifford.at>
Thu, 30 Jul 2015 19:43:41 +0000 (21:43 +0200)
committerClifford Wolf <clifford@clifford.at>
Thu, 30 Jul 2015 19:43:41 +0000 (21:43 +0200)
passes/techmap/techmap.cc

index 1fb19fc605010d43127ff509426fe0ebdb190a54..1a16b6f45e2cb9d2490c59c7d5caf3f0814246cd 100644 (file)
@@ -311,7 +311,7 @@ struct TechmapWorker
                                port_signal_map.apply(it2.second);
                        }
 
-                       if (c->type == "$memrd" || c->type == "$memwr") {
+                       if (c->type == "$memrd" || c->type == "$memwr" || c->type == "$meminit") {
                                IdString memid = c->getParam("\\MEMID").decode_string();
                                log_assert(memory_renames.count(memid));
                                c->setParam("\\MEMID", Const(memory_renames[memid].str()));