代码生成 -凯发k8网页登录
生成符合标准的优化 c、c 、cuda、verilog 或 vhdl 代码
借助 mathworks® 产品的代码生成功能,您可以从 matlab® 代码或 simulink® 模型中生成代码。与手动编写成千上万行代码相比,您可以提高工作效率和代码质量。您可以为信号处理、工业控制、嵌入式视觉和深度学习等应用生成代码。生成 c、c 、cuda®、verilog®、vhdl® 和 plc 代码,或为 autosar 或 dds 等中间件架构和标准生成代码。要使您的代码获得认证,请根据 iso26262 和 do-178c 等标准验证代码。
适用产品:代码生成
主题
c/c 代码生成
- 使用 embedded coder 生成代码 (embedded coder)
mathworks 代码生成技术为算法生成 c 或 c 代码和可执行程序。您可以通过使用 matlab 以编程方式编写算法,或在 simulink 环境中以图形方式编写算法。您可以为 matlab 函数和 simulink 模块生成对实时和嵌入式应用程序很有用的代码。为浮点算法生成的源代码和可执行程序与 matlab 代码执行和 simulink 仿真的功能行为的匹配度非常高。使用 产品,您可以生成与模型仿真结果按位匹配的定点代码。代码生成之所以能实现如此广泛的支持和高度的准确性,是因为它紧密集成了 matlab 和 simulink 的执行引擎和仿真引擎。simulink 中内置的加速仿真模式就使用了代码生成技术。 - deploy algorithm model for real-time rapid prototyping (simulink coder)
deploy algorithm model for testing in real time. - (matlab coder)
使用 matlab coder™ app 从 matlab 代码生成 c/c 代码。
hdl 代码生成
- (hdl coder)
the hdl workflow advisor guides you through the stages of generating hdl code for a simulink subsystem and the fpga design process, such as: - basic hdl code generation and fpga synthesis from matlab (hdl coder)
this example shows how to create a hdl coder™ project, generate code for your matlab® design, and synthesize the hdl code. - (hdl coder)
this example shows how to use systemverilog dpi test bench for verification of hdl code where a large data set is required.
gpu 代码生成
- code generation by using the gpu coder app (gpu coder)
generate cuda code from matlab code by using the gpu coder™ app. - (gpu coder)
generate cuda code from simulink models by using gpu coder. - code generation for deep learning networks (gpu coder)
get started with cuda code generation for image classification networks such asmobilenet-v2
,resnet
, andgooglenet
.
plc 代码生成
- generating ladder diagram code from simulink (simulink plc coder)
generate ladder diagram code (l5x) from simulink. - (simulink plc coder)
this example shows how to select the target ide for a simulink® model, generate code, and view generated files. - model, simulate, and generate code for ladder logic-based elevator controller (simulink plc coder)
rapidly prototype the ladder logic-based controller for a single car elevator by using simulink® plc coder™ to model and simulate the ladder logic.
中间件架构的代码生成
- generate autosar c code and xml descriptions (autosar blockset)
generate autosar-compliant c code and export autosar xml (arxml) descriptions from autosar component model. - (autosar blockset)
generate autosar-compliant c code and export autosar xml (arxml) descriptions from autosar adaptive component model. - dds blockset shapes demo (dds blockset)
dds blockset implementation of shapes demo.
认证和标准
- (iec certification kit)
use a project to streamline the adoption of a model-based design workflow for an iso 26262:20218 asil d project. - (do qualification kit)
demonstrates the use of the do-178c project template in a helicopter flight control project.