Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
0
AccelDSP built-in Function Quantizer
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
12-20-2009 09:59 PM
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.
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
Re: AccelDSP built-in Function Quantizer
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
08-04-2011 03:27 AM
have you solved this problem now? I have this problem just as you. can you tell me how to do? thanks in advance











