mirror of
https://github.com/steveicarus/iverilog.git
synced 2026-09-03 01:13:47 +02:00
Check that trying to assign a scalar value to an array results in an error. Signed-off-by: Lars-Peter Clausen <[email protected]>
14 lines
233 B
Verilog
14 lines
233 B
Verilog
// Check that trying to do a procedural assign of a scalar to an array results
|
|
// in an error.
|
|
|
|
module test;
|
|
|
|
integer x[1:0];
|
|
|
|
initial begin
|
|
x = 10; // Error, scalar assigned to array
|
|
$display("FAILED");
|
|
end
|
|
|
|
endmodule
|