Sign In

Don't have a Xilinx account yet?

  • Choose to receive important news and product information
  • Gain access to special content
  • Personalize your web experience on Xilinx.com

Create Account

Username

Password

Forgot your password?
XClose Panel
Xilinx Home
Reply
Visitor
farshade
Posts: 10
Registered: ‎12-20-2009
0

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.
Newbie
zhifuyin
Posts: 3
Registered: ‎07-24-2011
0

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