ad9082_fmca_ebz:vcu118: Initial version
parent
6b13b32f24
commit
f56e3c305b
|
@ -0,0 +1,37 @@
|
|||
####################################################################################
|
||||
## Copyright 2018(c) Analog Devices, Inc.
|
||||
## Auto-generated, do not modify!
|
||||
####################################################################################
|
||||
|
||||
PROJECT_NAME := ad9082_fmca_ebz_vcu118
|
||||
|
||||
M_DEPS += ../../ad9081_fmca_ebz/vcu118/timing_constr.xdc
|
||||
M_DEPS += ../../ad9081_fmca_ebz/vcu118/system_constr.xdc
|
||||
M_DEPS += ../../ad9081_fmca_ebz/vcu118/system_top.v
|
||||
M_DEPS += ../../ad9081_fmca_ebz/common/ad9081_fmca_ebz_bd.tcl
|
||||
M_DEPS += ../../scripts/adi_pd.tcl
|
||||
M_DEPS += ../../common/xilinx/dacfifo_bd.tcl
|
||||
M_DEPS += ../../common/xilinx/adcfifo_bd.tcl
|
||||
M_DEPS += ../../common/vcu118/vcu118_system_constr.xdc
|
||||
M_DEPS += ../../common/vcu118/vcu118_system_bd.tcl
|
||||
M_DEPS += ../../../library/jesd204/scripts/jesd204.tcl
|
||||
M_DEPS += ../../../library/common/ad_iobuf.v
|
||||
M_DEPS += ../../../library/common/ad_3w_spi.v
|
||||
|
||||
LIB_DEPS += axi_dmac
|
||||
LIB_DEPS += axi_sysid
|
||||
LIB_DEPS += jesd204/ad_ip_jesd204_tpl_adc
|
||||
LIB_DEPS += jesd204/ad_ip_jesd204_tpl_dac
|
||||
LIB_DEPS += jesd204/axi_jesd204_rx
|
||||
LIB_DEPS += jesd204/axi_jesd204_tx
|
||||
LIB_DEPS += jesd204/jesd204_rx
|
||||
LIB_DEPS += jesd204/jesd204_tx
|
||||
LIB_DEPS += sysid_rom
|
||||
LIB_DEPS += util_adcfifo
|
||||
LIB_DEPS += util_dacfifo
|
||||
LIB_DEPS += util_pack/util_cpack2
|
||||
LIB_DEPS += util_pack/util_upack2
|
||||
LIB_DEPS += xilinx/axi_adxcvr
|
||||
LIB_DEPS += xilinx/util_adxcvr
|
||||
|
||||
include ../../scripts/project-xilinx.mk
|
|
@ -0,0 +1,63 @@
|
|||
|
||||
## 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/vcu118/vcu118_system_bd.tcl
|
||||
source $ad_hdl_dir/projects/common/xilinx/adcfifo_bd.tcl
|
||||
source $ad_hdl_dir/projects/common/xilinx/dacfifo_bd.tcl
|
||||
source ../../ad9081_fmca_ebz/common/ad9081_fmca_ebz_bd.tcl
|
||||
source $ad_hdl_dir/projects/scripts/adi_pd.tcl
|
||||
|
||||
ad_ip_parameter axi_mxfe_rx_jesd/rx CONFIG.NUM_INPUT_PIPELINE 2
|
||||
ad_ip_parameter axi_mxfe_tx_jesd/tx CONFIG.NUM_OUTPUT_PIPELINE 1
|
||||
|
||||
#system ID
|
||||
ad_ip_parameter axi_sysid_0 CONFIG.ROM_ADDR_BITS 9
|
||||
ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "[pwd]/mem_init_sys.txt"
|
||||
ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9
|
||||
|
||||
sysid_gen_sys_init_file
|
||||
|
||||
if {$ad_project_params(JESD_MODE) == "8B10B"} {
|
||||
# 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 0x2b
|
||||
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.CH_HSPMUX 0x4040
|
||||
ad_ip_parameter util_mxfe_xcvr CONFIG.PREIQ_FREQ_BST 1
|
||||
ad_ip_parameter util_mxfe_xcvr CONFIG.RTX_BUF_CML_CTRL 0x5
|
||||
ad_ip_parameter util_mxfe_xcvr CONFIG.RXPI_CFG0 0x3002
|
||||
ad_ip_parameter util_mxfe_xcvr CONFIG.RXCDR_CFG2 0x1E9
|
||||
ad_ip_parameter util_mxfe_xcvr CONFIG.RXCDR_CFG3 0x23
|
||||
ad_ip_parameter util_mxfe_xcvr CONFIG.RXCDR_CFG3_GEN2 0x23
|
||||
ad_ip_parameter util_mxfe_xcvr CONFIG.RXCDR_CFG3_GEN3 0x23
|
||||
ad_ip_parameter util_mxfe_xcvr CONFIG.RXCDR_CFG3_GEN4 0x23
|
||||
ad_ip_parameter util_mxfe_xcvr CONFIG.RX_WIDEMODE_CDR 0x1
|
||||
ad_ip_parameter util_mxfe_xcvr CONFIG.RX_XMODE_SEL 0x0
|
||||
ad_ip_parameter util_mxfe_xcvr CONFIG.TXDRV_FREQBAND 1
|
||||
ad_ip_parameter util_mxfe_xcvr CONFIG.TXFE_CFG1 0xAA00
|
||||
ad_ip_parameter util_mxfe_xcvr CONFIG.TXFE_CFG2 0xAA00
|
||||
ad_ip_parameter util_mxfe_xcvr CONFIG.TXFE_CFG3 0xAA00
|
||||
ad_ip_parameter util_mxfe_xcvr CONFIG.TXPI_CFG0 0x3100
|
||||
ad_ip_parameter util_mxfe_xcvr CONFIG.TXPI_CFG1 0x0
|
||||
ad_ip_parameter util_mxfe_xcvr CONFIG.TX_PI_BIASSET 1
|
||||
|
||||
ad_ip_parameter util_mxfe_xcvr CONFIG.QPLL_REFCLK_DIV 1
|
||||
ad_ip_parameter util_mxfe_xcvr CONFIG.QPLL_CFG0 0x333c
|
||||
ad_ip_parameter util_mxfe_xcvr CONFIG.QPLL_CFG4 0x2
|
||||
ad_ip_parameter util_mxfe_xcvr CONFIG.QPLL_FBDIV 20
|
||||
ad_ip_parameter util_mxfe_xcvr CONFIG.PPF0_CFG 0xB00
|
||||
ad_ip_parameter util_mxfe_xcvr CONFIG.QPLL_LPF 0x2ff
|
||||
} else {
|
||||
set_property -dict [list CONFIG.ADDN_UI_CLKOUT4_FREQ_HZ {50}] [get_bd_cells axi_ddr_cntrl]
|
||||
ad_connect /axi_ddr_cntrl/addn_ui_clkout4 jesd204_phy_121/drpclk
|
||||
ad_connect /axi_ddr_cntrl/addn_ui_clkout4 jesd204_phy_126/drpclk
|
||||
}
|
||||
|
|
@ -0,0 +1,67 @@
|
|||
|
||||
source ../../scripts/adi_env.tcl
|
||||
source $ad_hdl_dir/projects/scripts/adi_project_xilinx.tcl
|
||||
source $ad_hdl_dir/projects/scripts/adi_board.tcl
|
||||
|
||||
# get_env_param retrieves parameter value from the environment if exists,
|
||||
# other case use the default value
|
||||
#
|
||||
# Use over-writable parameters from the environment.
|
||||
#
|
||||
# e.g.
|
||||
# make JESD_MODE=64B66B RX_RATE=24.75 TX_RATE=12.375 REF_CLK_RATE=375 RX_JESD_L=4 TX_JESD_L=4
|
||||
# make JESD_MODE=64B66B RX_RATE=16.22016 TX_RATE=16.22016 REF_CLK_RATE=245.76 RX_JESD_M=8 RX_JESD_L=2 TX_JESD_M=16 TX_JESD_L=4
|
||||
# make JESD_MODE=8B10B RX_JESD_L=4 RX_JESD_M=8 TX_JESD_L=4 TX_JESD_M=8
|
||||
|
||||
# RX_RATE,TX_RATE,REF_CLK_RATE used only in 64B66B mode
|
||||
|
||||
#
|
||||
# Parameter description:
|
||||
# JESD_MODE : Used link layer encoder mode
|
||||
# 64B66B - 64b66b link layer defined in JESD 204C, uses Xilinx IP as Physical layer
|
||||
# 8B10B - 8b10b link layer defined in JESD 204B, uses ADI IP as Physical layer
|
||||
#
|
||||
# RX_RATE : Line rate of the Rx link ( MxFE to FPGA ) used in 64B66B mode
|
||||
# TX_RATE : Line rate of the Tx link ( FPGA to MxFE ) used in 64B66B mode
|
||||
# [RX/TX]_PLL_SEL : Used PLL in the Xilinx PHY used in 64B66B mode
|
||||
# Encoding is:
|
||||
# 0 - CPLL
|
||||
# 1 - QPLL0
|
||||
# 2 - QPLL1
|
||||
# REF_CLK_RATE : Frequency of reference clock in MHz used in 64B66B mode
|
||||
# [RX/TX]_JESD_M : Number of converters per link
|
||||
# [RX/TX]_JESD_L : Number of lanes per link
|
||||
# [RX/TX]_JESD_NP : Number of bits per sample, only 16 is supported
|
||||
# [RX/TX]_NUM_LINKS : Number of links, matches numer of MxFE devices
|
||||
#
|
||||
|
||||
adi_project ad9082_fmca_ebz_vcu118 0 [list \
|
||||
JESD_MODE [get_env_param JESD_MODE 8B10B ] \
|
||||
RX_RATE [get_env_param RX_RATE 10 ] \
|
||||
RX_PLL_SEL [get_env_param RX_PLL_SEL 1 ] \
|
||||
TX_RATE [get_env_param TX_RATE 10 ] \
|
||||
TX_PLL_SEL [get_env_param TX_PLL_SEL 1 ] \
|
||||
REF_CLK_RATE [get_env_param REF_CLK_RATE 250 ] \
|
||||
RX_JESD_M [get_env_param RX_JESD_M 4 ] \
|
||||
RX_JESD_L [get_env_param RX_JESD_L 8 ] \
|
||||
RX_JESD_S [get_env_param RX_JESD_S 1 ] \
|
||||
RX_JESD_NP [get_env_param RX_JESD_NP 16 ] \
|
||||
RX_NUM_LINKS [get_env_param RX_NUM_LINKS 1 ] \
|
||||
TX_JESD_M [get_env_param TX_JESD_M 4 ] \
|
||||
TX_JESD_L [get_env_param TX_JESD_L 8 ] \
|
||||
TX_JESD_S [get_env_param TX_JESD_S 1 ] \
|
||||
TX_JESD_NP [get_env_param TX_JESD_NP 16 ] \
|
||||
TX_NUM_LINKS [get_env_param TX_NUM_LINKS 1 ] \
|
||||
]
|
||||
|
||||
adi_project_files ad9082_fmca_ebz_vcu118 [list \
|
||||
"../../ad9081_fmca_ebz/vcu118/system_top.v" \
|
||||
"../../ad9081_fmca_ebz/vcu118/system_constr.xdc"\
|
||||
"../../ad9081_fmca_ebz/vcu118/timing_constr.xdc"\
|
||||
"../../../library/common/ad_3w_spi.v"\
|
||||
"$ad_hdl_dir/library/common/ad_iobuf.v" \
|
||||
"$ad_hdl_dir/projects/common/vcu118/vcu118_system_constr.xdc" ]
|
||||
|
||||
|
||||
adi_project_run ad9082_fmca_ebz_vcu118
|
||||
|
Loading…
Reference in New Issue