mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-06 14:13:23 +00:00
Added "yosys -D" feature
This commit is contained in:
parent
1565d1af69
commit
0bc95f1e04
113 changed files with 172 additions and 145 deletions
|
@ -71,7 +71,7 @@ struct OptPass : public Pass {
|
|||
std::string opt_merge_args;
|
||||
bool fast_mode = false;
|
||||
|
||||
log_header("Executing OPT pass (performing simple optimizations).\n");
|
||||
log_header(design, "Executing OPT pass (performing simple optimizations).\n");
|
||||
log_push();
|
||||
|
||||
size_t argidx;
|
||||
|
@ -132,7 +132,7 @@ struct OptPass : public Pass {
|
|||
if (design->scratchpad_get_bool("opt.did_something") == false)
|
||||
break;
|
||||
Pass::call(design, "opt_clean" + opt_clean_args);
|
||||
log_header("Rerunning OPT passes. (Removed registers in this run.)\n");
|
||||
log_header(design, "Rerunning OPT passes. (Removed registers in this run.)\n");
|
||||
}
|
||||
Pass::call(design, "opt_clean" + opt_clean_args);
|
||||
}
|
||||
|
@ -150,7 +150,7 @@ struct OptPass : public Pass {
|
|||
Pass::call(design, "opt_expr" + opt_expr_args);
|
||||
if (design->scratchpad_get_bool("opt.did_something") == false)
|
||||
break;
|
||||
log_header("Rerunning OPT passes. (Maybe there is more to do..)\n");
|
||||
log_header(design, "Rerunning OPT passes. (Maybe there is more to do..)\n");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -158,7 +158,7 @@ struct OptPass : public Pass {
|
|||
design->sort();
|
||||
design->check();
|
||||
|
||||
log_header(fast_mode ? "Finished fast OPT passes.\n" : "Finished OPT passes. (There is nothing left to do.)\n");
|
||||
log_header(design, fast_mode ? "Finished fast OPT passes.\n" : "Finished OPT passes. (There is nothing left to do.)\n");
|
||||
log_pop();
|
||||
}
|
||||
} OptPass;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue