Tool/software:
Dear TI Team,
I'm implementing a time synchronization scheme using the DP83867IR. My aim is to measure and correct for the transmission delay from device A to device B. The DP83867IR is capable of detecting the SFD in the transmitted packet and provide it on a GPIO. To measure the line delay, I want to make the following measurement:
T1 - Device A Tx SFD
T2 - Device B Rx SFD
T3 - Device B Tx SFD
T4 - Device A Rx SFD
Tline = ((T4 - T1) - (T3 - T2)) / 2.
My problem is that the Tx SFD is detected in the PHYs PCS and there is an additional time before the first byte is transmitted on the wire (MDI). Similarly, there is some unknown time between MDI and Rx SFD detection.
If both devices are DP83867IRs then I could consider those unknown delays as part of the line delay. However, If the PHYs are different and have different internal latencies, this would lead to a poor synchronization.
The only values I can find in the datasheet are the Tx/Rx Latencies (88ns and 288ns), but those are far greater than the delay that I have measured between device A Tx SFD and device B Rx SFD (e.g. with short cable 248ns).
How do I find out the internal delays? Can you provide a value?
I'm using the RGMII Interface and 1000BASE-T.
Best Regards,
Eric Opitz