Wilson Snyder > SystemPerl-1.341 > SystemC::Coverage

Download:
SystemPerl-1.341.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 1.341   Source   Latest Release: SystemPerl-1.342

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

Clear the coverage variables

delete_item

Delete specified coverage item.

inc (args..., count=>value)

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.

items

Return all coverage items, as a list of SystemC::Coverage::Item objects.

items_sorted

Return all coverage items in sorted order, as a list of SystemC::Coverage::Item objects.

new ([filename=>filename])

Make a new empty coverage container.

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.

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-2013 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

syntax highlighting: