Hi ,
I have tried to sample the cover group by having a sample event @(posedge clk) it was showing errors like
Error-[SNACGWC] Illegal sample call for covergroup
testbench.sv, 28
func_coverage, "c_group"
Covergroup having sampling event is not allowed to be sampled using the
predefined task 'sample'.
I just used a basic example below
edaplayground
So can I know why we can't use a sample event for covergroup for sampling
Are they is any way we can sample even using the event ?