diff options
author | Eddie Hung <eddie@fpgeh.com> | 2019-05-02 11:25:10 -0700 |
---|---|---|
committer | Eddie Hung <eddie@fpgeh.com> | 2019-05-02 11:25:10 -0700 |
commit | 95867109ea4201d77a95a22f51cd3c4309ff8240 (patch) | |
tree | badc34c2920d8b1a170f62dcfef0378a423c0037 /techlibs/xilinx/synth_xilinx.cc | |
parent | d05ac7257e437466db0ce7f4c3264d8ad8e18fcd (diff) | |
download | yosys-95867109ea4201d77a95a22f51cd3c4309ff8240.tar.gz yosys-95867109ea4201d77a95a22f51cd3c4309ff8240.tar.bz2 yosys-95867109ea4201d77a95a22f51cd3c4309ff8240.zip |
Revert to pre-muxcover approach
Diffstat (limited to 'techlibs/xilinx/synth_xilinx.cc')
-rw-r--r-- | techlibs/xilinx/synth_xilinx.cc | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/techlibs/xilinx/synth_xilinx.cc b/techlibs/xilinx/synth_xilinx.cc index dd8b51818..7d7a05616 100644 --- a/techlibs/xilinx/synth_xilinx.cc +++ b/techlibs/xilinx/synth_xilinx.cc @@ -232,7 +232,7 @@ struct SynthXilinxPass : public ScriptPass // cells for identifying variable-length shift registers, // so attempt to convert $pmux-es to the former // Also: wide multiplexer inference benefits from this too - if (!nosrl || !nomux || help_mode) + if ((!nosrl && !nomux) || help_mode) run("pmux2shiftx", "(skip if '-nosrl' and '-nomux')"); run("opt -fast -full"); @@ -254,18 +254,15 @@ struct SynthXilinxPass : public ScriptPass run("shregmap -tech xilinx -minlen 3", "(skip if '-nosrl')"); } + if (!nomux || help_mode) + run("techmap -map +/xilinx/cells_map.v"); + run("techmap"); run("opt -fast"); - - if (!nomux || help_mode) - run("muxcover -mux8 -mux16"); } if (check_label("map_cells")) { - std::string define; - if (nomux) - define += " -D NO_MUXFN"; - run("techmap -map +/techmap.v -map +/xilinx/cells_map.v" + define); + run("techmap -map +/techmap.v -map +/xilinx/cells_map.v"); run("clean"); } |