mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-21 21:33:40 +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;
|
||||
|
|
|
@ -380,7 +380,7 @@ struct OptCleanPass : public Pass {
|
|||
{
|
||||
bool purge_mode = false;
|
||||
|
||||
log_header("Executing OPT_CLEAN pass (remove unused cells and wires).\n");
|
||||
log_header(design, "Executing OPT_CLEAN pass (remove unused cells and wires).\n");
|
||||
log_push();
|
||||
|
||||
size_t argidx;
|
||||
|
|
|
@ -1151,7 +1151,7 @@ struct OptExprPass : public Pass {
|
|||
bool do_fine = false;
|
||||
bool keepdc = false;
|
||||
|
||||
log_header("Executing OPT_EXPR pass (perform const folding).\n");
|
||||
log_header(design, "Executing OPT_EXPR pass (perform const folding).\n");
|
||||
log_push();
|
||||
|
||||
size_t argidx;
|
||||
|
|
|
@ -348,7 +348,7 @@ struct OptMergePass : public Pass {
|
|||
}
|
||||
virtual void execute(std::vector<std::string> args, RTLIL::Design *design)
|
||||
{
|
||||
log_header("Executing OPT_MERGE pass (detect identical cells).\n");
|
||||
log_header(design, "Executing OPT_MERGE pass (detect identical cells).\n");
|
||||
|
||||
bool mode_nomux = false;
|
||||
bool mode_share_all = false;
|
||||
|
|
|
@ -464,7 +464,7 @@ struct OptMuxtreePass : public Pass {
|
|||
}
|
||||
virtual void execute(vector<std::string> args, RTLIL::Design *design)
|
||||
{
|
||||
log_header("Executing OPT_MUXTREE pass (detect dead branches in mux trees).\n");
|
||||
log_header(design, "Executing OPT_MUXTREE pass (detect dead branches in mux trees).\n");
|
||||
extra_args(args, 1, design);
|
||||
|
||||
int total_count = 0;
|
||||
|
|
|
@ -354,7 +354,7 @@ struct OptReducePass : public Pass {
|
|||
{
|
||||
bool do_fine = false;
|
||||
|
||||
log_header("Executing OPT_REDUCE pass (consolidate $*mux and $reduce_* inputs).\n");
|
||||
log_header(design, "Executing OPT_REDUCE pass (consolidate $*mux and $reduce_* inputs).\n");
|
||||
|
||||
size_t argidx;
|
||||
for (argidx = 1; argidx < args.size(); argidx++) {
|
||||
|
|
|
@ -191,7 +191,7 @@ struct OptRmdffPass : public Pass {
|
|||
virtual void execute(std::vector<std::string> args, RTLIL::Design *design)
|
||||
{
|
||||
int total_count = 0;
|
||||
log_header("Executing OPT_RMDFF pass (remove dff with constant values).\n");
|
||||
log_header(design, "Executing OPT_RMDFF pass (remove dff with constant values).\n");
|
||||
|
||||
extra_args(args, 1, design);
|
||||
|
||||
|
|
|
@ -1500,7 +1500,7 @@ struct SharePass : public Pass {
|
|||
config.generic_other_ops.insert("$alu");
|
||||
config.generic_other_ops.insert("$macc");
|
||||
|
||||
log_header("Executing SHARE pass (SAT-based resource sharing).\n");
|
||||
log_header(design, "Executing SHARE pass (SAT-based resource sharing).\n");
|
||||
|
||||
size_t argidx;
|
||||
for (argidx = 1; argidx < args.size(); argidx++) {
|
||||
|
|
|
@ -371,7 +371,7 @@ struct WreducePass : public Pass {
|
|||
{
|
||||
WreduceConfig config;
|
||||
|
||||
log_header("Executing WREDUCE pass (reducing word size of cells).\n");
|
||||
log_header(design, "Executing WREDUCE pass (reducing word size of cells).\n");
|
||||
|
||||
size_t argidx;
|
||||
for (argidx = 1; argidx < args.size(); argidx++) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue