Post Go back to editing

AD9152 JESD Initilization Sequence

Category: Hardware
Product Number: AD9152

Hello there,

I have been dealing with bringing up AD9152 with Xilinx FPGA JESD Tx Core with JESD PHY. 
Followed all the guildelines through the datasheet of AD9152 but somehow link is getting down after passing to USERDATA state following CGS and ILAS states.
As the CGS and ILAS pass, the SPI register contents tell me that the lane are synced and locked but after  ~3000 cycles from the first initilaization the link goes down.
Then the initilization loop began and goes continously. I am monitoring the SYNC pin that AD9152 drives for FPGA and it is toggling in a really frequent way. 
Below I will give my parameters and a screenshot of Sync signal. I am stuck with the bringing up process. Any advice will be helpful. 
Thanks in advance,
Berk

I am using custom board by the way and the lanes are well matched to 100ohm differential impedance and lane lengths are in between 17mm-20mm.
Try to get the Lane Rate of 8Gbps with the DAC RefClk of 200Mhz, FPGA MGT Ref CLK of 200Mhz and JESD Tx Core Clock as 200Mhz, all fed from HMC7044. 
Trying to align first JESD204B Subclass0 therefore no SYS_REF included yet. 

No lane swapping or lane polarity changes done on  the board. 

 JESD PARAMETERS F=1 L = 4 M=2 K=32 S=1 N=16 N'=16 HD=1 which is JESD Mode 4 of AD9152. 

DAC VCO is set 6.4Ghz and DAC Clock is 800Mhz which implies 8Gbps of line rate. 

/resized-image/__size/640x480/__key/communityserver-discussions-components-files/424/sync_5F00_behavior3.png

/resized-image/__size/640x480/__key/communityserver-discussions-components-files/424/sync_5F00_behavior2.png

/resized-image/__size/640x480/__key/communityserver-discussions-components-files/424/sync_5F00_behavior1.png


Below are the AD9152 Parameters :

parameters are given as 16bit address & 8 bit data
/* ========================================================================= */
/* 1. SPI & Device Verification */
/* ========================================================================= */
assign AD9152_ROM[0] = 24'h0000_81; /* Assert Reset */
assign AD9152_ROM[1] = 24'h0000_00; /* Deassert Reset */
assign AD9152_ROM[2] = 24'h0011_00; /* Enable DACs */
assign AD9152_ROM[3] = 24'h0080_04; /* Duty Enable */
assign AD9152_ROM[4] = 24'h0081_04; /* SYSREF Enable */
assign AD9152_ROM[5] = 24'h01CD_D8; /* Bandgap */
/* ========================================================================= */
/* 2. SERDES PLL/
/* ========================================================================= */
assign AD9152_ROM[6] = 24'h0284_62; /* ADI MUST WRITE */
assign AD9152_ROM[7] = 24'h0285_C9; /* ADI MUST WRITE */
assign AD9152_ROM[8] = 24'h0286_0E; /* ADI MUST WRITE */
assign AD9152_ROM[9] = 24'h0287_12; /* ADI MUST WRITE */
assign AD9152_ROM[10] = 24'h028A_2B; /* TABLE 36 */
assign AD9152_ROM[11] = 24'h028B_00; /* ADI MUST WRITE */
assign AD9152_ROM[12] = 24'h0290_89; /* ADI MUST WRITE */
assign AD9152_ROM[13] = 24'h0291_4C; /* TABLE 36 */
assign AD9152_ROM[14] = 24'h0294_24; /* ADI MUST WRITE */
assign AD9152_ROM[15] = 24'h0296_03; /* TABLE 36 */
assign AD9152_ROM[16] = 24'h0297_0D; /* ADI MUST WRITE */
assign AD9152_ROM[17] = 24'h0299_02; /* ADI MUST WRITE */
assign AD9152_ROM[18] = 24'h029A_8E; /* ADI MUST WRITE */
assign AD9152_ROM[19] = 24'h029C_2A; /* ADI MUST WRITE */
assign AD9152_ROM[20] = 24'h029F_7E; /* ADI MUST WRITE */
assign AD9152_ROM[21] = 24'h02A0_06; /* ADI MUST WRITE */
/* ========================================================================= */
/* 2. DAC PLL/
/* ========================================================================= */
assign AD9152_ROM[22] = 24'h008D_7B; /* ADI MUST WRITE */
assign AD9152_ROM[23] = 24'h01B0_00; /* ADI MUST WRITE */
assign AD9152_ROM[24] = 24'h01B9_24; /* ADI MUST WRITE */
assign AD9152_ROM[25] = 24'h01BC_0D; /* ADI MUST WRITE */
assign AD9152_ROM[26] = 24'h01BE_02; /* ADI MUST WRITE */
assign AD9152_ROM[27] = 24'h01BF_8E; /* ADI MUST WRITE */
assign AD9152_ROM[28] = 24'h01C0_2A; /* ADI MUST WRITE */
assign AD9152_ROM[29] = 24'h01C4_7E; /* ADI MUST WRITE */
assign AD9152_ROM[30] = 24'h01C1_2C; /* ADI MUST WRITE */
/* ========================================================================= */
/* 2. Optional DAC PLL/
/* ========================================================================= */
assign AD9152_ROM[31] = 24'h008B_02; /* ADI MUST WRITE */
assign AD9152_ROM[32] = 24'h008C_02; /* ADI MUST WRITE */
assign AD9152_ROM[33] = 24'h0085_08; /* ADI MUST WRITE */
assign AD9152_ROM[34] = 24'h01B6_49; /* Table 73 */
assign AD9152_ROM[35] = 24'h01B5_C7; /* Table 73 */
assign AD9152_ROM[36] = 24'h01BB_1A; /* Table 73 */
assign AD9152_ROM[37] = 24'h01B4_78; /* ADI MUST WRITE */
assign AD9152_ROM[38] = 24'h01C5_08; /* Table 73 */
assign AD9152_ROM[39] = 24'h008A_12; /* ADI MUST WRITE */
assign AD9152_ROM[40] = 24'h0087_62; /* ADI MUST WRITE */
assign AD9152_ROM[41] = 24'h0088_C9; /* ADI MUST WRITE */
assign AD9152_ROM[42] = 24'h0089_0E; /* ADI MUST WRITE */
assign AD9152_ROM[43] = 24'h0083_10; /* ADI MUST WRITE */ //--- READ PLL LOCK From 0x84
assign AD9152_ROM[44] = 24'h0083_90; /* ADI MUST WRITE */ //--- READ PLL LOCK From 0x84
//assign AD9152_ROM[44] = 24'h0083_10; /* ADI MUST WRITE */ //--- READ PLL LOCK From 0x84
/* ========================================================================= */
/* 2. DIGITAL DATA PATH/
/* ========================================================================= */
assign AD9152_ROM[45] = 24'h0112_00; /* ADI MUST WRITE */
assign AD9152_ROM[46] = 24'h0110_00; /* ADI MUST WRITE */
/* ========================================================================= */
/* 2. TRANSPORT LAYER/ JESD MOD 4
/* ========================================================================= */
assign AD9152_ROM[47] = 24'h0200_00; /* ADI MUST WRITE */
assign AD9152_ROM[48] = 24'h0201_00; /* ADI MUST WRITE */
assign AD9152_ROM[49] = 24'h0300_00; /* Checksum mode */
assign AD9152_ROM[50] = 24'h0450_49; /* DIDS */
assign AD9152_ROM[51] = 24'h0451_07; /* BIDS */
assign AD9152_ROM[52] = 24'h0452_00; /* LIDS */
assign AD9152_ROM[53] = 24'h0453_03; /* lane number & scrambling */ //SCRAMBLING OFF
assign AD9152_ROM[54] = 24'h0454_00; /* F-1 */
assign AD9152_ROM[55] = 24'h0455_1F; /* K-1 */
assign AD9152_ROM[56] = 24'h0456_01; /* M-1 */
assign AD9152_ROM[57] = 24'h0457_0F; /* N-1 */
assign AD9152_ROM[58] = 24'h0458_0F; /* Subclass & Np-1 */
assign AD9152_ROM[59] = 24'h0459_20; /* S-1 */
assign AD9152_ROM[60] = 24'h045A_80; /* ADI MUST WRITE */
assign AD9152_ROM[61] = 24'h046C_0F; /* ADI MUST WRITE */
assign AD9152_ROM[62] = 24'h0476_01; /* ADI MUST WRITE */
assign AD9152_ROM[63] = 24'h047D_0F; /* ADI MUST WRITE */
/* ========================================================================= */
/* 2. PHYSICAL LAYER/
/* ========================================================================= */
assign AD9152_ROM[64] = 24'h02AA_B7; /* ADI MUST WRITE */
assign AD9152_ROM[65] = 24'h02AB_87; /* ADI MUST WRITE */
assign AD9152_ROM[66] = 24'h02A7_01; /* ADI MUST WRITE */
assign AD9152_ROM[67] = 24'h0314_01; /* ADI MUST WRITE */
assign AD9152_ROM[68] = 24'h0230_29; /* ADI MUST WRITE */
assign AD9152_ROM[69] = 24'h0206_00; /* ADI MUST WRITE */
assign AD9152_ROM[70] = 24'h0206_01; /* ADI MUST WRITE */
assign AD9152_ROM[71] = 24'h0289_04; /* ADI MUST WRITE */
assign AD9152_ROM[72] = 24'h0280_01; /* ADI MUST WRITE */
assign AD9152_ROM[73] = 24'h0280_05; /* ADI MUST WRITE */
assign AD9152_ROM[74] = 24'h0268_62; /* ADI MUST WRITE */
/* ========================================================================= */
/* 2. DATALINK LAYER/
/* ========================================================================= */
assign AD9152_ROM[75] = 24'h0301_00; /* ADI MUST WRITE */
assign AD9152_ROM[76] = 24'h0304_04; /* LMFC Delay */
assign AD9152_ROM[77] = 24'h0306_0A; /* LMFC Buffer */
assign AD9152_ROM[78] = 24'h003A_01; /* ADI MUST WRITE */
assign AD9152_ROM[79] = 24'h003A_81; /* ADI MUST WRITE */
assign AD9152_ROM[80] = 24'h003A_C1; /* ADI MUST WRITE */
assign AD9152_ROM[81] = 24'h0308_08; /* lane mapping */
assign AD9152_ROM[82] = 24'h0309_1A; /* lane mapping */
assign AD9152_ROM[83] = 24'h0334_00; /* polarity reversal */
assign AD9152_ROM[84] = 24'h0034_07; /* error window */
assign AD9152_ROM[85] = 24'h0300_01; /* ADI MUST WRITE */

By the way, the SERDES PLL and DAC PLL is always seems to be LOCK which is read from 0x084 and 0x281 register. 

This is the Xilinx JESD TX core parameters 

parameters are as 8 bit address & 32 bit data

assign JESD204_ROM[0] = 40'h20_00000001; /* Assert Reset */
assign JESD204_ROM[1] = 40'h24_00000002; /* CTRL ENABLE */
assign JESD204_ROM[2] = 40'h34_00000000; /* SubClass */
assign JESD204_ROM[3] = 40'h3C_030E1F00; /* Lane Params */ // SCRAMBLING OFF
assign JESD204_ROM[4] = 40'h70_00000749; /* BID & DID */
assign JESD204_ROM[5] = 40'h74_000F0F01; /* Lane Params */
assign JESD204_ROM[6] = 40'h78_00010000; /* Lane Params */
assign JESD204_ROM[7] = 40'h40_0000000F; /* Lane Enable */
assign JESD204_ROM[8] = 40'h48_00000000; /* Test Mode */
assign JESD204_ROM[9] = 40'h20_00000000; /* Desssert Reset */

Edit Notes

AD9152 is added to title
[edited by: berkbasaklar at 4:48 PM (GMT -4) on 27 Oct 2026]
  • Hi  ,

    Thank you for using AD9152.

    Since CGS and ILAS complete successfully but the link drops after entering USERDATA, the basic JESD204B link appears to be established, but the AD9152 is detecting an error afterward and reasserting SYNC.

    Please check the following:

    • Verify the AD9152 and Xilinx JESD parameters exactly match, particularly F, K, L, M, N, N’, S, HD, subclass, and scrambling.
    • After the link drops, read the AD9152 JESD lane/link error status registers before restarting initialization.
    • Since the DAC and SERDES PLLs remain locked, focus first on the JESD link/data configuration.

    Please share the JESD error/status registers immediately after SYNC is asserted so we can further isolate the cause.

    Best regards,
    Alex

  • Hi Alex, 
    JESD parameters are matched I have checked via the received ILAs parameters registers inside AD9152. 
    Regarding to error registers of JESD, I continuously monitor the SPI registers, however as SYNC is asserting at random times and link recovery via CGS and ILAS afterwards is so fast that the error registers I guess does not reflect the live error status. 

    My suspicion is at first sysref alignment with LMFC but returning to subclass 0 also did not resolve. 

    Therefore I am in need of debug assistance for this issue. 

    Regarding 470-473 register are read locked even though the SYNC is asserting.



    For example in this snapshot, 46b is held with default setting for write access. 46b has 0x0C but 46d, 46e and 46f is 0x00. This also happens in some SYNC assertion.
    Also if there are errors in 46d 46e 46f , I am not wirting 0x00 to these registers how come the registers gets cleaned. In every resync is it cleaning itself? 

    Again for debug purposes I changed JESD Mode to 10 and dropped the link rate to 2Gbps on single lane, however stilll having the same sync response. But I can say that the link alive time has increased. 

    Any help is appreciated.

    After the link drops, read the AD9152 JESD lane/link error status registers before restarting initialization. According to this I have to manipulate the SYNC signal going into the JESD IP of Xilinx so that the reinitilization will start in a controllable way. 

    Thanks in advance, 
    Berk

Before You Switch


Switching languages will make ADI Explorer unavailable. Resume your session by switching back to English and reopening ADI Explorer.