mirror of
https://github.com/YosysHQ/yosys
synced 2025-07-29 07:27:58 +00:00
Renamed opt_rmunused to opt_clean
This commit is contained in:
parent
29d6ebd961
commit
c32b918681
7 changed files with 17 additions and 17 deletions
|
@ -4,6 +4,6 @@ OBJS += passes/opt/opt_share.o
|
|||
OBJS += passes/opt/opt_muxtree.o
|
||||
OBJS += passes/opt/opt_reduce.o
|
||||
OBJS += passes/opt/opt_rmdff.o
|
||||
OBJS += passes/opt/opt_rmunused.o
|
||||
OBJS += passes/opt/opt_clean.o
|
||||
OBJS += passes/opt/opt_const.o
|
||||
|
||||
|
|
|
@ -45,7 +45,7 @@ struct OptPass : public Pass {
|
|||
log(" opt_reduce\n");
|
||||
log(" opt_share\n");
|
||||
log(" opt_rmdff\n");
|
||||
log(" opt_rmunused\n");
|
||||
log(" opt_clean\n");
|
||||
log(" opt_const\n");
|
||||
log(" while [changed design]\n");
|
||||
log("\n");
|
||||
|
@ -68,7 +68,7 @@ struct OptPass : public Pass {
|
|||
Pass::call(design, "opt_reduce");
|
||||
Pass::call(design, "opt_share");
|
||||
Pass::call(design, "opt_rmdff");
|
||||
Pass::call(design, "opt_rmunused");
|
||||
Pass::call(design, "opt_clean");
|
||||
Pass::call(design, "opt_const");
|
||||
if (OPT_DID_SOMETHING == false)
|
||||
break;
|
||||
|
|
|
@ -240,13 +240,13 @@ static void rmunused_module(RTLIL::Module *module)
|
|||
rmunused_module_signals(module);
|
||||
}
|
||||
|
||||
struct OptRmUnusedPass : public Pass {
|
||||
OptRmUnusedPass() : Pass("opt_rmunused", "remove unused cells and wires") { }
|
||||
struct OptCleanPass : public Pass {
|
||||
OptCleanPass() : Pass("opt_clean", "remove unused cells and wires") { }
|
||||
virtual void help()
|
||||
{
|
||||
// |---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|
|
||||
log("\n");
|
||||
log(" opt_rmunused [selection]\n");
|
||||
log(" opt_clean [selection]\n");
|
||||
log("\n");
|
||||
log("This pass identifies wires and cells that are unused and removes them. Other\n");
|
||||
log("passes often remove cells but leave the wires in the design or reconnect the\n");
|
||||
|
@ -258,7 +258,7 @@ struct OptRmUnusedPass : public Pass {
|
|||
}
|
||||
virtual void execute(std::vector<std::string> args, RTLIL::Design *design)
|
||||
{
|
||||
log_header("Executing OPT_RMUNUSED pass (remove unused cells and wires).\n");
|
||||
log_header("Executing OPT_CLEAN pass (remove unused cells and wires).\n");
|
||||
log_push();
|
||||
|
||||
extra_args(args, 1, design);
|
||||
|
@ -284,5 +284,5 @@ struct OptRmUnusedPass : public Pass {
|
|||
ct.clear();
|
||||
log_pop();
|
||||
}
|
||||
} OptRmUnusedPass;
|
||||
} OptCleanPass;
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue