If I have class object extending from ovm_sequence_item and I also create a covergroup in the same class. Normally the covergroup instance is new'd in the new function of class. However if the class object is created using create() method, how do we create the covergroup instance?
class my_trans extends ovm_sequence_item;
no_one = 1;
some_one = 0;
my_trans_c = new();
When my trans is created using create() method, is the new(0 function automatically called? if not, how do I handle this.
Any pointer in this regard would be appreciated.