Visible to Intel only — GUID: hbw1481130292365
Ixiasoft
Visible to Intel only — GUID: hbw1481130292365
Ixiasoft
17.6.4. IEEE 1588-2002 Timestamps
The IEEE 1588‑2002 standard defines the Precision Time Protocol (PTP) that enables precise synchronization of clocks in a distributed network of devices. The PTP applies to systems communicating by local area networks supporting multicast messaging. This protocol enables heterogeneous systems that include clocks of varying inherent precision, resolution, and stability to synchronize. It is frequently used in automation systems where a collection of communicating machines such as robots must be synchronized and hence operate over a common time base. 50
The PTP is transported over UDP/IP. The system or network is classified into Master and Slave nodes for distributing the timing and clock information.†
The following figure shows the process that PTP uses for synchronizing a slave node to a master node by exchanging PTP messages.
The PTP uses the following process for synchronizing a slave node to a master node by exchanging the PTP messages:
- The master broadcasts the PTP Sync messages to all its nodes. The Sync message contains the master’s reference time information. The time at which this message leaves the master’s system is t1. This time must be captured, for Ethernet ports, at the PHY interface.†
- The slave receives the sync message and also captures the exact time, t2, using its timing reference.†
- The master sends a follow_up message to the slave, which contains t1 information for later use.†
- The slave sends a delay_req message to the master, noting the exact time, t3, at which this frame leaves the PHY interface.†
- The master receives the message, capturing the exact time, t4, at which it enters its system.†
- The master sends the t4 information to the slave in the delay_resp message.†
- The slave uses the four values of t1, t2, t3, and t4 to synchronize its local timing reference to the master’s timing reference.†
Most of the PTP implementation is done in the software above the UDP layer. However, the hardware support is required to capture the exact time when specific PTP packets enter or leave the Ethernet port at the PHY interface. This timing information must be captured and returned to the software for the proper implementation of PTP with high accuracy.†
The EMAC is intended to support IEEE 1588 operation in all modes with a resolution of 10 ns. When the three EMACs are operating in an IEEE 1588 environment, the Cortex-A53 MPCore processor is responsible for maintaining synchronization between the time counters internal to the three MACs.
The IEEE 1588 interface to the FPGA allows the FPGA to provide a source for the emac_ptp_ref_clk input as well to allow it to monitor the pulse per second output from each EMAC controller.
The EMAC component provides a hardware assisted implementation of the IEEE 1588 protocol. Hardware support is for timestamp maintenance. Timestamps are updated when receiving any frame on the PHY interface, and the receive descriptor is updated with this value. Timestamps are also updated when the SFD of a frame is transmitted and the transmit descriptor is updated accordingly.†
Section Content
Reference Timing Source
System Time Register Module
Transmit Path Functions
Receive Path Functions
Timestamp Error Margin
Frequency Range of Reference Timing Clock
Portions © 2017 Synopsys, Inc. Used with permission. All rights reserved. Synopsys & DesignWare are registered trademarks of Synopsys, Inc. All documentation is provided "as is" and without any warranty. Synopsys expressly disclaims any and all warranties, express, implied, or otherwise, including the implied warranties of merchantability, fitness for a particular purpose, and non-infringement, and any warranties arising out of a course of dealing or usage of trade.
†Paragraphs marked with the dagger (†) symbol are Synopsys Proprietary. Used with permission.