Skip to content

Commit a3f4085

Browse files
authored
Merge pull request #188 from antmicro/bump-surelog
Always visit parameter value
2 parents 811e120 + 23da48a commit a3f4085

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

uhdm-plugin/UhdmAst.cc

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3070,8 +3070,14 @@ void UhdmAst::process_parameter()
30703070
break;
30713071
}
30723072
case vpiEnumTypespec:
3073-
case vpiRealTypespec:
3073+
case vpiRealTypespec: {
3074+
shared.report.mark_handled(typespec_h);
3075+
break;
3076+
}
30743077
case vpiIntTypespec: {
3078+
#ifdef BUILD_UPSTREAM
3079+
packed_ranges.push_back(make_range(31, 0));
3080+
#endif
30753081
shared.report.mark_handled(typespec_h);
30763082
break;
30773083
}
@@ -3107,13 +3113,12 @@ void UhdmAst::process_parameter()
31073113
}
31083114
}
31093115
vpi_release_handle(typespec_h);
3110-
} else {
3111-
AST::AstNode *constant_node = process_value(obj_h);
3112-
if (constant_node) {
3113-
constant_node->filename = current_node->filename;
3114-
constant_node->location = current_node->location;
3115-
current_node->children.push_back(constant_node);
3116-
}
3116+
}
3117+
AST::AstNode *constant_node = process_value(obj_h);
3118+
if (constant_node) {
3119+
constant_node->filename = current_node->filename;
3120+
constant_node->location = current_node->location;
3121+
current_node->children.push_back(constant_node);
31173122
}
31183123
add_multirange_wire(current_node, packed_ranges, unpacked_ranges);
31193124
}

0 commit comments

Comments
 (0)