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

Arria 10 transceiver ATX PLL unlocked, when reference clock not present during device configuration

diddi1057
New Contributor I
2,082 Views

Hi all,

please refer to attachment pdf ....

Thanks

0 Kudos
1 Solution
diddi1057
New Contributor I
1,901 Views

Hi,

good news:

1. I have successfully simulated design in Modelsim -> ATX PLL relocked after REFCLK is present ->o.k.

2. I have successfully downloaded design to hardware -> ATX PLL relocked after REFCLK is present ->o.k.

Thank's for your advice!

Regards

diddi1057

 

View solution in original post

0 Kudos
19 Replies
CheePin_C_Intel
Employee
2,067 Views

Hi,


As I understand it from your PDF, you observe an issue where ATX PLL unable to achieve lock due to no refclk present at power up. You have tested recalibration but seems not helping. With stable refclk present at power up, there PLL is locked.


To facilitate further debugging, just to check with you on the following:


1. Just wonder if you have had a chance to run through simulation with your recalibration steps to see if the ATX PLL is able to re-achieve lock?


2. Can you try to hold the ATX PLL in reset during power up, release when stable refclk is present. Then perform recalibration to ATX PLL followed by a reset.


3. Just to double check if the CLKUSR is directly sourced from a free-running and stable clock source on board?


4. Please share with me further on the steps that you have taken for recalibration ie the register writing sequence. I would like to see if can spot any anomaly.


Please let me know if there is nay concern. Thank you.


0 Kudos
diddi1057
New Contributor I
2,065 Views

Hi,


As I understand it from your PDF, you observe an issue where ATX PLL unable to achieve lock due to no refclk present at power up. You have tested recalibration but seems not helping. With stable refclk present at power up, there PLL is locked.

Yes, correct!


To facilitate further debugging, just to check with you on the following:


1. Just wonder if you have had a chance to run through simulation with your recalibration steps to see if the ATX PLL is able to re-achieve lock?

Did not make simulation yet, will try ...


2. Can you try to hold the ATX PLL in reset during power up, release when stable refclk is present. Then perform recalibration to ATX PLL followed by a reset.

Will try that.
3. Just to double check if the CLKUSR is directly sourced from a free-running and stable clock source on board?

Yes, CLKUSR is an external free running source=100MHz, verified


4. Please share with me further on the steps that you have taken for recalibration ie the register writing sequence. I would like to see if can spot any anomaly.

recalib register writing sequence: refer to pma_pll_calibration.vhd state machine.

please hold on for some time for investigation.


Please let me know if there is nay concern. Thank you.

0 Kudos
diddi1057
New Contributor I
2,061 Views

Hi,

1. Just wonder if you have had a chance to run through simulation with your recalibration steps to see if the ATX PLL is able to re-achieve lock?

Just made simulation:

-- Disabled Refclock for 1ms at start of Simulation

-- Then enabled Refclock

-- ATX PLL achieved lock after 13 us (without recalibration process)

Simulation takes a long time(~15 minutes for 2 ms). Wonder if the ATX PLL does also lock, when Refclock is disabled for longer time period at start of simulation(e.g. seconds)

diddi1057_1-1614265851980.png

 

2. Can you try to hold the ATX PLL in reset during power up, release when stable refclk is present. Then perform recalibration to ATX PLL followed by a reset.

Has no effect

 

 

0 Kudos
diddi1057
New Contributor I
2,034 Views

Hi,

Did you get my information about the simulation of the ATX PLL ?

I have no idea about whats going on there!

0 Kudos
CheePin_C_Intel
Employee
2,032 Views

Hi,


Sorry for the delay. Regarding the simulation with the ATX PLL recalibration, the purpose of doing this is to check if the steps of recalibration is OK. In simulation, after ATX PLL achieves lock, if you trigger the recalibration, you should see ATX PLL going into recalibration and then out from recalibration and then achieve lock.


I am not sure if the model can replicate the no refclk behavior at power up. Thus, the purpose of simulation is to check the recalibration steps.


0 Kudos
diddi1057
New Contributor I
2,029 Views

Hi,

performed new simulation:

REFCKL is stable at startup.

ATX PLL locked after 13 us -> OK

Then trigger recalibration: signal pll_cal_busy stays '0', signal pll_locked stays '1'

For ATX PLL recalibration, I performed the following steps (Intel® Arria® 10 Transceiver PHY
User Guide, §7.4.1.1)

1.Request access to the internal configuration bus by writing 0x2 to offset address 0x0[7:0].
2.Read-Modify-Write 0x1 to the offset address 0x100[0] of the ATX PLL.
3.Release the internal configuration bus to PreSICE to perform recalibration by writing 0x1 to offset address 0x0[7:0].

Is there any register I also have to configure for ATX PLL recalibration?

 

0 Kudos
CheePin_C_Intel
Employee
2,026 Views

Hi,


Thanks for your update. Your steps tally with those described in the user guide. I checked with register map and do not spot any anomaly. Just to check with you when you are doing the same steps in hardware, do you see the pll_cal_busy go high after triggering recalibration?


Can you share with me a simple test design with one channel Native PHY + ATX PLL + reset controller which could replicate your observation in Modelsim? I would like to further look into it.


Please let me know if there is any concern. Thank you. 



Best regards,

Chee Pin



0 Kudos
diddi1057
New Contributor I
2,002 Views

Hi,

thanks for your answer. Will try do give you the required info next Monday!

0 Kudos
diddi1057
New Contributor I
1,981 Views

Hi,

attached the simple simulation project with one channel Native PHY + ATX PLL + reset controller. Please refer to atx_pll_simu.pdf inside project for instruction. 

I have to check again the same steps in hardware,  if pll_cal_busy go high after triggering recalibration ...

Best regards

diddi1057

 

0 Kudos
CheePin_C_Intel
Employee
1,969 Views

Hi,


Thanks for sharing your QAR. Just to check with you which specific Quartus version that you are using? Thank you.


0 Kudos
diddi1057
New Contributor I
1,966 Views
0 Kudos
CheePin_C_Intel
Employee
1,969 Views

Hi,


Would you mind to share with simulation which could be directly simulated in Modelsim ie using msim_setup.tcl without going through native link. This would be helpful to facilitate further debugging. Thank you.


0 Kudos
diddi1057
New Contributor I
1,964 Views

Hi,

attached project using msim_setup.tcl .

Created /mentor/test_atx_pll_no_lock.do -> Adapt  QSYS_SIMDIR

0 Kudos
CheePin_C_Intel
Employee
1,931 Views

Hi,


Thanks for your update and sharing. I am able to run the simulation now and observe similar waveform. As I look into your transceiver_sfp.vhd, I observed that seems like you are not enabling the reconfiguration interface of the ATX PLL. Only the Native PHY reconfiguration interface is enabled and connected. To recalibrate the ATX PLL, you would need to write to the ATX PLL reconfiguration interface.


Can you try to enable the reconfiguration interface of the ATX PLL and perform the ATX PLL recalibration registers read/write process to see if it works?


Thank you.


0 Kudos
diddi1057
New Contributor I
1,929 Views

Hi,

thanks for info! Guess thats the issue. Will try on next Monday and give you my feedback.

This was not clear in the documentation for me.

Regards 

diddi1057

0 Kudos
CheePin_C_Intel
Employee
1,903 Views

Hi,


Thanks for your update. Please keep me posted on the test result. Thank you.


0 Kudos
diddi1057
New Contributor I
1,902 Views

Hi,

good news:

1. I have successfully simulated design in Modelsim -> ATX PLL relocked after REFCLK is present ->o.k.

2. I have successfully downloaded design to hardware -> ATX PLL relocked after REFCLK is present ->o.k.

Thank's for your advice!

Regards

diddi1057

 

0 Kudos
CheePin_C_Intel
Employee
1,898 Views

Hi,


Thanks for your update. Glad to hear that you have managed to resolve the problem and get your design working.


0 Kudos
CheePin_C_Intel
Employee
1,898 Views

Hi,


I believe the initial inquiry has been addressed. 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.


0 Kudos
Reply