Model Using System Objects
R2026bA System object is a specialized MATLAB® object that you can use to implement or simulate dynamic systems with inputs that change over time.
With HDL Coder™, you can use predefined or user-defined System objects during code generation in MATLAB. System objects have these advantages:
Reuse of Components: Save time during design and testing by using existing System object components.
Customization: Design and qualify custom System objects for reuse in multiple designs.
Algorithm Definition: Define your algorithm in a System object once, and reuse multiple instances of it in a single MATLAB design.
Modularity and Readability: HDL code that you generate from System objects is modular and readable.
You can use the predefined System objects available with MATLAB, DSP System Toolbox™, and Communications Toolbox™ to generate HDL code. For more information, see Predefined System Objects Supported for HDL Code Generation.
Functions
Topics
- HDL Code Generation for System Objects
System object support for HDL code generation.
- Predefined System Objects Supported for HDL Code Generation
List of predefined System objects for HDL code generation.
- Generate Code for User-Defined System Objects
How to create user-defined System objects and generate HDL code.
- Integrate Custom HDL Code Into MATLAB Design
Include pre-existing HDL code in your MATLAB design.
- Generate HDL and HLS Code from a Symmetric FIR Filter Using System Objects
This example shows how to generate HDL and HLS code from a MATLAB design that implements a symmetric FIR filter using System objects.
- Generate HDL and HLS Code from Ring Buffer Designs Using RAM
This example shows how to generate HDL and HLS code from MATLAB designs that implement a ring buffer, or circular delay line, using RAM.
- Generate HDL and HLS Code from a Viterbi Decoder Algorithm
This example shows how to generate HDL code from a MATLAB design that implements a Viterbi decoder using a System object.
