diff options
author | whitequark <whitequark@whitequark.org> | 2020-05-26 06:00:40 +0000 |
---|---|---|
committer | whitequark <whitequark@whitequark.org> | 2020-05-26 21:34:20 +0000 |
commit | e9c07e2bdad6baa550b8fcf460ac624bd1879415 (patch) | |
tree | d86c79072c28c24bbc5d92a3a687fda6ee425aae | |
parent | 59b355fb85cb7cda4a25696850bb3caffce3115f (diff) | |
download | yosys-e9c07e2bdad6baa550b8fcf460ac624bd1879415.tar.gz yosys-e9c07e2bdad6baa550b8fcf460ac624bd1879415.tar.bz2 yosys-e9c07e2bdad6baa550b8fcf460ac624bd1879415.zip |
cxxrtl: add missing parts of commit 281c9685.
-rw-r--r-- | backends/cxxrtl/cxxrtl.cc | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/backends/cxxrtl/cxxrtl.cc b/backends/cxxrtl/cxxrtl.cc index 549404184..998fe8dbc 100644 --- a/backends/cxxrtl/cxxrtl.cc +++ b/backends/cxxrtl/cxxrtl.cc @@ -513,7 +513,6 @@ struct CxxrtlWorker { bool elide_public = false; bool localize_internal = false; bool localize_public = false; - bool run_opt_clean_purge = false; bool run_proc_flatten = false; bool max_opt_level = false; @@ -2046,7 +2045,7 @@ struct CxxrtlWorker { } if (has_feedback_arcs || has_buffered_wires) { // Although both non-feedback buffered combinatorial wires and apparent feedback wires may be eliminated - // by optimizing the design, if after `opt_clean -purge` there are any feedback wires remaining, it is very + // by optimizing the design, if after `proc; flatten` there are any feedback wires remaining, it is very // likely that these feedback wires are indicative of a true logic loop, so they get emphasized in the message. const char *why_pessimistic = nullptr; if (has_feedback_arcs) @@ -2106,15 +2105,13 @@ struct CxxrtlWorker { if (has_sync_init || has_packed_mem) check_design(design, has_sync_init, has_packed_mem); log_assert(!(has_sync_init || has_packed_mem)); - if (run_opt_clean_purge) - Pass::call(design, "opt_clean -purge"); log_pop(); analyze_design(design); } }; struct CxxrtlBackend : public Backend { - static const int DEFAULT_OPT_LEVEL = 6; + static const int DEFAULT_OPT_LEVEL = 5; CxxrtlBackend() : Backend("cxxrtl", "convert design to C++ RTL simulation") { } void help() YS_OVERRIDE @@ -2340,6 +2337,7 @@ struct CxxrtlBackend : public Backend { extra_args(f, filename, args, argidx); switch (opt_level) { + // the highest level here must match DEFAULT_OPT_LEVEL case 5: worker.max_opt_level = true; worker.run_proc_flatten = true; |