In reply to dave_59:
Hello Dave,
the stack trace says:
HDL call sequence:
stopped at ./some_path/RESET_IF_coverage.svh 31 Function sample
This is exactly where I defined the coverpoint. Coming to the contructor of the covergroup, I see, I did it in the coverage class.
class coverage extends uvm_subscriber #(item);
uvm_component_utils macro
item item_inst;
reset_coverage cov_group;
function new (string name, uvm_component p);
super.new(name, p);
item_inst = new();
cov_group = new(item_inst);
endfunction
function void write (input item t);
item_inst = t;
cov_group.sample();
endfunction
endclass
Any suggestions please?