fmcombine: Add _gold/_gate suffix to memids
authorJannis Harder <me@jix.one>
Fri, 3 Jun 2022 19:47:50 +0000 (21:47 +0200)
committerJannis Harder <me@jix.one>
Fri, 3 Jun 2022 19:52:28 +0000 (21:52 +0200)
passes/sat/fmcombine.cc

index e15bdf6a83d8f9e04988f08a192dabe6a08b23fb..220cf5c521b1c8a7b43a5d04cae1164d0917e004 100644 (file)
@@ -64,6 +64,9 @@ struct FmcombineWorker
                c->parameters = cell->parameters;
                c->attributes = cell->attributes;
 
+               if (cell->is_mem_cell())
+                       c->parameters[ID::MEMID] = cell->parameters[ID::MEMID].decode_string() + suffix;
+
                for (auto &conn : cell->connections())
                        c->setPort(conn.first, import_sig(conn.second, suffix));