code generation

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.

Upload: do-toan

Post on 10-Dec-2015

213 views

Category:

Documents


0 download

DESCRIPTION

etert

TRANSCRIPT

Page 1: Code Generation

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

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.