Make consistent

This commit is contained in:
Eddie Hung 2019-07-18 15:21:23 -07:00
parent 90ac147eb2
commit e22a752242
1 changed files with 2 additions and 1 deletions

View File

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