Hierarchical Designs and Synchronous Hardware Behavior
R2026bTo model large designs, you can divide your model into subsystems and create hierarchical designs. For synchronous hardware behavior and to generate hardware-friendly HDL code, use the State Control block inside the subsystems.
Checks
Model Settings
| Code reuse | Specify whether to generate a reusable file for subsystems (Since R2022a) |
| Generate parameterized HDL code from masked subsystem | Generate reusable HDL code for subsystems |
| Use “rising_edge/falling_edge” style for registers | Use rising_edge or falling_edge to detect
clock transitions in generated code |
| Atomic subsystems | Share Atomic Subsystem blocks with resource sharing optimization |
Blocks
Topics
- 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.







