From: N. Engelhardt Date: Tue, 17 Dec 2019 18:39:55 +0000 (+0100) Subject: check scratchpad variable abc9.scriptfile X-Git-Tag: working-ls180~885^2~4 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c8bc1793a4e8230c29fca4a34862414e8ab8722b;p=yosys.git check scratchpad variable abc9.scriptfile --- diff --git a/passes/techmap/abc9.cc b/passes/techmap/abc9.cc index 7fd235d6e..96642de54 100644 --- a/passes/techmap/abc9.cc +++ b/passes/techmap/abc9.cc @@ -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)