3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-15 13:28:59 +00:00

Do not swap if equals

This commit is contained in:
Eddie Hung 2019-07-15 16:52:37 -07:00
parent b29f26f6c7
commit fd5b3593d8

View file

@ -33,7 +33,7 @@ module \$mul (A, B, Y);
output [Y_WIDTH-1:0] Y; output [Y_WIDTH-1:0] Y;
generate generate
if (B_WIDTH < A_WIDTH) if (A_WIDTH >= B_WIDTH)
\$__mul_gen #( \$__mul_gen #(
.A_SIGNED(A_SIGNED), .A_SIGNED(A_SIGNED),
.B_SIGNED(B_SIGNED), .B_SIGNED(B_SIGNED),