From d2a7ce04ea5a5bd6d3324e3ec81c3ede0ceab5d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Povi=C5=A1er?= Date: Fri, 1 Mar 2024 10:54:51 +0100 Subject: [PATCH] synth: Rename `-inject` to `-extra-map` --- techlibs/common/synth.cc | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/techlibs/common/synth.cc b/techlibs/common/synth.cc index 7da9ba666..68be34f20 100644 --- a/techlibs/common/synth.cc +++ b/techlibs/common/synth.cc @@ -88,8 +88,8 @@ struct SynthPass : public ScriptPass { log(" read/write collision\" (same result as setting the no_rw_check\n"); log(" attribute on all memories).\n"); log("\n"); - log(" -inject filename\n"); - log(" inject rules from the given file to complement the default\n"); + log(" -extra-map filename\n"); + log(" source extra rules from the given file to complement the default\n"); log(" mapping library in the `techmap` step. this option can be\n"); log(" repeated.\n"); log("\n"); @@ -101,7 +101,7 @@ struct SynthPass : public ScriptPass { string top_module, fsm_opts, memory_opts, abc; bool autotop, flatten, noalumacc, nofsm, noabc, noshare, flowmap, booth; int lut; - std::vector techmap_inject; + std::vector techmap_maps; void clear_flags() override { @@ -119,7 +119,7 @@ struct SynthPass : public ScriptPass { flowmap = false; booth = false; abc = "abc"; - techmap_inject.clear(); + techmap_maps.clear(); } void execute(std::vector args, RTLIL::Design *design) override @@ -197,8 +197,8 @@ struct SynthPass : public ScriptPass { memory_opts += " -no-rw-check"; continue; } - if (args[argidx] == "-inject" && argidx + 1 < args.size()) { - techmap_inject.push_back(args[++argidx]); + if (args[argidx] == "-extra-map" && argidx + 1 < args.size()) { + techmap_maps.push_back(args[++argidx]); continue; } break; @@ -275,9 +275,9 @@ struct SynthPass : public ScriptPass { run("techmap -map +/techmap.v -map ", " (if -inject)"); } else { std::string techmap_opts; - if (!techmap_inject.empty()) + if (!techmap_maps.empty()) techmap_opts += " -map +/techmap.v"; - for (auto fn : techmap_inject) + for (auto fn : techmap_maps) techmap_opts += stringf(" -map %s", fn.c_str()); run("techmap" + techmap_opts); }