Can we sample coverpoints which are design parameters?

In reply to dave_59:

Hi Dave:

Thanks you for the solution. I have a parameter named channel_mode.
with all the possible values as below:
duplex
rx
tx

My configurable design which contains these parameter passes the value as string. For example:

parameter channel_mode = “duplex”
or
parameter channel_mode = “rx” or “tx”

Now, if I want to develop coverage model for this parameter as a cover point. How should I do it?

Should I do it as below:

covergroup cg with function sample(string channel_mode);
cp: coverpoint channel_mode == “duplex” {
bins duplex = {1};
}

// How should I put the bins for other two values i.e. “tx” and “rx” ?
endgroup

Thanks,
Karma