From: Eddie Hung Date: Wed, 7 Aug 2019 20:59:07 +0000 (-0700) Subject: Run "opt_expr -fine" instead of "wreduce" due to #1213 X-Git-Tag: working-ls180~1039^2~264^2~1 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a206aed977e92a63aa52137690e20897f27df458;p=yosys.git Run "opt_expr -fine" instead of "wreduce" due to #1213 --- diff --git a/techlibs/ice40/synth_ice40.cc b/techlibs/ice40/synth_ice40.cc index 2cc5fd5fd..09759f359 100644 --- a/techlibs/ice40/synth_ice40.cc +++ b/techlibs/ice40/synth_ice40.cc @@ -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)"); }