层次化设计与同步硬件行为
R2026b使用 State Control 模块创建子系统和层次化 HDL 设计
要进行大型设计建模,您可以将模型划分为若干子系统并创建层次化设计。为实现同步硬件行为并生成硬件友好的 HDL 代码,请在子系统内使用 State Control 模块。
检查
模型设置
| 代码重用 | Specify whether to generate a reusable file for subsystems (自 R2022a 起) |
| 从封装子系统生成参数化 HDL 代码 | Generate reusable HDL code for subsystems |
| 对寄存器使用 "rising_edge/falling_edge" 样式 | 使用 rising_edge 或 falling_edge 检测生成代码中的时钟跳变 |
| 原子子系统 | 通过资源复用优化来复用 Atomic Subsystem 模块 |
模块
主题
- Synchronous Subsystem Behavior with the State Control Block
Description of a State Control Block and how it generates cleaner HDL code.
- Generating HDL Code for Subsystems with Array of Buses
Generate HDL code for subsystems that use array of buses in the design.
- Generate Reusable Code for Subsystems
Generate shared code for identical subsystems or subsystems identical except for their mask parameter values.
- Generate HDL Code for Blocks Inside For Each Subsystem
An example that shows how to model and generate HDL code for blocks inside a For Each Subsystem.
- Generate HDL Code with Record or Structure Types for Bus Signals
Generate VHDL® code with record or structure types for bus signals at different subsystem-level interfaces.







