Reply To: Code Coverage with Aldec Riviera Pro
Why OSVVM™? › Forums › OSVVM › Code Coverage with Aldec Riviera Pro › Reply To: Code Coverage with Aldec Riviera Pro
Hi Michael,
First a quick answer:
Do “SetCoverageSimulateEnable true” before you build OSVVM libraries as well as anything else you don’t want coverage collected for.
Why:
Currently when analyze is run for Riviera-PRO by default we do:
vcom -${VhdlVersion} -dbg -relax -work ${LibraryName} {*}${OptionalCommands} ${FileName}
The “-dbg” flag is for debugging. Interestingly it also signals Riviera-PRO to collect certain coverage metrics.
When you do “SetCoverageSimulateEnable true” it runs the above vcom without the “-dbg” flag.
This is something that will be addressed in the next release (end of June). Especially as when OSVVM is analyzed, most do not need the “-dbg” flag set.
Are you running Riviera-PRO interactively or batch (such as using vsimsa console)? If you are using vsimsa console, I can I can do a quick fix (because we already detect this) – otherwise, some though has to be put into feature naming.
Best Regards,
Jim