mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-13 04:28:18 +00:00
abc9_exe: -box to not require -lut
This commit is contained in:
parent
ceabd5bc39
commit
5e280a3b59
|
@ -188,20 +188,15 @@ void abc9_module(RTLIL::Design *design, std::string script_file, std::string exe
|
||||||
|
|
||||||
std::string abc9_script;
|
std::string abc9_script;
|
||||||
|
|
||||||
if (!lut_costs.empty()) {
|
if (!lut_costs.empty())
|
||||||
abc9_script += stringf("read_lut %s/lutdefs.txt; ", tempdir_name.c_str());
|
abc9_script += stringf("read_lut %s/lutdefs.txt; ", tempdir_name.c_str());
|
||||||
if (!box_file.empty())
|
|
||||||
abc9_script += stringf("read_box %s; ", box_file.c_str());
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
if (!lut_file.empty()) {
|
if (!lut_file.empty())
|
||||||
abc9_script += stringf("read_lut %s; ", lut_file.c_str());
|
abc9_script += stringf("read_lut %s; ", lut_file.c_str());
|
||||||
if (!box_file.empty())
|
|
||||||
abc9_script += stringf("read_box %s; ", box_file.c_str());
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
log_abort();
|
log_abort();
|
||||||
|
|
||||||
|
abc9_script += stringf("read_box %s; ", box_file.c_str());
|
||||||
abc9_script += stringf("&read %s/input.xaig; &ps; ", tempdir_name.c_str());
|
abc9_script += stringf("&read %s/input.xaig; &ps; ", tempdir_name.c_str());
|
||||||
|
|
||||||
if (!script_file.empty()) {
|
if (!script_file.empty()) {
|
||||||
|
@ -355,7 +350,7 @@ struct Abc9ExePass : public Pass {
|
||||||
log(" command output is identical across runs.\n");
|
log(" command output is identical across runs.\n");
|
||||||
log("\n");
|
log("\n");
|
||||||
log(" -box <file>\n");
|
log(" -box <file>\n");
|
||||||
log(" pass this file with box library to ABC. Use with -lut.\n");
|
log(" pass this file with box library to ABC.\n");
|
||||||
log("\n");
|
log("\n");
|
||||||
log(" -cwd <dir>\n");
|
log(" -cwd <dir>\n");
|
||||||
log(" use this as the current working directory, inside which the 'input.xaig'\n");
|
log(" use this as the current working directory, inside which the 'input.xaig'\n");
|
||||||
|
|
Loading…
Reference in a new issue