diff options
author | David Shah <dave@ds0.me> | 2019-08-08 15:14:09 +0100 |
---|---|---|
committer | David Shah <dave@ds0.me> | 2019-08-08 15:14:09 +0100 |
commit | cb84ed23263f8cad8f878a327061ac2c990af812 (patch) | |
tree | 05c78d9063caffd69a0de8de804873dd6d5799f9 /techlibs/ecp5/synth_ecp5.cc | |
parent | 83b2e0272333cfcc2529e0833723a52c066146a6 (diff) | |
download | yosys-cb84ed23263f8cad8f878a327061ac2c990af812.tar.gz yosys-cb84ed23263f8cad8f878a327061ac2c990af812.tar.bz2 yosys-cb84ed23263f8cad8f878a327061ac2c990af812.zip |
ecp5: Bring up to date with mul2dsp changes
Signed-off-by: David Shah <dave@ds0.me>
Diffstat (limited to 'techlibs/ecp5/synth_ecp5.cc')
-rw-r--r-- | techlibs/ecp5/synth_ecp5.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/techlibs/ecp5/synth_ecp5.cc b/techlibs/ecp5/synth_ecp5.cc index 3129ba929..7be377280 100644 --- a/techlibs/ecp5/synth_ecp5.cc +++ b/techlibs/ecp5/synth_ecp5.cc @@ -248,9 +248,10 @@ struct SynthEcp5Pass : public ScriptPass run("opt_expr"); run("opt_clean"); if (dsp) { - run("techmap -map +/mul2dsp.v -D DSP_A_MAXWIDTH=18 -D DSP_B_MAXWIDTH=18 -D DSP_NAME=$__MUL18X18"); + run("techmap -map +/mul2dsp.v -D DSP_A_MAXWIDTH=18 -D DSP_B_MAXWIDTH=18 -D DSP_A_MINWIDTH=2 -D DSP_B_MINWIDTH=2 -D DSP_NAME=$__MUL18X18"); run("clean"); run("techmap -map +/ecp5/dsp_map.v"); + run("chtype -set $mul t:$__soft_mul","(if -dsp)"); } run("alumacc"); run("opt"); |