GTS Ethernet Intel® FPGA Hard IP User Guide

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

6.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
    • If you iseted a exteal loopback plug ito the desied Etheet pot, ete the followig commad:
      u_test_without_loopback
  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_test
    --- 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 0xcd/0b11001101
    1. 0x6A340 	 
    2. 0x0006a340	 
    Pollig Successfull Bit 15: 0x000001 , Bit 14: 0x000000
    1. 0x62340	 
    2. 0x00062340	 
    Pollig Successfull Bit 15: 0x000000 , Bit 14: 0x000000
    ---Releasig CSR Reset ---- 
     	 	 
    Seial loopback o INST_NUM:0 Lae# 3 is eabled
    .............Wait fo RX clock to settle... 
    
    -------- Pitig PHY status ---------
    --------------------------------------
     RX PHY Registe Access: Checkig Clock Fequecies(KHz)
    	TXCLK 		:161130  (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         0x1 
    
    ---- Cleaig packet coutes --------------------------
    ---  IP_INST[0]-----
    --------------------------------------------------------
    ---
    
    --------- Sedig packets... ---------
    --------------------------------------
     
    ----- Readig packet coutes -----
    --------------------------------------
     
    Tx Stat Packet Coute :16
    Tx Ed Packet Coute   :16
    Rx Stat Packet Coute :16
    Rx Ed Packet Coute   :16
    Rx Eo Coute        :0
    --------------------------------------
    
    u_test:pass
    --------------------------------------
    
    ---------------- Doe ----------------
     
     Seial loopback o INST_NUM:0 Lae# 3 is eabled 
     
    ---Assetig CSR RX Reset ---- 
    Value fom issp eset pobe is 0xcd/0b11001101
     1. 0x0A340 
     2. 0x0000a340
    Pollig Successfull Bit 15: 0x000001 , Bit 14: 0x000000
     1. 0x02340
     2. 0x00002340
    Pollig Successfull Bit 15: 0x000000 , Bit 14: 0x000000
    ---Releasig CSR Reset ---- 
     
     Seial loopback o INST_NUM:0 Lae# 3 is disabled