fvm.toolchains.questa_pkg.parsers.parse_simcover module

Parser for simulation coverage reports.

This module provides functions to parse the coverage tables and convert them into a unified coverage table format.

It is specifically for Questa VSim results.

fvm.toolchains.questa_pkg.parsers.parse_simcover.merge_coverage(sim_cov, reach_cov)[source]

The simulation coverage results after excluding the unreachable elements

fvm.toolchains.questa_pkg.parsers.parse_simcover.parse_coverage_report(input_file)[source]

Parses the coverage report from the input file and return the results.

Parameters:

input_file – Path to the input coverage report file.

Returns:

A list of coverage data for each instance.

fvm.toolchains.questa_pkg.parsers.parse_simcover.sum_coverage_data(coverage_results)[source]

Sums the coverage data across all instances and calculates percentages.

Parameters:

coverage_results – A list of coverage data for each instance.

Returns:

A dictionary containing the summed coverage data with percentages.

fvm.toolchains.questa_pkg.parsers.parse_simcover.unified_format_table(table, goal=90.0)[source]

Convert coverage summary table into unified table format.

Parameters:
  • table – Coverage summary table as returned by sum_coverage_data.

  • goal – Coverage goal percentage.

Returns:

List of dictionaries with unified coverage data format.