Revert "Rename shregmap -tech xilinx -> xilinx_dynamic"
authorEddie Hung <eddie@fpgeh.com>
Mon, 10 Jun 2019 21:34:43 +0000 (14:34 -0700)
committerEddie Hung <eddie@fpgeh.com>
Mon, 10 Jun 2019 21:34:43 +0000 (14:34 -0700)
This reverts commit 94a5f4e60985fc1e3fea75eec85638fa29874bea.

passes/techmap/shregmap.cc
techlibs/xilinx/synth_xilinx.cc

index 60b04be6f22fec8aad8c3fd76cddd2e68d803575..21dfe96198c43a252575bb6483c2fd062b241328 100644 (file)
@@ -93,12 +93,12 @@ struct ShregmapTechGreenpak4 : ShregmapTech
        }
 };
 
-struct ShregmapTechXilinx7Dynamic : ShregmapTech
+struct ShregmapTechXilinx7 : ShregmapTech
 {
        dict<SigBit, std::tuple<Cell*,int,int>> sigbit_to_shiftx_offset;
        const ShregmapOptions &opts;
 
-       ShregmapTechXilinx7Dynamic(const ShregmapOptions &opts) : opts(opts) {}
+       ShregmapTechXilinx7(const ShregmapOptions &opts) : opts(opts) {}
 
        virtual void init(const Module* module, const SigMap &sigmap) override
        {
@@ -663,11 +663,11 @@ struct ShregmapPass : public Pass {
                                        opts.zinit = true;
                                        opts.tech = new ShregmapTechGreenpak4;
                                }
-                               else if (tech == "xilinx_dynamic") {
+                               else if (tech == "xilinx") {
                                        opts.init = true;
                                        opts.params = true;
                                        enpol = "any_or_none";
-                                       opts.tech = new ShregmapTechXilinx7Dynamic(opts);
+                                       opts.tech = new ShregmapTechXilinx7(opts);
                                } else {
                                        argidx--;
                                        break;
index ffdb229601e06eda8840bd856e68a0f086a411af..689a401357f66a69ae272cadd4e311a87c7384ce 100644 (file)
@@ -266,8 +266,8 @@ struct SynthXilinxPass : public ScriptPass
                                // shregmap operates on bit-level flops, not word-level,
                                //   so break those down here
                                run("simplemap t:$dff t:$dffe", "(skip if '-nosrl')");
-                               // shregmap to infer variable length shift regs
-                               run("shregmap -tech xilinx_dynamic -minlen 3", "(skip if '-nosrl')");
+                               // shregmap with '-tech xilinx' infers variable length shift regs
+                               run("shregmap -tech xilinx -minlen 3", "(skip if '-nosrl')");
                        }
 
                        std::string techmap_files = " -map +/techmap.v";