Files
iverilog/ivtest/ivltests/sv_array_cassign_fail10.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

19 lines
386 B
Verilog

// Check that it is an error trying to continuously assign an unpacked array
// with an enum element type to another unpacked array with an element type that
// is not the same enum type, even if the two element types are the same size.
module test;
wire integer x[1:0];
enum integer {
A
} y[1:0];
assign x = y;
initial begin
$display("FAILED");
end
endmodule