svt_err_check_stats_cov Class Reference

Inheritance diagram for class svt_err_check_stats_cov:

List of all members.


Detailed Description

This class defines the covergroup for the svt_err_check_stats instance.



Public Member Functions

function uvm_object  create ( string name = "" )
virtual function uvm_object_wrapper  get_object_type ( )
static function type_id  get_type ( )
virtual function string  get_type_name ( )
function void  new ( string name = "", bit enable_covergroup = 1 )
function void  sample_status ( bit status_bit, string message = "" )
function void  set_enable_fail_cov ( bit enable_fail_cov )
function void  set_enable_pass_cov ( bit enable_pass_cov )
function void  set_unique_id ( string unique_id )
function void  shape_cov ( )

Public Attributes

static bit  initial_enable_fail_cov = 1; 
static bit  initial_enable_pass_cov = 0; 
static const string  type_name = "svt_err_check_stats_cov"; 

Protected Attributes

protected bit  enable_fail_cov = svt_err_check_stats_cov; 
protected bit  enable_pass_cov = svt_err_check_stats_cov; 
protected bit  status_bit 

Member Typedefs

 typedef class  type_id 

Covergroups

covergroup  status  ( )


Member Function Documentation

  function uvm_object
 svt_err_check_stats_cov::create

 (  string name = ""  ) 


 Superseded functions 
 uvm_object :: create 

 virtual function uvm_object_wrapper
 svt_err_check_stats_cov::get_object_type

 (   ) 


 Superseded functions 
 uvm_object :: get_object_type 

 static function type_id
 svt_err_check_stats_cov::get_type

 (   ) 


 Superseded functions 
 uvm_object :: get_type 

 virtual function string
 svt_err_check_stats_cov::get_type_name

 (   ) 


 Superseded functions 
 uvm_object :: get_type_name 

  function void
 svt_err_check_stats_cov::new

 (  string name = "", bit enable_covergroup = 1  ) 


CONSTRUCTOR: Creates a new instance of the svt_err_check_stats_cov class.

name - name given to this instance.

enable_covergroup - Qualifier whether to create the covergroup or not.

  function void
 svt_err_check_stats_cov::sample_status

 (  bit status_bit , string message = ""  ) 


Method to update the sample value for the covergroup.

It sets the "status_bit" field. It calls the sample method for the "status" covergroup if the "status" covergroup has been created.

status_bit - Sampling bit for the covergroup.

message - Optional string which may be used in extended classes to differentiate 'fail' cases. Ignored by the base class implementation.

  function void
 svt_err_check_stats_cov::set_enable_fail_cov

 (  bit enable_fail_cov  ) 


Sets the "enable_fail_cov" bit for the "status" covergroup.

enable_fail_cov - Bit indicating to enable "fail" bins

  function void
 svt_err_check_stats_cov::set_enable_pass_cov

 (  bit enable_pass_cov  ) 


Sets the "enable_pass_cov" bit for the "status" covergroup.

enable_pass_cov - Bit indicating to enable "pass" bins

  function void
 svt_err_check_stats_cov::set_unique_id

 (  string unique_id  ) 


Method to set the instance name for any covergroup contained in this class, based on the unique_id provided as a representation of the associated check.

It sets the instance of the "status" covergroup to {unique_id,"_status"} if the "status" covergroup has been created.

unique_id - Unique identifier for the covergroup.

  function void
 svt_err_check_stats_cov::shape_cov

 (   ) 


Member Attribute Documentation

 protected bit  attribute
 svt_err_check_stats_cov::enable_fail_cov = svt_err_check_stats_cov


Enables the "fail" bins of the status covergroup

 protected bit  attribute
 svt_err_check_stats_cov::enable_pass_cov = svt_err_check_stats_cov


Enables the "pass" bins of the status covergroup

 static bit  attribute
 svt_err_check_stats_cov::initial_enable_fail_cov = 1


Value used to initialize the enable_fail_cov field when the next cov instance is created.

 static bit  attribute
 svt_err_check_stats_cov::initial_enable_pass_cov = 0


Value used to initialize the enable_pass_cov field when the next cov instance is created.

 protected bit  attribute
 svt_err_check_stats_cov::status_bit


The value being covered

 static const string  attribute
 svt_err_check_stats_cov::type_name = "svt_err_check_stats_cov"


Member Typedef Documentation

 typedef class  svt_err_check_stats_cov::type_id
 Typedefe'd string ==>   uvm_object_registry#(svt_err_check_stats_cov,)


Member CoverGroup Documentation

  covergroup
 svt_err_check_stats_cov::status


Covergroup which would indicate the pass and fail hits for a particular svt_err_check_stats.

covergroup status;
     option.per_instance = 1;
    option.goal = 100;
    pass : coverpoint status_bit iff (enable_pass_cov) {
      bins pass = {1};
       ignore_bins pass_i = {1} iff (!enable_pass_cov);
    }
    
fail : coverpoint !status_bit iff (enable_fail_cov) {
      bins fail = {1};
       ignore_bins fail_i = {1} iff (!enable_fail_cov);
    }
  
endgroup