Merge branch 'xc7dsp' into ice40dsp

This commit is contained in:
Eddie Hung 2019-07-19 10:28:38 -07:00
commit 7bdb3996e2
1 changed files with 1 additions and 1 deletions

View File

@ -200,7 +200,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