diff options
author | Marcelina KoĆcielnicka <mwk@0x04.net> | 2021-05-22 18:18:50 +0200 |
---|---|---|
committer | Marcelina KoĆcielnicka <mwk@0x04.net> | 2021-05-25 02:07:25 +0200 |
commit | 69bf5c81c7cf65ccb8bd035eb45137e31a68ae86 (patch) | |
tree | c27924c314fde30979aa0b91f8b179e71c15dd04 /passes/memory/memory_bram.cc | |
parent | 35ee774ea8eac9b745f93641a192341fe559fa6f (diff) | |
download | yosys-69bf5c81c7cf65ccb8bd035eb45137e31a68ae86.tar.gz yosys-69bf5c81c7cf65ccb8bd035eb45137e31a68ae86.tar.bz2 yosys-69bf5c81c7cf65ccb8bd035eb45137e31a68ae86.zip |
Reject wide ports in some passes that will never support them.
Diffstat (limited to 'passes/memory/memory_bram.cc')
-rw-r--r-- | passes/memory/memory_bram.cc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/passes/memory/memory_bram.cc b/passes/memory/memory_bram.cc index c6948fdba..a860fc693 100644 --- a/passes/memory/memory_bram.cc +++ b/passes/memory/memory_bram.cc @@ -1057,6 +1057,20 @@ void handle_memory(Mem &mem, const rules_t &rules) log(" %s=%d", it.first.c_str(), it.second); log("\n"); + for (auto &port : mem.rd_ports) { + if (port.wide_log2) { + log("Wide read ports are not supported, skipping.\n"); + return; + } + } + + for (auto &port : mem.wr_ports) { + if (port.wide_log2) { + log("Wide write ports are not supported, skipping.\n"); + return; + } + } + pool<pair<IdString, int>> failed_brams; dict<pair<int, int>, tuple<int, int, int>> best_rule_cache; |