Fixed Point Conversion Basics and Type Specification
R2026bLearn about fixed-point conversion basics, the automated fixed-point conversion process, fixed-point function support for High-Level Synthesis code generation, and data type specification.
Functions
codegen | Generate HDL or High-Level Synthesis (HLS) code from MATLAB code |
coder.config | Create HDL Coder code generation configuration objects |
coder.approximation | Create function replacement configuration object |
Classes
coder.FixPtConfig | Floating-point to fixed-point conversion configuration object |
Topics
- Automated Fixed-Point Conversion
Convert floating-point MATLAB® code to fixed-point code.
- Specify Type Proposal Options
Specify options when proposing types for automated fixed-point conversion.
- Specify Properties of Entry-Point Function Inputs
Specify input types so that the code generator can determine the types of all variables.
- Data Type Issues in Generated Code
Highlight potential data type issues in report.
- Functions Supported for HDL and HLS Code Generation
Built-in MATLAB and toolbox functions supported for HDL and High-Level Synthesis (HLS) code generation.
- Custom Plot Functions
Use a custom plotting function to visualize the differences between the floating-point and fixed-point results.
- Generate HDL and HLS Code from a Fixed-Point Viterbi Decoder
This example shows how to generate HDL and HLS code from a fixed-point MATLAB design that implements a Viterbi decoder.



