Professional Documents
Culture Documents
Rakesh Kumar Kardam: - Filter H (T) Y (T) S (T) +N (T)
Rakesh Kumar Kardam: - Filter H (T) Y (T) S (T) +N (T)
1
Deepak Shankhala JECRC, JECRC Foundation, Jaipur (Rajasthan)
1(
Lecturer, Electronics & Communication Engineering raksh.ece@jecrc.ac.in)
Department
3
JECRC, JECRC Foundation, Jaipur (Rajasthan) Mangilal
(
Deepak.ece@jecrc.ac.in) Lecturer, Electronics & Communication Engineering
Department
2
Rakesh kumar kardam JECRC, JECRC Foundation, Jaipur (Rajasthan)
(
Lecturer, Electronics & Communication Engineering mangilal.ece@jecrc.ac.in)
Department
3 Methamatical analysis of FIR filter : where xb [n] is the bth bit of x[n] and B is the input
DSP functions such as FIR filters and transforms are used in width. Finally, the inner product can be rewritten as follows:
a number of applications such as communication and
multimedia. These functions are major determinants of the
performance and Power consumption of the whole y = ∑ c[n] ∑ xb [k] · y= c[0] (xB-1 [0]2B-1 + xB-2 [0]2B-2
B-1 + x B-2 +
system. Therefore it is important to have good tools for + … + x0 [0]20 ) + c[1] (xB-1 [1]2 B-2 [1]2
Optimizing these functions.
… + x0 [1]20 ) + ……. + c[N-1] (xB-1 [N-1]2B-1 + xB-2
Equation (I) represents the output of an L tap FIR filter, 0
[0]2B-2 + … + x0 [N-1]2 )
which is the convolution of the latest L input samples.
List the number of coefficients h(k) of the filter, and y= (c[0] xB-1 [0] + c[1] xB-1 [1] + … + c[N-1] xB-1 [N-
x(n) represents the input time series. 1])2B-1 +(c[0] xB-2 [0] + c[1] xB-2 [1] + … + c[N-1] xB-2
y[n] = ∑ h[k] x[n-k] k= 0, 1, ..., L-1 B-2
[N- 1])2 + ….. + (c[0] x0 [0] + c[1] x0 [1] + … + c[N-1]
The conventional tapped delay line realization of this x0 [N-1])20
inner product is shown in Figure 5 . 1. This implementation
r a n s l a t e s to L multiplications and L-1 additions per y = ∑ 2b ∑ c[n] · xb [k]
sample to compute the result. This can be implemented using (IV)
a single Multiply Accumulate (MAC) engine, but it would where n=0, 1, …, N-1 and b=0, 1, …, B-1
require L MAC cycles, before the next input sample can be
processed. Using a parallel implementation with L MACs can The coefficients in most of DSP applications for the multiply
speed up the performance L times. accumulate operation are constants. The partial products are
A general purpose multiplier occupies a large area on obtained by multiplying the coefficients ci by multiplying
FPGAs. Since all the multiplications are with constants, the one bit of data xi at a time in AND operation. These
full flexibility of a general purpose multiplier is not required, partial products should be added and the result depend only
and the area can be vastly reduced using techniques develop on the outputs of the input shift registers.
for constant multiplication.Though most of the current The AND functions and adders can be replaced by Look
generation FPGAs such as Virtex II have embedded Up Tables (LUTs) that gives the partial product. This is
multipliers to handle these multiplications, the number of shown in Figure 5.2. Input sequence is fed into the shift
these multipliers is typically limited. register at the input sample rate. The serial output is
Furthermore, the size of these multipliers is limited presented to the RAM based shift registers (registers are not
to only 18 bits, which limits the precision of the shown in Figure for simplicity) at the bit clock rate which is
computations for high speed requirements. The ideal n+1 times (n is number of bits in a data input sample) the
implementation would involve a sharing of the sample rate.
Combinational Logic Blocks (CLBs) and these multipliers. The RAM based shift register stores the data in a particular
In this p a p e r , w e present a t e c h n i q u e that i s address. The outputs of registered LUTs are added and
better than conventional techniques for implementation on loaded to the scaling accumulator from LSB to MSB
the CLBs. and the result which is the filter output will be
accumulated over the time.
For an n bit input, n+1 clock cycles are needed for a
symmetrical filter to generate the output
figure 2.5 b
The cross-correlation of the known wavelet in Figure 2.2 with the
traces in Figure 2.3 produces the corresponding matched-filter
of frequency samples are zero valued. The transfer function
of an FIR filter, H (z) can be expressed in a recursive form:
𝑛−1
𝑗2𝜋𝑘
H(z) = 1 − 𝑍 −𝑁 /𝑁 ∑ H(k)/𝑍 −1 𝑒 𝑁
𝑘=0
figure. 2.6 C: Example Of 2d Matched Filtering
In the cross-correlation process, the amplitudes of the input Thus in recursive form, H(z ) can be viewed as a
wavelets or events are squared and will represent some form of cascade of two filters: a comb filter,
energy. H( z) zeros uniformly distributed around the unit circle,
and a sum of N which has N single all-pole filters,H(z)
4.1.2 No recursive frequency sampling The zero of comb filter and the poles of the single
To obtain the FIR coefficients of the filter pole filters are coincide on the unit circle at points .Thus
whose frequency response is depicted in Figure 2.3 By the zero cancel the pole, making H( z) an FIR as it
taking N samples the frequency response at intervals of effectively has no poles.
Kfs/N, k=0,1,……N-1. In practice, due to finite word length effects the poles of
The filter coefficients can be obtained as inverse DFT of H2 (z) not to be located exactly on unit circle so that
frequency samples. they are not cancelled by the zeros, making H(z) IIR
and potentially unstable. Stability problems can be
avoided by sampling H(z) at a radius, r, slightly less than
𝑛−1 unity. Thus the transfer function in this case becomes
h(n) = 1/𝑁 ∑ H(k)𝑒 𝑗(2𝜋/𝑁)𝑛𝑘 𝑛−1
𝑘=0 𝑗2𝜋𝑘
Where H(k) k = 0, 1, 2,"""".., N-1, are sample of the ideal H(z) = 1 − 𝑟 𝑁 𝑍 −𝑁 /𝑁 ∑ H(k)/1 − 𝑟𝑍 −1 𝑒 𝑁
frequency response. The impulse response coefficients of
linear phase FIR filter with positive symmetry, for N even, 𝑘=0
Where " = (N-1)/2, and H(k) are the samples of the 5 FPGA implementation step
frequency response of the filter taken at intervals of k
Fs/N. For N odd, the upper limit in the summation is Input form Image or Video
(N-1)/2.The resulting filter will have exactly the same
frequency response as the original response at the
sampling instants. To obtain a good approximation to the Optical trainer Kit
desired frequency response, a sufficient number of frequency
samples must be taken.
An alternative frequency sampling filter, know
as type 2, results if frequency Digital Data (16 Bit )
Sample taken at intervals of
FPGA Devices
fk = (k+1/2)Fs/N. k = 0,1,2,3…………..,N-1
To improve the amplitude response of frequency samples Digital Data 32 Bit + 6 bit O/P
in the wider transition, introducing frequency samples in Buffer
the transition band. For a low pass filter the stop band Optical trainer kit
attenuation increases, approximately, by 20 dB for each
transition band frequency sample, with a corresponding
increase in the transition width:
Output form Image or Video
Approximate stopband attenuation (25+20M) dB
Approximate transition width (M+1)Fs/N .