Fix pmux2shiftx logic
authorEddie Hung <eddie@fpgeh.com>
Tue, 4 Jun 2019 06:29:45 +0000 (23:29 -0700)
committerEddie Hung <eddie@fpgeh.com>
Tue, 4 Jun 2019 06:29:45 +0000 (23:29 -0700)
techlibs/xilinx/synth_xilinx.cc

index 4269870d7e16df96276b9e2632304bb2fe60cfaf..19a19d14e4ab730f65af59830a2f68d2fb8054ca 100644 (file)
@@ -229,7 +229,7 @@ struct SynthXilinxPass : public ScriptPass
                        //   cells for identifying variable-length shift registers,
                        //   so attempt to convert $pmux-es to the former
                        // Also: wide multiplexer inference benefits from this too
-                       if ((!nosrl && !nomux) || help_mode)
+                       if (!(nosrl && nomux) || help_mode)
                                run("pmux2shiftx", "(skip if '-nosrl' and '-nomux')");
 
                        // Run a number of peephole optimisations, including one