Skip to content

Commit

Permalink
added constant range extenssion test
Browse files Browse the repository at this point in the history
  • Loading branch information
drom committed Oct 10, 2019
1 parent 1e5165f commit 0ca8442
Showing 1 changed file with 35 additions and 1 deletion.
36 changes: 35 additions & 1 deletion corpus/assign.txt
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,41 @@ endmodule
))

============================================
precedence or, xor, and, eq
assign - constant_range expression
============================================

module mod ();
assign a = b[1+Param:0];
endmodule

----

(source_file (module_declaration
(module_header (module_keyword) (simple_identifier))
(module_nonansi_header (list_of_ports))
(module_or_generate_item (continuous_assign
(list_of_net_assignments (net_assignment
(net_lvalue (simple_identifier))
(expression (primary
(simple_identifier)
(select1
(constant_range
(constant_expression
(constant_expression
(constant_primary (primary_literal (integral_number (decimal_number (unsigned_number)))))
)
(constant_expression (constant_primary (parameter_identifier (simple_identifier))))
)
(constant_expression (constant_primary (primary_literal (integral_number (decimal_number (unsigned_number))))))
)
)
))
))
))
))

============================================
assign - precedence or, xor, and, eq
============================================

module mod ();
Expand Down

0 comments on commit 0ca8442

Please sign in to comment.