From fcf7bb035abc69dd547e0bc0847ea9ed283edd21 Mon Sep 17 00:00:00 2001 From: Stanca Pop Date: Fri, 10 Jan 2020 13:43:16 +0200 Subject: [PATCH] ad40xx: Fix data_width definition --- projects/ad40xx_fmc/common/ad40xx_bd.tcl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/projects/ad40xx_fmc/common/ad40xx_bd.tcl b/projects/ad40xx_fmc/common/ad40xx_bd.tcl index fe7173f42..ce9b12c3a 100644 --- a/projects/ad40xx_fmc/common/ad40xx_bd.tcl +++ b/projects/ad40xx_fmc/common/ad40xx_bd.tcl @@ -18,10 +18,10 @@ current_bd_instance /spi_ad40xx create_bd_pin -dir O irq create_bd_intf_pin -mode Master -vlnv analog.com:interface:spi_master_rtl:1.0 m_spi create_bd_intf_pin -mode Master -vlnv xilinx.com:interface:axis_rtl:1.0 M_AXIS_SAMPLE - - if {$adc_resolution == 16 || $adc_resolution == 24} { + + if {$adc_resolution <= 32} { set data_width 32 - } elseif {$adc_resolution == 32} { + } else { set data_width 64 };