3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-10-19 05:42:16 +00:00

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(" modules start with '$paramod$')\n");
log("\n");
log(" -apply\n");
log(" -apply_derived_type\n");
log(" use the derived modules\n");
log("\n");
}
@ -68,7 +68,7 @@ struct BoxDerivePass : Pass {
naming_attr = RTLIL::escape_id(args[++argidx]);
else if (args[argidx] == "-base" && argidx + 1 < args.size())
base_name = RTLIL::escape_id(args[++argidx]);
else if (args[argidx] == "-apply")
else if (args[argidx] == "-apply_derived_type")
apply_mode = true;
else
break;

View file

@ -57,10 +57,10 @@ select -assert-count 0 t:cc1 t:cc2 t:cc3
design -load before
# same command but with -apply
box_derive -apply -naming_attr final_name top
# same command but with -apply_derived_type
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 =aa2
select -assert-mod-count 0 =aa3