metamisers
Junior Member level 2
Hello,
I am trying to implement an FIR filter in VHDL. The filter coefficients are 11-tap Barker sequences {1, 1, 1, –1, –1, –1, 1, –1, –1, 1, –1}, to which I have to feed a complex data written in a file. The data file contains 20,000 data values of integer type. My question would be, when doing convolution, do we have to convert the data from integer to binary and do convolution bitwise with 11-tap Barker sequence, or we do the convolution directly with the samples i.e. {a1 + jb1, a2 + jb2,..........., aN + jbN} in VHDL? My strategy is to split the real and complex parts into separate files, convolute them separately with Barker sequences, and then add the results together since convolution is a linear operation.
As an example, a1 = 1623. a1 is an integer having binary value of 0110_0101_0111. The problem is whether element-by-element i.e. {1623}*{Barker} OR {0110_0101_0111}*{Barker}.
WHich one of these is correct?
For ex, is this entity declaration correct?
I am a newbie in DSP.
Thanks.
I am trying to implement an FIR filter in VHDL. The filter coefficients are 11-tap Barker sequences {1, 1, 1, –1, –1, –1, 1, –1, –1, 1, –1}, to which I have to feed a complex data written in a file. The data file contains 20,000 data values of integer type. My question would be, when doing convolution, do we have to convert the data from integer to binary and do convolution bitwise with 11-tap Barker sequence, or we do the convolution directly with the samples i.e. {a1 + jb1, a2 + jb2,..........., aN + jbN} in VHDL? My strategy is to split the real and complex parts into separate files, convolute them separately with Barker sequences, and then add the results together since convolution is a linear operation.
As an example, a1 = 1623. a1 is an integer having binary value of 0110_0101_0111. The problem is whether element-by-element i.e. {1623}*{Barker} OR {0110_0101_0111}*{Barker}.
WHich one of these is correct?
For ex, is this entity declaration correct?
Code:
entity lab12 is
Port ( clk : IN std_logic;`
din : IN integer;
dout : OUT integer;
end entity lab12;
I am a newbie in DSP.
Thanks.
Last edited: