RE: [sv-ec] Is "super" OK in constraint expressions?

From: William Paulsen <paulsen_at_.....>
Date: Thu Jul 20 2006 - 10:54:24 PDT
Thanks Arturo & Ray,

But for "this", the LRM 7.10 says:

"The this keyword shall only be used within non-static class methods,
otherwise an error shall be issued."

It would seem that "this" can only be used in a scope randomize
constraint expression - it's not legal to use "this" in a constraint
expression that's in a constraint block.

Bill



-----Original Message-----
From: Arturo Salz [mailto:Arturo.Salz@synopsys.com] 
Sent: Thursday, July 20, 2006 1:43 PM
To: William Paulsen; sv-ec@eda-stds.org
Subject: RE: [sv-ec] Is "super" OK in constraint expressions?

Bill,

Both "this" and "super" should be allowed in constraint expressions
within a class scope (of course). Randomize is not a static method.

	Arturo

-----Original Message-----
From: owner-sv-ec@eda-stds.org [mailto:owner-sv-ec@eda-stds.org] On
Behalf Of William Paulsen
Sent: Thursday, July 20, 2006 9:22 AM
To: sv-ec@eda-stds.org
Subject: [sv-ec] Is "super" OK in constraint expressions?

A quick question,

Is using "super" OK in constraint expressions?  The LRM is clear that
"this" is OK only in non-static methods, but it's not clear if "super"
is OK outside methods.  "this" and "super" share the same bnf
"implicit_class_handle" production.

Thanks,
Bill
Received on Thu Jul 20 10:54:28 2006

This archive was generated by hypermail 2.1.8 : Thu Jul 20 2006 - 10:54:38 PDT