Files
iverilog/ivtest/ivltests/sv_array_cassign5.v
T
Lars-Peter Clausen 4ef5b02bcd Add regression tests for continuous array assign compatibility
Check various different scenarios for array compatibility in continuous
array assign. Both testing cases that should work and cases that should
fail.

Signed-off-by: Lars-Peter Clausen <[email protected]>
2022-12-17 15:47:18 -08:00

17 lines
313 B
Verilog

// Check that continuous assignment of two compatible arrays is supported, even
// if the element types have different number of dimensions, but have the same
// packed width.
module test;
wire [3:0] x[1:0];
wire [1:0][1:0] y[1:0];
assign x = y;
initial begin
$display("PASSED");
end
endmodule