diff options
author | Eddie Hung <eddie@fpgeh.com> | 2019-08-26 13:56:31 -0700 |
---|---|---|
committer | Eddie Hung <eddie@fpgeh.com> | 2019-08-26 13:56:31 -0700 |
commit | 1ba09c4ab79e066bcd73024bcd97f99321373b58 (patch) | |
tree | 535c254e8dfdd4b73f97c933841955fa4c46a242 /techlibs | |
parent | 791114382774cdf70b16cc5f1cec689f0ddb5c0b (diff) | |
parent | bd3773a17f220f1fa9b478b3785acac42ca3bd7f (diff) | |
download | yosys-1ba09c4ab79e066bcd73024bcd97f99321373b58.tar.gz yosys-1ba09c4ab79e066bcd73024bcd97f99321373b58.tar.bz2 yosys-1ba09c4ab79e066bcd73024bcd97f99321373b58.zip |
Merge branch 'master' into eddie/xilinx_srl
Diffstat (limited to 'techlibs')
-rw-r--r-- | techlibs/xilinx/synth_xilinx.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/techlibs/xilinx/synth_xilinx.cc b/techlibs/xilinx/synth_xilinx.cc index 5e9cd8a0e..5f6ad7522 100644 --- a/techlibs/xilinx/synth_xilinx.cc +++ b/techlibs/xilinx/synth_xilinx.cc @@ -105,6 +105,7 @@ struct SynthXilinxPass : public ScriptPass std::string top_opt, edif_file, blif_file, family; bool flatten, retime, vpr, nobram, nolutram, nosrl, nocarry, nowidelut, abc9; + bool flatten_before_abc; int widemux; void clear_flags() YS_OVERRIDE @@ -123,6 +124,7 @@ struct SynthXilinxPass : public ScriptPass nocarry = false; nowidelut = false; abc9 = false; + flatten_before_abc = false; widemux = 0; } @@ -162,6 +164,10 @@ struct SynthXilinxPass : public ScriptPass flatten = true; continue; } + if (args[argidx] == "-flatten_before_abc") { + flatten_before_abc = true; + continue; + } if (args[argidx] == "-retime") { retime = true; continue; @@ -387,6 +393,8 @@ struct SynthXilinxPass : public ScriptPass if (check_label("map_luts")) { run("opt_expr -mux_undef"); + if (flatten_before_abc) + run("flatten"); if (help_mode) run("abc -luts 2:2,3,6:5[,10,20] [-dff]", "(option for 'nowidelut', option for '-retime')"); else if (abc9) { |