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.