User guide
21-59
OpenVera Native Testbench
In the Example 20-4 below, there is a Vera class MyClass with an
embedded coverage object covType. VCS finds the cumulative
coverage data for the coverage group MyClass:covType in the
database file Run1 and loads it into the covType embedded
coverage group in MyClass.
Example 21-1
MyClass{
integer m_e;
coverage_group covType{
sample_event = wait_var(m_e);
sample m_e;
}
}
...
...
coverage_load_cumulative_cg_data("Run1", "MyClass::covType");
Loading Instance Coverage Data
The coverage data can be loaded for a specific coverage instance.
To load the coverage data for a standalone coverage instance, use
the following syntax:
coverage_instance.load("test_name"[, "dir_name"]);
In this task, "dir_name" is optional. If you do not specify a "dir_name",
by default, simv.vdb is taken as the directory containing the database.
To load the coverage data for an embedded coverage instance, use
the following syntax:
class_object.cov_group_name.load("test_name"[, "dir_name"]);
In this task, "dir_name" is optional. If you do not specify a "dir_name",
by default, simv.vdb is taken as the directory containing the database.