4.2.1. Packet Classifier
4.2.2. Ethernet Header Insertion/Removal
4.2.3. Concatenation/De-concatenation
4.2.4. Header Mapper/De-Mapper
4.2.5. eCPRI IWF Type 0
4.2.6. eCPRI Message 5 Packet Parser
4.2.7. Message Type 5 Flow
Remote Request Flow
Request Flow
Special Handling of Source and Destination MAC Address for Message Type 5
4.2.8. Packet Queue
4.2.9. eCPRI Message Type
4.2.10. Error Handling
4.2.11. RX Throttling
4.2.9.1. eCPRI Message Type 0- IQ Data Transfer
4.2.9.2. eCPRI Message Type 1- Bit Sequence Transfer
4.2.9.3. eCPRI Message Type 2- Real Time Control Data
4.2.9.4. eCPRI Message Type 3- Generic Data Transfer
4.2.9.5. eCPRI Message Type 4- Remote Memory Access
4.2.9.6. eCPRI Message Type 5- One-Way Delay Measurement
4.2.9.7. eCPRI Message Type 6- Remote Reset
4.2.9.8. eCPRI Message Type 7- Event Indication
4.2.9.9. eCPRI Message Type 64- 255 Vendor Specific
5.1. eCPRI IP Clock Signals
5.2. Power, Reset, and Firewalls Signals
5.3. TX Time of Day Interface
5.4. RX Time of Day Interface
5.5. Interrupt
5.6. Configuration Avalon® Memory-Mapped Interface
5.7. Ethernet MAC Source Interface
5.8. Ethernet MAC Sink Interface
5.9. External ST Source Interface
5.10. External ST Sink Interface
5.11. eCPRI IP Source Interface
5.12. eCPRI IP Sink Interface
5.13. Miscellaneous Interface Signals
5.14. IWF Type 0 eCPRI Interface
5.15. IWF Type 0 CPRI MAC Interface
5.15.1. CPRI 32-bit IQ Data TX Interface
5.15.2. CPRI 64-bit IQ Data TX Interface
5.15.3. CPRI 32-bit Ctrl_AxC TX Interface
5.15.4. CPRI 64-bit Ctrl_AxC TX Interface
5.15.5. CPRI 32-bit Vendor Specific TX Interface
5.15.6. CPRI 64-bit Vendor Specific TX Interface
5.15.7. CPRI 32-bit Real-time Vendor Specific TX Interface
5.15.8. CPRI 64-bit Real-time Vendor Specific TX Interface
5.15.9. CPRI Gigabit Media Independent Interface (GMII)
5.15.10. CPRI IP L1 Control and Status Interface
4.2.7. Message Type 5 Flow
The one-way delay measurement process uses hardware-assisted timestamping via eCPRI message type 5.
The IP offers two measurement flows:
- Remote request flow - initiated by host, measured at target
- Request flow - initiated and measured at host
Remote Request Flow
Figure 11. Software Initiated Hardware Assisted One-Way Measurement Remote Request Flow
In the remote request flow:
- The CPU programs the measurement ID, remote equest, and start bits in the eCPRI Message 5 control register to initiate the one-way delay measurement process.
- The eCPRI message 5 packet parser sends the remote request packet to the PHY.
- The FPGA hosting the target receives the remote request packet.
- In the one-step mechanism, the FPGA hosting the target generates timestamp T1 based on time-of-day on receiving the remote request packet. The parser then forwards the Request packet to MAC or PHY, and the PTP hardware inserts the compensation value CV1 into the packet.
- In the two-step mechanism, the target's packet parser generates timestamp T1 before sending the request packet to PHY and stores timestamp T1 in the FIFO.
- The target checks for valid FIFO entry via a polling mechanism. If a valid entry is present, it reads the entry to obtain timestamp T1. In system diagrams, dotted arrows on the host side indicate the blocks involved in the two-step mechanism.
- The host parser sends a request with follow-up message containing timestamp T1, which refers to the request packet sent in step 5.
- The FPGA hosting the host receives the request packet, and the receiving MAC generates timestamp T2.
- In the one-step mechanism, the parser receives the request packet and collects timestamp T1 from the received packet. It then calculates the compensation value CV2 based on timestamp T2 generated between the MAC and the parser.
- In the two-step mechanism, the parser acting as the host collects timestamp T1 from the request with follow-up message sent in step 7. It then calculates the compensation value CV2 based on timestamp T2 generated between the MAC and the parser.
- After decoding the eCPRI packet, the packet parser sends a response packet containing timestamp T2 and the calculated compensation value CV2 to the MAC block.
- The FPGA hosting the target clock receives the Response packet, and the receiving MAC generates timestamp T2.
- With all four values — T1, T2, CV1, and CV2 — available, the target stack calculates the final one-way delay.
Request Flow
Figure 12. Software Initiated HW Assisted One Way Measurement Request Flow
- The CPU program sets the measurement ID, remote request, and start bits in the eCPRI message 5 control register to initiate the one-way delay measurement process.
- In the one-step mechanism, the FPGA hosting the host generates timestamp T1 based on the time-of-day output for the request packet. The parser then sends the request packet to the MAC or PHY, and the PTP hardware inserts the compensation value CV1 into the packet.
- In the two-step mechanism, the packet parser generates timestamp T1 before sending the request packet to the PHY and stores this timestamp in the FIFO.
- The parser checks for a valid entry in the FIFO via a polling mechanism. If a valid entry is found, it reads the entry to retrieve timestamp T1. In diagrams, dotted arrows on the host side indicate the blocks involved in the 2-step mechanism.
- The parser sends a Request with Follow-up message containing timestamp T1, referring to the Request packet sent in Step 3.
- The FPGA hosting the target receives the request packet, and the receiving MAC generates timestamp T2.
- In the one-step mechanism, the parser receives the Request packet and extracts timestamp T1 from the received packet. It then calculates the compensation value CV2 based on timestamp T2 generated between the MAC and the parser.
- In the two-step mechanism, the target parser obtains timestamp T1 from the request with follow-up message sent in Step 5. It then calculates the compensation value CV2 based on timestamp T2 generated between the MAC and the parser.
- After decoding the eCPRI packet, the packet parser sends a Response packet containing timestamp T2 and the calculated compensation value CV2 to the MAC block.
- The FPGA hosting the host clock receives the Response packet containing timestamp T2.
- With T1, T2, CV1, and CV2 available, the host parser calculates the final one-way delay value.
Special Handling of Source and Destination MAC Address for Message Type 5
For FPGA devices initiating a one-way delay measurement, special handling applies to message type 5. When the FPGA sends the first message Type 5 to start the measurement using the same source and destination MAC address and VLAN tag as other messages.
| Step | Description | Action Type | MAC Destination Address | VLAN | Device |
|---|---|---|---|---|---|
| 2 | Remote Request | 0x03 | User Specify | Host | |
| 4 | Request | 0x00 | Source Address from step 2 | From step 2 | Target |
| 11 | Response | 0x02 | Source Address rom step 4 | From step 2 | Host |
For all subsequent messages in the one-way delay measurement process, the FPGA must swap the source and destination MAC addresses for the returning messages. If the incoming packet contains a VLAN tag, the same VLAN tag is included in the return packet. If the incoming packet does not have a VLAN tag, no VLAN tag is added in the return packet, overriding the device’s VLAN setting.
| Step | Description | Action Type | MAC Destination Address | VLAN | Device |
|---|---|---|---|---|---|
| 2 | Remote Request/Follow_Up | 0x04 | User Specify | Host | |
| 4 | Request with Follow_Up | 0x01 | Source Address from step 2 | From step 2 | Target |
| 7 | Follow_Up | 0x05 | Target | ||
| 11 | Response | 0x02 | Source Address from step 7 | From step 7 | Host |
| Step | Description | Action Type | MAC Destination Address | VLAN | Device |
|---|---|---|---|---|---|
| 2 | Request | 0x00 | User Specify | Host | |
| 9 | Response | 0x02 | Source address from step 2 | From step 2 | Target |
| Step | Description | Action Type | MAC Destination Address | VLAN | Device |
|---|---|---|---|---|---|
| 2 | Request/Follow_Up | 0x01 | User specify | Host | |
| 5 | Follow_Up | 0x05 | User specify | Host | |
| 9 | Response | 0x02 | Source address from step 5 | From step 2 | Target |