Re: [sv-ec] randomize() is virtual, but what about constraint_mode() ??

From: Steven Sharp <sharp_at_.....>
Date: Fri May 23 2008 - 17:07:58 PDT
This came up here not too long ago, and I had not gotten around to
bringing it up to the committee.

My interpretation of the LRM was that it does not say that constraint_mode()
is virtual, so it isn't, even though that doesn't make much sense.  The
LRM should probably be modified to change that.

Regarding your supplementary question:  Executing constraint_mode() at
simulation time to turn off a constraint does not make the constraint
name disappear.  It definitely does not make it disappear back during
compilation, when names were resolved.  So no, I don't think that the
base-class constraint would apply if the same-named derived-class
constraint is turned off.

Steven Sharp
sharp@cadence.com


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Fri May 23 17:08:29 2008

This archive was generated by hypermail 2.1.8 : Fri May 23 2008 - 17:09:02 PDT