pluto_hdl_adi/projects/adrv9001/zcu102/system_project.tcl

46 lines
1.0 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
# The get_env_param procedure retrieves parameter value from the environment if exists,
# other case returns the default value specified in its second parameter field.
#
# How to use over-writable parameters from the environment:
#
# e.g.
# make CMOS_LVDS_N=0
# or
# make CMOS_LVDS_N=1
#
#
# Parameter description:
# CMOS_LVDS_N - type of interface
# 0 - LVDS
# 1 - CMOS
set CMOS_LVDS_N [get_env_param CMOS_LVDS_N 1]
adi_project adrv9001_zcu102 0 [list \
CMOS_LVDS_N $CMOS_LVDS_N \
]
adi_project_files {} [list \
"system_top.v" \
"system_constr.xdc"\
"$ad_hdl_dir/library/common/ad_iobuf.v" \
"$ad_hdl_dir/projects/common/zcu102/zcu102_system_constr.xdc" ]
if {$CMOS_LVDS_N == 0} {
adi_project_files {} [list \
"lvds_constr.xdc" \
]
} else {
adi_project_files {} [list \
"cmos_constr.xdc" \
]
}
adi_project_run adrv9001_zcu102