mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-06 14:13:23 +00:00
Renamed opt_share to opt_merge
This commit is contained in:
parent
1d0f0d668a
commit
ec93680bd5
8 changed files with 28 additions and 28 deletions
|
@ -38,12 +38,12 @@ struct OptPass : public Pass {
|
|||
log("passes in the following order:\n");
|
||||
log("\n");
|
||||
log(" opt_expr [-mux_undef] [-mux_bool] [-undriven] [-clkinv] [-fine] [-full] [-keepdc]\n");
|
||||
log(" opt_share [-share_all] -nomux\n");
|
||||
log(" opt_merge [-share_all] -nomux\n");
|
||||
log("\n");
|
||||
log(" do\n");
|
||||
log(" opt_muxtree\n");
|
||||
log(" opt_reduce [-fine] [-full]\n");
|
||||
log(" opt_share [-share_all]\n");
|
||||
log(" opt_merge [-share_all]\n");
|
||||
log(" opt_rmdff\n");
|
||||
log(" opt_clean [-purge]\n");
|
||||
log(" opt_expr [-mux_undef] [-mux_bool] [-undriven] [-clkinv] [-fine] [-full] [-keepdc]\n");
|
||||
|
@ -53,7 +53,7 @@ struct OptPass : public Pass {
|
|||
log("\n");
|
||||
log(" do\n");
|
||||
log(" opt_expr [-mux_undef] [-mux_bool] [-undriven] [-clkinv] [-fine] [-full] [-keepdc]\n");
|
||||
log(" opt_share [-share_all]\n");
|
||||
log(" opt_merge [-share_all]\n");
|
||||
log(" opt_rmdff\n");
|
||||
log(" opt_clean [-purge]\n");
|
||||
log(" while <changed design in opt_rmdff>\n");
|
||||
|
@ -68,7 +68,7 @@ struct OptPass : public Pass {
|
|||
std::string opt_clean_args;
|
||||
std::string opt_expr_args;
|
||||
std::string opt_reduce_args;
|
||||
std::string opt_share_args;
|
||||
std::string opt_merge_args;
|
||||
bool fast_mode = false;
|
||||
|
||||
log_header("Executing OPT pass (performing simple optimizations).\n");
|
||||
|
@ -111,7 +111,7 @@ struct OptPass : public Pass {
|
|||
continue;
|
||||
}
|
||||
if (args[argidx] == "-share_all") {
|
||||
opt_share_args += " -share_all";
|
||||
opt_merge_args += " -share_all";
|
||||
continue;
|
||||
}
|
||||
if (args[argidx] == "-fast") {
|
||||
|
@ -126,7 +126,7 @@ struct OptPass : public Pass {
|
|||
{
|
||||
while (1) {
|
||||
Pass::call(design, "opt_expr" + opt_expr_args);
|
||||
Pass::call(design, "opt_share" + opt_share_args);
|
||||
Pass::call(design, "opt_merge" + opt_merge_args);
|
||||
design->scratchpad_unset("opt.did_something");
|
||||
Pass::call(design, "opt_rmdff");
|
||||
if (design->scratchpad_get_bool("opt.did_something") == false)
|
||||
|
@ -139,12 +139,12 @@ struct OptPass : public Pass {
|
|||
else
|
||||
{
|
||||
Pass::call(design, "opt_expr" + opt_expr_args);
|
||||
Pass::call(design, "opt_share -nomux" + opt_share_args);
|
||||
Pass::call(design, "opt_merge -nomux" + opt_merge_args);
|
||||
while (1) {
|
||||
design->scratchpad_unset("opt.did_something");
|
||||
Pass::call(design, "opt_muxtree");
|
||||
Pass::call(design, "opt_reduce" + opt_reduce_args);
|
||||
Pass::call(design, "opt_share" + opt_share_args);
|
||||
Pass::call(design, "opt_merge" + opt_merge_args);
|
||||
Pass::call(design, "opt_rmdff");
|
||||
Pass::call(design, "opt_clean" + opt_clean_args);
|
||||
Pass::call(design, "opt_expr" + opt_expr_args);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue