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

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

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 (o_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. Writes 00 to the 80020001 register.
  13. Writes 01 to the register 50 to trigger the dynamic reconfiguration.
  14. Waits until dynamic reconfiguration is acknowledged (in_progress signal is high).
  15. Repeats steps for 1G rate.

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