User guide
21-60
OpenVera Native Testbench
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 Example 20-5, there is a Vera class MyClass with an embedded
coverage object covType. Two objects obj1 and obj2 are
instantiated, each with the embedded coverage group 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 21-2
MyClass {
integer m_e;
coverage_group covType {
sample_event = wait_var(m_e);
sample m_e;
}
}
...
...
MyClass obj1 = new;
obj1.load("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.