Skip to content

Commit

Permalink
MultiDimHierPath5 test
Browse files Browse the repository at this point in the history
  • Loading branch information
alaindargelas committed Dec 7, 2023
1 parent 661b029 commit d93afad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion frontends/systemverilog/uhdm_ast.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1032,7 +1032,7 @@ static AST::AstNode *convert_dot(AST::AstNode *wire_node, AST::AstNode *node, AS
auto target_l = target->children.at(0);
auto target_r = target->children.at(1);
auto index = dot->children.at(0)->children.at(0);
if (index->type == AST::AST_CONSTANT) {
if (index->type == AST::AST_CONSTANT || index->type == AST::AST_IDENTIFIER) {
// target_size = l - r + 1
auto target_size = new AST::AstNode(AST::AST_ADD, new AST::AstNode(AST::AST_SUB, target_l->clone(), target_r->clone()),
AST::AstNode::mkconst_int(1, true, 32));
Expand Down
1 change: 1 addition & 0 deletions tests/formal/passlist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ simple:MultiDimHierPath/dut.sv
simple:MultiDimHierPath2/dut.sv
simple:MultiDimHierPath3/dut.sv
simple:MultiDimHierPath4/dut.sv
simple:MultiDimHierPath5/dut.sv
simple:MultiDimHierPath6/dut.sv
simple:MultipleAssignments/top.sv
simple:MultipleCells/top.sv
Expand Down

0 comments on commit d93afad

Please sign in to comment.