Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

multiple multiplication's vhdl

Status
Not open for further replies.

alexander123

Newbie level 1
Joined
Oct 18, 2011
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,293
Hey,

I'm working on an adaptive filter, using the CMA algorithm ..

This algorithm need multiple multiplications according to the formula : f(n+1) = f(n) - (e(n)*y(n)*x(n)*µ)

with x(n) = input
y(n) = output
e(n) = error
µ = stepsize
f(n) and f(n+1) = current and next coefficient weight

now the input and output that i'm using is an 8 bit signed signal, the stepsize is a small number (0,001 ex) and the error is equal to e(n) = 1- y(n)^2

i'm having difficulties in how i should implement this equation.

What i'm thinking of now is to do it as followed :

y(n)*x(n) = 16 bits

then multiple this with the stepsize that also is a signed 8 bit signal .( that i use as fixed point 2,6)

so this gives me a 24 bit signal, then scale it down according to the fixed point multiplication.

then i truncate this to an 8 bit signal, and multiply it with the error signal (also a 2,6 fixed point) again perform scaling and truncation.


is this the way it should be done ? i feel there is a better solution .. :s

your comment's are much appreciated.

greetings, alex.
 

this sounds all rather complicated.

Its much better just to specify what range and accuracy you need. Then the number of bits required is fairly obvious.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top