From 3f4b6dc5d31d8f790ad4d5fb7696f10f77d3362e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Povi=C5=A1er?= Date: Tue, 23 Sep 2025 20:34:08 +0200 Subject: [PATCH] Support multiple lib files in abc9_exe --- passes/techmap/abc9_exe.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/passes/techmap/abc9_exe.cc b/passes/techmap/abc9_exe.cc index ac723fdbb..4449065f8 100644 --- a/passes/techmap/abc9_exe.cc +++ b/passes/techmap/abc9_exe.cc @@ -181,8 +181,10 @@ void abc9_module(RTLIL::Design *design, std::string script_file, std::string exe for (std::string dont_use_cell : dont_use_cells) { dont_use_args += stringf("-X \"%s\" ", dont_use_cell); } + bool first_lib = true; for (std::string liberty_file : liberty_files) { - abc9_script += stringf("read_lib %s -w \"%s\" ; ", dont_use_args, liberty_file); + abc9_script += stringf("read_lib %s %s -w \"%s\" ; ", dont_use_args, first_lib ? "" : "-m", liberty_file); + first_lib = false; } if (!constr_file.empty()) abc9_script += stringf("read_constr -v \"%s\"; ", constr_file);