#=======================================================
# SERIALIZER CONFIG REGISTERS
#=======================================================

# scb_read_register -address 0x0102000
# scb_read_register -address 0x0102004
# scb_read_register -address 0x0102008
# scb_read_register -address 0x0102040
# scb_read_register -address 0x0102058
# scb_read_register -address 0x010205C
# scb_read_register -address 0x0102068
# scb_read_register -address 0x010206C
# scb_read_register -address 0x0102088
# scb_read_register -address 0x010208C
# scb_read_register -address 0x0102090
# scb_read_register -address 0x0102094


# TXPLL_CLKBUF
xcvr_write_register -inst_name {CPRI_TOP_0/PF_XCVR_ERM_C1_0/I_XCVR/LANE0} -reg_name {TXPLL_CLKBUF} -value {0x000000FF} 

# TXPLL_CLOCK_SELECT
xcvr_write_register -inst_name {CPRI_TOP_0/PF_XCVR_ERM_C1_0/I_XCVR/LANE0} -reg_name {TXPLL_CLK_SEL} -value {0x3FFBA000}  

# TXPLL_CTRL
xcvr_write_register -inst_name {CPRI_TOP_0/PF_XCVR_ERM_C1_0/I_XCVR/LANE0} -reg_name {TXPLL_CTRL} -value {0x0000000D}  
          
#TXPLL_DIV_1 
xcvr_write_register -inst_name {CPRI_TOP_0/PF_XCVR_ERM_C1_0/I_XCVR/LANE0} -reg_name {TXPLL_DIV_1} -value {0x0014000A}  
                 
#TXPLL_DIV_2 
xcvr_write_register -inst_name {CPRI_TOP_0/PF_XCVR_ERM_C1_0/I_XCVR/LANE0} -reg_name {TXPLL_DIV_2} -value {0x01000000}  
   



#TXPLL_JA_RST 
xcvr_write_register -inst_name {CPRI_TOP_0/PF_XCVR_ERM_C1_0/I_XCVR/LANE0} -reg_name {TXPLL_JA_RST} -value {0xFFFFFFFF} 

# TXPLL_JA_1
xcvr_write_register -inst_name {CPRI_TOP_0/PF_XCVR_ERM_C1_0/I_XCVR/LANE0} -reg_name {TXPLL_JA_1} -value {0x00F8007C} 

# TXPLL_JA_2                   
xcvr_write_register -inst_name {CPRI_TOP_0/PF_XCVR_ERM_C1_0/I_XCVR/LANE0} -reg_name {TXPLL_JA_2} -value {0x000007D0} 

# TXPLL_JA_3 
xcvr_write_register -inst_name {CPRI_TOP_0/PF_XCVR_ERM_C1_0/I_XCVR/LANE0} -reg_name {TXPLL_JA_3} -value {0x000503E8}

# TXPLL_JA_4
xcvr_write_register -inst_name {CPRI_TOP_0/PF_XCVR_ERM_C1_0/I_XCVR/LANE0} -reg_name {TXPLL_JA_4} -value {0x08B50019}

# TXPLL_JA_5
xcvr_write_register -inst_name {CPRI_TOP_0/PF_XCVR_ERM_C1_0/I_XCVR/LANE0} -reg_name {TXPLL_JA_5} -value {0x01DDEBE9}

# TXPLL_JA_6
xcvr_write_register -inst_name {CPRI_TOP_0/PF_XCVR_ERM_C1_0/I_XCVR/LANE0} -reg_name {TXPLL_JA_6} -value {0x001E0007}

# TXPLL_JA_7
xcvr_write_register -inst_name {CPRI_TOP_0/PF_XCVR_ERM_C1_0/I_XCVR/LANE0} -reg_name {TXPLL_JA_7} -value {0x073B6C1C}
                
# TXPLL_JA_8
xcvr_write_register -inst_name {CPRI_TOP_0/PF_XCVR_ERM_C1_0/I_XCVR/LANE0} -reg_name {TXPLL_JA_8} -value {0x01000000}

# TXPLL_JA_9
xcvr_write_register -inst_name {CPRI_TOP_0/PF_XCVR_ERM_C1_0/I_XCVR/LANE0} -reg_name {TXPLL_JA_9} -value {0x00000028}

# TXPLL_JA_10
#scb_write_register -address 0x111003C -val 0x00000000

#TXPLL_JA_RST 
xcvr_write_register -inst_name {CPRI_TOP_0/PF_XCVR_ERM_C1_0/I_XCVR/LANE0} -reg_name {TXPLL_JA_RST} -value {0x00000000} 



#LRST_R0  
xcvr_write_register -inst_name {CPRI_TOP_0/PF_XCVR_ERM_C1_0/I_XCVR/LANE0} -reg_name {LRST_R0} -value {0000080C} 

#LRST_R0  
xcvr_write_register -inst_name {CPRI_TOP_0/PF_XCVR_ERM_C1_0/I_XCVR/LANE0} -reg_name {LRST_R0} -value {4}
  
