 |
|
|
|
|
|
|
|
|
|
|
|
|
SVUG Community Forum
|
|
| Author |
Messages |
|
BUHUS
Posts:6
 |
| 12/05/2007 7:14 AM |
|
Hello,
Currently I work on coverage implementation for some registers fields. Some of the fields are dynamic , meaning that they can change their value once or several times during one simulation. Others are static, meaning that they take one initial value when simulation begins and don't change their value during simulation. All these leaded me to the fact that I will have to declare several coverage groups and sampling to be done using events: when signal changes, ->event, sample.
But since there is a pretty large number or dynamic fields(which don't change their value at the same time), this will mean to define soo many coverage groups as dynamic which seems not reasonable.
I know that events are used to trigger sampling of all coverpoints inside one coverage group.
Is there any SV option to synchronize each coverpoint with an event?
Thank you in advance!
Regards, Anca
|
|
|
|
|
DAVE
Posts:56
 |
| 12/07/2007 1:28 AM |
|
No, all coverpoints need the same sampling event. You could use the iff clause to disable sampling of a coverpoint, but it's probably not necessary. As long as you're not doing transition coverage and the at_least option is set to one, it won't matter if you sample the static variables multiple times; you'll still get the same coverage.
Dave
|
|
|
|
|
BUHUS
Posts:6
 |
| 12/19/2007 10:08 AM |
|
Hi Dave,
Thank you for the reply! The issue was , for the time being, simplified by sampling all fields(static and dinamic) at the end of the simulation even if I am not very happy about it since I wanted to catch all transitions of dinamic fields.
Regards, Anca
|
|
|
|
|
|
| You are not authorized to post a reply. |
|
|
|
ActiveForums 3.7
|
|
|

|
|
|
|
|
|
|
|
|
|
 |
|