aboutsummaryrefslogtreecommitdiffstats
path: root/techlibs/gatemate/gatemate_bramopt.cc
diff options
context:
space:
mode:
authorPatrick Urban <patrick.urban@web.de>2021-09-24 16:00:59 +0200
committerMarcelina Koƛcielnicka <mwk@0x04.net>2021-11-13 21:53:25 +0100
commit0a72952d5f259a23f9d1122d936d3d4d60ce224d (patch)
tree45c12931e95aade5618088a70d2f0187bd1fdeb2 /techlibs/gatemate/gatemate_bramopt.cc
parentcfcc38582a4464b0a0551b842ea7a22c6f9a559d (diff)
downloadyosys-0a72952d5f259a23f9d1122d936d3d4d60ce224d.tar.gz
yosys-0a72952d5f259a23f9d1122d936d3d4d60ce224d.tar.bz2
yosys-0a72952d5f259a23f9d1122d936d3d4d60ce224d.zip
synth_gatemate: Apply review remarks
* remove unused techmap models in `map_regs.v` * replace RAM initilization loops with 320-bit-writes * add script to test targets in top-level Makefile * remove `MAXWIDTH` parameter and treat both vector widths individually in `mult_map.v` * iterate over all modules in `gatemate_bramopt` pass
Diffstat (limited to 'techlibs/gatemate/gatemate_bramopt.cc')
-rw-r--r--techlibs/gatemate/gatemate_bramopt.cc12
1 files changed, 4 insertions, 8 deletions
diff --git a/techlibs/gatemate/gatemate_bramopt.cc b/techlibs/gatemate/gatemate_bramopt.cc
index 9454f471b..bd16ba4c9 100644
--- a/techlibs/gatemate/gatemate_bramopt.cc
+++ b/techlibs/gatemate/gatemate_bramopt.cc
@@ -134,15 +134,11 @@ struct GateMateBramOptPass : public Pass {
}
extra_args(args, argidx, design);
- Module *module = design->top_module();
-
- if (module == nullptr)
+ for (auto module : design->selected_modules())
{
- log_cmd_error("No top module found.\n");
- }
-
- if (!noglwren) {
- proc_glwren(module);
+ if (!noglwren) {
+ proc_glwren(module);
+ }
}
}
} GateMateBramOptPass;