Files
iverilog/ivtest/ivltests/array_word_width2.v
T

17 lines
332 B
Verilog
Raw Normal View History

2022-01-15 10:18:50 -08:00
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