summaryrefslogtreecommitdiff
path: root/passes
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2014-08-03 20:19:50 +0200
committerClifford Wolf <clifford@clifford.at>2014-08-03 20:22:33 +0200
commitc7f99be3be828606cafc7d35b3612f5344065736 (patch)
tree64b7c48517c0be4809fa0cfb8a68621f8f2366d3 /passes
parent358bf70a2111d476d9d209f216fdd087356ec0d9 (diff)
Fixed "share" for memory read ports
Diffstat (limited to 'passes')
-rw-r--r--passes/sat/share.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/passes/sat/share.cc b/passes/sat/share.cc
index 4484d677..0c88b4d3 100644
--- a/passes/sat/share.cc
+++ b/passes/sat/share.cc
@@ -419,6 +419,13 @@ struct ShareWorker
return supercell;
}
+ if (c1->type == "$memrd")
+ {
+ RTLIL::Cell *supercell = module->addCell(NEW_ID, c1);
+ module->connect(c2->getPort("\\DATA"), supercell->getPort("\\DATA"));
+ return supercell;
+ }
+
log_abort();
}