Error out if abc9 not called with -lut or -luts

This commit is contained in:
Eddie Hung 2019-07-11 09:58:00 -07:00
parent 0c3ed73dad
commit 237d8651a5
1 changed files with 3 additions and 0 deletions

View File

@ -999,6 +999,9 @@ struct Abc9Pass : public Pass {
}
extra_args(args, argidx, design);
if (lut_costs.empty() && lut_file.empty())
log_cmd_error("abc9 must be called with '-lut' or '-luts'\n");
for (auto mod : design->selected_modules())
{
if (mod->attributes.count("\\abc_box_id"))