aboutsummaryrefslogtreecommitdiffstats
path: root/techlibs
diff options
context:
space:
mode:
authorEddie Hung <eddie@fpgeh.com>2019-08-20 17:59:31 -0700
committerEddie Hung <eddie@fpgeh.com>2019-08-20 17:59:31 -0700
commit30a379b5b6600f0e0e99f0c99ad7bc1d4d08cd90 (patch)
treef27127dd811fb4a0e247fa7d26441895e30e6c15 /techlibs
parent3b52d6e29ccc95fd4d102d9a59bb34125521c648 (diff)
downloadyosys-30a379b5b6600f0e0e99f0c99ad7bc1d4d08cd90.tar.gz
yosys-30a379b5b6600f0e0e99f0c99ad7bc1d4d08cd90.tar.bz2
yosys-30a379b5b6600f0e0e99f0c99ad7bc1d4d08cd90.zip
Cleanup techmap in map_luts
Diffstat (limited to 'techlibs')
-rw-r--r--techlibs/xilinx/synth_xilinx.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/techlibs/xilinx/synth_xilinx.cc b/techlibs/xilinx/synth_xilinx.cc
index a2ec6a9c9..d28cd2428 100644
--- a/techlibs/xilinx/synth_xilinx.cc
+++ b/techlibs/xilinx/synth_xilinx.cc
@@ -393,7 +393,7 @@ struct SynthXilinxPass : public ScriptPass
if (family != "xc7")
log_warning("'synth_xilinx -abc9' currently supports '-family xc7' only.\n");
run("read_verilog -icells -lib +/xilinx/abc_model.v");
- run("techmap -map +/xilinx/abc_map.v";
+ run("techmap -map +/xilinx/abc_map.v");
if (nowidelut)
run("abc9 -lut +/xilinx/abc_xc7_nowide.lut -box +/xilinx/abc_xc7.box -W " + std::to_string(XC7_WIRE_DELAY));
else
@@ -411,10 +411,12 @@ struct SynthXilinxPass : public ScriptPass
// has performed any necessary retiming
if (!nosrl || help_mode)
run("shregmap -minlen 3 -init -params -enpol any_or_none", "(skip if '-nosrl')");
+ std::string techmap_args = "-map +/xilinx/lut_map.v";
if (abc9)
- run("techmap -map +/xilinx/lut_map.v -map +/xilinx/abc_unmap.v");
+ techmap_args += " -map +/xilinx/abc_unmap.v";
else
- run("techmap -map +/xilinx/lut_map.v -map +/xilinx/cells_map.v -map +/xilinx/ff_map.v");
+ techmap_args += " -map +/xilinx/ff_map.v";
+ run("techmap " + techmap_args);
run("dffinit -ff FDRE Q INIT -ff FDCE Q INIT -ff FDPE Q INIT -ff FDSE Q INIT "
"-ff FDRE_1 Q INIT -ff FDCE_1 Q INIT -ff FDPE_1 Q INIT -ff FDSE_1 Q INIT");
run("clean");