util_fir_dec: Shifted the output data to the left so that the amplitude remains

constant
main
Adrian Costina 2016-10-28 15:18:36 +03:00
parent d9b756e7ad
commit f2e12cc88f
2 changed files with 2 additions and 1 deletions

View File

@ -58,7 +58,7 @@ module util_fir_dec (
assign s_axis_data_tdata = {channel_1, channel_0};
assign m_axis_data_tvalid = (decimate == 1'b1) ? m_axis_data_tvalid_s : s_axis_data_tvalid;
assign m_axis_data_tdata = (decimate == 1'b1) ? m_axis_data_tdata_s : {channel_1, channel_0};
assign m_axis_data_tdata = (decimate == 1'b1) ? {m_axis_data_tdata_s[30:16], 1'b0, m_axis_data_tdata_s[14:0], 1'b0} : {channel_1, channel_0};
fir_decim decimator (
.aclk(aclk),

View File

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