From: Eddie Hung Date: Mon, 15 Jul 2019 18:24:11 +0000 (-0700) Subject: Only swap if B_WIDTH > A_WIDTH X-Git-Tag: working-ls180~1039^2~367 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=91fcf034bceecd50f1aaf96c3cdc270250ab9597;p=yosys.git Only swap if B_WIDTH > A_WIDTH --- diff --git a/techlibs/common/mul2dsp.v b/techlibs/common/mul2dsp.v index d2e68987b..0eec4cc82 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 (A_WIDTH < B_WIDTH) + if (B_WIDTH < A_WIDTH) \$__mul_gen #( .A_SIGNED(A_SIGNED), .B_SIGNED(B_SIGNED),