RAL Coverage model : Coverage sampled before value gets updated in RAL Model

Hi ,

I am using RAL Model with Coverage. I am using set_auto_predict(0)

I am using normal sequences and not the RAL sequences.

While Running Simulation , I see messages from the adapter about the write value being printed at Time = abc.
At Time = abc , Also I see a message from the sample function , printing the sampled value.
At Time = abc (but after the above activity) , I see message from the Predictor that value is updated.

My Problem is Coverage sampling ia happening before the Value gets updated in the RAl Model.

Kindly Guide as to what is wrong.

Thanks
Ashish

In reply to Ashish kalia:

Are you sure it is sampling the wrong data? Did you check the data? Because it happens all at the same time I’d not say wrong data are sampled. What kind of Register coverage do you use? Is it your own coverage?

In reply to chr_sue:

The Coverage is the Built-in Coverage of RAL Model.

The Value of field for the coverpoint is accessed this way → Field.value[10:19]

Thanks
Ashish

In reply to Ashish kalia:

Example

ABC : coverpoint ABC.value[15:0] {

}

In reply to Ashish kalia:

You might call the sample method at a wronmg time or from a wrong place.
Without seeing more code it is near impssible to give a good advice.
Did you review the example Uvm_spi_bl_reg_tb
from here
https://verificationacademy.com/cookbook/cookbook-code-examples#UVM_Examples:#UVM_Examples:#UVM_Examples: