用户定义的 MATLAB 函数
使用 User-Defined Functions 库中的模块创建支持 HDL 的算法
HDL Coder 模块库包含许多模块,您可将这些模块添加到 Simulink® 建模环境并开发您的 HDL 算法。您还可通过使用 User-Defined Functions 库中的 MATLAB Function 和 MATLAB System 模块,将包含 MATLAB® 代码的 HDL 算法集成到 Simulink 环境中。
要过滤 Simulink 库浏览器以仅显示 HDL 支持的模块,请输入 hdllib。
函数
主题
MATLAB 函数建模
- MATLAB Function Block Design Patterns for HDL
Hardware design patterns that use advanced MATLAB Function block features for HDL code generation. - Create Hardware Design Patterns Using the MATLAB Function Block For HDL Code Generation
Use the HDL design patterns libraryem_hdl_design_patternsto implement patterns that use the MATLAB Function block to solve common hardware modeling problems. - Design Guidelines for the MATLAB Function Block
Recommended option settings and procedures for MATLAB Function blocks for optimal HDL code generation. - HDL Applications for the MATLAB Function Block
The MATLAB Function block and its application in HDL code generation.
从 MATLAB 函数生成 HDL 代码
- Generate HDL Code from a MATLAB Function Block
Learn how to incorporate a MATLAB Function block in your model and generate HDL code. - Generate Instantiable Code for Functions
Generate Verilog® module or VHDL® entity in HDL code for functions. - Bitwise Operations in MATLAB for HDL and HLS Code Generation
HDL Coder™ supports bit shift, bit rotate, bit slice operations that mimic HDL-specific operators without saturation and rounding logic.
相关信息
疑难解答
Initialize Persistent Variables in MATLAB Functions
Specialized semantics impact the way that a function initializes persistent data.



