RE: [sv-bc] Question on string data type

From: Bresticker, Shalom <shalom.bresticker_at_.....>
Date: Thu Jun 04 2009 - 07:21:28 PDT
I think he was asking about the contents of the assignment pattern, not about the target.
Besides, suppose the target was an array of strings.

Shalom 

> -----Original Message-----
> From: owner-sv-bc@server.eda.org 
> [mailto:owner-sv-bc@server.eda.org] On Behalf Of Brad Pierce
> Sent: Thursday, June 04, 2009 5:12 PM
> To: sv-bc@eda.org
> Subject: RE: [sv-bc] Question on string data type
> 
> A string is neither an array nor a structure, so no, it 
> cannot be the target of an assignment pattern.
> 
> -- Brad
> 
> ________________________________________
> From: owner-sv-bc@eda.org [owner-sv-bc@eda.org] On Behalf Of 
> Ishita Ghosh [ighosh@cal.interrasystems.com]
> Sent: Thursday, June 04, 2009 12:37 AM
> To: sv-bc@eda.org
> Subject: [sv-bc] Question on string data type
> 
> Hi,
>        Can assignment pattern be used on string type variable?
> 
> Consider the testcase,
> module top;
>     string s;
>     initial begin
>         s = '{s};                // legal?
>         s = string'{s};      // legal ?
>     end
> endmodule
> 
> Some standard simulators do support these.
> 
> Thanks and Regards,
> Ishita.
> 
> 
> 
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
> 
> -- 
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
> 
> 
> 
---------------------------------------------------------------------
Intel Israel (74) Limited

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Thu Jun 4 07:27:02 2009

This archive was generated by hypermail 2.1.8 : Thu Jun 04 2009 - 07:30:15 PDT