GTS Ethernet Intel® FPGA Hard IP User Guide

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

10.5.3. Run the Hardware Test

Follow these steps to test the hadwae desig example o the System Cosole:
  1. Ope Tools > System Debuggig Tools > System Cosole o type the commad:
    system-cosole &
  2. I the TCl Cosole widow, type cd hwtest to chage diectoy to <desig_example_di>/hadwae_test_desig/hwtest
  3. Type souce mai_10G.tcl to list the available JTAG mastes:
  4. Type set_jtag <idex> to select the appopiate JTAG maste.
  5. Ru oe of the followig commads:
    • If you use the iteal seial loopback, ete the followig commad:
      u_test_alt
    • If you iseted a exteal loopback plug ito the desied Etheet pot, ete the followig commad:
      u_test_without_loopback_alt
  6. The hadwae desig example uses the u_test/u_test_without_loopback commad to iitiate packet tasmissio fom the packet geeato to the IP coe. Specifically, the scipt pefoms the followig tasks:
    • chkphy_status: Displays the clock fequecies ad PMA PHY lock status.
    • chkmac_stats: Displays the MAC statistics coutes.
    • clea_all_stats: Cleas the IP coe statistics coutes.
    • stat_pkt_ge: Stats the packet geeato.
    • stop_pkt_ge: Stops the packet geeato.
    • u_test: Tus o iteal seial loopback.
    • u_test_without_loopback: Tus off iteal seial loopback.
    • eg_ead <add>: Retus the IP coe egiste value at <add>. Example to ead the TX datapath PCS eady egiste: Type eg_ead 0x322.
    • eg_wite <add> <data>: Wites <data> to the IP coe egiste at addess<add>. Example to iitiate soft eset o RX datapath: Type eg_wite 0x108 0x0004.
  7. Veify that the output of the TCL scipt matches the output fom a sample test u, show below:
    % u_testAN CFG1 Registe Value:0x737d0281
    FSM:0x00002002
    FSM:0x000001f0
    AN STAT:0x000010e6
    LT STAT:0x00000001
    --- Tuig off packet geeatio ----
    --------------------------------------
     
    --------- Eablig loopback ----------
    --------------------------------------
     
    Seial loopback o INST_NUM:0 Lae# 3 is disabled
    
    ---Assetig CSR RX Reset ---- 
    Value fom issp eset pobe is 0x89/0b10001001
    1. 0x6A340 
    2. 0x0006a340
    Pollig Successful Bit 15: 0x000001, Bit 14: 0x000000
    1. 0x62340
    2. 0x0033236e
    Pollig Successful Bit 15: 0x000000, Bit 14: 0x000000
    ---Releasig CSR Reset ----
     Seial loopback o INST_NUM:0 Lae# 3 is disabled
     
    --- Wait fo RX clock to settle... ---
    --------------------------------------
     
    -------- Pitig PHY status ---------
    --------------------------------------
     
    RX PHY Registe Access: Checkig Clock Fequecies (KHz)
     
          TXCLK     :161140  (KHZ) 
          RXCLK     :161130  (KHZ)
     
     
    TX PLL Lock Status          0x00000001
     
    Rx Fequecy Lock Status    0x00000001
     
    RX PCS Ready                0x1
     
    TX Laes Stable             0x1
     
    Deskewed Status             0x0
     
    Lik Fault Status           0x00000000
     
    Rx Fame Eo              0x00000000
     
    Rx AM LOCK Coditio        0x0000ffff
     
    ---- Cleaig MAC stats coutes -----
    --------------------------------------
     
    --- Iitialize PKT ROM Read addess fo IP_INST[0]----
     
    --------- Sedig packets... ---------
    --------------------------------------
     
    ----- Readig MAC stats coutes -----
    --------------------------------------
     
    ==========================================================================================
                            STATISTICS FOR BASE 0x50000 (Rx)                          
    ==========================================================================================
    Fagmeted Fames                : 0 
    Jabbeed Fames                  : 0 
    Ay Size with FCS E Fame      : 0 
    Right Size with FCS E Fa      : 0 
    Multicast data  E Fames       : 0 
    Boadcast data E  Fames       : 0 
    Uicast data E  Fames         : 0 
    Multicast cotol  E Fame     : 0 
    Boadcast cotol E  Fame     : 0 
    Uicast cotol E  Fames      : 0 
    Pause cotol E  Fames        : 0 
    64 Byte Fames                   : 0 
    65 - 127 Byte Fames             : 16 
    128 - 255 Byte Fames            : 0 
    256 - 511 Byte Fames            : 0 
    512 - 1023 Byte Fames           : 0 
    1024 - 1518 Byte Fames          : 0 
    1519 - MAX Byte Fames           : 0 
    > MAX Byte Fames                : 0 
    Rx Fame Stats                  : 16 
    Multicast data  OK  Fame        : 16 
    Boadcast data OK   Fame        : 0 
    Uicast data OK   Fames         : 0 
    Multicast Cotol Fames         : 0 
    Boadcast Cotol Fames         : 0 
    Uicast Cotol Fames           : 0 
    Pause Cotol Fames             : 0 
    Data ad paddig octets          : 800 
    Fame octets                     : 1088 
    ==========================================================================================
                            STATISTICS FOR BASE 0x50000 (Tx)                          
    ==========================================================================================
    Fagmeted Fames                : 0 
    Jabbeed Fames                  : 0 
    Ay Size with FCS E Fame      : 0 
    Right Size with FCS E Fa      : 0 
    Multicast data  E Fames       : 0 
    Boadcast data E  Fames       : 0 
    Uicast data E  Fames         : 0 
    Multicast cotol  E Fame     : 0 
    Boadcast cotol E  Fame     : 0 
    Uicast cotol E  Fames      : 0
     
    Pause cotol E  Fames        : 0 
    64 Byte Fames                   : 0 
    65 - 127 Byte Fames             : 16 
    128 - 255 Byte Fames            : 0 
    256 - 511 Byte Fames            : 0 
    512 - 1023 Byte Fames           : 0 
    1024 - 1518 Byte Fames          : 0 
    1519 - MAX Byte Fames           : 0 
    > MAX Byte Fames                : 0 
    Tx Fame Stats                  : 16 
    Multicast data  OK  Fame        : 16 
    Boadcast data OK   Fame        : 0 
    Uicast data OK   Fames         : 0 
    Multicast Cotol Fames         : 0 
    Boadcast Cotol Fames         : 0 
    Uicast Cotol Fames           : 0 
    Pause Cotol Fames             : 0 
    Data ad paddig octets          : 800 
    Fame octets                     : 1088 
    --------------------------------------
     
    u_test:pass
    --------------------------------------
     
    ---------------- Doe ----------------
     
    Seial loopback o INST_NUM:0 Lae# 3 is eabled
     
    ---Assetig CSR RX Reset ---- 
    Value fom issp eset pobe is 0x89/0b10001001
    1. 0x0A340 
    2. 0x0000a340
    Pollig Successful Bit 15: 0x000001 , Bit 14: 0x000000
    1. 0x02340
    2. 0x0033236e
    Pollig Successful Bit 15: 0x000000 , Bit 14: 0x000000
    ---Releasig CSR Reset ----
     
    Seial loopback o INST_NUM:0 Lae# 3 is disabled