iverilog/ivtest/ivltests/partsel_reversed_idx4.v

15 lines
263 B
Verilog

// Check that an inverted part select on an inner dimension in a procedural
// assign is reported as an error.
module test;
reg [1:0][1:0] x;
initial begin
x[0:1] = 2'b00; // Error: Part select indices swapped
$display("FAILED");
end
endmodule