mirror of
https://github.com/YosysHQ/yosys
synced 2025-08-09 04:31:25 +00:00
Stop trying to be too smart by prematurely optimising
This commit is contained in:
parent
35aaa8d73a
commit
27e5bf5aad
3 changed files with 14 additions and 38 deletions
|
@ -276,9 +276,11 @@ struct SynthIce40Pass : public ScriptPass
|
|||
run("techmap -map +/mul2dsp.v -map +/ice40/dsp_map.v -D DSP_A_MAXWIDTH=16 -D DSP_B_MAXWIDTH=16 "
|
||||
"-D DSP_A_MINWIDTH=2 -D DSP_B_MINWIDTH=2 -D DSP_Y_MINWIDTH=11 "
|
||||
"-D DSP_NAME=$__MUL16X16", "(if -dsp)");
|
||||
run("wreduce t:$add", " (if -dsp)");
|
||||
run("ice40_dsp", " (if -dsp)");
|
||||
run("chtype -set $mul t:$__soft_mul","(if -dsp)");
|
||||
run("opt_expr -fine a:mul2dsp", " (if -dsp)");
|
||||
run("wreduce a:mul2dsp", " (if -dsp)");
|
||||
run("ice40_dsp", " (if -dsp)");
|
||||
run("setattr -unset mul2dsp a:mul2dsp", "(if -dsp)");
|
||||
run("chtype -set $mul t:$__soft_mul", " (if -dsp)");
|
||||
}
|
||||
run("alumacc");
|
||||
run("opt");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue