code generation
DESCRIPTION
etertTRANSCRIPT
![Page 1: Code Generation](https://reader035.vdocument.in/reader035/viewer/2022071805/563db9c6550346aa9a9fd52e/html5/thumbnails/1.jpg)
Code Generation
Using Fixed-Point Designer with MATLAB Coder™ or Embedded Coder®, you can generate pure integer C code from
your fixed-point MATLAB code.
Fixed-point MATLAB code for a FIR filter (top) and efficient C code generated using MATLAB Coder with Fixed-Point Designer
(bottom).
Using Fixed-Point Designer with Simulink Coder™ or Embedded Coder, you can generate pure integer C code from
your fixed-point Simulink models and Stateflow charts.
Model incorporating wide integer and fixed-point operations (top) and generated multiword C code (bottom). Multiword code is
normally triggered by using parameters or signals with data types wider than C long.
![Page 2: Code Generation](https://reader035.vdocument.in/reader035/viewer/2022071805/563db9c6550346aa9a9fd52e/html5/thumbnails/2.jpg)
The generated code is in bit-true agreement with your model, enabling your design to perform 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. You can generate code 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.
Using Fixed-Point Designer with HDL Coder™, you can generate bit-true synthesizable Verilog® and VHDL® code
from your fixed-point MATLAB code, Simulink models, and Stateflow charts.