diff options
author | Clifford Wolf <clifford@clifford.at> | 2016-03-21 16:30:55 +0100 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2016-03-21 16:37:35 +0100 |
commit | 2c7e107d7a55a47fe6f6943e4541014649b57567 (patch) | |
tree | 6133dee2a672f40b0950474a87615512a19e3191 /passes/cmds/setattr.cc | |
parent | 4f0d4899ce2c93f1f4eef685b03d9f06d4433429 (diff) | |
download | yosys-2c7e107d7a55a47fe6f6943e4541014649b57567.tar.gz yosys-2c7e107d7a55a47fe6f6943e4541014649b57567.tar.bz2 yosys-2c7e107d7a55a47fe6f6943e4541014649b57567.zip |
Support for abstract modules in chparam
Diffstat (limited to 'passes/cmds/setattr.cc')
-rw-r--r-- | passes/cmds/setattr.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/passes/cmds/setattr.cc b/passes/cmds/setattr.cc index 75c738b6d..9b05ae32f 100644 --- a/passes/cmds/setattr.cc +++ b/passes/cmds/setattr.cc @@ -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); |