Code Coverage by Testbenches

Rendering

Coverage Measure

Coverage Code Decoration

ModelSim

To decorate your code with coverage reports from ModelSim, see detailed documentation on GitHub.

Gcov

To decorate your code with coverage reports formatted with Gcov, see detailed Gcov documentation to generate Gcov reports. Then, run a scan of your code by adding the following property:

sonar.coverageReportPaths=<path_to_your_xml_gcov_report>

# For instance:
sonar.coverageReportPaths=./coverage.xml