Sign in

username:

password:



Not a member?

Search adsp



Search tips

Subscribe to adsp



adsp by Keywords

AD1819 | AD7332 | ADSP-2106 | ADSP-21060 | ADSP-21065L | ADSP-2116 | ADSP-21160M | ADSP-2181 | ADSP-218x | ADSP-219 | ADSP-2199 | ADSP219 | BF531 | BF532 | BF533 | BF535 | Blackfin | FFT | JTAG | LDF | SDRAM | SHARC | SPORT | UART | VDSP++ | VisualDSP

Sponsor

NEW! TMS320C6474: 3x the performance. 1/3 the cost. Three 1 GHz cores on 1 chip.

Discussion Groups

Discussion Groups | Analog Devices DSPs | vector weighted sum

Technical discussions related to Analog Devices DSPs (including Blackfin, TigerSHARC, SHARC and ADSP-21xx DSPs).

  

Post a new Thread

vector weighted sum - ravichandran - May 4 5:36:50 2007



Hi all,

I have a query regarding vector weighted sum.equation to represent this is
Z[i] = W * X[i] + y[i]. what is the MAX or Min value of W = weighting factor ???
If I use  multiply and accumulate instruction then what is the default mode selected and
if the inputs are fractional what should be my Qformat?? I have to maintain same Qformat for
all??

Thanks in advance

Regards
Ravi chandran


(You need to be a member of adsp -- send a blank email to adsp-subscribe@yahoogroups.com )

Re: vector weighted sum - Mike Rosing - May 4 10:02:05 2007

On Fri, 4 May 2007, ravichandran wrote:

> Hi all,
>
> I have a query regarding vector weighted sum.equation to represent this is
> Z[i] = W * X[i] + y[i]. what is the MAX or Min value of W = weighting factor ???
> If I use  multiply and accumulate instruction then what is the default mode selected and
> if the inputs are fractional what should be my Qformat?? I have to maintain same Qformat
for all??

Howdy Ravi,

Depends on the processor.  I assume you are using a blackfin with integer
mac, but if you have sharc or tigersharc then it could be floating point
too.

You can scale between every multiply if needed, so you don't have to
maintain the same Q format.  That really depends on the full algorithm and
how many steps you'll have and the input data.  If possible, simulate the
problem on a PC and look at intermediate values to see where problems
happen, then build in scale factors to reduce those problems.

A min of zero will eliminate that term, a max of "infinity" (i.e. largest
possible number you can represent) wipes you out.  Anything in between is
possible, and probably more useful!

Patience, persistence, truth,
Dr. mike



(You need to be a member of adsp -- send a blank email to adsp-subscribe@yahoogroups.com )