opentitan icon indicating copy to clipboard operation
opentitan copied to clipboard

Coverage collection on common TL components

Open udinator opened this issue 5 years ago • 5 comments

Stems from a discussion in #6974.

A main question is (using the KMAC as an example), should we completely exclude modules like tlul_adapter_sram and tlul_adapter_sram_msgfifo from coverage collection if the designer thinks it is not very useful, keep full coverage collection on these modules as there isn't a verification source-of-truth for these (and different HWIPs use different parameterizations of these modules), or do something in between?

udinator avatar Jul 08 '21 00:07 udinator

With no "block level" verification for these components, the only sensible approach seems (to me) that we should enable coverage collection for all users, waiving any unused functionality. If this turns out to be a pain, the next step would be to do separate verification for them and then turn coverage collection off at the use sites.

rswarbrick avatar Jul 12 '21 10:07 rswarbrick

Agree with @rswarbrick

The adapter has many parameters. Different IP uses different parameters. I don't think we should exclude it without proving it's actually covered. https://github.com/lowRISC/opentitan/blob/8888540036f453a40d23e345064e1af5eb644210/hw/ip/tlul/rtl/tlul_adapter_sram.sv#L20-L34

weicaiyang avatar Jul 12 '21 18:07 weicaiyang

IPs use and are going to use highly configurable primitives and TL components. They components should be easy to use, does not require the users to understand their internal implementations but the interfaces.

If we mandate the users ( Designers ) to check the coverages for those primitives / components, it requires the designers to spend times on understanding every primitives they instantiated.

I think better approach is to check the components/ primitives standalone or at least FPV and exclude them from the coverage.

eunchan avatar Jul 12 '21 19:07 eunchan

Lets exclude these blocks from simulation coverage ONLY if it is deemed too much of an effort with very little ROI to exclude the uncovered bits within these blocks (AND we have at least an FPV tb on it). My hope is once the user has an understanding of why things are uncovered in a primitive in one block, it should be easier to analyze the same primitives in other blocks, so it should get progressively quicker.

I understand analyzing and waiving every uncovered item manually is hard, but it is a one time effort during the V3 stage. Plus, now that the UNR flow is setup, it should weed out all unreachables, so the uncovered set should be much smaller.

sriyerg avatar Jul 12 '21 20:07 sriyerg

Closing as a solution seems to have been agreed upon

GregAC avatar Mar 24 '22 11:03 GregAC