Swapnajit,
The sample() method can not be applied to a covergroup, but to an
instance of a covergroup. I agree that Table 20-5 should specify a
covergroup instance.
Calling the sample() method on a covergroup the includes a clocking
event is not allowed. Section 2.2 disallows that:
"If the clocking event is omitted, users must procedurally trigger the coverage
sampling. This is done via the built-in sample() method (see Section 20.7)."
Arturo
----- Original Message -----
From: "Swapnajit Chakraborti" <swapnaj@cadence.com>
To: <sv-ec@eda.org>
Cc: "swapnaj" <swapnaj@gazal.cadence.com>
Sent: Friday, February 04, 2005 1:22 AM
Subject: [sv-ec] covergroup query
This query pertains to covergroup in Section 20 (Coverage) of LRM.
- According to LRM, sample() method can be called on a covergroup.
Refer Table 20.5. Does it mean that calling this method for
a covergroup will enable sampling for all its instances? Now,
covergroup declaration as such has no effect till it is instantiated
through new(). So, shouldn't sample() method be used for an instance
of a covergroup rather than covergroup declaration?
- LRM does not mention the behavior when user specifies
clocking event in covergroup declaration and also activates/samples
procedurally through sample() method. I believe both of them shouldn't
be
allowed simultaneously.
Any thoughts on the above?
Swapnajit.
Received on Fri Feb 4 09:59:31 2005
This archive was generated by hypermail 2.1.8 : Fri Feb 04 2005 - 10:00:00 PST