Merge pull request #446 from antmicro/wsip/type_parameter
handle vpiTypeParameter
diff --git a/systemverilog-plugin/UhdmAst.cc b/systemverilog-plugin/UhdmAst.cc
index 0838ca1..3c2ae3e 100644
--- a/systemverilog-plugin/UhdmAst.cc
+++ b/systemverilog-plugin/UhdmAst.cc
@@ -4537,6 +4537,13 @@
case vpiClockingBlock:
process_unsupported_stmt(object);
break;
+ case vpiTypeParameter:
+ // Instances in an `uhdmTopModules` tree already have all parameter references
+ // substituted with the parameter type/value by Surelog,
+ // so the plugin doesn't need to process the parameter itself.
+ // Other parameter types are handled by the plugin
+ // mainly because they were implemented before Surelog did the substitution.
+ break;
case vpiProgram:
default:
report_error("%.*s:%d: Encountered unhandled object '%.*s' of type '%s'\n", (int)object->VpiFile().length(), object->VpiFile().data(),