In reply to cashah85:
Hi Chetan Shah,
Thanks for your reply, I quickly modified the code to add the wait(rg.is_busy == 0); before the backdoor read, the result is still the same.
When I looked at the waveform, actually at that tick of time, the data is being written to the DUT, and backdoor read at the same time… possibly the scheduler of event that put the backdoor read first then only DUT gets updated, which cause the backdoor read reads the previous value.
Thank you.
Hoong Han.