FPGA Intellectual Property
PCI Express*, Networking and Connectivity, Memory Interfaces, DSP IP, and Video IP
6524 Discussions

ethernet_100g_loopback_off

Vamsi_21
New Contributor I
8,552 Views

Hi,

I have generated a low latency 100g design example by following the guide below:
https://www.intel.com/content/www/us/en/docs/programmable/683371/16-1/quick-start-guide.html

I tested the serial loopback on the development board, I was able to see the Rx and Tx stats.
But when i wanted to disable the loopback , i made the loop_off in the .tcl scripts and tested on the development board but it was still showing Rx and Tx stats.

Name of the board: ARRIA10 GX development board
Device: 10AX115S2F45I1SG

Below,  I am sharing the .qar of the design and the system console window output when the loop_off is done in the tcl scripts.


Labels (1)
0 Kudos
21 Replies
Yi
Employee
7,929 Views

Hi,

 

TCL run_test file should automatically enable the loopback mode for testing, it should also be logged as well, you may see this in ethernet_100g_loop_off.jpg screenshot.

 

0 Kudos
Vamsi_21
New Contributor I
7,925 Views

Hi,
I have made loop_off in the main.tcl script to check without loopback but still it is showing the tx statistics.
Below I am attaching the screenshots of the system console window.

0 Kudos
Yi
Employee
7,881 Views

It seems working as the Rx clk and recover clk are both 0Hz, and lock status = 0, though the MAC status looks weird to me either, would suggest to try some debug and see if the loop_off is correctly set or not first.

the process is in the *\hwtest\altera\alt_aeu_40\eth_ultra_phy_inc.tcl :

proc setphy_lpoff {} {
    global BASE_RXPHY
    global ADDR_PHY_PMALOOP
    # puts "RX PHY Register Access: Setting Serial PMA Loopback\n"
    reg_write  $BASE_RXPHY $ADDR_PHY_PMALOOP 0x0
    reg_read   $BASE_RXPHY $ADDR_PHY_PMALOOP
}

 

May edit the puts here to see if it's set or not first.

0 Kudos
Vamsi_21
New Contributor I
7,845 Views

Hi,
I have kept some puts statements in the tcl scripts as you have suggested but for both loopback on and loopback off the rx clk=0 Hz, recover clk=0 Hz, lock status =0 and still it is showing both rx and tx mac stats. 

Iam sharing the tcl scripts and also I am attaching the screenshot of the system console window for both loopback on and loopback off.

0 Kudos
Yi
Employee
7,827 Views

Weird, Rx clock it not on even when loop is on? Are you able to use toolkit to check the Rx CDR when loopback is on?

0 Kudos
Vamsi_21
New Contributor I
7,798 Views

Hi,
I have taken a signal tap file and added recover clk, reconfig clk to it.

I set the clock as clk_ref = 644.53125 MHZ
It was showing recover clk=0 and reconfig clk was running fine.
Below iam attaching a screenshot of the signal tap window.

0 Kudos
Vamsi_21
New Contributor I
7,657 Views

Hi,
The transceiver toolkit is not launching after loading the design to check Rx CDR when loopback is on.

0 Kudos
Vamsi_21
New Contributor I
7,553 Views

Hi ,
Is there any update?

@Yi 

0 Kudos
Yi
Employee
7,507 Views

Sorry for the late reply, I'm booking an A10 kit see if can replicate this issue on board, would let you know if any progress.

0 Kudos
Yi
Employee
7,483 Views

I tried on dev kit and it was able to get loop_on/off correctly, let me check your design to debug further.

0 Kudos
Yi
Employee
7,482 Views

I might find why you failed in board test, after open the .qar file, I found that the design you are using is the compilation test design, under folder:

/eth_100g_a10_22_2_0_94_restored/compilation_test_design

The compilation design is only for compilation test, which is not set for the board test.

To try on board, you can use the design file in folder /hardware_test_design , this should be the ready design that works for target dev kit.

Let me know if this works for you, thanks.

0 Kudos
Vamsi_21
New Contributor I
7,437 Views

Hi,
I have tried to test on the dev kit with the design file in the /hardware_test_design but I am getting master_write _32error in the system console window.
Below I am attaching the screenshot the error.

0 Kudos
Chris039
Novice
7,278 Views

master_write _32error could be caused by the problem in the code or the clock. 

1. Is the example design without modification working?

2. If example design without modification is working, do modify anything on the design itself (RTL, pin assignment, etc) besides the TCL.

3. If no modification made besides the TCL, you have to review the TCL again and see which line causes the error

0 Kudos
Chris039
Novice
7,158 Views

Hi,

Any update from your side?

 

 

0 Kudos
Vamsi_21
New Contributor I
7,142 Views
Hi,
I have tried with different pins assignments mainly FMC pins for tx and rx transceivers.

I am getting the below error:
"TTK failed reading from PHY slave, cannot enable TTK functionality for this PHY. Please verify the reconfig_clk is running and ensure this PHY is not stuck in reset."
0 Kudos
Chris039
Novice
7,029 Views

You can probably try running some example design and compare the pin assignment between the working version and the one you are seeing this error.

0 Kudos
Vamsi_21
New Contributor I
7,014 Views

Hi,
The compilation _test_design is the only working version for which i got same results for both loop_on and loop_off as i mentioned earlier.
For the hardware_test_design there is no working version , I had always got the error:

"TTK failed reading from PHY slave, cannot enable TTK functionality for this PHY. Please verify the reconfig_clk is running and ensure this PHY is not stuck in reset." 
0 Kudos
Chris039
Novice
6,371 Views

I cannot find the hardware_test_design in the QAR that you have shared earlier. I tried to generate an example design using the ex_100g.ip. I notice that the pin assignment for the compilation_test_design in your QAR is different from the one generated. 

 

Can you share your latest compilation_test_design and hardware_test_design for comparison? Are you using this devkit?

 

https://www.intel.com/content/www/us/en/products/details/fpga/development-kits/arria/10-gx.html

 

 

I believe you have to use the hardware_test_design for the hardware test but somehow the pin setting or clock input has problem. 

0 Kudos
Yi
Employee
6,319 Views

"TTK failed reading from PHY slave, cannot enable TTK functionality for this PHY. Please verify the reconfig_clk is running and ensure this PHY is not stuck in reset." 

 

In most cases, this failure is due to the wrong setting on the reconfig_clk to PHY, which may be the different input pin in .qsf

In the compilation design you shared, the reconfig_clk was auto assigned to pin AU15, which should be an clock input of the dev kit.

Yi_0-1706839404905.png

For your design, you'd assign this pin to a 100MHz clock input (if you are not using dev kit), or AR36/AR37 which should be the 100M sysclk input on the dev kit.

Yi_1-1706839901780.png

 

Also there's chance that clock is correct but reset was pulled, so PHY stuck in the reset mode, this you may also check the reset source or use ISSP to control the reset signal for a try.

0 Kudos
KhaiChein_Y_Intel
6,194 Views

Hi,

We do not receive any response from you to the previous question. This thread will be transitioned to community support. 

If you have a new question, feel free to open a new thread to get the support from Intel experts. 

Otherwise, the community users will continue to help you on this thread. 

Thank you.


Best regards,

Khai


0 Kudos
Reply