2015-11-03 13:03:35 +00:00
|
|
|
|
|
|
|
source ../../scripts/adi_env.tcl
|
|
|
|
source $ad_hdl_dir/projects/scripts/adi_project.tcl
|
|
|
|
source $ad_hdl_dir/projects/scripts/adi_board.tcl
|
|
|
|
|
2016-01-19 09:34:28 +00:00
|
|
|
##--------------------------------------------------------------
|
|
|
|
# IMPORTANT: Set AD7616 operation and interface mode
|
|
|
|
#
|
|
|
|
# ad7616_if - Defines the interface type (serial OR parallel)
|
|
|
|
#
|
2016-01-28 10:38:22 +00:00
|
|
|
# LEGEND: Serial - 0
|
2016-01-19 09:34:28 +00:00
|
|
|
# Parallel - 1
|
|
|
|
#
|
2016-04-29 13:41:35 +00:00
|
|
|
# NOTE : This switch is a 'hardware' switch. Please reimplenent the
|
|
|
|
# design if the variable has been changed.
|
2016-01-19 09:34:28 +00:00
|
|
|
#
|
|
|
|
##--------------------------------------------------------------
|
|
|
|
|
|
|
|
set ad7616_if 0
|
2015-11-03 13:03:35 +00:00
|
|
|
|
2017-06-07 09:06:50 +00:00
|
|
|
adi_project_xilinx ad7616_sdz_zc706
|
2015-11-03 13:03:35 +00:00
|
|
|
|
2016-01-19 09:34:28 +00:00
|
|
|
if { $ad7616_if == 0 } {
|
2015-12-14 14:02:38 +00:00
|
|
|
|
2015-11-03 13:03:35 +00:00
|
|
|
adi_project_files ad7616_sdz_zc706 [list \
|
2016-08-05 15:00:34 +00:00
|
|
|
"$ad_hdl_dir/library/xilinx/common/ad_iobuf.v" \
|
2016-01-28 10:38:22 +00:00
|
|
|
"system_top_si.v" \
|
2015-11-03 13:03:35 +00:00
|
|
|
"serial_if_constr.xdc" \
|
|
|
|
"$ad_hdl_dir/projects/common/zc706/zc706_system_constr.xdc"]
|
2015-12-14 14:02:38 +00:00
|
|
|
|
2016-01-19 09:34:28 +00:00
|
|
|
} elseif { $ad7616_if == 1 } {
|
2015-12-14 14:02:38 +00:00
|
|
|
|
2015-11-03 13:03:35 +00:00
|
|
|
adi_project_files ad7616_sdz_zc706 [list \
|
2016-08-05 15:00:34 +00:00
|
|
|
"$ad_hdl_dir/library/xilinx/common/ad_iobuf.v" \
|
2016-01-28 10:38:22 +00:00
|
|
|
"system_top_pi.v" \
|
2015-11-03 13:03:35 +00:00
|
|
|
"parallel_if_constr.xdc" \
|
|
|
|
"$ad_hdl_dir/projects/common/zc706/zc706_system_constr.xdc"]
|
|
|
|
|
|
|
|
} else {
|
2015-12-14 14:02:38 +00:00
|
|
|
|
2015-11-03 13:03:35 +00:00
|
|
|
return -code error [format "ERROR: Invalid interface type! Define as \'serial\' or \'parallel\' ..."]
|
2015-12-14 14:02:38 +00:00
|
|
|
|
2015-11-03 13:03:35 +00:00
|
|
|
}
|
|
|
|
|
2015-12-14 14:02:38 +00:00
|
|
|
adi_project_run ad7616_sdz_zc706
|
|
|
|
|