I'm actually working on the QuadMxFE Platform Rev.B with a custom FPGA design composed by a Petalinux Distribution and custom Software and custom firmware using the Xilinx JESD204 IP Core.
My goal is to achieve Phase determinism and allign 2 MxFEs. I already achieve the Phase determinism on 4 ADCs on the same chip however i have some difficulty to understand what is the workflow in order to achieve MCS. On the UG of AD9081 are explained many information about sysref sampling and correction on sample time, averaging etc... however i not identify clearly which parameters i need to monitor for MCS goal.
Analyzing Analog Devices Linux distribution, I identify 3 main API routines issued by Matlab Code:
- Stage1: OneShot Sync
- Stage2: NCO Sync
- Stage3: NCO Post Sync
I suppose that routine is enabled by the Matlab Code: "tx.setDeviceAttributeRAW('multichip_sync', '10', tx.iioDev3); %Issue MCS" and is executed until the phase bewteen SYSREF and LEMC is null. About this point, i monitor this parameter, however for every successive reading the value of the phase is different. Is that normal?If not which parameter i need to monitor?
Another question is about sysref mode of operation. The One shot procedure is executed using the averaged sysref, but is not any specification about the previous sysref operation mode. Until OneShot Sync the SYSREF is oneshot or continuous mode? I need to use both modes of operation of SYSREF? Maybe at startup oneshot and before running OneShot Sync enable continuous and averaging?
What about the sysref sampling indicator? In the UG seems like a very important point the Sampling Monitoring of the SYSREF in Monitor mode, however in your linux distribution and matlab code there is no point where this is executed.
Can you provide me a flow of the settings and parameters to monitor before and after running MCS?There is a priority order to monitor that? Thank you very much.