F-Tile Low Latency Ethernet 10G MAC Intel® FPGA IP Design Example User Guide

ID 720987
Date 11/29/2023
Public
Document Table of Contents

3.4.1. Test Case—Design Example with the IEEE 1588v2 Feature

The simulation test case performs the following steps:

  1. Starts up the design example with an operating speed of 10G.
  2. Configures the MAC, PHY, and FIFO buffer for both channels.
  3. Asserts global reset (i_rst_n) to reset the Multi-rate PHY IP.
  4. Waits until resets acknowledgement. The o_rst_ack_n signals goes low.
  5. Deasserts the global reset.
  6. Waits until the design example asserts the channel_tx_ready and channel_rx_ready signals for each channel.
  7. Waits until the deterministic latency measurement (indicated by tx_measure_valid and rx_measure_valid bit of register 0x420) of PHY IP is completed.
  8. Calculates the datapath deterministic latency and configures PTP registers
  9. Sends the following packets:
    • Non-PTP
    • No VLAN, PTP over Ethernet, PTP Sync Message, 1-step PTP
    • VLAN, PTP over UDP/IPv4, PTP Sync Message, 1-step PTP
    • Stacked VLAN, PTP over UDP/IPv6, PTP Sync Message, 2-step PTP
    • No VLAN, PTP over Ethernet, PTP Delay Request Message, 1-step PTP
    • VLAN, PTP over UDP/IPv4, PTP Delay Request Message, 2-step PTP
    • Stacked VLAN, PTP over UDP/IPv6, PTP Delay Request Message, 1-step PTP
  10. Repeats steps 5 to 8 for 10M, 100M, 1G, 2.5G, and 5G.

When simulation ends, the values of the MAC statistics counters are displayed in the transcript window. The transcript window also displays PASSED if the RX Avalon® streaming interface of channel 0 received all packets successfully, all statistics error counters are zero, and the RX MAC statistics counters are equal to the TX MAC statistics counters.

Figure 11. Sample Simulation Output