User guide

24-245
SystemVerilog Testbench Constructs
The commands above direct VCS to find the coverage data for the
specified instance name in the database, and load it into the coverage
instance.
In the Example 1-2, there is a SystemVerilog class MyClass with an
embedded covergroup covType. Two objects obj1 and obj2 are
instantiated, each with the embedded covergroup covType. VCS
will find the coverage information for the coverage instance
obj1:covType from the database file Run1, and load this coverage
data into the newly instantiated obj1 object. Note that the object
obj2 will not be affected as part of this load operation.
Example 24-46
class MyClass;
integer m_e;
covergroup covType @m_e;
cp1 : coverpoint m_e;
endgroup
endclass
...
MyClass obj1 = new;
$covgLoadInstFromDbTest(obj1,"Run1");
MyClass obj2 = new;
Note:
The compile time or runtime options
-cm_dir and -cm_name will
over write the calls to coverage_set_test_database_name
and loading coverage data tasks.
-cm_dir directory_path_name
As a compile-time or runtime option, specifies an alternative name
and location for the default simv.vdb directory, VCS automatically
adds the extension .vdb to the directory name if not specified.