2017-11-14 12:57:24 +00:00
|
|
|
|
|
|
|
source $ad_hdl_dir/projects/common/zed/zed_system_bd.tcl
|
2020-10-29 09:57:19 +00:00
|
|
|
source $ad_hdl_dir/projects/scripts/adi_pd.tcl
|
2017-11-14 12:57:24 +00:00
|
|
|
|
|
|
|
# specify the spi reference clock frequency in MHz
|
2019-05-29 08:18:52 +00:00
|
|
|
set spi_clk_ref_frequency 166
|
2017-11-14 12:57:24 +00:00
|
|
|
|
|
|
|
# specify ADC resolution -- supported resolutions 16/18/20 bits
|
2021-08-30 13:14:12 +00:00
|
|
|
set ADC_RESOLUTION [get_env_param ADC_RESOLUTION 20]
|
2017-11-14 12:57:24 +00:00
|
|
|
|
|
|
|
# specify ADC sampling rate in samples/seconds
|
|
|
|
|
|
|
|
# NOTE: This rate can be set just in turbo mode -- if turbo mode is not used
|
|
|
|
# the max rate should be 1.6 MSPS
|
2021-08-30 13:14:12 +00:00
|
|
|
# supported sampling rates: 2/1.8/1/0.5 MSPS depending on the board
|
|
|
|
set ADC_SAMPLING_RATE [get_env_param ADC_SAMPLING_RATE 1800000]
|
2017-11-14 12:57:24 +00:00
|
|
|
|
|
|
|
source ../common/ad40xx_bd.tcl
|
|
|
|
|
2019-06-28 08:41:21 +00:00
|
|
|
#system ID
|
|
|
|
ad_ip_parameter axi_sysid_0 CONFIG.ROM_ADDR_BITS 9
|
|
|
|
ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "[pwd]/mem_init_sys.txt"
|
|
|
|
ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9
|
2020-09-28 21:10:35 +00:00
|
|
|
|
2021-08-30 13:14:12 +00:00
|
|
|
set AD40XX_ADAQ400X_N [get_env_param AD40XX_ADAQ400X_N 1]
|
|
|
|
set sys_cstring "ad40xx: $AD40XX_ADAQ400X_N - adc_sampling_rate: $ADC_SAMPLING_RATE - adc_resolution: $ADC_RESOLUTION"
|
|
|
|
sysid_gen_sys_init_file $sys_cstring
|
2019-06-28 08:41:21 +00:00
|
|
|
|