abc9: warning message if no modules selected
authorEddie Hung <eddie@fpgeh.com>
Fri, 24 Jan 2020 03:08:51 +0000 (19:08 -0800)
committerEddie Hung <eddie@fpgeh.com>
Fri, 24 Jan 2020 03:08:51 +0000 (19:08 -0800)
passes/techmap/abc9.cc

index f4a89efffa1d85debefd110bee7691cc3761d3f6..2aeda16d611686ae7308d0f833fb3405ccf94d91 100644 (file)
@@ -234,6 +234,12 @@ struct Abc9Pass : public ScriptPass
                }
                extra_args(args, argidx, design);
 
+               log_assert(design);
+               if (design->selected_modules().empty()) {
+                       log_warning("No modules selected for ABC9 techmapping.\n");
+                       return;
+               }
+
                log_header(design, "Executing ABC9 pass.\n");
                log_push();