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
Covergroup having sampling event is not allowed to be sampled using the
predefined task 'sample'.
I just used a basic example below
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 ?