F-Tile Ethernet Intel® FPGA Hard IP Design Example User Guide

ID 683804
Date 11/04/2024
Public
Document Table of Contents

2.3.2. Simulation Testbench Flow for PCS, OTN, and FlexE Modes

The followig steps show the simulatio testbech flow fo PCS, OTN, ad FlexE modes:
  1. Asset global eset (i_st_) to eset the F-Tile Etheet Itel FPGA Had IP.
  2. Wait util esets ackowledgmet. The o_st_ack_ sigal goes low.
  3. Deassets 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.
    Note: I o-MAC mode, the packet cliet seds out idle data i MII/PCS66 fomat.
  6. 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.
    • 0x020/0x24: TX stat of packet coute (LSB/MSB)
    • 0x28/0x2C: TX ed of packet coute (LSB/MSB)
    • 0x00: Set hw_pc_ctl[6] = 1'b0 to disable sapshot bit.
  7. 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.
  8. Compae the coutes to esue 16 packets wee set ad eceived.
  9. Istuct packet cliet to stop data tasmissio. Wite cfg_stat_pkt_ge[0]=1'b1 to stop the packet geeato. Clea coutes.
  10. Pefom Avalo® memoy-mapped iteface test. Wite ad ead Etheet IP egistes.
    • 0x104: Scatch egiste
    • 0x108: Etheet IP soft eset egiste
    • 0x004: Etheet IP debug cofiguatio cotol egiste
    • 0x008: Etheet IP eable/clock gatig cofiguatio egiste
  11. Pefom Avalo® memoy-mapped iteface 2 test. Wite ad ead tasceive egistes.