Fix typo in B
authorEddie Hung <eddie@fpgeh.com>
Fri, 19 Jul 2019 17:27:44 +0000 (10:27 -0700)
committerEddie Hung <eddie@fpgeh.com>
Fri, 19 Jul 2019 17:27:44 +0000 (10:27 -0700)
techlibs/common/mul2dsp.v

index ee53701eea9c61cd8b985e29b8548e8e3eaaee78..da1c7c0c7f03cde0fafd1a7d0a3b5421d32da6c8 100644 (file)
@@ -201,7 +201,7 @@ module \$__mul_gen (A, B, Y);
                                .B(B[B_WIDTH-1 : (n-1)*(`DSP_B_MAXWIDTH-sign_headroom)]),\r
                                .Y(partial[n-1])\r
                        );\r
-                       assign partial_sum[n-1] = (partial[n-1] << (n-1)*(`DSP_A_MAXWIDTH-sign_headroom)) + partial_sum[n-2];\r
+                       assign partial_sum[n-1] = (partial[n-1] << (n-1)*(`DSP_B_MAXWIDTH-sign_headroom)) + partial_sum[n-2];\r
                        assign Y = partial_sum[n-1];\r
                end\r
                else begin \r