0% found this document useful (0 votes)
153 views4 pages

Code Generation Tools

MATLAB Code Generation tools

Uploaded by

shreenandanrao
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
153 views4 pages

Code Generation Tools

MATLAB Code Generation tools

Uploaded by

shreenandanrao
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

MATLAB Coder

Generate C and C++ code from MATLAB code


MATLAB Coder™ generates readable and portable C and C++ code from MATLAB code. It ®

supports most of the MATLAB language and a wide range of toolboxes. You can integrate
the generated code into your projects as source code, static libraries, or dynamic libraries.
You can also use the generated code within the MATLAB environment to accelerate
computationally intensive portions of your MATLAB code. MATLAB Coder lets you
incorporate legacy C code into your MATLAB algorithm and into the generated code.

By using MATLAB Coder with Embedded Coder , you can further optimize code efficiency
®

and customize the generated code. You can then verify the numerical behavior of the
generated code using software-in-the-loop (SIL) and processor-in-the-loop (PIL) execution.

• Product Requirement:
• Requires MATLAB
• Simulink Coder recommended
• Embedded Coder recommended
• Requires Fixed-Point Designer for generating fixed-point code
• Requires host platform C compiler. See list of supported host compilers.
• Requires cross-compiler for the target processor if the code will execute on a platform different
from the host.

Simulink Coder
Generate C and C++ code from Simulink and
Stateflow models
Simulink Coder™ (formerly Real-Time Workshop ) generates and executes C and C++
®

code from Simulink diagrams, Stateflow charts, and MATLAB functions. The generated
® ® ®

source code can be used for real-time and nonreal-time applications, including simulation
acceleration, rapid prototyping, and hardware-in-the-loop testing. You can tune and monitor
the generated code using Simulink or run and interact with the code outside MATLAB and
Simulink.

• Product Requirement:
• Requires MATLAB
• Requires Simulink
• Requires MATLAB Coder
• Embedded Coder recommended
• Simulink Real-Time recommended
• Requires Fixed-Point Designer for generating fixed-point code
• Requires host platform C compiler. See list of supported host compilers.
• Requires cross-compiler for the target processor if the code will execute on a platform different
from the host.

Embedded Coder
Generate C and C++ code optimized for
embedded systems
Embedded Coder generates readable, compact, and fast C and C++ code for use on
®

embedded processors, on-target rapid prototyping boards, and microprocessors used in


mass production. Embedded Coder enables additional MATLAB Coder™and Simulink
Coder™ configuration options and advanced optimizations for fine-grain control of the
generated code’s functions, files, and data. These optimizations improve code efficiency
and facilitate integration with legacy code, data types, and calibration parameters used in
production. You can incorporate a third-party development environment into the build
process to produce an executable for turnkey deployment on your embedded system.

Embedded Coder offers built-in support for AUTOSAR and ASAP2 software standards. It
also provides traceability reports, code interface documentation, and automated software
verification to support DO-178, IEC 61508, and ISO 26262 software development.

Learn more about MathWorks support for certification in automotive, aerospace,


and industrial automation applications.

• Product Requirement:
• Requires MATLAB
• Requires MATLAB Coder
• Requires Simulink for generating code from Simulink
• Requires Simulink Coder for generating code from Simulink
• Requires Fixed-Point Designer for generating fixed-point code
• Requires host platform C compiler. See list of supported host compilers.
• Requires cross-compiler for the target processor if the code will execute on a platform different
from the host.
HDL Coder (MATLAB/Simulink)
Generate VHDL and Verilog code for FPGA
and ASIC designs
HDL Coder™ generates portable, synthesizable Verilog and VHDL code from
® ®

MATLAB functions, Simulink models, and Stateflow charts. The generated HDL code can
® ® ®

be used for FPGA programming or ASIC prototyping and design.

HDL Coder provides a workflow advisor that automates the programming of Xilinx and ®

Intel FPGAs. You can control HDL architecture and implementation, highlight critical paths,
®

and generate hardware resource utilization estimates. HDL Coder


provides traceability between your Simulink model and the generated Verilog and VHDL
code, enabling code verification for high-integrity applications adhering to DO-254 and other
standards.

• Product Requirement:
• Requires MATLAB
• Requires Fixed-Point Designer
• Requires MATLAB Coder
• Simulink recommended
• Signal Processing Toolbox recommended
• DSP System Toolbox recommended
• HDL Verifier recommended

GPU Coder
Generate CUDA code for NVIDIA GPUs
GPU Coder™ generates optimized CUDA code from MATLAB code for deep learning,
® ®

embedded vision, and autonomous systems. The generated code calls optimized NVIDIA
CUDA libraries, including cuDNN, cuSolver, and cuBLAS. It can be integrated into your
project as source code, static libraries, or dynamic libraries, and can be used for prototyping
on GPUs such as the NVIDIA Tesla and NVIDIA Tegra . You can use the generated CUDA
® ®

within MATLAB to accelerate computationally intensive portions of your MATLAB code.


GPU Coder lets you incorporate legacy CUDA code into your MATLAB algorithms and the
generated code.

When used with Embedded Coder , GPU Coder lets you verify the numerical behavior of
®

the generated code via software-in-the-loop (SIL) testing.


• Product Requirement:
• Requires MATLAB
• Requires MATLAB Coder
• Requires Parallel Computing Toolbox
• Embedded Coder recommended
• Requires Neural Network Toolbox to generate code from deep learning networks
• Requires host platform C compiler. See list of supported host compilers.
• Requirements for GPU Computing
o CUDA-enabled NVIDIA GPU with compute capability 3.2 or higher
o CUDA toolkit 8.0 and driver (get latest toolkit)
• Requirements for executing deep learning examples
o cuDNN 5.1 and newer (get latest library)
o OpenCV 2.4.9 and newer (get latest library)

You might also like