Hi,
SV 1800-2008 draft LRM defines 'foreach' array as follows:
12.7.3 The foreach loop
The foreach-loop construct specifies iteration over the elements of an
array. Its argument is an identifier that designates any type of array
followed by a comma-separated list of loop variables enclosed in square
brack-ets.
Is 'string' type allowed as array. Is the following case valid?
module top;
string s;
initial begin
foreach (s[i]) begin
end
end
endmodule
--
Regards
Surya
--
This message has been scanned for viruses and
dangerous content by
MailScanner, and is
believed to be clean.
Received on Wed Jan 16 22:23:00 2008