abc9: warning message if no modules selected

This commit is contained in:
Eddie Hung 2020-01-23 19:08:51 -08:00
parent 11e50c0e9e
commit 245873d42d
1 changed files with 6 additions and 0 deletions

View 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();