cancel
Showing results for
Did you mean:
Highlighted
Visitor
2,610 Views
Registered: ‎07-25-2012

## need help with scaling the simultaneous input data streams

I have 4 stream of input data in my design, named A (A1; A2;A3;A4). All these 4 stream data are  between [a,b]. These data are then multiplied in another stream named (L1;L2;L3;L4), which makes them to become within [c,d], as  (c>a) and  (d>b). I need to scale the the multiplied data in a way, to take it back in [a,b]. how should I do that?

Some considerations are:

These 4 stream input data are not in the equal to each other, and after multiplication with stream L, are in different range, like

A1 :  [c1:d1]

A2 : [c2:d2]

A3 : [c3:d3]

A4 : [c4:d5]

A1 to A4 are comming simultaneously from 4 lookup table, and must be processed simultaneously when they are scaled to [a,b].

Highlighted
Xilinx Employee
2,606 Views
Registered: ‎11-28-2007

## Re: need help with scaling the simultaneous input data streams

It depends on what the input data formats are. If you're dealing with fixed point numbers, you just need to line up the binary points.

@max88 wrote:

I have 4 stream of input data in my design, named A (A1; A2;A3;A4). All these 4 stream data are  between [a,b]. These data are then multiplied in another stream named (L1;L2;L3;L4), which makes them to become within [c,d], as  (c>a) and  (d>b). I need to scale the the multiplied data in a way, to take it back in [a,b]. how should I do that?

Some considerations are:

These 4 stream input data are not in the equal to each other, and after multiplication with stream L, are in different range, like

A1 :  [c1:d1]

A2 : [c2:d2]

A3 : [c3:d3]

A4 : [c4:d5]

A1 to A4 are comming simultaneously from 4 lookup table, and must be processed simultaneously when they are scaled to [a,b].

Cheers,
Jim