Incorporate External HDL Code into Simulink Model
4 views (last 30 days)
Show older comments
MathWorks Support Team
on 13 Jun 2018
Answered: MathWorks Support Team
on 20 Jun 2018
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
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:
a) Use a DocBlock, as described here: https://www.mathworks.com/help/hdlcoder/ug/integrate-custom-hdl-code-using-docblock.html
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.
0 Comments
More Answers (0)
See Also
Categories
Find more on Speed Optimization in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!