Missing (* mul2dsp *) for sliceB
authorEddie Hung <eddie@fpgeh.com>
Fri, 27 Sep 2019 21:21:47 +0000 (14:21 -0700)
committerEddie Hung <eddie@fpgeh.com>
Fri, 27 Sep 2019 21:21:47 +0000 (14:21 -0700)
techlibs/common/mul2dsp.v

index 6dcdcf226d29721681ea2a64f8e38e6f79da67f1..4cabb4453e91c7714fc37e620b72ddb4430965e2 100644 (file)
@@ -198,7 +198,7 @@ module _80_mul (A, B, Y);
                                if (i == 0)\r
                                        assign partial_sum[i] = partial[i];\r
                                else\r
-                                       assign partial_sum[i] = (partial[i] << i*(`DSP_B_MAXWIDTH_PARTIAL-sign_headroom)) + partial_sum[i-1];\r
+                                       assign partial_sum[i] = (partial[i] << (* mul2dsp *) i*(`DSP_B_MAXWIDTH_PARTIAL-sign_headroom)) + (* mul2dsp *) partial_sum[i-1];\r
                        end\r
 \r
                        \$__mul #(\r
@@ -212,7 +212,7 @@ module _80_mul (A, B, Y);
                                .B(B[B_WIDTH-1 -: last_B_WIDTH]),\r
                                .Y(last_partial)\r
                        );\r
-                       assign partial_sum[n] = (last_partial << n*(`DSP_B_MAXWIDTH_PARTIAL-sign_headroom)) + partial_sum[n-1];\r
+                       assign partial_sum[n] = (last_partial << (* mul2dsp *) n*(`DSP_B_MAXWIDTH_PARTIAL-sign_headroom)) + (* mul2dsp *) partial_sum[n-1];\r
                        assign Y = partial_sum[n];\r
                end\r
                else begin\r