From b052e4063758e087ff2a8393a8d206d49b62a5fe Mon Sep 17 00:00:00 2001 From: Adrian Costina Date: Wed, 16 Jan 2019 08:58:11 +0000 Subject: [PATCH] ad_ip_jesd204_tpl: Fix chanmax reporting for both ADC and DAC --- .../ad_ip_jesd204_tpl_adc/ad_ip_jesd204_tpl_adc_regmap.v | 2 +- .../ad_ip_jesd204_tpl_dac/ad_ip_jesd204_tpl_dac_regmap.v | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/library/jesd204/ad_ip_jesd204_tpl_adc/ad_ip_jesd204_tpl_adc_regmap.v b/library/jesd204/ad_ip_jesd204_tpl_adc/ad_ip_jesd204_tpl_adc_regmap.v index e21813dd5..9d4ffedee 100644 --- a/library/jesd204/ad_ip_jesd204_tpl_adc/ad_ip_jesd204_tpl_adc_regmap.v +++ b/library/jesd204/ad_ip_jesd204_tpl_adc/ad_ip_jesd204_tpl_adc_regmap.v @@ -211,7 +211,7 @@ module ad_ip_jesd204_tpl_adc_regmap #( .up_drp_ready (1'd0), .up_drp_locked (1'd1), .up_usr_chanmax_out (), - .up_usr_chanmax_in (8'd1), + .up_usr_chanmax_in (NUM_CHANNELS), .up_adc_gpio_in (32'd0), .up_adc_gpio_out (), .up_adc_ce (), diff --git a/library/jesd204/ad_ip_jesd204_tpl_dac/ad_ip_jesd204_tpl_dac_regmap.v b/library/jesd204/ad_ip_jesd204_tpl_dac/ad_ip_jesd204_tpl_dac_regmap.v index d1c265b2c..bf5da3750 100644 --- a/library/jesd204/ad_ip_jesd204_tpl_dac/ad_ip_jesd204_tpl_dac_regmap.v +++ b/library/jesd204/ad_ip_jesd204_tpl_dac/ad_ip_jesd204_tpl_dac_regmap.v @@ -190,7 +190,7 @@ module ad_ip_jesd204_tpl_dac_regmap #( .up_drp_ready (1'd0), .up_drp_locked (1'd1), .up_usr_chanmax (), - .dac_usr_chanmax (8'd3), + .dac_usr_chanmax (NUM_CHANNELS), .up_dac_gpio_in (32'd0), .up_dac_gpio_out (), .up_dac_ce (),