mirror of
https://github.com/steveicarus/iverilog.git
synced 2026-09-03 00:19:42 +02:00
Check that using a real valued expression as an array index is rejected during elaboration. Signed-off-by: Lars-Peter Clausen <[email protected]>
13 lines
162 B
Verilog
13 lines
162 B
Verilog
// Check that real expressions can not be used as array indices.
|
|
|
|
module test;
|
|
|
|
reg [1:0] a[1:0];
|
|
real r;
|
|
|
|
initial begin
|
|
a[r] = 2'b10;
|
|
end
|
|
|
|
endmodule
|