HDL code generation support for fixed-point run-time library functions from the Fixed-Point Designer™ is summarized in the following table. See Fixed-Point Function Limitations for general limitations of fixed-point run-time library functions for code generation.
Function | Remarks and Limitations |
---|---|
Double and complex data types not supported. | |
— | |
— | |
— | |
— | |
— | |
— | |
— | |
— | |
— | |
— | |
— | |
— | |
— | |
— | |
— | |
— | |
— | |
— | |
— | |
— | |
— | |
— | |
— | |
— | |
| |
| |
— | |
— | |
— | |
— | |
— | |
— | |
— | |
— | |
— | |
— | |
— | |
— | |
— | |
— | |
— | |
— | |
— | |
— | |
— | |
— | |
— | |
— | |
— | |
— | |
Both inputs must be
scalar, and the exponent input, | |
— | |
— | |
— | |
Dimensions must be real, nonnegative integers. | |
Inputs cannot be data type logical . | |
Both inputs must be
scalar, and the exponent input, | |
— | |
— | |
— | |
— | |
— | |
— | |
— | |
— | |
— | |
— | |
Supported data types for HDL code generation are listed in Supported MATLAB Data Types, Operators, and Control Flow Statements. | |
Supported data types for HDL code generation are listed in Supported MATLAB Data Types, Operators, and Control Flow Statements. | |
— | |
Inputs cannot be data type logical . | |
— | |
— | |
— | |
— | |
— |
In addition to function-specific limitations listed in the table, the following general limitations apply to the use of Fixed-Point Designer functions in generated HDL code:
fipref
and quantizer
objects
are not supported.
Slope and bias scaling are not supported.
Dot notation is only supported for getting the values
of fimath
and numerictype
properties.
Dot notation is not supported for fi
objects, and
it is not supported for setting properties.
Word lengths greater than 128 bits are not supported.
You cannot change the fimath
or numerictype
of
a given variable after that variable has been created.
The boolean
and ScaledDouble
values
of the DataTypeMode
and DataType
properties
are not supported.
For all SumMode
property
settings other than FullPrecision
, the CastBeforeSum
property
must be set to true
.
The numel
function returns the
number of elements of fi
objects in the generated
code.
General limitations of C/C++ code generated from MATLAB apply. See MATLAB Language Features That Code Generation Does Not Support (Fixed-Point Designer) for more information.