aboutsummaryrefslogtreecommitdiffstats
path: root/techlibs/common
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2019-05-20 15:36:13 +0200
committerClifford Wolf <clifford@clifford.at>2019-05-20 15:36:13 +0200
commitc4b8575f4322f72dd1b35e2737966db731a26c17 (patch)
treec025620e082f78459cc9a14c07804c82aae800e2 /techlibs/common
parentc907899422884d959632ed42c6589a0720b681e4 (diff)
downloadyosys-c4b8575f4322f72dd1b35e2737966db731a26c17.tar.gz
yosys-c4b8575f4322f72dd1b35e2737966db731a26c17.tar.bz2
yosys-c4b8575f4322f72dd1b35e2737966db731a26c17.zip
Add "wreduce -keepdc", fixes #1016
Signed-off-by: Clifford Wolf <clifford@clifford.at>
Diffstat (limited to 'techlibs/common')
-rw-r--r--techlibs/common/prep.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/techlibs/common/prep.cc b/techlibs/common/prep.cc
index 86fb4d6c6..cdd21c3b3 100644
--- a/techlibs/common/prep.cc
+++ b/techlibs/common/prep.cc
@@ -195,9 +195,11 @@ struct PrepPass : public ScriptPass
run(nokeepdc ? "opt" : "opt -keepdc");
if (!ifxmode) {
if (help_mode)
- run("wreduce [-memx]");
- else
+ run("wreduce -keepdc [-memx]");
+ else if (nokeepdc)
run(memxmode ? "wreduce -memx" : "wreduce");
+ else
+ run(memxmode ? "wreduce -keepdc -memx" : "wreduce -keepdc");
}
if (!nomemmode) {
run(string("memory_dff") + (help_mode ? " [-nordff]" : nordff ? " -nordff" : ""));