3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-06-02 20:31:22 +00:00

Only swap ports if $mul and not $__mul

This commit is contained in:
Eddie Hung 2019-08-13 16:52:15 -07:00
parent ed4b2834ef
commit e35dfc5ab5

View file

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