Import HDL Code for HDL Cosimulation Block with VHDL-2008
2 次查看(过去 30 天)
显示 更早的评论
Hi,
I need to import a VHDL File with VHDL-2008 for Cosimulation.
I tried in the Cosimulation Wizard in step HDL Compilation:
set compcmd [project compileall -2008]
This doesn't work.
How can I set the compile option VHDL-2008 for Modelsim?
I've used Matlab R2022a and Modelsim DE-64 2021.2
Best regards.
0 个评论
回答(1 个)
Marc Erickson
2022-6-2
I could not find any way to directly specify the option for the project-based compilation. Instead, one must use the optoins set in the modelsim.ini.
Solution 1 (global):
update your system installation's version of the modelsim.ini to change the VHDL93 setting. This update would apply to all uses of the simulator.
Solution 2 (local):
Utilize a custom modelsim.ini file for the wizard and specify to use it in the project new command. Here's an example of modifying the wizard compilation commands:
Here is the contents of the ini file:
And here is a snippet of the resulting vcom compilation commands:
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!