mirror of
https://github.com/steveicarus/iverilog.git
synced 2026-09-02 22:48:43 +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]>
15 lines
239 B
Verilog
15 lines
239 B
Verilog
// Check that trying to do a continuous assign of a scalar to an array results
|
|
// in an error.
|
|
|
|
module test;
|
|
|
|
integer x[1:0];
|
|
|
|
assign x = 10; // Error, scalar assigned to array
|
|
|
|
initial begin
|
|
$display("FAILED");
|
|
end
|
|
|
|
endmodule
|