The EST can be configured to generate CPTS
timestamp events for selected express traffic. The EST timestamp
events use the CPTS host event type
(CPSW3_CPSW_NU_CPTS_EVENT_1_REG[23-20] EVENT_TYPE = 7 decimal. The
EST timestamps will not override host sent timestamps for packets
that were sent from the host with an enabled host timestamp.
- EST Events (host events) contain the below information:
- Time Stamp of the selected express packet.
- The event CPSW3_CPSW_NU_CPTS_EVENT_1_REG[28-24]
PORT_NUMBER indicates the transmit port
number.
- The event CPSW3_CPSW_NU_CPTS_EVENT_1_REG[23-20]
EVENT_TYPE is decimal 7 (host event).
- The event CPSW3_CPSW_NU_CPTS_EVENT_1_REG[23-20]
MESSAGE_TYPE indicates the packet transmit
hardware switch priority.
- The event CPSW3_CPSW_NU_CPTS_EVENT_1_REG[15-0]
SEQUENCE_ID upper nibble indicates the packet
receive port number.
- The event CPSW3_CPSW_NU_CPTS_EVENT_1_REG[15-0]
SEQUENCE_ID lower byte indicates the sequence
number of the express packet in numerical order.
The first event is event one, the second is event
two and so on. The sequence ID rolls over to zero
after 0xFF (8-bits).
- The event domain is the value from the
CPSW3_CPSW_NU_EST_TS_DOMAIN_REG[7-0] EST_TS_DOMAIN
register.
- When
CPSW3_CPSW_NU_CPSW_NU_ETH_MAC_i_PN_EST_CONTROL_REG[2]
EST_TS_EN is set, timestamp events will be generated
on selected express traffic.
- When
CPSW3_CPSW_NU_CPSW_NU_ETH_MAC_i_PN_EST_CONTROL_REG[3]
EST_TS_FIRST is also set, events will be generated
only on the first express packet in each time
interval. If
CPSW3_CPSW_NU_CPSW_NU_ETH_MAC_i_PN_EST_CONTROL_REG[4]
EST_TS_ONEPRI is also set then the event will only
be on the first
CPSW3_CPSW_NU_CPSW_NU_ETH_MAC_i_PN_EST_CONTROL_REG[7-5]
EST_TS_PRI express packet in the time interval. If
CPSW3_CPSW_NU_CPSW_NU_ETH_MAC_i_PN_EST_CONTROL_REG[4]
EST_TS_ONEPRI is clear then the event will be
generated on the first express packet in the time
interval on any priority.
- When
CPSW3_CPSW_NU_CPSW_NU_ETH_MAC_i_PN_EST_CONTROL_REG[3]
EST_TS_FIRST is clear, events will be generated on
every express packet. If
CPSW3_CPSW_NU_CPSW_NU_ETH_MAC_i_PN_EST_CONTROL_REG[4]
EST_TS_ONEPRI is set then the event will be
generated on every
CPSW3_CPSW_NU_CPSW_NU_ETH_MAC_i_PN_EST_CONTROL_REG[7-5]
EST_TS_PRI express packet. If
CPSW3_CPSW_NU_CPSW_NU_ETH_MAC_i_PN_EST_CONTROL_REG[4]
EST_TS_ONEPRI is clear then event will be generated
on every express packet on any priority.