Not sure if this is worthy of a forum but… I ran into a small issue the other day whilst using Deallocate. It appears that it doesn’t reset (set) “LastIndex”.
I used Deallocate then promptly created a load of Bins in the recently Deallocated CovPType, then called ICover and boom, fail (@ if CountMode = COUNT_FIRST and inside(CovPoint, CovBinPtr(LastIndex).BinVal.all) then).
I can’t recall the precise version of CoveragePkg that it was (comes with the release of Questasim, but I can’t tell you which installation because I don’t know, and other reasons which I may not be allowed to discuss) but it looks like it equally applies to CoveragePkg release 2015.06 (which I have installed at home). Maybe I’m way out of date on this package.
The work around was simple enough and merely involved changing CountModeType to COUNT_ALL.
Not sure if this a crease (oversight) in Deallocate or totally intentional but, I thought I’d point it out. Perhaps you can advise me/us on that.
Anyhoo, great stuff this OSVVM, saves *us* a lot of pain.