|
Hi Matt,
Could you please tell me what version of MATLAB you are using (type ver
at MATLAB prompt) and would it be possible to post a snippet of the code
that is producing this error?
Thanks,
Ashok Charry
The MathWorks
Matt wrote:
> Hi,
>
> I'm trying to generate code from a model that includes an Embedded M fixed-point sqrt.
>
> If the input is sfix40_En16 the build fails but it works for sfix32_En16. It always works in Simulation.
>
> I've created a test model that contains a single Embedded M block. The input signal is sfix40_En16. Default fimath properties.
>
> The first error is:
>
> eml_const: This node is not constant.
> Internal Error: This error occurred inside a MathWorks function.
>
> Function 'sqrt.m' (#179.988.1066), line 37, column 13:
> "[Ty,Fy,fimathSpecified,methodName,errMsg] = eml_const(eml_fisqrt_helper(data))"
>
> Further down the list of errors is:
>
> sqrt(A) or sqrt(A,T) can only be calculated for FI object A and NumericType T when the scaling of A and T has a fractional slope of 1 and 0 bias (binary-point only scaling).
>
> Function 'Embedded MATLAB Function' (#194.82.92), line 5, column 8:
> "sqrt(u_fi)"
>
> Thanks,
> Matt
|