Simulink Fixed Point
Description
- Introduction and Key Features
- Converting Floating-Point Designs to Fixed Point
- Modeling Fixed-Point Designs
- Simulating Fixed-Point Designs
- Generating and Deploying Production Code
Generating and Deploying Production Code
When used with Simulink Coder™ or Embedded Coder™, Simulink Fixed Point enables you to generate pure integer C code from your fixed-point models. The generated code is in bit-true agreement with your model, ensuring that your implemented design will perform exactly as it did in simulation. The generated code automatically handles all the details of implementing fixed-point designs, such as scaling adjustment, rounding, and advanced fixed-point math. Code can be generated for signals and parameters with word sizes from 1 to 128 bits. You can use the generated code for a variety of applications, including accelerated simulation, rapid prototyping, and production deployment.
When used with Simulink HDL Coder™, Simulink Fixed Point lets you generate bit-true synthesizable Verilog® and VHDL® code from Simulink models, Stateflow charts, and MATLAB Function blocks.

Code example showing how Simulink Fixed Point enables Embedded Coder to generate efficient fixed-point code for an embedded filter design. The shifts in the generated code (bottom left) represent the automatic handling of scaling adjustment and optimized replacement of power-of-two multiplications.


