The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

SystemC::Coverage - Coverage analysys utilities

SYNOPSIS

  use SystemC::Coverage;

  $Coverage = new SystemC::Coverage;
  $Coverage->read (filename=>'cov1');
  $Coverage->read (filename=>'cov2');
  $Coverage->write (filename=>'cov_together');

DESCRIPTION

SystemC::Coverage provides utilities for reading and writing coverage data, usually produced by the SP_AUTO_COVER function of the SystemPerl package.

The coverage data is stored in a global hash called %Coverage, thus subsequent reads will increment the same global structure.

METHODS

clear

Clear the coverage variables

inc (args..., value)

Increment the coverage statistics, entering keys for every value. The last value is the increment amount.

read (filename=>filename)

Read the coverage data from the file, with error checking.

write (filename=>filename)

Write the coverage variables to the file in a form where they can be read back by simply evaluating the file.

SEE ALSO

vcoverage

AUTHORS

Wilson Snyder <wsnyder@wsnyder.org>