Import HDL Code for HDL Cosimulation Block with VHDL-2008

4 次查看(过去 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.

回答(1 个)

Marc Erickson
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:

类别

Help CenterFile Exchange 中查找有关 HDL Coder 的更多信息

标签

产品


版本

R2022a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by