projects
/
yosys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d14cec
)
Add DSP_MINWIDTH=11 for ice40 since ice40_dsp uses this threshold
author
Eddie Hung
<eddie@fpgeh.com>
Fri, 19 Jul 2019 18:41:00 +0000
(11:41 -0700)
committer
Eddie Hung
<eddie@fpgeh.com>
Fri, 19 Jul 2019 18:41:00 +0000
(11:41 -0700)
techlibs/ice40/synth_ice40.cc
patch
|
blob
|
history
diff --git
a/techlibs/ice40/synth_ice40.cc
b/techlibs/ice40/synth_ice40.cc
index 5053e445d270ef2be25f433ca91b09fe4c9cf5f0..77bd0ac81ad2527c5857ac1b4b3ebecafa0ab11e 100644
(file)
--- 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");