From: Eddie Hung Date: Mon, 15 Jul 2019 23:52:37 +0000 (-0700) Subject: Do not swap if equals X-Git-Tag: working-ls180~1039^2~361 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fd5b3593d8496578c0879fc024bf81737be3702f;p=yosys.git Do not swap if equals --- diff --git a/techlibs/common/mul2dsp.v b/techlibs/common/mul2dsp.v index 0a87716d9..046f84320 100644 --- a/techlibs/common/mul2dsp.v +++ b/techlibs/common/mul2dsp.v @@ -33,7 +33,7 @@ module \$mul (A, B, Y); output [Y_WIDTH-1:0] Y; generate - if (B_WIDTH < A_WIDTH) + if (A_WIDTH >= B_WIDTH) \$__mul_gen #( .A_SIGNED(A_SIGNED), .B_SIGNED(B_SIGNED),