Skip to content

Commit

Permalink
abc9: Fix LUT mode logic
Browse files Browse the repository at this point in the history
  • Loading branch information
povik committed Mar 14, 2024
1 parent b1345cb commit b6b7056
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion passes/techmap/abc9.cc
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ struct Abc9Pass : public ScriptPass
/*arg == "-box" ||*/ arg == "-W") &&
argidx+1 < args.size()) {
if (arg == "-lut" || arg == "-luts")
lut_mode = false;
lut_mode = true;
exe_cmd << " " << arg << " " << args[++argidx];
continue;
}
Expand Down Expand Up @@ -273,6 +273,9 @@ struct Abc9Pass : public ScriptPass
if (maxlut && !lutlib_mode)
log_cmd_error("abc9 '-maxlut' option only applicable in conjunction with '-lutlib'.\n");

if (lut_mode && lutlib_mode)
log_cmd_error("abc9 '-lutlib' option is in conflict with '-lut' or '-luts'.\n");

log_assert(design);
if (design->selected_modules().empty()) {
log_warning("No modules selected for ABC9 techmapping.\n");
Expand Down

0 comments on commit b6b7056

Please sign in to comment.