RegisterLogin  
Update Profile
   
You are here: Forum  
Minimize 
SVUG Community Forum
Subject: illegal_bins in Functional coverage?
Prev Next
You are not authorized to post a reply.

Author Messages
ManmohanUser is Offline

Posts:2

08/30/2007 4:00 AM  
Hello Friends,

I have a doubt about the coverage point.

Can we define illegal_bins = default in a coverpoint.

Suppose i have a one vector reg ΐ:0] check;
Can i write the coverpoint like this
coverpoint check{
bins check_value[] ={3'b001,3,b010,3,b100};
illegal_bins = default;
}
I want to display the error message anytime illegal bin occurs. If this is not possible
then what can be a possible workaround?
If illegal_bins can not be defined as default then what about ignore_bins? Can they be defined as default?


Thanks
Manmohan
JasonUser is Offline

Posts:7

09/21/2007 4:06 AM  
Manmohan

You can specify illegal_bins as a default bin, if you want to flag an error. However you have to give it a name. So in your example, it would look like:


coverpoint check{
bins check_value[] ={3'b001,3,b010,3,b100};
illegal_bins bad_stuff = default;
}

There are a couple of things to note though:

- Illegal bins aren't taken account of in the coverage figures (which is usually what you want anyway). Although the number of times the bin is hit is counted and can be queried.
- You might want to think carefully about mixing checks and coverage.

This last point is a matter of methodology. Sometimes it's convenient and makes sense to do checks in the functional coverage, e.g. maybe illegal states in FSMs. Other times putting checks in the coverage leaves them open to being turned off when coverage isn't switched on, or being burried in non obvious parts of the design.

BTW, I don't know if the example above was representative of what you want to do, but there's some sneaky things you can do with functions in coverage defintions, e.g.

cp1 : coverpoint $onehot(check) {
    illegal_bins more_bad_stuff = default;
}

Jason
--
jason.sprott@verilab.com
www.verilab.com



You are not authorized to post a reply.
Forums > General Discussion > Main Discussion Area > illegal_bins in Functional coverage?



ActiveForums 3.7
  

 Copyright 2008 by SystemVerilog User Group Contact Us    Privacy Statement