Code Coverage

Rendering

Coverage Measure

Coverage Code Decoration

ModelSim / QuestaSim

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

Gcov

To decorate your code with coverage reports formatted with Gcov (GHDL or Verilator), 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