A method of calibrating an elastic interface is provided to automatically achieve
a minimal cycle delay through the interface. An existing self-alignment interface
(i.e. elastic interface) is used to de-skew within a cycle and stage the data to
have it arrive on a given, programmed target cycle. However, this target cycle
must be calculated in advance and may be larger than it needs to be, causing more
latency on the interface. This method is used to determine the earliest target
cycle (with or without additional guard-band). This target cycle is used to adjust
the interface automatically to achieve this earliest target cycle. The determination
of earliest target cycle can be done once, continuously, or using a sample window.
The method also can be used for interfaces that have frequency multipliers or phase
shifts at its boundaries.