Timing of a write and read strobes for a memory having a double data rate
(DDR) interface are automatically adjusted using write-read operations. A
first and a second value of the write and read strobes are determined for
a first write-read operation having the read data match the write data. A
second write-read operation is performed for each of a plurality of third
values for the write strobe at the second value for the read strobe set.
A center of the third values having the read data match the write data is
determined. A third write-read operation is performed for each of a
plurality of fifth values for the read strobe at the fourth value of the
write strobe. A center of the fifth values having the read data match the
write data is determined. The timing of the write and read strobes are
set to the centers.