Only wreduce on t:$add
authorEddie Hung <eddie@fpgeh.com>
Thu, 26 Sep 2019 00:22:04 +0000 (17:22 -0700)
committerEddie Hung <eddie@fpgeh.com>
Thu, 26 Sep 2019 00:22:04 +0000 (17:22 -0700)
techlibs/ice40/synth_ice40.cc

index 7a8f3d70c08c50abc95a27c301478f1630fea6b2..98d3e44e391febcabc637df4b1ae90de3942a5c9 100644 (file)
@@ -276,7 +276,7 @@ struct SynthIce40Pass : public ScriptPass
                                run("techmap -map +/mul2dsp.v -map +/ice40/dsp_map.v -D DSP_A_MAXWIDTH=16 -D DSP_B_MAXWIDTH=16 "
                                                "-D DSP_A_MINWIDTH=2 -D DSP_B_MINWIDTH=2 -D DSP_Y_MINWIDTH=11 "
                                                "-D DSP_NAME=$__MUL16X16", "(if -dsp)");
-                               run("wreduce", "                      (if -dsp)");
+                               run("wreduce t:$add", "               (if -dsp)");
                                run("ice40_dsp", "                    (if -dsp)");
                                run("chtype -set $mul t:$__soft_mul","(if -dsp)");
                        }