Example code shown in UVM Cookbook SV guideline 4.10 extended from uvm_component which conflicts with UVM guideline 7.1 which says to extend from uvm_object

UVM Guideline 7.1 (UVM/Guidelines | Verification Academy) says to extend covergroup wrappers from uvm_object. But the example covergroup wrapper shown in SV Guideline 4.10 (SV/Guidelines | Verification Academy) is extended from uvm_component.

In reply to gtakushi:

After thinking about this, it looks like there is no advantage to having the covergroup wrapper inherit from any uvm base class. The covergroup is not created using the factory, theres no procedural code so you can’t use the uvm reporter for debug displays. What is the advantage to having the covergroup wrapper inherit from uvm_object or component?