Main Content

Hierarchical Designs and Synchronous Hardware Behavior

R2026b
Create subsystems and hierarchical HDL designs with State Control block

To 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.

Model Settings

Code reuseSpecify whether to generate a reusable file for subsystems (Since R2022a)
Generate parameterized HDL code from masked subsystemGenerate reusable HDL code for subsystems
Use “rising_edge/falling_edge” style for registersUse rising_edge or falling_edge to detect clock transitions in generated code
Atomic subsystemsShare Atomic Subsystem blocks with resource sharing optimization

Blocks

expand all

Unit Delay Enabled Synchronous blockUnit Delay Enabled SynchronousDelay input signal by one sample period when external Enable signal is true
Unit Delay Resettable Synchronous blockUnit Delay Resettable SynchronousDelay input signal by one sample period when external Reset signal is false
Unit Delay Enabled Resettable Synchronous blockUnit Delay Enabled Resettable SynchronousDelay input signal by one sample period when external Enable signal is true and external Reset signal is false
Tapped Delay Enabled Synchronous BlockTapped Delay Enabled SynchronousDelay scalar signal multiple sample periods and output all delayed versions when external Enable signal is true (Since R2023a)
Tapped Delay Resettable Synchronous BlockTapped Delay Resettable SynchronousDelay scalar signal multiple sample periods and output all delayed versions when external Reset signal is false (Since R2023a)
Tapped Delay Enabled Resettable Synchronous BlockTapped Delay Enabled Resettable SynchronousDelay scalar signal multiple sample periods and output all delayed versions when external Enable signal is true and external Reset signal is false (Since R2023a)
Enabled Delay blockEnabled DelayDelay input signal by fixed or variable sample periods when external enable signal is true (Since R2024b)
Enabled Resettable Delay blockEnabled Resettable DelayDelay input signal by fixed or variable sample periods when external Enable signal is true and external Reset signal is false (Since R2024b)
State Control blockState ControlSpecify synchronous reset and enable behavior for blocks with state
Synchronous Subsystem blockSynchronous SubsystemRepresent subsystem that has synchronous reset and enable behavior
Enabled Synchronous Subsystem blockEnabled Synchronous SubsystemRepresent enabled subsystem that has synchronous reset and enable behavior
Resettable Synchronous Subsystem blockResettable Synchronous SubsystemRepresent resettable subsystem that has synchronous reset and enable behavior

Topics

Featured Examples