util_fir_dec: Shifted the output data to the left so that the amplitude remains
constantmain
parent
d9b756e7ad
commit
f2e12cc88f
|
@ -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),
|
||||
|
|
|
@ -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} \
|
||||
|
|
Loading…
Reference in New Issue