Use single DSP_SIGNEDONLY macro
authorEddie Hung <eddie@fpgeh.com>
Thu, 18 Jul 2019 20:09:55 +0000 (13:09 -0700)
committerEddie Hung <eddie@fpgeh.com>
Thu, 18 Jul 2019 20:09:55 +0000 (13:09 -0700)
techlibs/xilinx/synth_xilinx.cc

index 2e2fbbd9d2b988540d67379ed0daeaaf193074d9..e5a27015a25de3c63849f138b34402bdbab3e5d6 100644 (file)
@@ -286,7 +286,7 @@ struct SynthXilinxPass : public ScriptPass
 
                        if (!nodsp || help_mode) {
                                // NB: Xilinx multipliers are signed only
-                               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("techmap -map +/mul2dsp.v -D DSP_A_MAXWIDTH=25 -D DSP_B_MAXWIDTH=18 -D DSP_SIGNEDONLY=1 -D DSP_NAME=$__MUL25X18");
                        }
 
                        run("alumacc");