Re: [sv-bc] RE: [sv-ec] Is string valid data type for 'foreach' array

From: Surya Pratik Saha <spsaha_at_.....>
Date: Wed Jan 16 2008 - 23:40:46 PST
Hi Arturo,
Dynamic array concept comes only with unpacked dimension, not with 
packed dimension. So LRM should specifically mention in that section 
that 'string' also to be allowed. What do you think?

Regards
Surya



-------- Original Message --------
Subject: Re:[sv-bc] RE: [sv-ec] Is string valid data type for 'foreach' 
array
From: Rich, Dave <Dave_Rich@mentor.com>
To: Arturo Salz <Arturo.Salz@synopsys.com>, Surya Pratik Saha 
<spsaha@cal.interrasystems.com>, sv-ec@eda.org
Date: Thursday, January 17, 2008 12:41:22 PM
>
> 12.7.3 will have to be modified because a queue is no longer an array, 
> or is it?
>
> Dave
>
> ------------------------------------------------------------------------
>
> *From:* owner-sv-bc@server.eda.org [mailto:owner-sv-bc@server.eda.org] 
> *On Behalf Of *Arturo Salz
> *Sent:* Wednesday, January 16, 2008 11:02 PM
> *To:* Surya Pratik Saha; sv-ec@server.eda.org; sv-bc@server.eda.org
> *Subject:* [sv-bc] RE: [sv-ec] Is string valid data type for 'foreach' 
> array
>
> Yes. The foreach should iterate over a string variable. In this 
> respect, a string can be considered a dynamic array of byte’s.
>
> Arturo
>
> ------------------------------------------------------------------------
>
> *From:* owner-sv-ec@eda.org [mailto:owner-sv-ec@eda.org] *On Behalf Of 
> *Surya Pratik Saha
> *Sent:* Wednesday, January 16, 2008 10:14 PM
> *To:* sv-ec@eda.org; sv-bc@eda.org
> *Subject:* [sv-ec] Is string valid data type for 'foreach' array
>
> 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* <http://www.mailscanner.info/>*, 
> and is
> believed to be clean.
> -- 
> This message has been scanned for viruses and
> dangerous content by *MailScanner* <http://www.mailscanner.info/>, and is
> believed to be clean. *





-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Thu Jan 17 01:15:35 2008

This archive was generated by hypermail 2.1.8 : Thu Jan 17 2008 - 01:15:43 PST