mirror of
https://github.com/steveicarus/iverilog.git
synced 2026-08-29 01:03:29 +02:00
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]>
16 lines
240 B
Verilog
16 lines
240 B
Verilog
// Check that it is an error if the array size is not the same in a continuous
|
|
// unpacked array assignment.
|
|
|
|
module test;
|
|
|
|
wire [1:0] x[2:0];
|
|
reg [1:0] y[1:0];
|
|
|
|
assign x = y;
|
|
|
|
initial begin
|
|
$display("FAILED");
|
|
end
|
|
|
|
endmodule
|