模型配置
R2026b模块实现和模型配置参数设定
通过设置 HDL 模块属性和模型配置参数来配置模型。在“配置参数”对话框中,您可以指定各种 HDL 代码生成设置,包括基本文件夹、语言选择以及更高级优化参数。
函数
hdlset_param | 在模型或模块级别设置 HDL 相关参数 |
hdlget_param | Return value of specified HDL block-level parameter for specified block |
hdlsaveparams | Save nondefault block- and model-level HDL parameters |
hdlrestoreparams | Restore block- and model-level HDL parameters to model |
hdldispmdlparams | 显示具有非默认值的 HDL 模型参数 |
hdldispblkparams | 显示具有非默认值的 HDL 模块参数 |
模型设置
| 工作流 | Target workflow |
| 工程文件夹 | Folder for workflow-specific files (自 R2023b 起) |
| 目标平台 | Platform on which to deploy generated HDL code (自 R2023b 起) |
| 综合工具 | Synthesis tool to target generated HDL code |
| 系列 | 器件芯片系列 |
| 器件 | 器件名称 |
| 包 | 器件包名称 |
| 速度 | 器件速度值 |
| 参考设计 | 要与生成的 IP 核集成的参考设计 (自 R2023b 起) |
| 参考设计工具版本 | Option to warn for reference design version mismatch (自 R2023b 起) |
| 忽略工具版本不匹配 | Warning in instances of reference design tool version mismatch (自 R2023b 起) |
| 参考设计参数 | Table of parameters available for default reference designs (自 R2023b 起) |
| 目标频率 | Clock frequency for generated HDL design |
常规
| 将流水线延迟映射到 RAM | Map pipeline registers in generated HDL code to RAM |
| RAM 映射阈值 | Specify minimum RAM size for mapping to block RAMs |
| 变换非零初始值延迟 | Implement Delay blocks to have zero initial value in generated HDL code |
| 删除未使用的端口 | 从设计中删除未使用的端口 |
| 基于使能的约束 | Enable multiple clock cycles for data to propagate between registers |
流水线
| 允许设计延迟分布 | Allow distributed pipelining and delay absorption optimizations to move design delays |
| 流水线分布优先级 | Priority for distributed pipelining and delay absorption optimizations |
| 时钟频率流水线 | Insert pipeline registers at faster clock rate than data rate |
| 允许 DUT 输出端口的时钟频率流水线 | Pass the outputs from DUT at clock rate |
| 平衡时钟频率流水线 DUT 输出端口 | Synchronize DUT outputs while satisfying highest-latency requirements of outputs (自 R2022b 起) |
| 分布式流水线 | Enable pipeline register distribution |
| 使用综合估计执行分布式流水线 | Use synthesis timing estimates to guide pipeline register insertion (自 R2022a 起) |
| 自适应流水线 | Insert adaptive pipeline registers |
| 将查找表映射到 RAM | 将查找表映射到块 RAM |
资源复用
| 复用加法器 | Share adders with resource sharing optimization |
| 加法器复用最小位宽 | Minimum bit width required to share adders with resource sharing optimization |
| 复用乘法器 | Share multipliers with resource sharing optimization |
| 乘法器复用最小位宽 | Minimum bit width required to share multipliers with resource sharing optimization |
| 乘法器提升阈值 | Maximum bitwidth difference for promoting and sharing smaller multipliers |
| 乘法器分割阈值 | Maximum input bit width for partitions |
| Multiply-Add 模块 | Share Multiply-Add blocks with resource sharing optimization |
| Multiply-Add 模块复用最小位宽 | Minimum bit width required to share Multiply-Add blocks with resource sharing optimization |
| 原子子系统 | 通过资源复用优化来复用 Atomic Subsystem 模块 |
| MATLAB Function 模块 | 通过资源复用优化复用 MATLAB Function 模块 |
| 浮点 IP | Share floating-point IPs with resource sharing optimization |
帧到采样的转换
| 启用帧到采样的转换 | Enable frame-to-sample conversion (自 R2022b 起) |
| 每周期采样数 | Maximum size of streams for frame-to-sample conversion (自 R2022b 起) |
| 输入 FIFO 大小 | Register size of generated input FIFOs around streaming matrix partitions (自 R2022b 起) |
| 输出 FIFO 大小 | Register size of generated output FIFOs around streaming matrix partitions (自 R2022b 起) |
| 输入处理顺序 | Processing order to use for frame inputs (自 R2023a 起) |
| 启用外部存储的延迟大小阈值(KB) | Maximum delay size for external memory (自 R2023a 起) |
全局设置
| 复位类型 | 用于 HDL 代码中寄存器的复位逻辑 |
| 复位生效电平 | 复位输入信号的有效电平 |
| 时钟输入端口 | Name for clock input port |
| 时钟使能输入端口 | Name for clock enable input port |
| 复位输入端口 | Name for reset input port |
| 时钟输入 | Generate single or multiple clock inputs |
| 将 Simulink 速率视为实际硬件速率 | Set oversampling value based on model rates and target frequency values (自 R2023b 起) |
| 时钟沿 | 活动时钟沿 |
| 过采样因子 | Oversampling value |
常规
| Verilog 文件扩展名 | File name extension for generated Verilog files |
| VHDL 文件扩展名 | 生成的 VHDL 文件的文件扩展名 |
| SystemVerilog 文件扩展名 | File name extension for generated SystemVerilog files (自 R2023b 起) |
| 包后缀 | Text to append to model or subsystem name |
| 实体冲突后缀 | Text to use to resolve duplicate module names |
| 分割实体文件后缀 | Text to append to name of generated model file |
| 保留字后缀 | Text to append to value names, postfix values, or labels |
| 分割架构文件后缀 | Text to append to name of generated architecture file |
| 钟控过程后缀 | Text to append to HDL clock process names |
| 分割实体和架构 | Write architecture code to multiple VHDL files |
| 复数实部后缀 | 追加到复信号名称实部的文本 |
| VHDL 架构名称 | DUT 的架构名称 |
| 复数虚部后缀 | 追加到复信号名称虚部的文本 |
| 模块名称前缀 | Text to prefix to module or entity name in generated HDL code |
| 使能前缀 | Base name for internal clock enables and other flow control signals |
| 时序控制器后缀 | Text to append to timing controller name |
| 流水线后缀 | Text to append to names of input or output pipeline registers |
| VHDL 库名称 | Target library name for generated VHDL code |
| 将为模型引用生成的 VHDL 或 SystemVerilog 代码置于单一库中 | Generate VHDL or SystemVerilog code in separate libraries |
| 模块生成标签 | 要追加到 HDL GENERATE 语句的文本 |
| 输出生成标签 | 要追加到 VHDL GENERATE 语句中的赋值块的文本 |
| 实例生成标签 | 追加到实例节标签的文本 |
| 向量前缀 | 要添加到向量名称的文本前缀 |
| 实例前缀 | 要添加到组件实例名称的文本前缀 |
| 实例后缀 | 要追加到组件实例名称的文本 |
| 映射文件后缀 | 追加到生成的映射文件的文本 |
端口
| 输入数据类型 | HDL data type for input ports of model |
| 输出数据类型 | HDL data type for output ports of model |
| 时钟使能输出端口 | 生成的时钟使能输出端口的名称 |
| 尽量减少时钟使能 | Omit clock enable logic in generated code |
| 尽量减少全局复位 | Omit reset logic in generated code |
| 使用触发信号作为时钟 | Use trigger input signal as clock in generated code |
| 生成可调参数的 HDL DUT 输入端口 | Create DUT input ports for tunable parameters |
| 平衡生成的 DUT 输入端口的延迟 | Insert matching delays on generated DUT inport port paths (自 R2022b 起) |
| 生成测试点的 HDL DUT 输出端口 | Create DUT output ports for test point signals |
| 平衡生成的 DUT 输出端口的延迟 | Insert matching delays on generated DUT output port paths (自 R2022b 起) |
| 端口标量化 | Flatten vector ports into structure of scalar ports |
| FPGA 部署的最大 I/O 引脚数 | 目标 FPGA 的最大 I/O 引脚数 (自 R2022a 起) |
| 检查 DUT 引脚数是否超出 I/O 阈值 | Option to generate error or warning when DUT pin count exceeds maximum number of I/O pins (自 R2023a 起) |
编码风格
| 通过聚合体表示常量值 | Represent constants by using aggregates |
| 内联 MATLAB Function 模块代码 | 为 MATLAB Function 模块内联 HDL 代码 |
| 初始化所有 RAM 块 | 为 RAM 模块生成初始信号值 |
| RAM 架构 | 指定带或不带时钟使能的 RAM 架构 |
| 无复位寄存器初始化 | Specify how to initialize registers that do no reset |
| 尽量减少中间信号 | 在生成代码中尽量减少中间信号 |
| 展开 For-Generate 循环 | Unroll and omit FOR and GENERATE loops from
generated HDL code |
| 从封装子系统生成参数化 HDL 代码 | Generate reusable HDL code for subsystems |
| 枚举类型编码方案 | Specify encoding scheme to use for enumeration types |
| 对寄存器使用 "rising_edge/falling_edge" 样式 | 使用 rising_edge 或 falling_edge 检测生成代码中的时钟跳变 |
| 代码重用 | Specify whether to generate a reusable file for subsystems (自 R2022a 起) |
| 内联 VHDL 配置 | 生成的 VHDL 代码是否包含内联配置 |
| 串联类型安全零 | Whether to use type-safe syntax for concatenated zeros in generated VHDL code |
| 生成经过混淆处理的 HDL 代码 | Whether to generate obfuscated HDL code |
| 在生成的 HDL 代码中保留总线结构体 | Generate code with VHDL record or SystemVerilog structure types (自 R2022b 起) |
| 标量化端口命名的索引 | Specify starting index for names of scalarized vector ports (自 R2022a 起) |
| 优化时序控制器 | 在时序控制器代码中为每个速率生成一个计数器 |
| 时序控制器架构 | Specify architecture of generated timing controller |
| 使用 Verilog 或 SystemVerilog 的 `timescale 指令 | 在生成的 Verilog 或 SystemVerilog 代码中使用编译器指令 |
| Verilog 或 SystemVerilog 的 timescale 设定 | 指定在生成的 Verilog 或 SystemVerilog 代码中使用的时间刻度 |
编码标准
| HDL 编码标准 | Select coding standard guidelines |
| 在编码标准报告中显示通过规则 | Include passing rules in coding standard report |
| 检查重复名称 | Check for duplicate names in design |
| 检查设计名称中是否有 HDL 关键字 | Check for HDL keywords in design names |
| 检查模块、实例和实体名称长度 | Whether to check module, instance, and entity name length |
| 检查信号、端口和参数名称长度 | Whether to check signal, port, and parameter name length |
| 检查时钟使能信号 | Whether to check for clock enable signals in generated code |
| 检测复位信号的使用 | Whether to check for reset signals in generated code |
| 检测异步复位信号的使用 | Whether to check for asynchronous reset signals in generated code |
| 尽量减少变量的使用 | Whether to minimize use of variables |
| 检查设置 RAM 初始值的初始语句 | Whether to check for initial statements that set RAM initial values |
| 检查 process 中的条件语句 | Whether to check for length of conditional statements |
| 检查多个级联控制区域中相同变量的赋值 | Whether to check if there are assignments to same variable in multiple cascaded control regions |
| 检查 if-else 语句链长度 | Whether to check if-else statement chain length |
| 检查 if-else 语句嵌套深度 | Whether to check if-else statement nesting depth |
| 检查乘法器宽度 | Whether to check multiplier bit width |
| 检查非整数常量 | Whether to check for non-integer constants |
| 检查换行长度 | Whether to check line lengths in the generated HDL code |
注释
| 启用注释 | 是否启用注释 |
| 头部注释 | Comment lines in header of generated HDL and test bench files |
| 在头部包括时间/日期戳 | Include time and date information in generated HDL file header |
| 在模块注释中包含需求 | Include requirements as comments in code or code generation reports |
| 自定义文件头部注释 | Custom comment in header of generated HDL code |
| 自定义文件尾部注释 | Custom comment in footer of generated HDL code |
模型生成
| 生成的模型 | Generate model that shows latency and numeric differences between model and HDL code |
| 验证模型 | Generate validation model |
| 验证模型的后缀 | Suffix to append to validation model name |
| 生成的模型的前缀 | Prefix to append to generated model name |
| 布局样式 | Layout style of generated HDL model |
| 自动信号布线 | 在生成的模型中自动进行信号布线 |
| 模块间水平缩放 | 生成模型的水平缩放 |
| 模块间垂直缩放 | 生成模型的垂直缩放 |
高级
| 检查黑盒接口中是否存在名称冲突 | Generate warning or error when black box interfaces have name conflicts |
| 生成 HDL 代码 | 启用模型或子系统的代码生成 |
| 通过生成仅仿真索引检查来抑制越界访问错误 | Generate logic that prevents array indices from going out of bounds (自 R2022a 起) |
| 生成可追溯性报告 | Generate report with hyperlinks from code to model and model to code |
| 可追溯性样式 | Type of traceability to generate in code generation report |
| 生成模型 Web 视图 | Include Web view in code generation report |
| 生成资源利用率报告 | Generate resource utilization section in code generation report |
| 生成优化报告 | Generate optimization sections in code generation report |
| 生成高级时序关键路径报告 | Insert highlighting script that maps estimated critical path in code generation report |
| 自定义时序数据库目录 | Path to custom timing files |
| 仿真工具 | Simulator to use to run generated test benches |
| HDL 代码覆盖率 | Enable HDL code coverage flags in generated simulator scripts |
| HDL 测试平台 | Enable HDL test bench generation |
| 联合仿真模型 | Generate cosimulation model |
| SystemVerilog DPI 测试平台 | Enable SystemVerilog DPI test bench generation |
| 测试平台名称后缀 | Suffix to append to test bench name |
| 强制时钟 | Whether test bench forces clock input signals |
| 时钟高电平时间(ns) | Period during which test bench drives clock input signals high |
| 时钟低电平时间(ns) | Period during which test bench drives clock input signals low |
| 保持时间(ns) | Hold time for input signals and forced reset input signals |
| 强制时钟使能 | Whether test bench forces clock enable input signals |
| 时钟使能延迟(以时钟周期为单位) | Elapsed time between deassertion of reset and assertion of clock enable |
| 强制复位 | Whether test bench forces reset input signals |
| 复位长度(以时钟周期为单位) | Length of time during which reset is asserted |
| 保持采样之间的输入数据 | Hold data values for subrate signals for number of base-rate clock cycles in subrate sample period |
| 初始化测试平台输入 | Specify initial value driven on test bench inputs before data is asserted to DUT |
| 多文件测试平台 | Divide generated test bench into helper functions, data, and HDL test bench code files |
| 测试平台数据文件名后缀 | Suffix to append to test bench data file name when generating multi-file test bench |
| 测试平台参考后缀 | Suffix to append to names of reference signals generated in test bench code |
| 使用文件 I/O 读取/写入测试平台数据 | Create data files for reading and writing test bench input and output data |
| 忽略输出数据检查(采样数) | Number of samples during which output data checking is suppressed |
| 浮点容差检查依据 | Check for errors in floating-point library based on relative or ULP errors |
| 容差值 | Floating-point tolerance value |
| 仿真库路径 | Path of compiled Altera or AMD simulation libraries |
| 生成 EDA 脚本 | 启用第三方电子设计自动化脚本文件的生成 |
| 编译文件后缀 | 追加到 DUT 或测试平台名称的后缀,用于编译脚本文件名 |
| 编译初始化 | 用于编写编译脚本的 Init 节的格式名称 |
| 编译 VHDL 的命令 | Format name to use to write Cmd section of compilation script for
VHDL |
| 编译 Verilog 或 SystemVerilog 的命令 | 用于编写适用于 Verilog 或 SystemVerilog 的编译脚本的 Cmd 节的格式名称 |
| 编译终止 | 用于编写编译脚本终止节的格式名称 |
| 仿真文件后缀 | 追加到 DUT 或测试平台名称的后缀 |
| 仿真初始化 | 用于编写仿真脚本初始化节的格式名称 |
| 仿真命令 | 用于编写仿真命令的格式名称 |
| 仿真波形查看命令 | 写入仿真脚本的波形查看命令 |
| 仿真终止 | 用于编写仿真脚本终止节的格式名称 |
| 仿真器标志 | 应用于生成的编译脚本的仿真器标志 |
| 选择综合工具 | Specify synthesis tool for which to generate synthesis scripts |
| 综合文件后缀 | Postfix to append to file name |
| 综合初始化 | Format name to use to write initialization section of synthesis script |
| 综合命令 | Format name to use to write synthesis command |
| 综合终止 | 用于编写综合脚本终止节的格式名称 |
| 要添加到综合工程的附加文件 | Additional HDL or constraint files |
EDA 工具脚本
| 生成 EDA 脚本 | 启用第三方电子设计自动化脚本文件的生成 |
编译脚本参数
| 编译文件后缀 | 追加到 DUT 或测试平台名称的后缀,用于编译脚本文件名 |
| 编译初始化 | 用于编写编译脚本的 Init 节的格式名称 |
| 编译 VHDL 的命令 | Format name to use to write Cmd section of compilation script for
VHDL |
| 编译 Verilog 或 SystemVerilog 的命令 | 用于编写适用于 Verilog 或 SystemVerilog 的编译脚本的 Cmd 节的格式名称 |
| 编译终止 | 用于编写编译脚本终止节的格式名称 |
仿真脚本参数
| 仿真文件后缀 | 追加到 DUT 或测试平台名称的后缀 |
| 仿真初始化 | 用于编写仿真脚本初始化节的格式名称 |
| 仿真命令 | 用于编写仿真命令的格式名称 |
| 仿真波形查看命令 | 写入仿真脚本的波形查看命令 |
| 仿真终止 | 用于编写仿真脚本终止节的格式名称 |
| 仿真器标志 | 应用于生成的编译脚本的仿真器标志 |
| 选择综合工具 | Specify synthesis tool for which to generate synthesis scripts |
| 综合文件后缀 | Postfix to append to file name |
| 综合初始化 | Format name to use to write initialization section of synthesis script |
| 综合命令 | Format name to use to write synthesis command |
| 综合终止 | 用于编写综合脚本终止节的格式名称 |
| 要添加到综合工程的附加文件 | Additional HDL or constraint files |
Lint 脚本参数
| 选择 HDL lint 工具 | Specify HDL lint tool for which to generate lint scripts |
| Lint 初始化 | Format name to use to write initialization section of HDL lint script |
| Lint 命令 | Format name to use to write command for HDL lint script |
| Lint 终止 | Format to use to write termination section of HDL lint script |
主题
HDL 模块属性
- Set and View HDL Model and Block Parameters
View or set the implementation parameters for a block. - HDL Block Properties: General
HDL code generation parameters for specific block implementations. - HDL Block Properties: Native Floating Point
HDL code generation parameters for native floating-point block implementations. - HDL Filter Block Properties
HDL code generation parameters for filter blocks. - HDL Filter Architectures
HDL code generation parameters to control speed and area tradeoffs in filter architectures. - Distributed Arithmetic for HDL Filters
Use Distributed Arithmetic for efficient HDL filters. - Pass through and No HDL Implementations
Apply pass-through and no HDL block implementations.
模型配置参数
- Set HDL Code Generation Options
Access HDL options in the Configuration Parameters dialog box, Simulink toolstrip, block context menu, or HDL Block Properties window. - Add or Remove the HDL Configuration Component
Add an HDL configuration component to make models more portable. - 模型配置参数:HDL 代码生成
使用此窗格设置代码生成参数、启动兼容性检查并为您的设计生成 HDL 代码。 - 模型配置参数:目标
使用此窗格指定目标硬件设置。 - Model Configuration Parameters: Optimization
Use this pane to improve area and timing. - Model Configuration Parameters: Floating Point
Use this pane to specify floating-point IP libraries. - Model Configuration Parameters: Global Settings
Use this pane to specify detailed characteristics of the generated code. - Model Configuration Parameters: Report
Use this pane to specify the generation of reports. - Model Configuration Parameters: Test Bench
Use this pane to determine characteristics of generated test bench code. - Model Configuration Parameters: EDA Tool Scripts
Use this pane to control generation of script files for third-party HDL simulation and synthesis tools.
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
选择网站
选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
- América Latina (Español)
- Canada (English)
- United States (English)
欧洲
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)