# Reading from file, File is updating at runtime

**URL:** <https://verificationacademy.com/forums/t/reading-from-file-file-is-updating-at-runtime/31113>\
**Category:** UVM\
**Tags:** UVM, FileReading-FileIO\
**Created:** [October 12, 2015, 2:40pm UTC](https://verificationacademy.com/forums/t/reading-from-file-file-is-updating-at-runtime/31113 "2015-10-12T14:40:33Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![electron1](https://verificationacademy.com/forums/user_avatar/verificationacademy.com/electron1/32/2235_2.png) [@electron1](https://verificationacademy.com/forums/u/electron1)\
**Post date:** [October 12, 2015, 4:49pm UTC](https://verificationacademy.com/forums/t/reading-from-file-file-is-updating-at-runtime/31113/3 "2015-10-12T16:49:47Z")

</div>

_In reply to [dave\_59](https://verificationacademy.com/forums/t/reading-from-file-file-is-updating-at-runtime/31113/2):_

My C-Reference model is running parallel with RTL.

From my SV testbench I am forwarding transaction (ex WRITE: Data and (x,y) Location) to RTL using dedicated interface and also at same time C Model is also getting same transaction using DPI connection. Now based (x,y) location value, both RTL and C Model are calculating Address and updating their MEMORY.

Now my main goal is, RTL is calculating and updating correct memory or not. C Model is giving me one file in which it is providing me Address and Data and based on that address I will reading RTL memory (backdoor access). And by the help of this file provided by golden C Reference model I can compare the data based on the address.

I can also check this after run\_phase, but I need to know that Is it possible to fetch the data during file is still updating from other source? If it is possible then I will definitely go ahead with this approach.

---

_[View the full topic](https://verificationacademy.com/forums/t/reading-from-file-file-is-updating-at-runtime/31113)._
