Reporting ignored bins

Why OSVVM?ForumsOSVVMReporting ignored bins

This topic has 2 voices, contains 3 replies, and was last updated by Avatar of Roger Smith Roger Smith 73 days ago.

Viewing 4 posts - 1 through 4 (of 4 total)
Author Posts
Author Posts
April 12, 2017 at 07:24 #1333
Avatar of Roger Smith
Roger Smith

I’m using CoveragePkg.vhd,

I have some bins which I’m using to drive the simulation, using GenBin and setting an ‘AtLeast’ value. This works OK.

I have some illegal bins, using IllegalBin (‘AtLeast’ value is zero) This works OK.

I want to have some bins which do not drive the simulation, but which I’d like to know if they’ve been hit or not. I have 2 options:

  • If I use GenBin with AtLeast set to zero, an AtLeast value of 1 is enforced (so if the bin isn’t hit then I can’t check IsCovered).
  • If I use IgnoreBin then when I WriteBin they are not reported so I can’t see if the bins have been hit or not.

Is it possible to have bins which do not affect IsCovered if they have zero count, but do get reported so I can see whether they have a count or not?

April 12, 2017 at 11:22 #1334
Avatar of Jim Lewis
Jim Lewis

Hi Roger,

Ignore bins always have a count of 0.   So even if they were reported, it would not do what you want.

You could do two separate coverage bins: one to generate stimulus and one to collect results.   If you use a procedure to set the bins, the common parts would only need to be generated once.  

I added a note to look at coverage bins with a coverage goal of 0 for a future revision.

Best Regards,


April 13, 2017 at 03:36 #1335
Avatar of Roger Smith
Roger Smith

Thanks Jim.



April 13, 2017 at 03:54 #1336
Avatar of Roger Smith
Roger Smith


Can I access the values in the bins?

The bin counts (including anything in illegal bins) get reported to the ModelSim Transcript window (using WriteBin).

Is it possible for my VHDL (or TCL) to access the values?

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.