diff options
author | Eddie Hung <eddie@fpgeh.com> | 2019-09-25 14:04:36 -0700 |
---|---|---|
committer | Eddie Hung <eddie@fpgeh.com> | 2019-09-25 14:04:36 -0700 |
commit | 53ea5daa42db335a69d3fccbf237fe5555f4bccb (patch) | |
tree | 6dc9bc21331cbaeb8625e05676b0d23f4f7f9e8d /techlibs/xilinx/synth_xilinx.cc | |
parent | 93363c94a2e88e2cdbdb962ff9e10ba5dfe3f586 (diff) | |
download | yosys-53ea5daa42db335a69d3fccbf237fe5555f4bccb.tar.gz yosys-53ea5daa42db335a69d3fccbf237fe5555f4bccb.tar.bz2 yosys-53ea5daa42db335a69d3fccbf237fe5555f4bccb.zip |
Call 'wreduce' after mul2dsp to avoid unextend()
Diffstat (limited to 'techlibs/xilinx/synth_xilinx.cc')
-rw-r--r-- | techlibs/xilinx/synth_xilinx.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/techlibs/xilinx/synth_xilinx.cc b/techlibs/xilinx/synth_xilinx.cc index 022b0d108..ca108e9d6 100644 --- a/techlibs/xilinx/synth_xilinx.cc +++ b/techlibs/xilinx/synth_xilinx.cc @@ -346,6 +346,7 @@ struct SynthXilinxPass : public ScriptPass "-D DSP_A_MINWIDTH=2 -D DSP_B_MINWIDTH=2 " // Blocks Nx1 multipliers "-D DSP_Y_MINWIDTH=9 " // UG901 suggests small multiplies are those 4x4 and smaller "-D DSP_SIGNEDONLY=1 -D DSP_NAME=$__MUL25X18"); + run("wreduce t:$add"); run("xilinx_dsp"); run("chtype -set $mul t:$__soft_mul"); } |