aboutsummaryrefslogtreecommitdiffstats
path: root/techlibs/ecp5/synth_ecp5.cc
diff options
context:
space:
mode:
authorEddie Hung <eddie@fpgeh.com>2019-09-06 22:52:00 -0700
committerEddie Hung <eddie@fpgeh.com>2019-09-06 22:52:00 -0700
commitde8adecd396cfd83c198a525813cb255eb74bdfa (patch)
tree4448f472efa43d356e30e74a578dacea79964c17 /techlibs/ecp5/synth_ecp5.cc
parent173c7936c3c329917ca8eb929163a03aab51811e (diff)
parent903cd58acf7c490e0b75e34742966dc62e61028f (diff)
downloadyosys-de8adecd396cfd83c198a525813cb255eb74bdfa.tar.gz
yosys-de8adecd396cfd83c198a525813cb255eb74bdfa.tar.bz2
yosys-de8adecd396cfd83c198a525813cb255eb74bdfa.zip
Merge branch 'master' of github.com:YosysHQ/yosys
Diffstat (limited to 'techlibs/ecp5/synth_ecp5.cc')
-rw-r--r--techlibs/ecp5/synth_ecp5.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/techlibs/ecp5/synth_ecp5.cc b/techlibs/ecp5/synth_ecp5.cc
index a8075e86e..2593546e0 100644
--- a/techlibs/ecp5/synth_ecp5.cc
+++ b/techlibs/ecp5/synth_ecp5.cc
@@ -280,12 +280,17 @@ struct SynthEcp5Pass : public ScriptPass
if (abc2 || help_mode) {
run("abc", " (only if -abc2)");
}
- run("techmap -map +/ecp5/latches_map.v");
+ std::string techmap_args = "-map +/ecp5/latches_map.v";
+ if (abc9)
+ techmap_args += " -map +/ecp5/abc_map.v -max_iter 1";
+ run("techmap " + techmap_args);
+
if (abc9) {
if (nowidelut)
run("abc9 -lut +/ecp5/abc_5g_nowide.lut -box +/ecp5/abc_5g.box -W 200");
else
run("abc9 -lut +/ecp5/abc_5g.lut -box +/ecp5/abc_5g.box -W 200");
+ run("techmap -map +/ecp5/abc_unmap.v");
} else {
if (nowidelut)
run("abc -lut 4 -dress");