Covergroup with sampling event

In reply to SUNODH:

Although not a good practice, there is nothing illegal about declaring a sampling event and calling the sample method. Try a different tool.