Revert drop down to 24x16 multipliers for all
authorEddie Hung <eddie@fpgeh.com>
Tue, 16 Jul 2019 21:30:25 +0000 (14:30 -0700)
committerEddie Hung <eddie@fpgeh.com>
Tue, 16 Jul 2019 21:30:25 +0000 (14:30 -0700)
techlibs/xilinx/dsp_map.v
techlibs/xilinx/synth_xilinx.cc

index 2063c45e2c3488091f4f64f2f8198435efaba4e7..da1d6f3a9ffe78a69803267d04e13cddc77c94f4 100644 (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),
index 815bf0848ae8c7869b3a4d7a42c78fc5a716c2b9..bfce922dbe65289704697564938193ed19d4cd8a 100644 (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");