diff options
Diffstat (limited to 'techlibs/gatemate/gatemate_bramopt.cc')
-rw-r--r-- | techlibs/gatemate/gatemate_bramopt.cc | 12 |
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; |