mirror of
https://github.com/steveicarus/iverilog.git
synced 2026-09-03 03:23:31 +02:00
Check that basic assignment patterns are supported for unpacked arrays. Check that all of packed types, reals and string arrays are supported. Signed-off-by: Lars-Peter Clausen <[email protected]>
14 lines
263 B
Verilog
14 lines
263 B
Verilog
// Check that an unpacked array assignment pattern with not enough elements
|
|
// results in an error.
|
|
|
|
module test;
|
|
|
|
int x[1:0];
|
|
|
|
initial begin
|
|
x = '{1}; // Should fail, less elements in assignment pattern than array
|
|
// size.
|
|
end
|
|
|
|
endmodule
|