From eb946b54cc4dc1d88c9bf3c5948767474e995e73 Mon Sep 17 00:00:00 2001 From: Adrian Costina Date: Wed, 8 Mar 2017 14:29:26 +0200 Subject: [PATCH] util_fir_int: Shifted data so that the amplitude at the output of the filter is the same with the input --- library/util_fir_int/util_fir_int.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/util_fir_int/util_fir_int.v b/library/util_fir_int/util_fir_int.v index 44af4643a..79a0b457b 100644 --- a/library/util_fir_int/util_fir_int.v +++ b/library/util_fir_int/util_fir_int.v @@ -65,7 +65,7 @@ module util_fir_int ( end end - assign {channel_1, channel_0} = (interpolate == 1'b1) ? m_axis_data_tdata_s : s_axis_data_tdata; + assign {channel_1, channel_0} = (interpolate == 1'b1) ? {m_axis_data_tdata_s[30:16],1'b0,m_axis_data_tdata_s[14:0], 1'b0} : s_axis_data_tdata; assign s_axis_data_tready = (interpolate == 1'b1) ? s_axis_data_tready_r : dac_read; fir_interp interpolator (