aboutsummaryrefslogtreecommitdiffstats
path: root/techlibs
diff options
context:
space:
mode:
authorEddie Hung <eddie@fpgeh.com>2019-07-19 11:41:00 -0700
committerEddie Hung <eddie@fpgeh.com>2019-07-19 11:41:00 -0700
commit3dc3c749d5c7c10e1aa504f48794ef0a87513a82 (patch)
tree37b1bc4335f3df326d0636e6d7ea82427fc4e788 /techlibs
parent1d14cec7fd41710aba0bb910a82fa5ca81c4adb0 (diff)
downloadyosys-3dc3c749d5c7c10e1aa504f48794ef0a87513a82.tar.gz
yosys-3dc3c749d5c7c10e1aa504f48794ef0a87513a82.tar.bz2
yosys-3dc3c749d5c7c10e1aa504f48794ef0a87513a82.zip
Add DSP_MINWIDTH=11 for ice40 since ice40_dsp uses this threshold
Diffstat (limited to 'techlibs')
-rw-r--r--techlibs/ice40/synth_ice40.cc2
1 files changed, 1 insertions, 1 deletions
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");