From 2c7e107d7a55a47fe6f6943e4541014649b57567 Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Mon, 21 Mar 2016 16:30:55 +0100 Subject: [PATCH] Support for abstract modules in chparam --- passes/cmds/setattr.cc | 6 ++++++ 1 file changed, 6 insertions(+) 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); -- 2.30.2