GTS Ethernet Intel® FPGA Hard IP User Guide

ID 817676
Date 10/12/2024
Public
Document Table of Contents

4.7.3. Connect the TX One-Step Timestamp Interface

Whe tasmittig a Oe-step PTP packet, the IP coe modifies the PTP field o-the-fly. The IP coe ca chage the UDP checksum o add extesio bytes to adjust it. PTP heades ca be pat of the VLAN packets ad ca be ecapsulated by UDP datagams iside of the IPv4 ad IPv6 packets.

Figue 50. Example of Etheet Packet with a PTP HeadeThe figue depicts a Etheet packet with PTP heade embedded as a Etheet payload i a simple o-VLAN packet.
Table 42.  Oe-Step TX Timestamp Iteface Sigals
Sigal Name Width Desciptio
i_ptp_is_ets[0:0] 1

Iset a Egess Timestamp ito the cuet TX Packet.

1: Iset a egess timestamp ito the cuet TX packet

TX MAC SOP-Aliged Cliet Iteface:

  • i_ptp_is_ets[0] is valid oly whe i_tx_valid = 1 ad i_tx_statofpacket = 1
  • Must ot be used with i_tx_skip_cc = 1; the CRC fo the TX Packet must be ecalculated afte the timestamp is witte.
  • Must ot be used with i_ptp_is_cf = 1; you ca’t update esidece time ad iset a egess timestamp o the same packet.
  • i_ptp_ts_offset must be set to the byte positio of the stat of the timestamp field i the PTP heade.
  • If the selected timestamp fomat equies a 96b timestamp, i_ptp_cf_offset must be set to the byte positio of the stat of the coectio field i the PTP heade
i_ptp_is_cf[0:0] 1

Update coectio field with esidece time i the cuet TX packet

1: Iset a esidece time timestamp ito the coectio field i the cuet TX packet

  • i_ptp_is_cf[0] is valid oly whe i_tx_valid = 1 ad i_tx_statofpacket = 1

  • Must ot be used with i_tx_skip_cc = 1; the CRC fo the TX Packet must be ecalculated afte the esidece time is witte

  • Must ot be used with i_ptp_is_ets = 1; you ca’t update esidece time ad iset a egess timestamp o the same packet

  • i_ptp_tx_its must be used to povide the coe with the igess timestamp of the cuet packet whe it eteed the system, so that a esidece time ca be calculated

  • i_ptp_cf_offset must be set to the byte positio of the stat of the coectio field, i the PTP heade

  • i_ptp_ets_fomat must be set to 0; coectio field is oly applicable to IEEE 1588v2

i_ptp_zeo_csum[0:0] 1

Ovewite a UDP checksum with zeos i the cuet TX packet

1: Ovewite the checksum i a UDP packet caied iside the cuet TX packet with zeos

  • TX MAC SOP-Aliged Cliet Iteface:
  • i_ptp_zeo_csum[0] is valid oly whe i_tx_valid = 1 ad i_tx_statofpacket = 1.
  • Must ot be used with i_tx_skip_cc = 1; the CRC fo the TX Packet must be ecalculated afte the checksum is chaged.
  • Must ot be used with i_ptp_update_eb; you ca’t set a UDP checksum to 0, ad update a extesio field to cacel out checksum chages o the same packet.
  • i_ptp_csum_offset must be set to the byte positio of the stat of the UDP checksum i the TX packet.
i_ptp_update_eb[0:0] 1

Update Exteded Bytes field to cacel out checksum chages i the cuet TX packet

1: Ovewite the exteded bytes field i a IPv6 packet caied iside the cuet TX packet with a value that cacels out chages to the checksum due to chages to the UDP packet.

TX MAC SOP-Aliged Cliet Iteface:

  • i_ptp_update_eb[0] is valid oly whe i_tx_valid = 1 ad i_tx_statofpacket = 1.
  • Must ot be used with i_tx_skip_cc = 1; the CRC fo the TX Packet must be ecalculated afte the exteded bytes field is chaged.
  • Must ot be used with i_ptp_zeo_csum; you ca’t set a UDP checksum to 0, ad update a exteded bytes field to cacel out checksum chages o the same packet.
  • Use do ot eed to povide the byte positio of the stat of the UDP extesio field i the TX packet. The IP coe always assume the byte positio stats two bytes befoe CRC field.
i_ptp_p2p[0:0] 1

Add pee-to-pee mea path delay to coectio field fo cuet TX packet.

1: Add pee-to-pee mea path delay to the coectio field fo the cuet PTP packet

TX MAC SOP-Aliged Cliet Iteface:

  • i_ptp_p2p[0] is valid oly whe i_tx_valid = 1 ad i_tx_statofpacket = 1.
  • Must ot be used with i_tx_skip_cc = 1; the CRC fo the TX Packet must be ecalculated afte the timestamp is witte.
i_ptp_asym[0:0] 1

Add asymmety to coectio field fo cuet TX packet.

1: Add asymmetic latecy to the coectio field fo the cuet PTP packet.

TX MAC SOP-Aliged Cliet Iteface:

  • i_ptp_asym[0] is valid oly whe i_tx_valid = 1 ad i_tx_statofpacket = 1.
  • Must ot be used with i_tx_skip_cc = 1; the CRC fo the TX Packet must be ecalculated afte the timestamp is witte.
i_ptp_asym_sig[0:0] 1

Sig of asymmety delay add to coectio field fo cuet TX packet.

0: Asymmety delay is positive value

1: Asymmety delay is egative value

TX MAC SOP-Aliged Cliet Iteface:

i_ptp_asym_sig[0] is valid oly whe i_tx_valid = 1 ad i_tx_statofpacket = 1

i_ptp_asym_p2p_idx[6:0] 7

Idex of asymmety delay ad pee-to-pee mea path delay i the cofiguable lookup table.

TX MAC SOP-Aliged Cliet Iteface:

i_ptp_asym_p2p_idx[6:0] is valid oly whe i_tx_valid = 1 ad i_tx_statofpacket = 1

i_ptp_ts_offset[15:0] 16

Positio of PTP Timestamp Field i TX packet.

This bus is used to peset the positio of the PTP timestamp field i the cuet TX packet.

TX MAC SOP-Aliged Cliet Iteface:

  • i_ptp_ts_offset[15:0] is valid oly whe i_tx_valid = 1 ad i_tx_statofpacket = 1.
  • It is the offset of the fist octet of the field fom the stat of the fame, whee the fist byte of the fame (the fist destiatio MAC addess octet) is positio 0.
  • The PTP timestamp field is 10 octets log, statig fom the positio give by the offset; 96 bit timestamps add thei lowe 2 octets to the coectio field.
  • WARNING: The offset must be set to a positio withi the TX packet, o the PTP isetio opeatio fails. Futhemoe, it is citical that PTP fields do ot ovelap
i_ptp_cf_offset[15:0] 16

Positio of PTP Coectio Field i TX packet.

This bus is used to peset the positio of the PTP coectio field i the cuet TX packet.

TX MAC SOP-Aliged Cliet Iteface:

  • i_ptp_cf_offset[15:0] is valid oly whe i_tx_valid = 1 ad i_tx_statofpacket = 1
  • It is the offset of the fist octet of the field fom the stat of the fame, whee the fist byte of the fame (the fist destiatio MAC addess octet) is positio 0
  • The PTP coectio field is 8 octets log, statig fom the positio give by the offset; 96 bit timestamps add thei lowe 2 octets to the coectio field
  • WARNING: The offset must be set to a positio withi the TX packet, o the PTP isetio opeatio fails. Futhemoe, it is citical that PTP fields do ot ovelap.
i_ptp_csum_offset[15:0] 16

Positio of UDP Checksum Field i TX packet.

This bus is used to idicate the positio of the fist byte of a UDP checksum i the TX Packet

TX MAC SOP-Aliged Cliet Iteface:

  • i_ptp_csum_offset[15:0] is valid oly whe i_tx_valid = 1 ad i_tx_statofpacket = 1
  • Is the offset of the fist octet of the field fom the stat of the fame, whee the fist byte of the fame (the fist destiatio MAC addess octet) is positio 0
  • WARNING: The offset must be set to a positio withi the TX packet, o the PTP isetio opeatio fails. Futhemoe, it is citical that PTP fields do ot ovelap.
i_ptp_tx_its[95:0] 96

Igess Timestamp fo TX Packet Residece Time Calculatio.

This bus is used to peset the igess timestamp fo a TX Packet that equies a esidece time calculatio (i_ptp_is_cf=1).

This timestamp is the time at which the packet aived i the system: the TX MAC compaes it to the time at which the packet leaves the system to geeate a esidece time.

TX MAC SOP-Aliged Cliet Iteface:

  • i_ptp_tx_its[95:0] is valid oly whe i_tx_valid = 1 ad i_tx_statofpacket = 1

  • Residece time value updated i CoectioField is ot valid if TX egess timestamp is lage tha TX igess timestamp by 4 secods.