Low Latency Ethernet 10G MAC IP Design Example User Guide: Agilex™ 3 and Agilex™ 5 FPGAs and SoCs

ID 813665
Date 8/04/2025
Public
Document Table of Contents

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

The simulation starts up the example design with an operating speed of 10G.

The simulation test case performs the following steps:
  1. Asserts and deasserts reset to the Dynamic Reconfiguration (DR) controller IP.
  2. Writes the following to the DR Controller IP registers for profile switching:
    1. Writes 80030002 to “Register Next ID Configuration 0” to specify the next ID.
    2. Writes 01 to the “Register Trigger” to trigger the dynamic reconfiguration.
  3. Waits until dynamic reconfiguration is acknowledged (in_progress signal is high).
  4. Asserts global reset (i_rst_n) to reset the 1G/2.5G/5G/10G Multirate Ethernet PHY.
  5. Waits for DR Controller IP to be ready (o_in_progress signal is low).
  6. Waits for reset acknowledgement (o_rst_ack_n signal is low).
  7. Deasserts the global reset (i_rst_n).
  8. Configures the MAC and PHY registers.
  9. Waits until the design example asserts the channel_tx_ready and channel_rx_ready signals.
  10. 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
  11. Waits until all packets have completed loopback and the current profile data transmit and receive completes.
  12. Repeats steps 3 to 11 for 2.5G and 1G rates.

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 30. Sample Simulation Output