Add DSP_MINWIDTH=11 for ice40 since ice40_dsp uses this threshold

This commit is contained in:
Eddie Hung 2019-07-19 11:41:00 -07:00
parent 1d14cec7fd
commit 3dc3c749d5
1 changed files with 1 additions and 1 deletions

View File

@ -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");