Only swap ports if $mul and not $__mul
authorEddie Hung <eddie@fpgeh.com>
Tue, 13 Aug 2019 23:52:15 +0000 (16:52 -0700)
committerEddie Hung <eddie@fpgeh.com>
Tue, 13 Aug 2019 23:52:15 +0000 (16:52 -0700)
techlibs/common/mul2dsp.v

index 71d5a54547f5e09dfa644834b214c363bd76720b..75b1242a2dcd4722c75ed834965747e6a4243088 100644 (file)
@@ -93,7 +93,7 @@ module _80_mul (A, B, Y);
                        .Y(Y)\r
                );\r
 `endif\r
-       else if (A_WIDTH < B_WIDTH)\r
+       else if (_TECHMAP_CELLTYPE_ == "$mul" && A_WIDTH < B_WIDTH)\r
                \$mul #(\r
                        .A_SIGNED(B_SIGNED),\r
                        .B_SIGNED(A_SIGNED),\r