diff options
Diffstat (limited to 'passes')
| -rw-r--r-- | passes/techmap/abc.cc | 2 | ||||
| -rw-r--r-- | passes/techmap/abc9.cc | 4 | 
2 files changed, 6 insertions, 0 deletions
diff --git a/passes/techmap/abc.cc b/passes/techmap/abc.cc index 7ea1138e3..50bae5e85 100644 --- a/passes/techmap/abc.cc +++ b/passes/techmap/abc.cc @@ -732,6 +732,8 @@ void abc_module(RTLIL::Design *design, RTLIL::Module *current_module, std::strin  					abc_script += script_file[i];  		} else  			abc_script += stringf("source %s", script_file.c_str()); +	} else if (design->scratchpad.count("abc.script")) { +		abc_script += design->scratchpad_get_string("abc.script");  	} else if (!lut_costs.empty()) {  		bool all_luts_cost_same = true;  		for (int this_cost : lut_costs) diff --git a/passes/techmap/abc9.cc b/passes/techmap/abc9.cc index d03e5da8e..dd73d53a9 100644 --- a/passes/techmap/abc9.cc +++ b/passes/techmap/abc9.cc @@ -332,6 +332,10 @@ void abc9_module(RTLIL::Design *design, RTLIL::Module *current_module, std::stri  					abc9_script += script_file[i];  		} else  			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)  | 
