mirror of
https://github.com/steveicarus/iverilog.git
synced 2026-09-03 03:23:31 +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
255 B
Verilog
16 lines
255 B
Verilog
// Check that it is an error trying to continuously assign an element of an
|
|
// unpacked array to another unpacked array as a whole.
|
|
|
|
module test;
|
|
|
|
wire a[1:0];
|
|
wire x[1:0];
|
|
|
|
assign a = x[0];
|
|
|
|
initial begin
|
|
$display("FAILED");
|
|
end
|
|
|
|
endmodule
|