GTS Ethernet Intel® FPGA Hard IP User Guide

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

8.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_ptp.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_with_loopback
    • If you iseted a exteal loopback plug ito the desied Etheet pot, ete the followig commad:
      u_test
  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 steps:
    • 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_without_loopback: Tus o iteal seial loopback.
    • u_test: Tus off iteal seial loopback.
    • eg_ead <add>: Retus the IP coe egiste value at <add>. Example to ead the GUI optios: Type eg_ead 0x100.
    • 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 ----
    --------------------------------------
    ----Waitig fo EX Clock to settle....
    --------------------------------------
    ----Pitig PHY status ---------
    --------------------------------------
     RX PHY Registe Access: Checkig Clock Fequecies(KHz)
    	TXCLK 		:161140  (KHZ) 
    	RXCLK 		:161140  (KHZ) 
    
     TX PLL Lock Status           0x00000001 
     RX Fequecy Lock Status     0x00000001 
     RX PCS Ready                 0x1
     TX Laes Stable              0x1
     Deskew status                0x0
     Lik Fault Status            0x00000000
     RX Fame Eo               0x00000000
     RX AM LOCK Coditio         0x1 
    
    ---- Cleaig MAC stats coutes -----
    ------- Executig PTP Fimwae -------
    --------------------------------------
    -------------------------------------------
    --19:41:37-- Ifo: PTP Iitializatio begiig...
    Etheet Vaiat: 0
    ui:               0x018D3019
    VL:               1
    PL_FL_MAP:        1
    tx_pma_delay_ui:  79
    x_pma_delay_ui:  88
    
    ---------------------------------------------------------- 
          |  00 01 02 03 04 05 06 07  08 09 10 11 12 13 14 15  
    ----------------------------------------------------------
     0000 |  AB E4 23 39 F0 00 1E 84  33 9F 01 00 AE FE 00 0F
     0010 |  10 11 12 13 00 00 00 00  00 28 09 DE 50 4C 1E 1F
     0020 |  20 21 22 24 06 04 26 27  28 29 2A 2B 2C 2D 2E 2F
     0030 |  30 31 32 33 34 35 36 37  BB CC 3A 3B 3C 3D 3E 3F
     0040 |  40 41 42 43 44 45 46 47  48 49 4A 4B 4C 4D 4E 4F
     0050 |  50 51 52 53 54 55 56 57  58 59 5A 5B 5C 5D 5E 5F
     0060 |  60 61 62 63 64 65 66 67  68 69 6A 6B 6C 6D 6E 6F
     0070 |  70 71 72 73 74 75 76 77  78 79 7A 7B 7C 7D 7E 7F
     0080 |  04 94 64 FF            
    ---------------------------------------------------------- 
    ------------------------------ 
    TX PTP Commad #16 
    ------------------------------ 
    Egess Timestamp Request            : 0 
    Iset Timestamp                    : 1 
    Update CoectioField              : 0 
    Clea UDP/IPv4 Checksum             : 0 
    Update UDP/IPv6 Exteded Bytes      : 0 
    Add Pee-to-Pee (P2P) MiPathDelay : 0 
    Add Asymmety Delay                 : 0 
    Asymmety Delay Sig                : 0 
    Asymmety & P2P MiPathDelay Select : 0x0 
    Timestamp Field Offset              : 0x0014 
    Coectio Field Offset             : 0x001e 
    TX Figepit Data                 : 0x00000006 
    TX Igess Timestamp                : 0x000000000028000000000000 
    ------------------------------ 
    Timestamps #16 
    ------------------------------ 
    TX Egess Timestamp                 : 0x00000000002809de504c4a80 
    RX Igess Timestamp                : 0x00000000002809de504c2080 
    TX Use Figepit                 : 0x00000006 
    TX Retued Figepit             : 0x00000006 
    ------------------------------ 
    Compaiso #16 
    ------------------------------ 
    RX_ITS - TX_ETS       : 0xffffffffffffd600/-0.1641 s
     
    TX Timestamp Fields   : 0xAA1516AA18191A1B1C1D 
    RX Timestamp Fields   : 0x00000000002809DE504C
    
    TX Compesatio Fields  : 0x1E1F20212223BBCC 
    RX Compesatio Fields  : 0x1E1F202122240604
     
    %