mirror of
https://github.com/steveicarus/iverilog.git
synced 2026-09-03 08:25:32 +02:00
Check that continuous assignment of an assignment pattern to a single element unpacked array is accepted. Check that assigning a scalar expression to the whole unpacked array is rejected for both procedural and continuous assignments. Check that a selected element of a single element static unpacked array can be used in a continuous l-value concatenation. Signed-off-by: Lars-Peter Clausen <[email protected]>
14 lines
206 B
Verilog
14 lines
206 B
Verilog
// Check that scalar expressions can not be procedurally assigned to single
|
|
// element unpacked arrays.
|
|
|
|
module test;
|
|
|
|
integer a[0:0];
|
|
|
|
initial begin
|
|
a = 1;
|
|
$display("FAILED");
|
|
end
|
|
|
|
endmodule
|