Incorporate External HDL Code into Simulink Model

4 views (last 30 days)
I would like to incorporate external IP (HDL not generated from MATLAB) into my HDL coder design. What methods exist for doing so?

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 20 Jun 2018
The simplest approach for incorporating external IP into your HDL Coder Design is to create a black box interface for a subsystem that models the behavior of the external IP. Please see this documentation page for details on generating a black box interface:
The steps to generate a black box interface are as follows:
1) Create a subsystem that models the external IP's behavior
2) Right-click on the block and select HDL Code > HDL Block Properties
3) Change the "Architecture" to 'BlackBox'
The generated HDL component from this subsystem only includes the HDL input and output port definitions for the subsystem. You can then integrate your external IP into the generated code by either of the following options:
b) In HDL Block Properties for the black box subsysytem, specify the 'EntityName' to match the name of the HDL file. Then, in the top-level DUT block, specify the path to this file under HDL Code > HDL Block Properties > Target Specification > IPCoreAdditionalFiles.

More Answers (0)

Products


Release

R2018a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!