63 lines
2.3 KiB
Tcl
63 lines
2.3 KiB
Tcl
|
|
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 RX_JESD_L=4 RX_JESD_M=8 RX_JESD_S=1 TX_JESD_L=4 TX_JESD_M=8 TX_JESD_S=1
|
|
# make RX_JESD_L=8 RX_JESD_M=4 RX_JESD_S=1 TX_JESD_L=8 TX_JESD_M=4 TX_JESD_S=1
|
|
|
|
#
|
|
# 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
|
|
#
|
|
#
|
|
# !!! For this carrier only 8B10B mode is supported !!!
|
|
#
|
|
|
|
adi_project ad9081_fmca_ebz_zcu102 0 [list \
|
|
JESD_MODE 8B10B \
|
|
RX_JESD_M [get_env_param RX_JESD_M 8 ] \
|
|
RX_JESD_L [get_env_param RX_JESD_L 4 ] \
|
|
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 8 ] \
|
|
TX_JESD_L [get_env_param TX_JESD_L 4 ] \
|
|
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 ad9081_fmca_ebz_zcu102 [list \
|
|
"system_top.v" \
|
|
"system_constr.xdc"\
|
|
"timing_constr.xdc"\
|
|
"../../../library/common/ad_3w_spi.v"\
|
|
"$ad_hdl_dir/library/common/ad_iobuf.v" \
|
|
"$ad_hdl_dir/projects/common/zcu102/zcu102_system_constr.xdc" ]
|
|
|
|
|
|
adi_project_run ad9081_fmca_ebz_zcu102
|
|
|