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

15 lines
278 B
Verilog

// Check behaviour with variable array indices on LHS of procedural
// continuous (reg) assignment. This should be rejected by the compiler.
module top;
reg array1[2:1];
integer index = 1;
initial begin
assign array1[index] = 1'b1;
deassign array1[index];
end
endmodule