Files
iverilog/ivtest/ivltests/sv_array_assign_single_fail1.v
T
Lars-Peter Clausen 74491cfe9f Add regression tests for single element unpacked array assignments
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]>
2026-05-16 21:11:30 -07:00

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