box_derive: rename -apply to -apply_derived_type

This commit is contained in:
Emil J. Tywoniak 2025-10-09 01:44:13 +02:00
parent d7cea2c35c
commit c46df9ffdc
2 changed files with 5 additions and 5 deletions

View File

@ -51,7 +51,7 @@ struct BoxDerivePass : Pass {
log(" replaces the internal Yosys naming scheme in which the names of derived\n"); log(" replaces the internal Yosys naming scheme in which the names of derived\n");
log(" modules start with '$paramod$')\n"); log(" modules start with '$paramod$')\n");
log("\n"); log("\n");
log(" -apply\n"); log(" -apply_derived_type\n");
log(" use the derived modules\n"); log(" use the derived modules\n");
log("\n"); log("\n");
} }
@ -68,7 +68,7 @@ struct BoxDerivePass : Pass {
naming_attr = RTLIL::escape_id(args[++argidx]); naming_attr = RTLIL::escape_id(args[++argidx]);
else if (args[argidx] == "-base" && argidx + 1 < args.size()) else if (args[argidx] == "-base" && argidx + 1 < args.size())
base_name = RTLIL::escape_id(args[++argidx]); base_name = RTLIL::escape_id(args[++argidx]);
else if (args[argidx] == "-apply") else if (args[argidx] == "-apply_derived_type")
apply_mode = true; apply_mode = true;
else else
break; break;

View File

@ -57,10 +57,10 @@ select -assert-count 0 t:cc1 t:cc2 t:cc3
design -load before design -load before
# same command but with -apply # same command but with -apply_derived_type
box_derive -apply -naming_attr final_name top box_derive -apply_derived_type -naming_attr final_name top
# same derived modules created as without -apply # same derived modules created as without -apply_derived_type
select -assert-mod-count 1 =aa1 select -assert-mod-count 1 =aa1
select -assert-mod-count 1 =aa2 select -assert-mod-count 1 =aa2
select -assert-mod-count 0 =aa3 select -assert-mod-count 0 =aa3