HDL Adaptative
HDL Adaptative
I. INTRODUCTION
The digital signal processing applications impose
considerable constrains on area, power dissipation, speed and
cost. Thus the design tool should be carefully chosen. The
most common tools for the design of such application are
ASIC, DSP and FPGA. The DSP used for extremely complex
math-intensive tasks but can't process high sampling rate
applications due to its serial architecture. Whereas ASIC
faces lack of flexibility and require long design cycle. The
FPGA (Field programmable Gate Array) can make up
disadvantages of ASIC and DSP. Hence FPGA has become
the best choice for the design of signal processing system due
to their greater flexibility and higher bandwidth, resulting
from their parallel architecture.
This paper investigates the applicability of a FPGA system for
real time audio processing systems. In recent years, acoustic
noises become more evident due to wide spread use of
industrial equipments. An Active (also called as Adaptive)
noise cancellation (ANC) is a technique that effectively
attenuates low frequencies unwanted noise where as passive
methods are either ineffective or tends to be very expensive or
bulky. An ANC system is based on a destructive interference
of an anti-noise, which have equal amplitude and opposite
phase replica of primary unwanted noise. Following the
superposition principle, the result is noise free original sound
[1, 6].
A. Mathematical treatment
Consider the transversal filter with input x(n) i.e. vector of the
M (filter length) most recent input samples at sampling
point n.
x(n) =[x(n),x(n -1), .... x(n - M +1)]
(1)
18
Design and Implementation of Modified Adaptive Filtering Algorithm for Noise Cancellation in Speech Signal on
FPGA for Minimum Resource Usage
and w(n) i.e. vector of filter coefficients as
w(n) = [w0 (n), w1(n), .... wM -1 (n)] (2)
At some discrete time n, the filter produces an output y(n)
which is linear convolution sum given by
y(n)=
Also can be represent in vector form as
y (n)= wT (n) u (n)
(3)
The error signal is difference of this output with the
primary signal den) given by ,
e(n)=d(n) y(n)
(4)
And by squaring error we get
e2(n)=d2(n)-2d(n)xT(n)w(n)+wT(n)x(n)xT(n)w(n)
(5)
To optimize the filter design, we choose to minimize the
mean-square value of e(n). Thus the cost function is defined
as the MSE denoted by J
J=E[e(n)e* (n)]
=E[|e(n)|2]
(6)
Where E denotes the statistical expectation operator.
Applying the operator
to the cost function J, a gradient
vector J obtain as
J(n)=-2P + 2Rw(n)
=-2x(n)d(n)+ 2x(n) xT(n)w(n)
(7)
Where
R is the autocorrelation matrix of x(n), and P is the cross
correlation matrix of den) and x(n).
The LMS algorithm is based on steepest-descent method. To
formulate steepest-descent method, consider a cost function
J(w) i.e. a continuously differentiable function of some
unknown weight vector w.
To find an optimal solution Wo (initial guess) that satisfies the
condition
J(w0) J(w) for all w
(8)
Which is a mathematical statement of unconstrained
optimization.
Starting with w(O), generate a sequence of weight vector
w(1), w(2), . . . . ,such that the cost function J(w) is reduced at
each iteration of the algorithm. therefore
J(w(n + 1)) < J(w(n))
(9)
Where w(n) is the old value of the weight vector and w(n+ 1)
is its updated value
Substituting the estimate of equation 7 for the gradient vector
J (n) in the steepest-descent algorithm, a new recursive
relation obtain for updating the weight vector as.
w(n + 1)=w(n) + x(n)e(n)
(10)
A scaling factor 1.1 introduced here is step size parameter
used to control the step width of the iteration and thus the
stability and convergence speed of the algorithm [4,5].
The LMS algorithm is convergent in mean square if and only
if satisfies the condition.
19
SNR (dB) of
Original
Signal
4.1731
13.0461
13.4070
SNR (dB) of
denoised
signal
23.9733
34.1360
28.9671
MSE
2.7684e-005
2.0341e-004
1.9350e-004
20
Design and Implementation of Modified Adaptive Filtering Algorithm for Noise Cancellation in Speech Signal on
FPGA for Minimum Resource Usage
Fig. 13
IV. CONCLUSION
The FPGA platform is well suited for the complex real time
audio processing. An adaptive noise cancellation process has
successfully been implemented for filter order up to 256 using
Spartan -3 FPGA XC3s400pq208-5 board. When tested with
different signals, the resources can be minimized this is shown
in the Fig 13. For future work, we planned to implement this
system with AF A (Adaptive Filtering with Averaging)
algorithm which converge rapidly with lower complexity.
REFERENCES
[1]
[2]
[3]
[4]
[5]
[6]
21