pluto_hdl_adi/projects/ad40xx_fmc/zed/system_project.tcl

45 lines
1.3 KiB
Tcl
Raw Normal View History

2017-11-14 12:57:24 +00:00
source ../../../scripts/adi_env.tcl
source $ad_hdl_dir/projects/scripts/adi_project_xilinx.tcl
2017-11-14 12:57:24 +00:00
source $ad_hdl_dir/projects/scripts/adi_board.tcl
## The following HDL projects supports all the devices of EVAL-AD40XX-FMCZ:
##
## AD4000/AD4001/AD4002/AD4003/AD4004/AD4005/AD4006/AD4007/AD4008/AD4010/AD4011/AD4020
##
## and also the EVAL-ADAQ400x eval board (with PMOD):
##
## ADAQ4003
##
## NOTE: Make sure that you set up your required ADC resolution and sampling rate
## in system_bd.tcl
## Please select which eval board do you want to use
##
## 1 - EVAL-AD40XX-FMCZ
## 0 - EVAL-ADAQ400x
##
set AD40XX_ADAQ400X_N [get_env_param AD40XX_ADAQ400X_N 1]
2017-11-14 12:57:24 +00:00
adi_project ad40xx_fmc_zed
2017-11-14 12:57:24 +00:00
if {$AD40XX_ADAQ400X_N == 1} {
adi_project_files ad40xx_fmc_zed [list \
"$ad_hdl_dir/library/common/ad_iobuf.v" \
2017-11-14 12:57:24 +00:00
"system_top_ad40xx.v" \
"system_constr_ad40xx.xdc" \
"$ad_hdl_dir/projects/common/zed/zed_system_constr.xdc"]
} elseif {$AD40XX_ADAQ400X_N == 0} {
adi_project_files ad40xx_fmc_zed [list \
"$ad_hdl_dir/library/common/ad_iobuf.v" \
2017-11-14 12:57:24 +00:00
"system_top_adaq400x.v" \
"system_constr_adaq400x.xdc" \
"$ad_hdl_dir/projects/common/zed/zed_system_constr.xdc"]
} else {
return -code error [format "ERROR: Invalid eval board type! ..."]
}
adi_project_run ad40xx_fmc_zed
2017-11-14 12:57:24 +00:00