From: Clifford Wolf Date: Fri, 14 Oct 2016 08:36:37 +0000 (+0200) Subject: Added MEMID handling to "flatten" pass X-Git-Tag: yosys-0.7~32 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ffbb4e992e5312d8feafcc1c6c850ea06c3e09b2;p=yosys.git Added MEMID handling to "flatten" pass --- diff --git a/passes/techmap/techmap.cc b/passes/techmap/techmap.cc index b2cc492b2..96b88eb42 100644 --- a/passes/techmap/techmap.cc +++ b/passes/techmap/techmap.cc @@ -345,6 +345,12 @@ struct TechmapWorker c->setParam("\\MEMID", Const(memory_renames[memid].str())); } + if (c->type == "$mem") { + string memid = c->getParam("\\MEMID").decode_string(); + apply_prefix(cell->name.str(), memid); + c->setParam("\\MEMID", Const(memid)); + } + if (c->attributes.count("\\src")) c->add_strpool_attribute("\\src", extra_src_attrs); }