From: Eddie Hung Date: Fri, 19 Jul 2019 18:41:00 +0000 (-0700) Subject: Add DSP_MINWIDTH=11 for ice40 since ice40_dsp uses this threshold X-Git-Tag: working-ls180~1039^2~319 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3dc3c749d5c7c10e1aa504f48794ef0a87513a82;p=yosys.git Add DSP_MINWIDTH=11 for ice40 since ice40_dsp uses this threshold --- diff --git a/techlibs/ice40/synth_ice40.cc b/techlibs/ice40/synth_ice40.cc index 5053e445d..77bd0ac81 100644 --- a/techlibs/ice40/synth_ice40.cc +++ b/techlibs/ice40/synth_ice40.cc @@ -266,7 +266,7 @@ struct SynthIce40Pass : public ScriptPass run("opt_expr"); run("opt_clean"); if (help_mode || dsp) { - run("techmap -map +/mul2dsp.v -D DSP_A_MAXWIDTH=16 -D DSP_B_MAXWIDTH=16 -D DSP_NAME=$__MUL16X16"); + run("techmap -map +/mul2dsp.v -D DSP_A_MAXWIDTH=16 -D DSP_B_MAXWIDTH=16 -D DSP_MINWIDTH=11 -D DSP_NAME=$__MUL16X16", "(if -dsp)"); run("ice40_dsp", "(if -dsp)"); } run("alumacc");