Simulink HDL Coder & Vitis Model Composer cannot find the same Device
29 views (last 30 days)
Show older comments
I have the error pictured below when attempting to generate VHDL code through the HDL code generator in Simulink. Both the Devices match to the best of my knowledge ... My only idea is that it is for some reason due to using Vitis Model Composer 2022.2 and Matlab R2022a. However, I don't think this would be the case as well because I could generate code when I had no Xilinx block and the same versions of software mentioned before.
0 Comments
Answers (1)
Kiran Kintali
on 1 Jun 2023
Edited: Kiran Kintali
on 1 Jun 2023
Model Composer library in Simulink needs Vitis workflows to generate HDL Code.
Are you trying to use Model Composer blocks in a subsystem and using HDL Coder to generate code from them?
Can you share a sample model or some more details on what your DUT (device under test) subsystem contains when using HDL Coder or HDL Workflow Advisor?
Thanks
4 Comments
Kiran Kintali
on 5 Jun 2023
Edited: Kiran Kintali
on 5 Jun 2023
That's looks like a resonable approach. Thanks for sharing it.
Here are few steps to summarize the workaround.
- Create a Simulink model with a Simulink DUT with built-in blocks and a subsystem containg XMC blocks
- Mark XMC subsystem as a HDL Blackbox interface
- Generate HDL Code for the DUT with HDL Coder
- Generate HDL Code for the XMC subsystem with Vitis Model Composer
- Manually combine the generated code from step3 and step4.
- Build the code with Vivado Synthesis tool
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!