RE: [sv-cc] cbValueChange on SV String

From: Bresticker, Shalom <shalom.bresticker@intel.com>
Date: Mon Oct 15 2012 - 05:35:00 PDT
Probably because a string data type is a type of dynamic array.

Shalom

From: owner-sv-cc@eda.org [mailto:owner-sv-cc@eda.org] On Behalf Of Radoslaw Nawrot
Sent: Monday, October 15, 2012 14:32
To: sv-cc@eda.org
Subject: [sv-cc] cbValueChange on SV String

Hi
I'd like to ask about callback's on SystemVerilog string.

LRM says:

"cbValueChange After value change on some variables, any expression, or terminal or after

execution of an event statement. Specifically excluded are class objects, dynamic

arrays, strings, queues, and associative arrays."


Is there as reason why callback cbValueChange cannot be set on string?

example:
string s="a";
if I set cb on value change I can detect :

s="b"

were size is still the same

BTW: LRM 1800-2009 on page 1022 have bug:
"For a cbValueChange callback, if the obj has the vpiArrayMenber property set to TRUE"


Regards,
Radek


--
This message has been scanned for viruses and
dangerous content by MailScanner<http://www.mailscanner.info/>, 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 Mon Oct 15 05:35:36 2012

This archive was generated by hypermail 2.1.8 : Mon Oct 15 2012 - 05:35:42 PDT