From 3f2f88ebbca5998ad6b304abf92273443fb4b9f9 Mon Sep 17 00:00:00 2001 From: Laszlo Nagy Date: Wed, 16 Dec 2020 04:47:00 +0000 Subject: [PATCH] ad_fmclidar1_ebz: Set bits per sample towards the DMA interface --- projects/ad_fmclidar1_ebz/common/ad_fmclidar1_ebz_bd.tcl | 7 ++++++- projects/ad_fmclidar1_ebz/common/ad_fmclidar1_ebz_qsys.tcl | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/projects/ad_fmclidar1_ebz/common/ad_fmclidar1_ebz_bd.tcl b/projects/ad_fmclidar1_ebz/common/ad_fmclidar1_ebz_bd.tcl index 7a53c100c..ff86515a9 100644 --- a/projects/ad_fmclidar1_ebz/common/ad_fmclidar1_ebz_bd.tcl +++ b/projects/ad_fmclidar1_ebz/common/ad_fmclidar1_ebz_bd.tcl @@ -33,7 +33,12 @@ ad_ip_instance axi_adxcvr axi_ad9694_xcvr [list \ ] adi_axi_jesd204_rx_create ad9694_jesd $NUM_OF_LANES -adi_tpl_jesd204_rx_create ad9694_tpl_core $NUM_OF_LANES $NUM_OF_CHANNELS $SAMPLES_PER_FRAME $SAMPLE_WIDTH +adi_tpl_jesd204_rx_create ad9694_tpl_core $NUM_OF_LANES \ + $NUM_OF_CHANNELS \ + $SAMPLES_PER_FRAME \ + $SAMPLE_WIDTH \ + 4 \ + $SAMPLE_WIDTH ad_ip_instance util_cpack2 util_ad9694_cpack [list \ NUM_OF_CHANNELS [expr $NUM_OF_CHANNELS + 1] \ diff --git a/projects/ad_fmclidar1_ebz/common/ad_fmclidar1_ebz_qsys.tcl b/projects/ad_fmclidar1_ebz/common/ad_fmclidar1_ebz_qsys.tcl index fab7c0ca0..95457933f 100644 --- a/projects/ad_fmclidar1_ebz/common/ad_fmclidar1_ebz_qsys.tcl +++ b/projects/ad_fmclidar1_ebz/common/ad_fmclidar1_ebz_qsys.tcl @@ -95,6 +95,7 @@ add_instance axi_ad9694 ad_ip_jesd204_tpl_adc set_instance_parameter_value axi_ad9694 {NUM_LANES} $NUM_OF_LANES set_instance_parameter_value axi_ad9694 {NUM_CHANNELS} $NUM_OF_CHANNELS set_instance_parameter_value axi_ad9694 {BITS_PER_SAMPLE} $ADC_RESOLUTION +set_instance_parameter_value axi_ad9694 {DMA_BITS_PER_SAMPLE} $ADC_RESOLUTION set_instance_parameter_value axi_ad9694 {CONVERTER_RESOLUTION} $ADC_RESOLUTION set_instance_parameter_value axi_ad9694 {SAMPLES_PER_FRAME} {1} set_instance_parameter_value axi_ad9694 {OCTETS_PER_FRAME} {1}