Fix muxAB logic
authorEddie Hung <eddie@fpgeh.com>
Tue, 23 Jul 2019 21:52:14 +0000 (14:52 -0700)
committerEddie Hung <eddie@fpgeh.com>
Tue, 23 Jul 2019 21:52:14 +0000 (14:52 -0700)
passes/pmgen/ice40_dsp.pmg

index 24247d3cf8c654efc4184f835e95433b2b0d43af..4b566f0a6403150a4ebb8bb115d43a6018fcf3e8 100644 (file)
@@ -187,10 +187,9 @@ code clock clock_pol sigO sigCD sigCD_signed
 
                // Loading value into output register is not
                //   supported unless using accumulator
-               if (muxAB && sigCD != sigO) {
-                       if (muxAB != addAB)
+               if (muxAB) {
+                       if (sigCD != sigO)
                                reject;
-
                        if (muxA)
                                sigCD = port(muxAB, \B);
                        else if (muxB)