F-Tile Architecture and PMA and FEC Direct PHY IP User Guide

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

7.6.2. Modifying the Scripts

Thee ae seveal vaiables iside the scipt, such as settig up the chael liks, PRBS patte, loopback mode, BER test duatio, ad the TX equalize settigs that you must modify based o you desig cofiguatio. You must set the values of these vaiables i the scipt befoe uig the test. The followig pocedues descibes the steps to modify the scipt fo each test:

A. Modify the Scipt fo Device Iitializatio ad Toolkit Big-Up

You must modify the device iitializatio scipt ad update the device that ae o the JTAG chai ad poit to the .sof that you have pogammed.
  1. Ope device_iitializatio.tcl scipt i ay text edito.
  2. Make the followig modificatios to the device_iitializatio.tcl scipt:
    set path <sof-file-path>
    set esult_di <my_diectoy>
    set device_die_ame <device-ame>
A example of the settigs i the device_iitializatio.tcl scipt is show i the followig figue.
Figue 150. Device Iitializatio Settigs
Note: If you ae usig the Widows platfom, use the .sof file ame istead of sof file path i step 2 above.

B. Modifyig the Scipt to Ru BER ad Eye Measuemet Tests

Refe to the Tasceive Toolkit Scipts table to select the Tasceive Toolkit scipt fo you desied mode.
  1. Choose the scipt based o you desig mode ad ope it i ay text edito.
  2. Make the followig modificatios to the scipt:
    • Set 1 to eable the test you wat to u as show below:
      ############### Tests to u: 0 = bypass, 1 = u ############### 
      set u_be_test 1
      set u_eye_test 0
    • Set up the test vaiables. Thee ae six mai vaiables that you eed to modify i the lik_test_paametes list i the scipt:
      • TX logical chael (idex 0)
      • RX logical chael (idex 1)
      • PRBS patte (idex 2 ad 3)
      • Loopback mode (idex 4)
      • TX ad RX PMA settigs (idex 5 to 11)
      • Eye measuemet settigs (idex 12 to 15)
      Note: Cuetly the Tasceive Toolkit oly suppots RX PMA auto-adaptatio mode. You ca leave the RX PMA settigs to the default values.
      Fo example, if you wat to u the BER test betwee TX chael 0 ad RX chael 0, set both idex 0 ad idex 1 to value 0. You ca also lik TX ad RX chaels i diffeet physical chael locatios. Fo example, to lik TX chael 0 to RX chael 1, set idex 0 to value 0 ad idex 1 to value 1. I ode to lik TX ad RX chaels with diffeet physical locatios, make sue you have a exteal loopback, eithe though a loopback cable o cad o the boad. A example of the lik_test_paametes settigs is show below:
      ####################################################
      ###      Customize the test vaiable             ###
      ####################################################
      # The list_test_paametes' idexig :
      #   idex 0 - TX Logical Chael
      #   idex 1 - RX Logical Chael
      #   idex 2 - TX PRBS Geeato Patte : 
      #             PRBS7,PRBS9,PRBS10,PRBS13,PRBS15,PRBS23,PRBS28,
      #              PRBS31,QPRBS13,PRBS13Q,PRBS31Q,SSPR,SSPR1,SSPRQ
      #   idex 3 - RX PRBS Checke Patte : PRBS7,PRBS9,PRBS10,PRBS13,
      #             PRBS15,PRBS23,PRBS28,PRBS31,QPRBS13,PRBS13Q,PRBS31Q,
      #             SSPR,SSPR1,SSPRQ
      #   idex 4 - Loopback Mode : PMA TX to RX Buffe lbpk - "TX2RXBUF"
      #                           ; PMA TX to RX paallel lpbk  - "TX2RXPAR" 
      #                           ; PMA RX to TX paallel lpbk  - "RX2TXPAR"
      #   idex 5 - TX Pe-Tap 2  :  {0 to 7}  
      #   idex 6 - TX Pe-Tap 1  :  {0 to 15}  
      #   idex 7 - TX Mai Tap   :  {0 to 46}    
      #   idex 8 - TX Post-Tap 1 :  {0 to 19}  
      #   idex 9 - RX High Feq VGA Gai  :  {0 to 127}  
      #   idex 10 - RX High Feq Boost  :  {0 to 63}  
      #   idex 11 - RX DFE Data Tap 1   :  {0 to 63}    
      #   idex 12 - Eablig the eye height test : Eable - "tue"  ;
      #                                             Disable - "false"
      #   idex 13 - Set the Bit Eo Rate to measue Eye Height :
      #              Mi - 1.0E-1  Maximum - 1.0E-12 
      #   idex 14 - Eablig the eye width test :
      #              Eable - "tue"  ;  Disable - "false"
      #   idex 15 - Set the Bit Eo Rate to measue Eye Width : 
      #              Mi - 1.0E-1 Maximum - 1.0E-12
      
      set lik_test_paametes {{0 0 "PRBS23" "PRBS23" "TX2RXBUF" "0" "0" "0" 
        "0" "0" "0" "0" "tue"  "1.0E-4" "tue" "1.0E-4"}
      						  {1 1 "PRBS9"  "PRBS9"  "TX2RXBUF" "0" "0" "0"
        "0" "0" "0" "0" "tue"  "1.0E-4" "tue" "1.0E-4"}}
      Note: The example above depicts the settigs fo two liks oly. If you wat to u the test fo fou liks, you have to add two moe ows i the lik_test_paametes list accodigly.
    • You must set the citeia to stop the BER test fo a chael, eithe based o maximum eo bits o the BER test duatio. The followig code shows a example o how to have the BER test stop afte 6 secods ad displays the status of the lik evey 2 secods. The max_eo_bits idicates the maximum umbe of eo bits ecouteed by the lik. The test stops afte eachig the maximum umbe of eo bits eve if the maximum u time of 6 secods has ot elapsed.
      ############### Setup lik u legth ###########################
      set max_eo_bits 10 
      set max_u_time_i_secods 6
      set checke_status_pollig_iteval_i_secods 2

C. Modifyig the Scipt to Ru Autosweep Test

  1. Choose the scipt based o you desig mode ad ope it i ay text edito.
  2. Make the followig modificatios to the scipt:
    • Set up the test vaiables fo TX ad RX PMA sweep age. Thee ae seve mai vaiables you eed to modify i the lik_test_paametes list i this scipt:
      • TX logical chael (idex 0)
      • RX logical chael (idex 1)
      • PRBS patte (idex 2 ad 3)
      • Loopback mode (idex 4)
      • Iput paametes (idex 5 to 11)
      • Output metic (idex 12 to 17)
      • BER test duatio (idex 18)
      Fo example, to add BER as the output metic, set idex 12 to value 1 as show below:
      ####################################################
      ###      Customize the test vaiable             ###
      ####################################################
      # The list_test_paametes' idexig :
      #   idex 0 - TX Logical Chael
      #   idex 1 - RX Logical Chael
      #   idex 2 - TX PRBS Geeato Patte : PRBS7,PRBS9,PRBS10,PRBS13,
      #             PRBS15,PRBS23,PRBS28,PRBS31,QPRBS13,PRBS13Q,PRBS31Q,
      #             SSPR,SSPR1,SSPRQ
      #   idex 3 - RX PRBS Checke Patte : PRBS7,PRBS9,PRBS10,PRBS13,
      #             PRBS15,PRBS23,PRBS28,PRBS31,QPRBS13,PRBS13Q,PRBS31Q,
      #             SSPR,SSPR1,SSPRQ
      #   idex 4 - Loopback Mode : PMA TX to RX Buffe lbpk - "TX2RXBUF"  
      #                            ; PMA TX to RX paallel lpbk  - "TX2RXPAR" 
      #                           ; PMA RX to TX paallel lpbk  - "RX2TXPAR"
      #   idex 5 - TX Pe-Tap 2  :  {0 to 7}  if you put like 0:5 it 
      #             autosweeps the chael fo each umbe stat fom 0 to 5
      #   idex 6 - TX Pe-Tap 1  :  {0 to 15}  
      #   idex 7 - TX Mai Tap   :  {0 to 46}    0,1.5 0,5,6
      #   idex 8 - TX Post-Tap 1 :  {0 to 19}  
      #   idex 9 - RX High Feq VGA Gai  :  {0 to 127}  
      #   idex 10 - RX High Feq Boost  :  {0 to 63}  
      #   idex 11 - RX DFE Data Tap 1   :  {0 to 63}    
      #   idex 12 - Addig BER matic :  "1"  ;  Disable - "0"
      #   idex 13 - Addig total height measuemet matic :
      #              Eable - "1"  ;  Disable - "0"
      #   idex 14 - Addig eye width time matic :
      #              Eable - "1"  ;  Disable - "0"
      #   idex 15 - Addig eye width UI matic : 
      #              Eable - "1"  ;  Disable - "0"
      #   idex 16 - Extapolaate Rate:
      #              Mi - 1E-1  ;  Max - 1E-12 
      #   idex 17 - Extapolaate Width Rate: 
      #              Mi - 1E-1  ;  Max - 1E-12 
      #   idex 18 - BER test duatio pe case (secods): Max 1E3
      
      set lik_test_paametes {{0 0 "PRBS23" "PRBS23" "TX2RXBUF" "0:0" 
      "0:1" "0:1" "0:0" "0:0" "0:0" "0:0" "1" "0" "0" "0" "1e-4" "1e-4" "2" }
      						  {1 1 "PRBS10" "PRBS10" "TX2RXBUF" "0:0" 
      "0:1" "0:0" "0:0" "0:0" "0:0" "0:0" "1" "0" "0" "0" "1e-4" "1e-4" "2" }}
    • You ca get the Autosweep test data i xml fomat. The commad show below is i the Autosweep scipt ad you ca chage the file ame ad esult diectoy to you ow file ame ad diectoy.
      autosweep_get_data -outputfile <esult-diectoy>/<file-ame>.xml $autosweep_ist_id