Can we sample coverpoints which are design parameters?

In reply to Karmapanchal:

Hi:

Can a string type coverpoint be covered? ? Is it legal?

As some of the parameters in the design are string type and others are int.

So when I override sample function, I can do it as below:

covergroup cg_param with function sample (string mode, string something_else);

Thanks,
Karma