In reply to dave_59:
Dave ,
Thanks for the explanation .
(1) Is it legal for actual argument to argument of ref direction of overridden sample() be an automatic variable ?
For example : Actual could be local argument in sequence , property .
( sample() called from function in sequence , property )
(2) Regarding the LRM quotes above ,
For parameterized covergroup the actual to ref argument is in the scope of the covergroup whereas for the overridden sample() the argument need not be present in the scope of the covergroup . It could be a variable in another component or static entity which would be passed as argument to sample() .
Is my interpretation correct ?
Thanks in advance .