How to receive expected packet in Scoreboard

In reply to deeksha123:

Dealing with file I/O is always non-flexible solution.
You can insert your C-model a the reference model into your UVM testbench. Always you are getting a transaction from your monitor you can send the input transactiob to the ref model. In 0 time you get the expected value. That’s it.