Can I generate HDL Code for models with Xilinx System Generator blocks?
5 次查看(过去 30 天)
显示 更早的评论
MathWorks Support Team
2020-4-8
编辑: MathWorks Support Team
2020-9-25
Does HDL Coder support code generation for models including Xilinx System Generator for DSP blocks?
采纳的回答
MathWorks Support Team
2020-9-25
编辑:MathWorks Support Team
2020-9-25
Yes, this workflow is supported, and the documentation includes examples illustrating potential usages. This approach requires "targeted" code generation, in which Xilinx System Generator for DSP generates the code for Xilinx blocks, and HDL Coder™ generates code from Simulink blocks.
This overall workflow for Xilinx System Generator within HDL Coder is described at this documentation page; pay particular attention to the requirements and limitations listed near the bottom of the page.
Furthermore, the following example may be helpful when getting started. It illustrates the workflow, and elaborates on how this works: "HDL Coder™ generates HDL code from the Simulink blocks, and uses Xilinx System Generator to generate HDL code from the Xilinx System Generator Subsystem blocks."
0 个评论
更多回答(2 个)
Kiran Kintali
2020-4-20
If you have access to R2018a can you try to reproduce the issue in that release? We suspect this is already resolved in 18a release.
Thanks.
Kiran Kintali
2020-4-20
While running the simulation using the TCL script generated by HDL Coder, HDL Coder generates SysGen_with_HDL_Coder_CustomTCL_run.tcl script that is using a Vivado simulation command, launch_modelsim.
The TCL command “launch_modelsim” was supported in older versions of Vivado. Vivado 2017.1 supports following commands to use ModelSim simulator.
set_property target_simulator "ModelSim" [current_project]
launch_simulation -mode "post-synthesis" -type "functional"
In the example above, the options -mode “post_synthesis” and –type “functional” are just for example and should be replaced with an appropriate options.
This issue should be resolved in 18a and older releases. Please confirm.
Thanks
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 External Component Interfaces 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!