util_fir_int: Shifted the output data to the left so that the amplitude remains constant

main
Adrian Costina 2016-10-28 15:17:30 +03:00
parent ac8a6124af
commit d9b756e7ad
2 changed files with 2 additions and 1 deletions

View File

@ -54,7 +54,7 @@ module util_fir_int (
wire [31:0] m_axis_data_tdata_s;
wire s_axis_data_tready_s;
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_s : dac_read;
fir_interp interpolator (

View File

@ -9,6 +9,7 @@ CONFIG.Clock_Frequency {128.8} \
CONFIG.CoefficientSource {COE_File} \
CONFIG.Coefficient_File {../../../../coefile_int.coe} \
CONFIG.Coefficient_Fractional_Bits {0} \
CONFIG.Data_Fractional_Bits {15} \
CONFIG.Coefficient_Sets {1} \
CONFIG.Coefficient_Sign {Signed} \
CONFIG.Coefficient_Structure {Inferred} \