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

From: Brad Pierce <Brad.Pierce_at_.....>
Date: Thu Jun 04 2009 - 07:12:01 PDT
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.
Received on Thu Jun 4 07:14:00 2009

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