Main Content

cv.cvdatagroup

Class: cv.cvdatagroup
Package: cv

Create collection of cvdata objects for model reference hierarchy

Syntax

cvdg = cv.cvdatagroup(cvdo1, cvdo2,...)

Description

cvdg = cv.cvdatagroup(cvdo1, cvdo2,...) creates a cv.cvdatagroup object that contains the specified cvdata objects. A cvdata object contains coverage results of one or more simulations where coverage is enabled.

Examples

expand all

This example shows how to create a cvdatagroup object using two cvdata objects.

Record coverage for slvnvdemo_cv_small_controller.

model_1 = 'slvnvdemo_cv_small_controller';
load_system(model_1)
cvdo1 = cvsim(model_1);

Record coverage for slvnvdemo_powerwindow_controller.

model_2 = 'slvnvdemo_powerwindow_controller';
load_system(model_2)
cvdo2 = cvsim(model_2);

Add the two cvdata objects to a cv.cvdatagroup object.

cvdg = cv.cvdatagroup(cvdo1,cvdo2);