Files
iverilog/ivtest/ivltests/enum_test3.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

10 lines
320 B
Verilog

module top;
// This should be okay (the trimmed bits match the enum MSB).
enum reg[3:0] {VAL1, XX1='bxxxxx} en1;
// But these should fail because the trimmed bits do not match the enum MSB.
enum reg[3:0] {VAL2, XX2='b0xxxx} en2;
enum reg[3:0] {VAL3, XX3='b0xxxxx} en3;
initial $display("FAILED");
endmodule