code generation

Post on 10-Dec-2015

213 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

DESCRIPTION

etert

TRANSCRIPT

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.

top related