0% found this document useful (0 votes)
33 views

Code Generation: MATLAB Coder™ Embedded Coder Matlab

The document discusses using Fixed-Point Designer to generate C code from fixed-point MATLAB code and Simulink models, and to generate Verilog and VHDL code from fixed-point MATLAB code, Simulink models, and Stateflow charts.

Uploaded by

Đỗ Toàn
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
33 views

Code Generation: MATLAB Coder™ Embedded Coder Matlab

The document discusses using Fixed-Point Designer to generate C code from fixed-point MATLAB code and Simulink models, and to generate Verilog and VHDL code from fixed-point MATLAB code, Simulink models, and Stateflow charts.

Uploaded by

Đỗ Toàn
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

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.

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.

You might also like