diff options
author | Miodrag Milanović <mmicko@gmail.com> | 2022-08-08 21:11:34 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-08 21:11:34 +0200 |
commit | 6b4dbf6c364a5dc6a14263e24af6b011266855b7 (patch) | |
tree | 092fb5c922a6b87f5aa72be3b55d8d48142e611a /passes/techmap/abc.cc | |
parent | 60a787fa50062169c1aae4ecb199d13c0b6f25b6 (diff) | |
parent | f4a1906721507c512050f62080a999c4147d92d6 (diff) | |
download | yosys-6b4dbf6c364a5dc6a14263e24af6b011266855b7.tar.gz yosys-6b4dbf6c364a5dc6a14263e24af6b011266855b7.tar.bz2 yosys-6b4dbf6c364a5dc6a14263e24af6b011266855b7.zip |
Merge pull request #3439 from YosysHQ/micko/filepath_improve
File path encoding improvements
Diffstat (limited to 'passes/techmap/abc.cc')
-rw-r--r-- | passes/techmap/abc.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/passes/techmap/abc.cc b/passes/techmap/abc.cc index 0b9c327c0..656c36b84 100644 --- a/passes/techmap/abc.cc +++ b/passes/techmap/abc.cc @@ -789,15 +789,15 @@ void abc_module(RTLIL::Design *design, RTLIL::Module *current_module, std::strin log_header(design, "Extracting gate netlist of module `%s' to `%s/input.blif'..\n", module->name.c_str(), replace_tempdir(tempdir_name, tempdir_name, show_tempdir).c_str()); - std::string abc_script = stringf("read_blif %s/input.blif; ", tempdir_name.c_str()); + std::string abc_script = stringf("read_blif \"%s/input.blif\"; ", tempdir_name.c_str()); if (!liberty_files.empty() || !genlib_files.empty()) { for (std::string liberty_file : liberty_files) - abc_script += stringf("read_lib -w %s; ", liberty_file.c_str()); + abc_script += stringf("read_lib -w \"%s\"; ", liberty_file.c_str()); for (std::string liberty_file : genlib_files) - abc_script += stringf("read_library %s; ", liberty_file.c_str()); + abc_script += stringf("read_library \"%s\"; ", liberty_file.c_str()); if (!constr_file.empty()) - abc_script += stringf("read_constr -v %s; ", constr_file.c_str()); + abc_script += stringf("read_constr -v \"%s\"; ", constr_file.c_str()); } else if (!lut_costs.empty()) abc_script += stringf("read_lut %s/lutdefs.txt; ", tempdir_name.c_str()); @@ -1085,7 +1085,7 @@ void abc_module(RTLIL::Design *design, RTLIL::Module *current_module, std::strin fclose(f); } - buffer = stringf("%s -s -f %s/abc.script 2>&1", exe_file.c_str(), tempdir_name.c_str()); + buffer = stringf("\"%s\" -s -f %s/abc.script 2>&1", exe_file.c_str(), tempdir_name.c_str()); log("Running ABC command: %s\n", replace_tempdir(buffer, tempdir_name, show_tempdir).c_str()); #ifndef YOSYS_LINK_ABC |