diff --git a/openfpga_flow/misc/ys_tmpl_yosys_vpr_bram_dsp_dff_flow.ys b/openfpga_flow/misc/ys_tmpl_yosys_vpr_bram_dsp_dff_flow.ys index a9aa234ee..e62587399 100644 --- a/openfpga_flow/misc/ys_tmpl_yosys_vpr_bram_dsp_dff_flow.ys +++ b/openfpga_flow/misc/ys_tmpl_yosys_vpr_bram_dsp_dff_flow.ys @@ -25,12 +25,12 @@ opt_clean # demote inout ports to input or output port # with follow-up optimizations to clean up AST deminout -opt +opt -nodffe -nosdff opt_expr opt_clean check -opt +opt -nodffe -nosdff wreduce -keepdc peepopt pmuxtree @@ -58,10 +58,10 @@ chtype -set $mul t:$__soft_mul# Extract arithmetic functions techmap alumacc share -opt +opt -nodffe -nosdff fsm # Run a quick follow-up optimization to sweep out unused nets/signals -opt -fast +opt -fast -nodffe -nosdff # Optimize any memory cells by merging share-able ports and collecting all the ports belonging to memorcy cells memory -nomap opt_clean @@ -71,9 +71,9 @@ opt_clean ######################### memory_bram -rules ${YOSYS_BRAM_MAP_RULES} techmap -map ${YOSYS_BRAM_MAP_VERILOG} -opt -fast -mux_undef -undriven -fine +opt -fast -mux_undef -undriven -fine -nodffe -nosdff memory_map -opt -undriven -fine +opt -undriven -fine -nodffe -nosdff ######################### # Map flip-flops @@ -83,9 +83,9 @@ opt_expr -mux_undef simplemap opt_expr opt_merge -opt_dff +opt_dff -nodffe -nosdff opt_clean -opt +opt -nodffe -nosdff ######################### # Map LUTs diff --git a/openfpga_flow/misc/ys_tmpl_yosys_vpr_dff_flow.ys b/openfpga_flow/misc/ys_tmpl_yosys_vpr_dff_flow.ys index edd21c94c..cd27e97eb 100644 --- a/openfpga_flow/misc/ys_tmpl_yosys_vpr_dff_flow.ys +++ b/openfpga_flow/misc/ys_tmpl_yosys_vpr_dff_flow.ys @@ -10,7 +10,23 @@ proc techmap -D NO_LUT -map ${YOSYS_DFF_MAP_VERILOG} # Synthesis -synth -top ${TOP_MODULE} -flatten +opt_expr +opt_clean +check +opt -nodffe -nosdff +fsm +opt -nodffe -nosdff +wreduce +peepopt +opt_clean +opt -nodffe -nosdff +memory -nomap +opt_clean +opt -fast -full -nodffe -nosdff +memory_map +opt -full -nodffe -nosdff +techmap +opt -fast -nodffe -nosdff clean # LUT mapping