[dv] Xcelium does not support arrays of covergroups
Hi Verif-Team,
As some of you may be already aware, Xcelium tools does not seem to support arrays of covergroups. We can make the code more concise by having arrays of covergroups. (for example, taking array of size NUM_GPIO of covergroup that is meant for each gpio pin).
As a workaround, we can enclose covergroup inside class and take array of objects of that class type. However, SystemVerilog LRM does not seem to clearly suggest that array of generic covergroups is not supported inside class. We can still confirm on this.
Best Regards, Gaurang
@sriyerg I think it's fine to wrap covergroup in a class to solve this issue. We'd better not block this for too long. WDYT. Thanks
Understood & makes sense. Please add TODO with link to this issue though so that it is clear why we chose to wrap them in classes (and potential to revisit this later).
@rasmus-madsen @tunghoang290780 @martin-lueker for visibility.
@sriyerg - Does this mean I should merge my PR #337 without any further modifications? If so, can you please approve from your side?
Hi @gaurangchitroda Gaurang, Thanks for undertaking this issue. What is the remaining action item? A test and approval under Xcelium? (I see that #337 is merged.) Thanks Martin
Martin,
The solution we chose is to wrap the covergroup in a class and creating an array of class instances instead. This is not elegant, considering VCS supports creating arrays of covergroup objects directly. IIRC, from a forum on the internet, Questa also seemed to support it. Although, the LRM did not provide clarity on whether we should be able to do this or not. However I think competing simulators supporting this should be a good motivation for Cadence to fix the tool for us.
Can I put this on WD folks (to follow up with Cadence on this limitation and see if we can get them to fix it)? It should be easy to reproduce (Gaurang can share the details).
Thanks Sri
Has this issue been addressed in the mean time?
Yes, we can close this issue. Wrapping covergroups in classes has become the go to method of doing this.
I believe this is done. We wrapped it around with a class.