System Verilog Covergroup contruct :
Covergroup is like a user defined type that encapsulates and specifies the coverage. It can be defined in a package, module, program, interface or class Once defined multiple instances can be created using new Parameters to new() enable customization of different instances. A covergroup sepcification can include the following components
- A clocking event that synchronizes the sampling of coverage points
- A set of coverage points
- Cross coverage between coverage points
- Optional formal arguments
- Coverage options
– Ref argument enables different variables to be sampled by different instances of covergroup
Syntax :
covergroup cg;
// Covearge points
endgroup : cg
// create instance
cg cg_inst = new;
|
|
This Articles is written/submitted by puneet (Puneet Aggarwal). You can also contribute to Asicguru.com. Click here to start
|
Prev << Introduction
|