mirror of https://github.com/YosysHQ/yosys.git
No need for $__mul anymore?
This commit is contained in:
parent
486dd7c483
commit
1d875ac76a
|
@ -49,7 +49,7 @@ $fatal(1, "Macro DSP_NAME must be defined");
|
||||||
`define MAX(a,b) (a > b ? a : b)
|
`define MAX(a,b) (a > b ? a : b)
|
||||||
`define MIN(a,b) (a < b ? a : b)
|
`define MIN(a,b) (a < b ? a : b)
|
||||||
|
|
||||||
(* techmap_celltype = "$mul $__mul" *)
|
(* techmap_celltype = "$mul" *)
|
||||||
module _80_mul (A, B, Y);
|
module _80_mul (A, B, Y);
|
||||||
parameter A_SIGNED = 0;
|
parameter A_SIGNED = 0;
|
||||||
parameter B_SIGNED = 0;
|
parameter B_SIGNED = 0;
|
||||||
|
@ -132,9 +132,9 @@ module _80_mul (A, B, Y);
|
||||||
end
|
end
|
||||||
|
|
||||||
for (i = 0; i < n; i=i+1) begin:slice
|
for (i = 0; i < n; i=i+1) begin:slice
|
||||||
\$__mul #(
|
\$mul #(
|
||||||
.A_SIGNED(sign_headroom),
|
.A_SIGNED(sign_headroom),
|
||||||
.B_SIGNED(B_SIGNED),
|
.B_SIGNED(sign_headroom),
|
||||||
.A_WIDTH(`DSP_A_MAXWIDTH_PARTIAL),
|
.A_WIDTH(`DSP_A_MAXWIDTH_PARTIAL),
|
||||||
.B_WIDTH(B_WIDTH),
|
.B_WIDTH(B_WIDTH),
|
||||||
.Y_WIDTH(partial_Y_WIDTH)
|
.Y_WIDTH(partial_Y_WIDTH)
|
||||||
|
@ -161,7 +161,7 @@ module _80_mul (A, B, Y);
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
\$__mul #(
|
\$mul #(
|
||||||
.A_SIGNED(A_SIGNED),
|
.A_SIGNED(A_SIGNED),
|
||||||
.B_SIGNED(B_SIGNED),
|
.B_SIGNED(B_SIGNED),
|
||||||
.A_WIDTH(last_A_WIDTH),
|
.A_WIDTH(last_A_WIDTH),
|
||||||
|
@ -197,8 +197,8 @@ module _80_mul (A, B, Y);
|
||||||
end
|
end
|
||||||
|
|
||||||
for (i = 0; i < n; i=i+1) begin:slice
|
for (i = 0; i < n; i=i+1) begin:slice
|
||||||
\$__mul #(
|
\$mul #(
|
||||||
.A_SIGNED(A_SIGNED),
|
.A_SIGNED(sign_headroom),
|
||||||
.B_SIGNED(sign_headroom),
|
.B_SIGNED(sign_headroom),
|
||||||
.A_WIDTH(A_WIDTH),
|
.A_WIDTH(A_WIDTH),
|
||||||
.B_WIDTH(`DSP_B_MAXWIDTH_PARTIAL),
|
.B_WIDTH(`DSP_B_MAXWIDTH_PARTIAL),
|
||||||
|
@ -226,7 +226,7 @@ module _80_mul (A, B, Y);
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
\$__mul #(
|
\$mul #(
|
||||||
.A_SIGNED(A_SIGNED),
|
.A_SIGNED(A_SIGNED),
|
||||||
.B_SIGNED(B_SIGNED),
|
.B_SIGNED(B_SIGNED),
|
||||||
.A_WIDTH(A_WIDTH),
|
.A_WIDTH(A_WIDTH),
|
||||||
|
@ -271,7 +271,7 @@ module _80_mul (A, B, Y);
|
||||||
endgenerate
|
endgenerate
|
||||||
endmodule
|
endmodule
|
||||||
|
|
||||||
(* techmap_celltype = "$mul $__mul" *)
|
(* techmap_celltype = "$mul" *)
|
||||||
module _90_soft_mul (A, B, Y);
|
module _90_soft_mul (A, B, Y);
|
||||||
parameter A_SIGNED = 0;
|
parameter A_SIGNED = 0;
|
||||||
parameter B_SIGNED = 0;
|
parameter B_SIGNED = 0;
|
||||||
|
|
Loading…
Reference in New Issue