Files
iverilog/ivtest/ivltests/array_lval_select4b.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
277 B
Verilog

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