3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-09-15 14:11:29 +00:00

abc9_ops: -write_box is empty, output a dummy box to prevent ABC error

This commit is contained in:
Eddie Hung 2020-01-15 13:14:48 -08:00
parent 38aa248385
commit 5a63c19747
4 changed files with 4 additions and 4 deletions

View file

@ -510,9 +510,8 @@ struct Abc9ExePass : public Pass {
}
}
// ABC expects a box file for XAIG
if (box_file.empty())
box_file = "+/dummy.box";
log_cmd_error("abc9_exe '-box' option is mandatory.\n");
rewrite_filename(box_file);
if (!box_file.empty() && !is_absolute_path(box_file) && box_file[0] != '+')