GTS Ethernet Intel® FPGA Hard IP User Guide

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

8.3.1. Simulation Testbench Flow

The testbech executes the followig activity fo MAC with PTP eabled mode:

  1. Asset global eset (i_st_) to eset the GTS Etheet Itel® FPGA Had IP.
  2. Wait util eset ackowledgmet. The o_st_ack_ sigal goes low.
  3. Deasset the global eset.
  4. Wait util o_tx_laes_stable bit is set to 1, idicatig TX path is eady.
  5. Wait util o_x_pcs_eady bit is set to 1, idicatig RX path is eady.
  6. Pefom the PTP use flow util tx_ptp_eady ad x_ptp_eady sigals ae set to 1.
  7. Wite to PTP Asymmety Delay ad pee-to-pee MeaPathDelay Avalo® memoy-mapped iteface egistes.
  8. Reset the PTP moito.
  9. Istuct packet cliet to tasmit data. Wite 0x1 to bit 0 of hadwae packet cliet cotol hw_pc_ctl egiste 0x00 to stat packet geeato.
  10. Read RX packet data ifomatio fom 0x38 - 0x4C egistes i sequetial ode.
    • 0x00: Set hw_pc_ctl[6] = 1'b1 to eable sapshot bit to ead the RX packet statistics.
    • 0x38/0x3C: RX stat of packet coute (LSB/MSB)
    • 0x40/0x44: RX ed of packet coute (LSB/MSB)
    • 0x48/0x4C: RX eo coute (LSB/MSB)
    • 0x00: Set hw_pc_ctl[6] = 1'b0 to disable sapshot bit.
  11. Read TX packet data ifomatio fom 0x00 - 0x34 egistes i sequetial ode.
    • 0x00: Set hw_pc_ctl[6] = 1'b1 to eable sapshot bit to ead the TX packet statistics.
    • 0x20/0x24: TX stat of packet coute (LSB/MSB)
    • 0x28/0x2C: TX ed of packet coute (LSB/MSB)
    • 0x30/0x34: TX eo coute (LSB/MSB)
    • 0x00: Set hw_pc_ctl[6] = 1'b0 to disable sapshot bit.
  12. Compae ead coutes to esue 16 packets wee set ad eceived.
  13. Istuct packet cliet to stop data tasmissio ad clea the coutes by witig hw_pc_ctl[2:0]=3'b100 to stop the packet geeato.
  14. Stat the PTP checke.
    1. Wait util the packet tasmissio is complete. Poll the TX_PKT_VALID bit to moito the tasmissio status.
    2. Read TX packet data ifomatio fom 0x102 - 0x104 egistes i sequetial ode, statig fom the 0x102 egiste. The PTP moito logic efeshes the 0x102 - 0x104 egistes cotet to ext data whe ead fom 0x104 egiste.
    3. Repeat the pevious step util the TX_PKT_EOP bit is set to 1 idicatig the ead opeatio eached the ed of the packet.
    4. Read TX PTP commad ifomatio fom 0x105 - 0x10A egistes i sequetial ode, statig fom the 0x105 egiste. The PTP moito logic efeshes the 0x105 - 0x10A egistes cotet to ext data whe ead fom 0x10A egiste.
    5. If TX PTP commad idicates a PTP packet:
      1. Wait util the TX egess timestamp is available. Use the TX_PTP_ETS_VALID sigal to moito the status.
      2. Read the TX egess timestamp fom the 0x10C - 0x10F egistes i sequetial ode, statig with the 0x10C egiste.
      The PTP moito logic efeshes cotet of 0x10C - 0x10F egistes to ext data whe ead fom the 0x10F egiste.
    6. Wait util the packets ae looped backe i the RX data path. Poll the RX_PKT_VALID bit to moito the tasmissio status.
    7. Read RX packet data ifomatio fom 0x110 - 0x112 egistes i sequetial ode, statig with the 0x110 egiste. The PTP moito logic efeshes the 0x110 - 0x112 egistes cotet to ext data whe ead fom 0x112 egiste.
    8. Repeat the pevious step util the RX_PKT_EOP bit is set to 1 idicatig the ead opeatio eached the ed of the packet.
    9. Read RX igess timestamp.
      1. Read the RX igess timestamp fom the 0x114 - 0x116 egistes i sequetial ode, statig with the 0x14 egiste. The PTP moito logic efeshes the 0x114 - 0x116 egistes cotet to ext data whe ead fom 0x116 egiste.
    10. Display the TX packet cotet, RX packet cotet, TX PTP commads, TX egess timestamp, ad RX igess timestamp ifomatio.
    11. Display the compaiso ifomatio. Note that i 1-step commads, the TX/RX packets ad PTP commads field cotet is the same.
    12. Repeat steps b though step k util the system pocesses all packets.
      Note: The desig example simulatio pefoms step 14 fo oly fist six packets to educe log simulatio time.
  15. Pefom Avalo® memoy-mapped iteface test o PTP-elated egistes.
    • Selective PTP Asymmety Delay ad P2P MeaPathDelay egistes
    • Selective Maste TOD Avalo® memoy-mapped iteface egistes
  16. Pefom Avalo® memoy-mapped iteface test. Wite ad ead Etheet IP egistes.
    • 0x104: Scatch egiste
    • 0x108: Etheet IP soft eset egiste
    • 0x214: TX MAC souce addess egiste [31:0]
    • 0x218: TX MAC souce addess egiste [47:32]
    • 0x21C: RX MAC fame size egiste
  17. Pefom Avalo® memoy-mapped iteface 2 test. Wite ad ead tasceive egistes.