2019-12-05 08:59:26 +00:00
|
|
|
|
2022-07-12 11:06:15 +00:00
|
|
|
source ../../../scripts/adi_env.tcl
|
2019-12-05 08:59:26 +00:00
|
|
|
source $ad_hdl_dir/projects/scripts/adi_project_xilinx.tcl
|
|
|
|
source $ad_hdl_dir/projects/scripts/adi_board.tcl
|
|
|
|
|
2021-01-18 07:48:47 +00:00
|
|
|
# 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
|
|
|
|
|
2020-04-21 15:16:08 +00:00
|
|
|
#
|
|
|
|
# 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
|
|
|
|
#
|
2021-04-30 15:00:26 +00:00
|
|
|
# RX_RATE : Line rate of the Rx link ( MxFE to FPGA )
|
|
|
|
# TX_RATE : Line rate of the Tx link ( FPGA to MxFE )
|
2020-04-21 15:16:08 +00:00
|
|
|
# [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
|
|
|
|
#
|
2020-09-23 08:30:18 +00:00
|
|
|
#
|
2020-04-21 15:16:08 +00:00
|
|
|
|
2019-12-05 08:59:26 +00:00
|
|
|
adi_project ad9081_fmca_ebz_zcu102 0 [list \
|
2021-06-17 13:22:49 +00:00
|
|
|
JESD_MODE [get_env_param JESD_MODE 8B10B ] \
|
|
|
|
RX_LANE_RATE [get_env_param RX_RATE 10 ] \
|
|
|
|
TX_LANE_RATE [get_env_param TX_RATE 10 ] \
|
|
|
|
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 ] \
|
|
|
|
TDD_SUPPORT [get_env_param TDD_SUPPORT 0 ] \
|
|
|
|
SHARED_DEVCLK [get_env_param SHARED_DEVCLK 0 ] \
|
2019-12-05 08:59:26 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
adi_project_files ad9081_fmca_ebz_zcu102 [list \
|
|
|
|
"system_top.v" \
|
|
|
|
"system_constr.xdc"\
|
|
|
|
"timing_constr.xdc"\
|
|
|
|
"../../../library/common/ad_3w_spi.v"\
|
2020-09-23 08:30:18 +00:00
|
|
|
"$ad_hdl_dir/library/common/ad_iobuf.v" \
|
2019-12-05 08:59:26 +00:00
|
|
|
"$ad_hdl_dir/projects/common/zcu102/zcu102_system_constr.xdc" ]
|
|
|
|
|
|
|
|
|
|
|
|
adi_project_run ad9081_fmca_ebz_zcu102
|
|
|
|
|