*In reply to sunils:*It needs to be in the same scope as the class, or you need to put the covergroup in a package and import it.
*In reply to sunils:*It needs to be in the same scope as the class, or you need to put the covergroup in a package and import it.