From 7fd345a616f3f953460931250e8b78291c6bfd9c Mon Sep 17 00:00:00 2001 From: tangxifan Date: Mon, 22 Mar 2021 10:39:47 -0600 Subject: [PATCH] [Script] Solved the problem on BRAM mapping in the yosys script supporting both DSP and BRAMs --- openfpga_flow/misc/ys_tmpl_yosys_vpr_bram_dsp_flow.ys | 3 +++ 1 file changed, 3 insertions(+) diff --git a/openfpga_flow/misc/ys_tmpl_yosys_vpr_bram_dsp_flow.ys b/openfpga_flow/misc/ys_tmpl_yosys_vpr_bram_dsp_flow.ys index ebe101ed2..a81474999 100644 --- a/openfpga_flow/misc/ys_tmpl_yosys_vpr_bram_dsp_flow.ys +++ b/openfpga_flow/misc/ys_tmpl_yosys_vpr_bram_dsp_flow.ys @@ -40,6 +40,9 @@ opt_clean # Map multipliers # Inspired from synth_xilinx.cc ######################### +# Avoid merging any registers into DSP, reserve memory port registers first +memory_dff +wreduce t:$mul techmap -map +/mul2dsp.v -map ${YOSYS_DSP_MAP_VERILOG} ${YOSYS_DSP_MAP_PARAMETERS} select a:mul2dsp setattr -unset mul2dsp