FixedPoint Designer 

FixedPoint Designer provides analysis tools for efficiently converting a design from floatingpoint to fixedpoint representation. The tools let you record minimum and maximum data values and pinpoint when overflows occur during fixedpoint operations. The data type override feature lets you analyze a fixedpoint algorithm by switching the data types between fixed point and floating point. With this analysis, you can observe the dynamic range of variables involved in your design and ensure that the algorithm behaves consistently in floatingpoint and fixedpoint representations.
In MATLAB, you can instrument your code for logging to collect minimum and maximum values from the simulation and get proposed data types. Instrumentation functions can generate log2
histograms. A histogram is generated for each named and intermediate variable and for each expression in your code. You can use this histogram to determine the word and fraction lengths for your fixedpoint values.
For Simulink models, you can automatically convert a floatingpoint design built in Simulink, Stateflow, and system toolboxes including Communications System Toolbox™ and DSP System Toolbox™ into a fixedpoint design using the FixedPoint Tool.
FloatingPoint to FixedPoint Conversion
7:57
Explore fixedpoint models and use automated logging and scaling tools to refine the fixedpoint data types for more optimized results.
FixedPoint Designer provides debugging capabilities that let you switch to a floatingpoint representation of your model to perform benchmarking of the design, identify modeling errors, and determine ideal minimum and maximum values.
FixedPoint Optimization Using FixedPoint Tool
6:32
Convert a floatingpoint model into a fixedpoint model and obtain an initial scaling for the fixedpoint data types.