Hi,
I want to write coverage for the real data type. I had written my code as mentioned below :
//Real datatype to store timing
realtime tdqss;
covergroup timing_param_cg (string name=“bank_addr_cg”);
option.per_instance = 1;
option.name = name;
//coverage related to tdqss
tdqss_cp : coverpoint m_tdqss
{
option.range_precision = 0.01;
bins tdqss_min = {-0.25};
bins tdqss_max = { 0.25};
bins tdqss_range[3] = {[-0.24 : 0.24]};
}
endgroup : timing_param_cg
I had written above covergroup in interface and when I had run above code it shout below error :
"Field/method name (range_precision) not in ‘option’ "
So can anyone please tell me how to write coverage for real variable ??