Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions systemverilog-plugin/UhdmAst.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3985,9 +3985,6 @@ void UhdmAst::process_bit_select()
void UhdmAst::process_part_select()
{
current_node = make_ast_node(AST::AST_IDENTIFIER);
vpiHandle parent_h = vpi_handle(vpiParent, obj_h);
current_node->str = get_name(parent_h);
vpi_release_handle(parent_h);
auto range_node = new AST::AstNode(AST::AST_RANGE);
range_node->filename = current_node->filename;
range_node->location = current_node->location;
Expand All @@ -3998,9 +3995,6 @@ void UhdmAst::process_part_select()
void UhdmAst::process_indexed_part_select()
{
current_node = make_ast_node(AST::AST_IDENTIFIER);
vpiHandle parent_h = vpi_handle(vpiParent, obj_h);
current_node->str = get_name(parent_h);
vpi_release_handle(parent_h);
// TODO: check if there are other types, for now only handle 1 and 2 (+: and -:)
auto indexed_part_select_type = vpi_get(vpiIndexedPartSelectType, obj_h) == 1 ? AST::AST_ADD : AST::AST_SUB;
auto range_node = new AST::AstNode(AST::AST_RANGE);
Expand Down