Scroll to navigation

Coverage(3) User Contributed Perl Documentation Coverage(3)

NAME

SystemC::Coverage - Coverage analysis 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_COVER_INSERT or 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 the coverage variables
Delete specified coverage item.
Increment the coverage statistics, entering keys for every value. The last value is the increment amount. See SystemC::Coverage::Item for the list of standard named parameters.
Return all coverage items, as a list of SystemC::Coverage::Item objects.
Return all coverage items in sorted order, as a list of SystemC::Coverage::Item objects.
Make a new empty coverage container.
Read the coverage data from the file, with error checking.
Write the coverage variables to the file in a form where they can be read back by simply evaluating the file.

DISTRIBUTION

SystemPerl is part of the <http://www.veripool.org/> free SystemC software tool suite. The latest version is available from CPAN and from <http://www.veripool.org/systemperl>.

Copyright 2001-2014 by Wilson Snyder. This package is free software; you can redistribute it and/or modify it under the terms of either the GNU Lesser General Public License Version 3 or the Perl Artistic License Version 2.0.

AUTHORS

Wilson Snyder <wsnyder@wsnyder.org>

SEE ALSO

SystemC::Manual

vcoverage, SystemC::Coverage::Item

2014-08-17 perl v5.26.1