mirror of https://github.com/YosysHQ/yosys.git
Revert drop down to 24x16 multipliers for all
This commit is contained in:
parent
569cd66764
commit
6390c535ba
|
@ -1,4 +1,4 @@
|
||||||
module \$__MUL25X18 (input [23:0] A, input [16:0] B, output [40:0] Y);
|
module \$__MUL25X18 (input [24:0] A, input [17:0] B, output [42:0] Y);
|
||||||
wire [47:0] P_48;
|
wire [47:0] P_48;
|
||||||
DSP48E1 #(
|
DSP48E1 #(
|
||||||
// Disable all registers
|
// Disable all registers
|
||||||
|
@ -20,8 +20,8 @@ module \$__MUL25X18 (input [23:0] A, input [16:0] B, output [40:0] Y);
|
||||||
.PREG(0)
|
.PREG(0)
|
||||||
) _TECHMAP_REPLACE_ (
|
) _TECHMAP_REPLACE_ (
|
||||||
//Data path
|
//Data path
|
||||||
.A({6'b0, A}),
|
.A({5'b0, A}),
|
||||||
.B({1'b0, B}),
|
.B(B),
|
||||||
.C(48'b0),
|
.C(48'b0),
|
||||||
.D(24'b0),
|
.D(24'b0),
|
||||||
.P(P_48),
|
.P(P_48),
|
||||||
|
|
|
@ -289,7 +289,7 @@ struct SynthXilinxPass : public ScriptPass
|
||||||
// unsigned multiply with MSBs set to 1'b0
|
// unsigned multiply with MSBs set to 1'b0
|
||||||
|
|
||||||
if (!nodsp || help_mode)
|
if (!nodsp || help_mode)
|
||||||
run("techmap -map +/mul2dsp.v -D DSP_A_MAXWIDTH=24 -D DSP_B_MAXWIDTH=17 -D DSP_NAME=$__MUL25X18");
|
run("techmap -map +/mul2dsp.v -D DSP_A_MAXWIDTH=25 -D DSP_A_SIGNEDONLY=1 -D DSP_B_MAXWIDTH=18 -D DSP_B_SIGNEDONLY=1 -D DSP_NAME=$__MUL25X18");
|
||||||
|
|
||||||
run("alumacc");
|
run("alumacc");
|
||||||
run("share");
|
run("share");
|
||||||
|
|
Loading…
Reference in New Issue