From: Eddie Hung Date: Fri, 19 Jul 2019 17:27:44 +0000 (-0700) Subject: Fix typo in B X-Git-Tag: working-ls180~1039^2~323^2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ca94c2d3c4785c45a2fefdb659e9ff94f2f8c7b3;p=yosys.git Fix typo in B --- diff --git a/techlibs/common/mul2dsp.v b/techlibs/common/mul2dsp.v index ee53701ee..da1c7c0c7 100644 --- a/techlibs/common/mul2dsp.v +++ b/techlibs/common/mul2dsp.v @@ -201,7 +201,7 @@ module \$__mul_gen (A, B, Y); .B(B[B_WIDTH-1 : (n-1)*(`DSP_B_MAXWIDTH-sign_headroom)]), .Y(partial[n-1]) ); - assign partial_sum[n-1] = (partial[n-1] << (n-1)*(`DSP_A_MAXWIDTH-sign_headroom)) + partial_sum[n-2]; + assign partial_sum[n-1] = (partial[n-1] << (n-1)*(`DSP_B_MAXWIDTH-sign_headroom)) + partial_sum[n-2]; assign Y = partial_sum[n-1]; end else begin