opentitan icon indicating copy to clipboard operation
opentitan copied to clipboard

[dv] Xcelium does not support arrays of covergroups

Open gaurangchitroda opened this issue 7 years ago • 9 comments

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

gaurangchitroda avatar Oct 08 '19 18:10 gaurangchitroda

@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

weicaiyang avatar Oct 08 '19 21:10 weicaiyang

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).

sriyerg avatar Oct 08 '19 21:10 sriyerg

@rasmus-madsen @tunghoang290780 @martin-lueker for visibility.

sriyerg avatar Oct 08 '19 21:10 sriyerg

@sriyerg - Does this mean I should merge my PR #337 without any further modifications? If so, can you please approve from your side?

gaurangchitroda avatar Oct 08 '19 22:10 gaurangchitroda

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-lueker avatar Oct 10 '19 00:10 martin-lueker

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

sriyerg avatar Oct 10 '19 00:10 sriyerg

Has this issue been addressed in the mean time?

msfschaffner avatar Jul 14 '21 23:07 msfschaffner

Yes, we can close this issue. Wrapping covergroups in classes has become the go to method of doing this.

sriyerg avatar Jul 14 '21 23:07 sriyerg

I believe this is done. We wrapped it around with a class.

cindychip avatar Jul 14 '21 23:07 cindychip