mirror of https://github.com/YosysHQ/yosys.git
Fixed flatten $meminit handling
This commit is contained in:
parent
eac0bcd7d3
commit
3860c9a9f2
|
@ -311,7 +311,7 @@ struct TechmapWorker
|
||||||
port_signal_map.apply(it2.second);
|
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();
|
IdString memid = c->getParam("\\MEMID").decode_string();
|
||||||
log_assert(memory_renames.count(memid));
|
log_assert(memory_renames.count(memid));
|
||||||
c->setParam("\\MEMID", Const(memory_renames[memid].str()));
|
c->setParam("\\MEMID", Const(memory_renames[memid].str()));
|
||||||
|
|
Loading…
Reference in New Issue