Custom HDL Code Integration
R2026bIntegrate external custom HDL code by using black box interfaces
HDL Coder™ allows you to integrate the custom HDL code to your design. Use DocBlock blocks to add your custom HDL code to the design and create a black box interface. The black box interface enables you to create an interface for existing manually written HDL code, third-party IP, or code generated by HDL Coder.
Functions
Topics
General
- Pass-Through and No-Op Implementations
Bypassing or omitting selected subsystems in generated code.
External HDL Code
- Integrate Custom HDL Code by Using DocBlock
Integrate custom HDL code using the DocBlock block. - Integrate Custom HDL Code Into MATLAB Design
Include pre-existing HDL code in your MATLAB® design. - Generate Black Box Interface for Subsystems
Generate an interface to connect a subsystem to existing or legacy HDL code. - Generate Black Box Interface for Referenced Model
Specify a black box implementation for the Model block when you already have legacy or manually-written HDL code. - Specify Bidirectional Ports
Specify bidirectional ports for a black box. - Customize Black Box or HDL Cosimulation Interface
How to use block implementation parameters to control generation and naming of ports and other attributes of the generated interface. - Generate Cosimulation Model
Automatically generate a Simulink model that cosimulates with your HDL simulator.