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 hardware design example on the System Console:
  1. Open Tools > System Debugging Tools > System Console or type the command:
    system-console &
  2. In the TCl Console window, type cd hwtest to change directory to <design_example_dir>/hardware_test_design/hwtest
  3. Type source main_10G_ptp.tcl to list the available JTAG masters:
  4. Type set_jtag <index> to select the appropriate JTAG master.
  5. Run one of the following commands:
    • If you use the internal serial loopback, enter the following command:
      run_test_with_loopback
    • If you inserted an external loopback plug into the desired Ethernet port, enter the following command:
      run_test
  6. The hardware design example uses the run_test/run_test_without_loopback command to initiate packet transmission from the packet generator to the IP core. Specifically, the script performs the following steps:
    • chkphy_status: Displays the clock frequencies and PMA PHY lock status.
    • chkmac_stats: Displays the MAC statistics counters.
    • clear_all_stats: Clears the IP core statistics counters.
    • start_pkt_gen: Starts the packet generator.
    • stop_pkt_gen: Stops the packet generator.
    • run_test_without_loopback: Turns on internal serial loopback.
    • run_test: Turns off internal serial loopback.
    • reg_read <addr>: Returns the IP core register value at <addr>. Example to read the GUI options: Type reg_read 0x100.
    • reg_write <addr> <data>: Writes <data> to the IP core register at address<addr>. Example to initiate soft reset on RX datapath: Type reg_write 0x108 0x0004.
  7. Verify that the output of the TCL script matches the output from a sample test run, shown below:
    % run_test
    --- Turning off packet generation ----
    --------------------------------------
    ----Waiting for EX Clock to settle....
    --------------------------------------
    ----Printing PHY status ---------
    --------------------------------------
     RX PHY Register Access: Checking Clock Frequencies(KHz)
    	TXCLK 		:161140  (KHZ) 
    	RXCLK 		:161140  (KHZ) 
    
     TX PLL Lock Status           0x00000001 
     RX Frequency Lock Status     0x00000001 
     RX PCS Ready                 0x1
     TX Lanes Stable              0x1
     Deskew status                0x0
     Link Fault Status            0x00000000
     RX Frame Error               0x00000000
     RX AM LOCK Condition         0x1 
    
    ---- Clearing MAC stats counters -----
    ------- Executing PTP Firmware -------
    --------------------------------------
    -------------------------------------------
    --19:41:37-- Info: PTP Initialization beginning...
    Ethernet Variant: 0
    ui:               0x018D3019
    VL:               1
    PL_FL_MAP:        1
    tx_pma_delay_ui:  79
    rx_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 Command #16 
    ------------------------------ 
    Egress Timestamp Request            : 0 
    Insert Timestamp                    : 1 
    Update CorrectionField              : 0 
    Clear UDP/IPv4 Checksum             : 0 
    Update UDP/IPv6 Extended Bytes      : 0 
    Add Peer-to-Peer (P2P) MinPathDelay : 0 
    Add Asymmetry Delay                 : 0 
    Asymmetry Delay Sign                : 0 
    Asymmetry & P2P MinPathDelay Select : 0x0 
    Timestamp Field Offset              : 0x0014 
    Correction Field Offset             : 0x001e 
    TX Fingerprint Data                 : 0x00000006 
    TX Ingress Timestamp                : 0x000000000028000000000000 
    ------------------------------ 
    Timestamps #16 
    ------------------------------ 
    TX Egress Timestamp                 : 0x00000000002809de504c4a80 
    RX Ingress Timestamp                : 0x00000000002809de504c2080 
    TX User Fingerprint                 : 0x00000006 
    TX Returned Fingerprint             : 0x00000006 
    ------------------------------ 
    Comparison #16 
    ------------------------------ 
    RX_ITS - TX_ETS       : 0xffffffffffffd600/-0.1641 ns
     
    TX Timestamp Fields   : 0xAA1516AA18191A1B1C1D 
    RX Timestamp Fields   : 0x00000000002809DE504C
    
    TX Compensation Fields  : 0x1E1F20212223BBCC 
    RX Compensation Fields  : 0x1E1F202122240604
     
    %