Constrain wreduce only if wide mux
authorEddie Hung <eddie@fpgeh.com>
Sat, 22 Jun 2019 00:12:34 +0000 (17:12 -0700)
committerEddie Hung <eddie@fpgeh.com>
Sat, 22 Jun 2019 00:12:34 +0000 (17:12 -0700)
techlibs/xilinx/synth_xilinx.cc

index 3d39afcde0a89540cbc6140d8602a54a59d84d13..882ebe439434b560c6d2c19af226f17fbd743774 100644 (file)
@@ -226,7 +226,10 @@ struct SynthXilinxPass : public ScriptPass
                        run("opt_clean");
                        run("check");
                        run("opt");
-                       run("wreduce c:* t:$mux %d");
+                       if (help_mode)
+                               run("wreduce [c:* t:$mux %d]", "(no selection if -nomux)");
+                       else
+                               run("wreduce" + nomux ? "" : " c:* t:$mux %d");
                        run("peepopt");
                        run("opt_clean");
                        run("alumacc");