diff options
author | Clifford Wolf <clifford@clifford.at> | 2016-06-08 12:14:32 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2016-06-08 12:14:32 +0200 |
commit | 52b0b4e31e98816bc15b957c89bca76619231143 (patch) | |
tree | 134bf7371d4527bf033866b0860437fcc488cf15 | |
parent | 2032e6d8e46c0b715e73423cb34f4a624617df6e (diff) | |
download | yosys-52b0b4e31e98816bc15b957c89bca76619231143.tar.gz yosys-52b0b4e31e98816bc15b957c89bca76619231143.tar.bz2 yosys-52b0b4e31e98816bc15b957c89bca76619231143.zip |
Do not run "wreduce" in "prep -ifx"
-rw-r--r-- | techlibs/common/prep.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/techlibs/common/prep.cc b/techlibs/common/prep.cc index a87111833..9f8f6b313 100644 --- a/techlibs/common/prep.cc +++ b/techlibs/common/prep.cc @@ -48,7 +48,7 @@ struct PrepPass : public ScriptPass log("\n"); log(" -ifx\n"); log(" passed to 'proc'. uses verilog simulation behavior for verilog if/case\n"); - log(" undef handling\n"); + log(" undef handling. this also prevents 'wreduce' from being run.\n"); log("\n"); log(" -nordff\n"); log(" passed to 'memory_dff'. prohibits merging of FFs into memory read ports\n"); @@ -151,7 +151,8 @@ struct PrepPass : public ScriptPass run("opt_clean"); run("check"); run("opt -keepdc"); - run("wreduce"); + if (!ifxmode) + run("wreduce"); run("memory_dff" + (help_mode ? " [-nordff]" : memory_opts)); run("opt_clean"); run("memory_collect"); |