aboutsummaryrefslogtreecommitdiffstats
path: root/techlibs/ice40
diff options
context:
space:
mode:
authorEddie Hung <eddie@fpgeh.com>2019-07-18 15:38:09 -0700
committerEddie Hung <eddie@fpgeh.com>2019-07-18 15:38:09 -0700
commit266c1ae1226656d90ee6416c214ef64fe8b5906f (patch)
tree9a202b88d2e7b31c15fc6646e99915500032e636 /techlibs/ice40
parent2339b7fc3732996a217f635d95f1f7400cf43d48 (diff)
downloadyosys-266c1ae1226656d90ee6416c214ef64fe8b5906f.tar.gz
yosys-266c1ae1226656d90ee6416c214ef64fe8b5906f.tar.bz2
yosys-266c1ae1226656d90ee6416c214ef64fe8b5906f.zip
synth_ice40 to decompose into 16x16
Diffstat (limited to 'techlibs/ice40')
-rw-r--r--techlibs/ice40/synth_ice40.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/techlibs/ice40/synth_ice40.cc b/techlibs/ice40/synth_ice40.cc
index 0474e76e9..66446deb7 100644
--- a/techlibs/ice40/synth_ice40.cc
+++ b/techlibs/ice40/synth_ice40.cc
@@ -265,8 +265,10 @@ struct SynthIce40Pass : public ScriptPass
run("techmap -map +/cmp2lut.v -D LUT_WIDTH=4");
run("opt_expr");
run("opt_clean");
- if (help_mode || dsp)
+ if (help_mode || dsp) {
+ run("techmap -map +/mul2dsp.v -D DSP_A_MAXWIDTH=16 -D DSP_B_MAXWIDTH=16 -D DSP_NAME=$__MUL16X16");
run("ice40_dsp", "(if -dsp)");
+ }
run("alumacc");
run("opt");
run("fsm");