Functional coverage on constraints

Q. If i have declared a field rand and given constraint to it. I have written coverpoint on that field, so is it like a field which have constraint will throw error in functional coverage?

In reply to tech_savvy:

The constraint condition on the rand variable will ensure that the possible values for the variables are within the defined limits.
Hence, you need to write coverage only on the valid values as defined by your constraint conditions.

For example, if you declare an 8-bit rand variable A, then there are 256 possible values that the variable can take. But if you write a constraint on this variable such as :

constraint A_range {A inside {[0:100]}}

then the variable A can take values only between 0 to 100.