cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Visitor
Visitor
2,896 Views
Registered: ‎12-20-2009

AccelDSP built-in Function Quantizer

I have faced a problem with AccelDSP builti-in function quantizer

consider I am using a matlab code, such as division as follows

Z = X / Y;

which X and Y are both variables.

I set Directive to X, Y, Z for example like these, [42 0], [53 26] and [53 32] respectively.

after Generate Fixed Point, a built-in function, X (/) Y with inputs SigIn_A [42 0] and SigIn_B [53 26] are build which both are inferred from Directive. but the output called SigOut [53 0] is inferred from MATLAB source. this causes the fractions are eliminated. this is not matched to the directive I defined to Z as [53 32].

Can you please tell me how I can make this built-in function to obey the directive for output, as the fractions are loosed and the result is not accurate.
0 Kudos
1 Reply
Highlighted
Newbie
Newbie
2,169 Views
Registered: ‎07-24-2011

Re: AccelDSP built-in Function Quantizer

have you solved this problem now? I have this problem just as you. can you tell me how to do? thanks in advance

0 Kudos