Support for abstract modules in chparam

This commit is contained in:
Clifford Wolf 2016-03-21 16:30:55 +01:00
parent 4f0d4899ce
commit 2c7e107d7a
1 changed files with 6 additions and 0 deletions

View File

@ -215,6 +215,12 @@ struct ChparamPass : public Pass {
}
break;
}
for (int i = argidx; i < GetSize(args); i++)
if (design->module("$abstract\\" + args[i]) != nullptr &&
design->module(RTLIL::escape_id(args[i])) == nullptr)
args[i] = "$abstract\\" + args[i];
extra_args(args, argidx, design);
do_setunset(new_parameters, setunset_list);