mirror of
https://github.com/YosysHQ/yosys.git
synced 2026-08-22 14:17:27 +02:00
Add DSP_MINWIDTH=11 for ice40 since ice40_dsp uses this threshold
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user