check scratchpad variable abc9.scriptfile

This commit is contained in:
N. Engelhardt 2019-12-17 19:39:55 +01:00
parent 91f427d719
commit c8bc1793a4
1 changed files with 2 additions and 0 deletions

View File

@ -334,6 +334,8 @@ void abc9_module(RTLIL::Design *design, RTLIL::Module *current_module, std::stri
abc9_script += stringf("source %s", script_file.c_str());
} else if (design->scratchpad.count("abc9.script")) {
abc9_script += design->scratchpad_get_string("abc9.script");
} else if (design->scratchpad.count("abc9.scriptfile")) {
abc9_script += stringf("source %s", design->scratchpad_get_string("abc9.scriptfile").c_str());
} else if (!lut_costs.empty() || !lut_file.empty()) {
//bool all_luts_cost_same = true;
//for (int this_cost : lut_costs)