From: Clifford Wolf Date: Wed, 24 Jul 2013 18:19:08 +0000 (+0200) Subject: Automatically run "proc" on extract map files X-Git-Tag: yosys-0.2.0~528 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=88d0829d65c298d1918e4e4c3a01a00cc58780ba;p=yosys.git Automatically run "proc" on extract map files --- diff --git a/passes/extract/extract.cc b/passes/extract/extract.cc index d25af324e..0c639aeda 100644 --- a/passes/extract/extract.cc +++ b/passes/extract/extract.cc @@ -521,6 +521,11 @@ struct ExtractPass : public Pass { map = new RTLIL::Design; Frontend::frontend_call(map, f, filename, (filename.size() > 3 && filename.substr(filename.size()-3) == ".il") ? "ilang" : "verilog"); fclose(f); + + if (filename.size() <= 3 || filename.substr(filename.size()-3) != ".il") { + Pass::call(map, "proc"); + Pass::call(map, "opt_clean"); + } } std::map needle_map, haystack_map;