2022-07-12 11:06:15 +00:00
|
|
|
source ../../../scripts/adi_env.tcl
|
2020-02-03 09:08:30 +00:00
|
|
|
source $ad_hdl_dir/projects/scripts/adi_project_xilinx.tcl
|
|
|
|
source $ad_hdl_dir/projects/scripts/adi_board.tcl
|
|
|
|
|
2022-11-29 16:51:57 +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 TX_JESD_L=8 RX_OS_JESD_M=16
|
|
|
|
# make TX_JESD_M=16 TX_JESD_L=8 RX_JESD_M=16 RX_JESD_L=4 RX_OS_JESD_M=8 RX_OS_JESD_L=4
|
|
|
|
# make TX_JESD_M=8 TX_JESD_L=4 RX_JESD_M=16 RX_JESD_L=4 RX_OS_JESD_M=8 RX_OS_JESD_L=4
|
|
|
|
|
|
|
|
# Parameter description:
|
|
|
|
# [TX/RX/RX_OS]_JESD_M : Number of converters per link
|
|
|
|
# [TX/RX/RX_OS]_JESD_L : Number of lanes per link
|
|
|
|
# [TX/RX/RX_OS]_JESD_S : Number of samples per frame
|
|
|
|
# [TX/RX/RX_OS]_JESD_NP : Number of bits per sample
|
|
|
|
#
|
|
|
|
|
2021-01-14 16:22:15 +00:00
|
|
|
adi_project_create fmcomms8_adrv9009zu11eg 0 [list \
|
2022-09-07 11:49:49 +00:00
|
|
|
RX_JESD_M [get_env_param RX_JESD_M 16 ] \
|
|
|
|
RX_JESD_L [get_env_param RX_JESD_L 8 ] \
|
|
|
|
RX_JESD_S [get_env_param RX_JESD_S 1 ] \
|
|
|
|
TX_JESD_M [get_env_param TX_JESD_M 16 ] \
|
|
|
|
TX_JESD_L [get_env_param TX_JESD_L 16 ] \
|
|
|
|
TX_JESD_S [get_env_param TX_JESD_S 1 ] \
|
|
|
|
RX_OS_JESD_M [get_env_param RX_OS_JESD_M 8 ] \
|
|
|
|
RX_OS_JESD_L [get_env_param RX_OS_JESD_L 8 ] \
|
|
|
|
RX_OS_JESD_S [get_env_param RX_OS_JESD_S 1 ] \
|
2021-01-14 16:22:15 +00:00
|
|
|
] "xczu11eg-ffvf1517-2-i"
|
|
|
|
|
2020-02-03 09:08:30 +00:00
|
|
|
|
2022-09-23 09:28:22 +00:00
|
|
|
adi_project_files fmcomms8_adrv9009zu11eg [list \
|
2020-02-03 09:08:30 +00:00
|
|
|
"system_top.v" \
|
|
|
|
"fmcomms8_constr.xdc"\
|
|
|
|
"../common/adrv9009zu11eg_spi.v" \
|
|
|
|
"../common/adrv9009zu11eg_constr.xdc" \
|
|
|
|
"../common/adrv2crr_fmc_constr.xdc" \
|
2020-09-23 08:30:18 +00:00
|
|
|
"$ad_hdl_dir/library/common/ad_iobuf.v" \
|
2020-02-03 09:08:30 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
adi_project_run fmcomms8_adrv9009zu11eg
|