mirror of https://github.com/YosysHQ/yosys.git
Make consistent
This commit is contained in:
parent
90ac147eb2
commit
e22a752242
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue