Revert drop down to 24x16 multipliers for all

This commit is contained in:
Eddie Hung 2019-07-16 14:30:25 -07:00
parent 569cd66764
commit 6390c535ba
2 changed files with 4 additions and 4 deletions

View File

@ -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;
DSP48E1 #(
// Disable all registers
@ -20,8 +20,8 @@ module \$__MUL25X18 (input [23:0] A, input [16:0] B, output [40:0] Y);
.PREG(0)
) _TECHMAP_REPLACE_ (
//Data path
.A({6'b0, A}),
.B({1'b0, B}),
.A({5'b0, A}),
.B(B),
.C(48'b0),
.D(24'b0),
.P(P_48),

View File

@ -289,7 +289,7 @@ struct SynthXilinxPass : public ScriptPass
// unsigned multiply with MSBs set to 1'b0
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("share");