- Select the block you wish to use your own HDL code for
- Right-click on it: choose HDL Code>HDL Block Properties
- Change the Architecture to 'BlackBox'
- Configure the block and its interface as desired
How to integrate existing HDL code with Simulink model?
14 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I want to integrate legacy HDL code with a Simulink model, without using any xilinx and altera toolblocksets(black boxes from these or any other specific company)(using 2013a version). How to go about this?
0 Kommentare
Antworten (1)
Tim McBrayer
am 11 Jul. 2014
HDL Coder natively supports integrating external HDL code into HDL Coder designs via its BlackBox architecture, available on both Subsystem and Model Reference blocks. To choose the BlackBox architecture:
This is just a bare sketch of the process. Much more detail is available in the published documentation. Search for 'Black Box' and 'BlackBox' in the HDL Coder documentation for more detail.
3 Kommentare
Tim McBrayer
am 22 Jul. 2014
HDL Coder will create a component instance in the generated code that expects an entity/architecture or module, language depending. How you manage the location and scripting of this additional file is up to you. The simplest way is to place a copy of your legacy HDL into the HDL Coder output directory. Then, you have all your source code in one location, and can create your project for your 3rd party tool will the full contents of your design. How exactly you do this is up to the particular EDA tool you are using.
This is only one way to do it. You can compile the legacy code into a separately, in a different library. You can use the same library as the generated code but without copying the legacy code in place. It is all up to what will work best for you.
Shashank
am 11 Sep. 2017
Siehe auch
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!