Files
iverilog/ivtest/ivltests/enum_test8.v
T
Stephen Williams cea237b407 Add ivtest to the iverilog source tree
By adding ivtest to the iverilog source tree, it is easier to keep
the regression test synchronized with the source that is being tested.
This should be especially helpful for PRs that add a new feature, and
have a matching ivtest PR with the regression test for that feature.
2022-01-15 10:18:50 -08:00

11 lines
251 B
Verilog

module top;
localparam enum_start = 2'd1;
// This is an expression so the value just has to fit.
enum logic [3:0] { first = enum_start + 2'd0,
second = enum_start + 2'd1} my_enum;
initial $display("PASSED");
endmodule