2019-12-05 08:59:26 +00:00
|
|
|
## ADC FIFO depth in samples per converter
|
|
|
|
set adc_fifo_samples_per_converter [expr 64*1024]
|
|
|
|
## DAC FIFO depth in samples per converter
|
|
|
|
set dac_fifo_samples_per_converter [expr 64*1024]
|
|
|
|
|
|
|
|
|
|
|
|
source $ad_hdl_dir/projects/common/zcu102/zcu102_system_bd.tcl
|
|
|
|
source $ad_hdl_dir/projects/common/xilinx/adcfifo_bd.tcl
|
|
|
|
source $ad_hdl_dir/projects/common/xilinx/dacfifo_bd.tcl
|
2020-11-05 11:24:58 +00:00
|
|
|
|
|
|
|
ad_mem_hp0_interconnect $sys_cpu_clk sys_ps8/S_AXI_HP0
|
|
|
|
|
2021-05-05 11:42:54 +00:00
|
|
|
source $ad_hdl_dir/projects/ad9081_fmca_ebz/common/ad9081_fmca_ebz_bd.tcl
|
2020-10-09 14:28:10 +00:00
|
|
|
source $ad_hdl_dir/projects/scripts/adi_pd.tcl
|
2019-12-05 08:59:26 +00:00
|
|
|
|
2022-09-23 09:28:22 +00:00
|
|
|
set mem_init_sys_path [get_env_param ADI_PROJECT_DIR ""]mem_init_sys.txt;
|
|
|
|
|
2019-12-05 08:59:26 +00:00
|
|
|
#system ID
|
|
|
|
ad_ip_parameter axi_sysid_0 CONFIG.ROM_ADDR_BITS 9
|
2022-09-23 09:28:22 +00:00
|
|
|
ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "[pwd]/$mem_init_sys_path"
|
2019-12-05 08:59:26 +00:00
|
|
|
ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9
|
2020-09-28 21:10:35 +00:00
|
|
|
|
|
|
|
sysid_gen_sys_init_file
|
2019-12-05 08:59:26 +00:00
|
|
|
|
|
|
|
# Parameters for 15.5Gpbs lane rate
|
|
|
|
|
|
|
|
ad_ip_parameter util_mxfe_xcvr CONFIG.RX_CLK25_DIV 31
|
|
|
|
ad_ip_parameter util_mxfe_xcvr CONFIG.TX_CLK25_DIV 31
|
|
|
|
ad_ip_parameter util_mxfe_xcvr CONFIG.CPLL_CFG0 0x1fa
|
|
|
|
ad_ip_parameter util_mxfe_xcvr CONFIG.CPLL_CFG1 0x23
|
|
|
|
ad_ip_parameter util_mxfe_xcvr CONFIG.CPLL_CFG2 0x2
|
|
|
|
ad_ip_parameter util_mxfe_xcvr CONFIG.CPLL_FBDIV 2
|
|
|
|
ad_ip_parameter util_mxfe_xcvr CONFIG.A_TXDIFFCTRL 0xc
|
|
|
|
ad_ip_parameter util_mxfe_xcvr CONFIG.RXCDR_CFG0 0x3
|
|
|
|
ad_ip_parameter util_mxfe_xcvr CONFIG.RXCDR_CFG2_GEN2 0x265
|
|
|
|
ad_ip_parameter util_mxfe_xcvr CONFIG.RXCDR_CFG2_GEN4 0x164
|
|
|
|
ad_ip_parameter util_mxfe_xcvr CONFIG.RXCDR_CFG3 0x1A
|
|
|
|
ad_ip_parameter util_mxfe_xcvr CONFIG.RXCDR_CFG3_GEN2 0x1A
|
|
|
|
ad_ip_parameter util_mxfe_xcvr CONFIG.RXCDR_CFG3_GEN3 0x1A
|
|
|
|
ad_ip_parameter util_mxfe_xcvr CONFIG.RXCDR_CFG3_GEN4 0x12
|
|
|
|
ad_ip_parameter util_mxfe_xcvr CONFIG.CH_HSPMUX 0x6868
|
|
|
|
ad_ip_parameter util_mxfe_xcvr CONFIG.PREIQ_FREQ_BST 1
|
|
|
|
ad_ip_parameter util_mxfe_xcvr CONFIG.RXPI_CFG0 0x4
|
|
|
|
ad_ip_parameter util_mxfe_xcvr CONFIG.RXPI_CFG1 0x0
|
|
|
|
ad_ip_parameter util_mxfe_xcvr CONFIG.TXPI_CFG 0x0
|
|
|
|
ad_ip_parameter util_mxfe_xcvr CONFIG.TX_PI_BIASSET 3
|
|
|
|
|
|
|
|
ad_ip_parameter util_mxfe_xcvr CONFIG.QPLL_REFCLK_DIV 1
|
|
|
|
ad_ip_parameter util_mxfe_xcvr CONFIG.POR_CFG 0x0
|
|
|
|
ad_ip_parameter util_mxfe_xcvr CONFIG.QPLL_CFG0 0x333c
|
|
|
|
ad_ip_parameter util_mxfe_xcvr CONFIG.QPLL_CFG4 0x45
|
|
|
|
ad_ip_parameter util_mxfe_xcvr CONFIG.QPLL_FBDIV 20
|
|
|
|
ad_ip_parameter util_mxfe_xcvr CONFIG.PPF0_CFG 0xF00
|
|
|
|
ad_ip_parameter util_mxfe_xcvr CONFIG.QPLL_CP 0xFF
|
|
|
|
ad_ip_parameter util_mxfe_xcvr CONFIG.QPLL_CP_G3 0xF
|
|
|
|
ad_ip_parameter util_mxfe_xcvr CONFIG.QPLL_LPF 0x2FF
|
|
|
|
|
2021-05-14 10:21:32 +00:00
|
|
|
# Overwrite parameter for lower lane rates which use CPLL
|
|
|
|
if {$ad_project_params(RX_LANE_RATE) < 12} {
|
|
|
|
ad_ip_parameter util_mxfe_xcvr CONFIG.RX_WIDEMODE_CDR 0x0
|
|
|
|
ad_ip_parameter util_mxfe_xcvr CONFIG.RXPI_CFG0 0x200
|
|
|
|
ad_ip_parameter util_mxfe_xcvr CONFIG.RXPI_CFG1 0xFD
|
2021-05-17 06:17:07 +00:00
|
|
|
|
2021-05-14 10:21:32 +00:00
|
|
|
ad_ip_parameter util_mxfe_xcvr CONFIG.RXCDR_CFG3 0x12
|
|
|
|
ad_ip_parameter util_mxfe_xcvr CONFIG.RXCDR_CFG3_GEN2 0x12
|
|
|
|
ad_ip_parameter util_mxfe_xcvr CONFIG.RXCDR_CFG3_GEN3 0x12
|
|
|
|
ad_ip_parameter util_mxfe_xcvr CONFIG.RXCDR_CFG3_GEN4 0x12
|
|
|
|
}
|
2019-12-05 08:59:26 +00:00
|
|
|
|