aboutsummaryrefslogtreecommitdiffstats
path: root/backends/btor/btor.cc
diff options
context:
space:
mode:
Diffstat (limited to 'backends/btor/btor.cc')
-rw-r--r--backends/btor/btor.cc13
1 files changed, 11 insertions, 2 deletions
diff --git a/backends/btor/btor.cc b/backends/btor/btor.cc
index bc0504d64..999836882 100644
--- a/backends/btor/btor.cc
+++ b/backends/btor/btor.cc
@@ -728,10 +728,19 @@ struct BtorWorker
log_error("Memory %s.%s has mixed async/sync write ports.\n",
log_id(module), log_id(mem->memid));
- for (auto &port : mem->rd_ports)
+ for (auto &port : mem->rd_ports) {
if (port.clk_enable)
- log_error("Memory %s.%s has sync read ports.\n",
+ log_error("Memory %s.%s has sync read ports. Please use memory_nordff to convert them first.\n",
+ log_id(module), log_id(mem->memid));
+ if (port.wide_log2)
+ log_error("Memory %s.%s has wide read ports. Please use memory_narrow to convert them first.\n",
+ log_id(module), log_id(mem->memid));
+ }
+ for (auto &port : mem->wr_ports) {
+ if (port.wide_log2)
+ log_error("Memory %s.%s has wide write ports. Please use memory_narrow to convert them first.\n",
log_id(module), log_id(mem->memid));
+ }
int data_sid = get_bv_sid(mem->width);
int bool_sid = get_bv_sid(1);