abc: add input, output fle substitution

This commit is contained in:
phsauter 2024-09-19 18:06:42 +02:00 committed by Philippe Sauter
parent e076768b67
commit 28771fcfa8
1 changed files with 2 additions and 0 deletions

View File

@ -831,6 +831,8 @@ void abc_module(RTLIL::Design *design, RTLIL::Module *current_module, std::strin
substitute(abc_script, "{P}", sop_products);
substitute(abc_script, "{S}", lutin_shared);
substitute(abc_script, "{tmpdir}", tempdir_name.c_str());
substitute(abc_script, "{input}", input_file.c_str());
substitute(abc_script, "{output}", output_file.c_str());
// write script file
std::string buffer = stringf("%s/abc.script", tempdir_name.c_str());