diff options
author | Clifford Wolf <clifford@clifford.at> | 2016-06-06 17:15:50 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2016-06-06 17:15:50 +0200 |
commit | 2032e6d8e46c0b715e73423cb34f4a624617df6e (patch) | |
tree | b03e42e33c86a0e379ff319495e4989167805e64 /techlibs | |
parent | dcf576641b4a9b476d51fbe1b0cdfb57d02a76e6 (diff) | |
download | yosys-2032e6d8e46c0b715e73423cb34f4a624617df6e.tar.gz yosys-2032e6d8e46c0b715e73423cb34f4a624617df6e.tar.bz2 yosys-2032e6d8e46c0b715e73423cb34f4a624617df6e.zip |
Added "proc_mux -ifx"
Diffstat (limited to 'techlibs')
-rw-r--r-- | techlibs/common/prep.cc | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/techlibs/common/prep.cc b/techlibs/common/prep.cc index cdd908e04..a87111833 100644 --- a/techlibs/common/prep.cc +++ b/techlibs/common/prep.cc @@ -46,6 +46,10 @@ struct PrepPass : public ScriptPass log(" flatten the design before synthesis. this will pass '-auto-top' to\n"); log(" 'hierarchy' if no top module is specified.\n"); log("\n"); + log(" -ifx\n"); + log(" passed to 'proc'. uses verilog simulation behavior for verilog if/case\n"); + log(" undef handling\n"); + log("\n"); log(" -nordff\n"); log(" passed to 'memory_dff'. prohibits merging of FFs into memory read ports\n"); log("\n"); @@ -61,13 +65,14 @@ struct PrepPass : public ScriptPass } string top_module, fsm_opts, memory_opts; - bool flatten; + bool flatten, ifxmode; virtual void clear_flags() YS_OVERRIDE { top_module.clear(); memory_opts.clear(); flatten = false; + ifxmode = false; } virtual void execute(std::vector<std::string> args, RTLIL::Design *design) YS_OVERRIDE @@ -96,6 +101,10 @@ struct PrepPass : public ScriptPass flatten = true; continue; } + if (args[argidx] == "-ifx") { + ifxmode = true; + continue; + } if (args[argidx] == "-nordff") { memory_opts += " -nordff"; continue; @@ -135,7 +144,7 @@ struct PrepPass : public ScriptPass if (check_label("coarse")) { - run("proc"); + run(ifxmode ? "proc -ifx" : "proc"); if (help_mode || flatten) run("flatten", "(if -flatten)"); run("opt_expr -keepdc"); |