aboutsummaryrefslogtreecommitdiffstats
path: root/techlibs
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2019-05-03 20:39:50 +0200
committerGitHub <noreply@github.com>2019-05-03 20:39:50 +0200
commit373b236108b254e3c01daa56a2b5ab75f2f87da2 (patch)
tree7725a9150eab6dcfbf895abf08d855b3dce4e9f4 /techlibs
parentf170fb6383477af453ca90ce4f67102e98b03f6e (diff)
parent2b29aa5c86021eb79c461975a0281b6d7635bb67 (diff)
downloadyosys-373b236108b254e3c01daa56a2b5ab75f2f87da2.tar.gz
yosys-373b236108b254e3c01daa56a2b5ab75f2f87da2.tar.bz2
yosys-373b236108b254e3c01daa56a2b5ab75f2f87da2.zip
Merge pull request #969 from YosysHQ/clifford/pmgenstuff
Improve pmgen, Add "peepopt" pass with shift-mul pattern
Diffstat (limited to 'techlibs')
-rw-r--r--techlibs/common/synth.cc2
-rw-r--r--techlibs/ice40/synth_ice40.cc2
2 files changed, 4 insertions, 0 deletions
diff --git a/techlibs/common/synth.cc b/techlibs/common/synth.cc
index ccfa76e02..e41c0fe97 100644
--- a/techlibs/common/synth.cc
+++ b/techlibs/common/synth.cc
@@ -201,6 +201,8 @@ struct SynthPass : public ScriptPass
run("check");
run("opt");
run("wreduce");
+ run("peepopt");
+ run("opt_clean");
if (help_mode)
run("techmap -map +/cmp2lut.v", " (if -lut)");
else
diff --git a/techlibs/ice40/synth_ice40.cc b/techlibs/ice40/synth_ice40.cc
index 5de33110a..bb96d66d1 100644
--- a/techlibs/ice40/synth_ice40.cc
+++ b/techlibs/ice40/synth_ice40.cc
@@ -241,6 +241,8 @@ struct SynthIce40Pass : public ScriptPass
run("check");
run("opt");
run("wreduce");
+ run("peepopt");
+ run("opt_clean");
run("share");
run("techmap -map +/cmp2lut.v -D LUT_WIDTH=4");
run("opt_expr");