mirror of
https://github.com/steveicarus/iverilog.git
synced 2026-08-29 17:19:36 +02:00
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.
17 lines
332 B
Verilog
17 lines
332 B
Verilog
module top;
|
|
wire [3:0] array [1:0];
|
|
integer sel;
|
|
|
|
assign array[0] = 4'h0;
|
|
assign array[1] = 4'h1;
|
|
|
|
initial begin
|
|
#1;
|
|
$display(" %h %h", array[0], array[1]);
|
|
// This is only a problem for a wire (net array)!
|
|
sel = 0;
|
|
$display(" %h %h", array[sel], array[sel+1]);
|
|
$display("PASSED");
|
|
end
|
|
endmodule
|