Circuits, methods, and apparatus for training a phase shift circuit to
provide a phase shift for improved data recovery. A specific embodiment
of the present invention provides a variable delay cell. A delay through
the variable delay cell is changed while training patterns are received.
The presence of errors in the received data pattern is tracked, and from
the presence or absence of errors a preferred delay is selected and used
for receiving data.