From: Eddie Hung Date: Fri, 24 Jan 2020 03:08:51 +0000 (-0800) Subject: abc9: warning message if no modules selected X-Git-Tag: working-ls180~849^2~4 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=245873d42d7975b6c303c2d04b75f3cafc6c5697;p=yosys.git abc9: warning message if no modules selected --- diff --git a/passes/techmap/abc9.cc b/passes/techmap/abc9.cc index f4a89efff..2aeda16d6 100644 --- a/passes/techmap/abc9.cc +++ b/passes/techmap/abc9.cc @@ -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();