Run "opt_expr -fine" instead of "wreduce" due to #1213
authorEddie Hung <eddie@fpgeh.com>
Wed, 7 Aug 2019 20:59:07 +0000 (13:59 -0700)
committerEddie Hung <eddie@fpgeh.com>
Wed, 7 Aug 2019 20:59:07 +0000 (13:59 -0700)
techlibs/ice40/synth_ice40.cc

index 2cc5fd5fd169f5e061aa0792b7433783271e1ea5..09759f359136e12fce5eed6190f2c3208b2dc817 100644 (file)
@@ -267,8 +267,7 @@ struct SynthIce40Pass : public ScriptPass
                        run("opt_clean");
                        if (help_mode || dsp) {
                                run("techmap -map +/mul2dsp.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("opt_expr", "                     (if -dsp)");
-                               run("wreduce", "                      (if -dsp)");
+                               run("opt_expr -fine", "               (if -dsp)");
                                run("ice40_dsp", "                    (if -dsp)");
                                run("chtype -set $mul t:$__soft_mul","(if -dsp)");
                        }