`define MAX(a,b) (a > b ? a : b)\r
`define MIN(a,b) (a < b ? a : b)\r
\r
-(* techmap_celltype = "$mul" *)\r
+(* techmap_celltype = "$mul $__mul" *)\r
module _80_mul (A, B, Y);\r
parameter A_SIGNED = 0;\r
parameter B_SIGNED = 0;\r
end\r
\r
for (i = 0; i < n; i=i+1) begin:slice\r
- \$mul #(\r
+ \$__mul #(\r
.A_SIGNED(sign_headroom),\r
- .B_SIGNED(sign_headroom),\r
+ .B_SIGNED(B_SIGNED),\r
.A_WIDTH(`DSP_A_MAXWIDTH_PARTIAL),\r
.B_WIDTH(B_WIDTH),\r
.Y_WIDTH(partial_Y_WIDTH)\r
end\r
end\r
\r
- \$mul #(\r
+ \$__mul #(\r
.A_SIGNED(A_SIGNED),\r
.B_SIGNED(B_SIGNED),\r
.A_WIDTH(last_A_WIDTH),\r
end\r
\r
for (i = 0; i < n; i=i+1) begin:slice\r
- \$mul #(\r
- .A_SIGNED(sign_headroom),\r
+ \$__mul #(\r
+ .A_SIGNED(A_SIGNED),\r
.B_SIGNED(sign_headroom),\r
.A_WIDTH(A_WIDTH),\r
.B_WIDTH(`DSP_B_MAXWIDTH_PARTIAL),\r
end\r
end\r
\r
- \$mul #(\r
+ \$__mul #(\r
.A_SIGNED(A_SIGNED),\r
.B_SIGNED(B_SIGNED),\r
.A_WIDTH(A_WIDTH),\r
endgenerate\r
endmodule\r
\r
-(* techmap_celltype = "$mul" *)\r
+(* techmap_celltype = "$mul $__mul" *)\r
module _90_soft_mul (A, B, Y);\r
parameter A_SIGNED = 0;\r
parameter B_SIGNED = 0;\r