diff options
author | Clifford Wolf <clifford@clifford.at> | 2015-07-01 10:49:21 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2015-07-01 10:49:21 +0200 |
commit | 053058d78167f7f1ec377fddcee8b648a5ae4138 (patch) | |
tree | c1bb01a16d14f8102e432b3aa3f523e0194aa9d5 /passes/opt/opt.cc | |
parent | ee9188a5b4013f22d2694d4c3e5bb7d08438bfb3 (diff) | |
download | yosys-053058d78167f7f1ec377fddcee8b648a5ae4138.tar.gz yosys-053058d78167f7f1ec377fddcee8b648a5ae4138.tar.bz2 yosys-053058d78167f7f1ec377fddcee8b648a5ae4138.zip |
Added opt_const -clkinv
Diffstat (limited to 'passes/opt/opt.cc')
-rw-r--r-- | passes/opt/opt.cc | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/passes/opt/opt.cc b/passes/opt/opt.cc index 76e6fb365..150cacf9a 100644 --- a/passes/opt/opt.cc +++ b/passes/opt/opt.cc @@ -37,7 +37,7 @@ struct OptPass : public Pass { log("a series of trivial optimizations and cleanups. This pass executes the other\n"); log("passes in the following order:\n"); log("\n"); - log(" opt_const [-mux_undef] [-mux_bool] [-undriven] [-fine] [-full] [-keepdc]\n"); + log(" opt_const [-mux_undef] [-mux_bool] [-undriven] [-clkinv] [-fine] [-full] [-keepdc]\n"); log(" opt_share [-share_all] -nomux\n"); log("\n"); log(" do\n"); @@ -46,13 +46,13 @@ struct OptPass : public Pass { log(" opt_share [-share_all]\n"); log(" opt_rmdff\n"); log(" opt_clean [-purge]\n"); - log(" opt_const [-mux_undef] [-mux_bool] [-undriven] [-fine] [-full] [-keepdc]\n"); + log(" opt_const [-mux_undef] [-mux_bool] [-undriven] [-clkinv] [-fine] [-full] [-keepdc]\n"); log(" while <changed design>\n"); log("\n"); log("When called with -fast the following script is used instead:\n"); log("\n"); log(" do\n"); - log(" opt_const [-mux_undef] [-mux_bool] [-undriven] [-fine] [-full] [-keepdc]\n"); + log(" opt_const [-mux_undef] [-mux_bool] [-undriven] [-clkinv] [-fine] [-full] [-keepdc]\n"); log(" opt_share [-share_all]\n"); log(" opt_rmdff\n"); log(" opt_clean [-purge]\n"); @@ -92,6 +92,10 @@ struct OptPass : public Pass { opt_const_args += " -undriven"; continue; } + if (args[argidx] == "-clkinv") { + opt_const_args += " -clkinv"; + continue; + } if (args[argidx] == "-fine") { opt_const_args += " -fine"; opt_reduce_args += " -fine"; |