shift register inference before mux
authorEddie Hung <eddie@fpgeh.com>
Wed, 22 May 2019 09:36:28 +0000 (02:36 -0700)
committerEddie Hung <eddie@fpgeh.com>
Wed, 22 May 2019 09:36:28 +0000 (02:36 -0700)
techlibs/xilinx/synth_xilinx.cc

index ec7768ffe7c2bd3be02024820ddf0b221e387740..3cee81a7b7b1e8b8689c656a38e09368a586c913 100644 (file)
@@ -266,9 +266,6 @@ struct SynthXilinxPass : public ScriptPass
                        else if (!nocarry || help_mode)
                                run("techmap -map +/xilinx/arith_map.v", "(skip if '-nocarry')");
 
-                       if (!nomux || help_mode)
-                               run("techmap -map +/xilinx/cells_map.v");
-
                        if (!nosrl || help_mode) {
                                // shregmap operates on bit-level flops, not word-level,
                                //   so break those down here
@@ -277,6 +274,9 @@ struct SynthXilinxPass : public ScriptPass
                                run("shregmap -tech xilinx -minlen 3", "(skip if '-nosrl')");
                        }
 
+                       if (!nomux || help_mode)
+                               run("techmap -map +/xilinx/cells_map.v");
+
                        run("techmap");
                        run("opt -fast");
                }