aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorN. Engelhardt <nak@yosyshq.com>2022-06-09 17:12:34 +0200
committerGitHub <noreply@github.com>2022-06-09 17:12:34 +0200
commit871b277d35687147be7911d3277c79ae29abf2c9 (patch)
tree085f14952d640631788be75945b2fe39c75013f3
parent9c41b431917fe623b81e0120b1e7cb119f710b78 (diff)
parent459941c8ff6863d17182bfa76de3ab7f8a439591 (diff)
downloadyosys-871b277d35687147be7911d3277c79ae29abf2c9.tar.gz
yosys-871b277d35687147be7911d3277c79ae29abf2c9.tar.bz2
yosys-871b277d35687147be7911d3277c79ae29abf2c9.zip
Merge pull request #3359 from jix/fmcombine-memid
fmcombine: Add _gold/_gate suffix to memids
-rw-r--r--passes/sat/fmcombine.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/passes/sat/fmcombine.cc b/passes/sat/fmcombine.cc
index e15bdf6a8..220cf5c52 100644
--- a/passes/sat/fmcombine.cc
+++ b/passes/sat/fmcombine.cc
@@ -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));