From 6bb72212d67ff6edd38eaf569bfdeb38eb83f3ec Mon Sep 17 00:00:00 2001 From: "Emil J. Tywoniak" Date: Thu, 16 Apr 2026 15:50:03 +0200 Subject: [PATCH] Revert "memory: add -bram-register" This reverts commit 2bc6ea7f37f5c239491e83a3a8672af8954550ab. --- passes/memory/memory.cc | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/passes/memory/memory.cc b/passes/memory/memory.cc index 84dc3e351..d5dec6198 100644 --- a/passes/memory/memory.cc +++ b/passes/memory/memory.cc @@ -31,7 +31,7 @@ struct MemoryPass : public Pass { { // |---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---| log("\n"); - log(" memory [-norom] [-nomap] [-nordff] [-nowiden] [-nosat] [-memx] [-no-rw-check] [-bram ] [-bram-register ] [selection]\n"); + log(" memory [-norom] [-nomap] [-nordff] [-nowiden] [-nosat] [-memx] [-no-rw-check] [-bram ] [selection]\n"); log("\n"); log("This pass calls all the other memory_* passes in a useful order:\n"); log("\n"); @@ -47,7 +47,6 @@ struct MemoryPass : public Pass { log(" opt_clean\n"); log(" memory_collect\n"); log(" memory_bram -rules (when called with -bram)\n"); - log(" memory_bram -rules -register (when called with -bram-register)\n"); log(" memory_map (skipped if called with -nomap)\n"); log("\n"); log("This converts memories to word-wide DFFs and address decoders\n"); @@ -60,7 +59,6 @@ struct MemoryPass : public Pass { bool flag_nomap = false; bool flag_nordff = false; bool flag_memx = false; - bool flag_register = false; string memory_dff_opts; string memory_bram_opts; string memory_share_opts; @@ -99,11 +97,8 @@ struct MemoryPass : public Pass { memory_dff_opts += " -no-rw-check"; continue; } - if (argidx+1 < args.size() && (args[argidx] == "-bram" || args[argidx] == "-bram-register")) { - if (args[argidx] == "-bram-register") - memory_bram_opts += " -rules " + args[++argidx] + " -register"; - else - memory_bram_opts += " -rules " + args[++argidx]; + if (argidx+1 < args.size() && args[argidx] == "-bram") { + memory_bram_opts += " -rules " + args[++argidx]; continue; } break;