Getting previous read data instead of current one

In reply to chr_sue:

In reply to Subrahmanyam:
It works percfectly. It’s doing what you are instructing. It writes to addr = 0 and it reads from addr = 3, which has still the reset value.
Where is your problem.

Hi ,
Here is my problem…
Here are the values I write into the addresses
Addr = 0, data = 0
Addr = 1, data = 1
Addr = 2, data = 2
so on … bit when I read back I get
Addr = 0, data = 0
Addr = 1, data = 0
Addr = 2, data = 1
Addr = 3, data = 2
so on …
inspite of driver waiting for one cycle to get the read data, the sequence is getting back the previous data… Is my problem clear?