daq2/kc705: Fix the ad9144 data offload to use internal bram

main
Mihaita Nagy 2021-09-23 12:29:26 +01:00 committed by Mihaita Nagy
parent 907cd613aa
commit 6ad54c1056
2 changed files with 10 additions and 12 deletions

View File

@ -10,8 +10,6 @@ M_DEPS += ../common/daq2_spi.v
M_DEPS += ../common/daq2_bd.tcl
M_DEPS += ../../scripts/adi_pd.tcl
M_DEPS += ../../common/xilinx/data_offload_bd.tcl
M_DEPS += ../../common/xilinx/dacfifo_bd.tcl
M_DEPS += ../../common/xilinx/adcfifo_bd.tcl
M_DEPS += ../../common/kc705/kc705_system_mig.prj
M_DEPS += ../../common/kc705/kc705_system_constr.xdc
M_DEPS += ../../common/kc705/kc705_system_bd.tcl
@ -28,8 +26,6 @@ LIB_DEPS += jesd204/axi_jesd204_tx
LIB_DEPS += jesd204/jesd204_rx
LIB_DEPS += jesd204/jesd204_tx
LIB_DEPS += sysid_rom
LIB_DEPS += util_adcfifo
LIB_DEPS += util_dacfifo
LIB_DEPS += util_fifo2axi_bridge
LIB_DEPS += util_pack/util_cpack2
LIB_DEPS += util_pack/util_upack2

View File

@ -1,15 +1,16 @@
## Offload attributes
set adc_offload_type 0
set adc_offload_size [expr 512 * 1024]
## FIFO depth is 4Mb - 250k samples
set adc_fifo_address_width 16
set dac_offload_type 0
set dac_offload_size [expr 512 * 1024]
## FIFO depth is 4Mb - 250k samples
set dac_fifo_address_width 15
set plddr_offload_axi_data_width 0
set plddr_offload_axi_addr_width 0
## NOTE: With this configuration the #36Kb BRAM utilization is at ~80%
## NOTE: With this configuration the #36Kb BRAM utilization is at ~70%
source $ad_hdl_dir/projects/common/kc705/kc705_system_bd.tcl
source $ad_hdl_dir/projects/common/xilinx/adcfifo_bd.tcl
source $ad_hdl_dir/projects/common/xilinx/dacfifo_bd.tcl
source ../common/daq2_bd.tcl
source $ad_hdl_dir/projects/scripts/adi_pd.tcl
@ -18,4 +19,5 @@ 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
sysid_gen_sys_init_file
set sys_cstring "ADC_OFFLOAD_TYPE=$adc_offload_type\nDAC_OFFLOAD_TYPE=$dac_offload_type"
sysid_gen_sys_init_file $sys_cstring