IMPORTANT NOTICE: Please be advised that the Verification Academy Forums will be offline for scheduled maintenance on Sunday, April 6th at 2:00 US/Pacific.
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'.