From 472f41ad2c2bab1092c7e57686fab1b4c8ac4b57 Mon Sep 17 00:00:00 2001 From: LIacob106 Date: Wed, 20 Jul 2022 10:23:48 +0100 Subject: [PATCH] ad_ip_jesd204_tpl_adc_hw.tcl: Add 14 bit option for converter resolution --- .../ad_ip_jesd204_tpl_adc/ad_ip_jesd204_tpl_adc_hw.tcl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/jesd204/ad_ip_jesd204_tpl_adc/ad_ip_jesd204_tpl_adc_hw.tcl b/library/jesd204/ad_ip_jesd204_tpl_adc/ad_ip_jesd204_tpl_adc_hw.tcl index 658efde0b..bf7cdfc86 100644 --- a/library/jesd204/ad_ip_jesd204_tpl_adc/ad_ip_jesd204_tpl_adc_hw.tcl +++ b/library/jesd204/ad_ip_jesd204_tpl_adc/ad_ip_jesd204_tpl_adc_hw.tcl @@ -100,7 +100,7 @@ ad_ip_parameter DMA_BITS_PER_SAMPLE INTEGER 16 true [list \ ad_ip_parameter CONVERTER_RESOLUTION INTEGER 16 true [list \ DISPLAY_NAME "Converter Resolution (N)" \ - ALLOWED_RANGES {8 11 12 16} \ + ALLOWED_RANGES {8 11 12 14 16} \ UNITS bits \ GROUP $group \ ] @@ -259,7 +259,7 @@ proc p_ad_ip_jesd204_tpl_adc_elab {} { set DMA_BPS [get_parameter_value "DMA_BITS_PER_SAMPLE"] # The DMA interface is rounded to nearest power of two bytes per sample, - # e.g NP=12 is padded into 16 bits + # e.g NP=12 is padded into 16 bits set samples_per_beat_per_channel [expr ($OPB * 8 * $L / ($M * $NP))] set channel_bus_width [expr $samples_per_beat_per_channel*$DMA_BPS]