Fix typo
authorEddie Hung <eddie@fpgeh.com>
Thu, 1 Aug 2019 17:00:01 +0000 (10:00 -0700)
committerEddie Hung <eddie@fpgeh.com>
Thu, 1 Aug 2019 17:00:01 +0000 (10:00 -0700)
passes/pmgen/ice40_dsp.pmg

index 4b566f0a6403150a4ebb8bb115d43a6018fcf3e8..73439cfd92ef9bc147642805d99bb75c62aec860 100644 (file)
@@ -112,7 +112,7 @@ code addAB sigCD sigCD_signed sigO
 
                if ((actual_acc_width > actual_mul_width) && (natural_mul_width > actual_mul_width))
                        reject;
-               if ((actual_acc_width != actual_mul_width) && (param(mul, \A_SIGNED).as_bool() != param(addAB, \A_SIGNED).as_bool()))
+               if ((actual_acc_width != actual_mul_width) && (param(mul, \A_SIGNED).as_bool() != param(addAB, \B_SIGNED).as_bool()))
                        reject;
 
                sigO = port(addAB, \Y);