AD9371 JESD204B PRBS check status

Hello
I am using AD9371 Non OS codes (2019_r1 version and HDL also same version)
Xiiinx board : KCU116.
I am checking JESD behaviour.
We tried to check the "DeFramer PRBS".
For this checking, following code is added to Non-OS "headless.c" file.
uint32_t prbsErrorCount0;
uint32_t prbsErrorCount1;
uint32_t prbsErrorCount2;
uint32_t prbsErrorCount3;
/* PRBS check */
printf("PRBS check start...\n");
MYKONOS_clearDeframerPrbsCounters(&mykDevice);
MYKONOS_readDeframerPrbsCounters(&mykDevice,0,&prbsErrorCount0);
printf("PRBS error counter count(Before start) Lane0: %d\n",prbsErrorCount0);
MYKONOS_readDeframerPrbsCounters(&mykDevice,1,&prbsErrorCount1);
printf("PRBS error counter count(Before start) Lane1: %d\n",prbsErrorCount1);
MYKONOS_readDeframerPrbsCounters(&mykDevice,2,&prbsErrorCount2);
printf("PRBS error counter count(Before start) Lane2: %d\n",prbsErrorCount2);
MYKONOS_readDeframerPrbsCounters(&mykDevice,3,&prbsErrorCount3);
printf("PRBS error counter count(Before start) Lane3: %d\n",prbsErrorCount3);
MYKONOS_enableDeframerPrbsChecker(&mykDevice,15,MYK_PRBS7,1);
MYKONOS_readDeframerPrbsCounters(&mykDevice,0,&prbsErrorCount0);
printf("PRBS error counter count(After check) Lane0: %d\n",prbsErrorCount0);
MYKONOS_readDeframerPrbsCounters(&mykDevice,1,&prbsErrorCount1);
printf("PRBS error counter count(After check) Lane1: %d\n",prbsErrorCount1);
MYKONOS_readDeframerPrbsCounters(&mykDevice,2,&prbsErrorCount2);
printf("PRBS error counter count(After check) Lane2: %d\n",prbsErrorCount2);
MYKONOS_readDeframerPrbsCounters(&mykDevice,3,&prbsErrorCount3);
printf("PRBS error counter count(After check) Lane3: %d\n",prbsErrorCount3);
MYKONOS_enableDeframerPrbsChecker(&mykDevice,15,MYK_PRBS7,0);
printf("PRBS check end...\n");
As the result, following log is appeared at Tera Term log.
PRBS check start...
PRBS error counter count(Before start) Lane0: 0
PRBS error counter count(Before start) Lane1: 0
PRBS error counter count(Before start) Lane2: 0
PRBS error counter count(Before start) Lane3: 0
PRBS error counter count(After check) Lane0: 93732
PRBS error counter count(After check) Lane1: 13353520
PRBS error counter count(After check) Lane2: 16777215
PRBS error counter count(After check) Lane3: 16777215
PRBS check end...
At first, is our added code correct for Deframer PRBS check?
When it is correct, is there a cause and solution for this "DeFramer PRBS" error?

Any help would be very useful
Thank you
Regards
Pavan
  • 0
    •  Analog Employees 
    on Oct 24, 2020 4:25 AM 1 month ago

    Your code looks okay.

    Can you please check whether you Enable the PRBS generator on the baseband processor with the same PRBS sequence required?

    Please check there is no polarity mismatch in SerDes lanes.

    Can you please try running the PRBS checker at a reduced sample / Lane rate?