Import HDL Code for HDL Cosimulation Block with VHDL-2008

2 ビュー (過去 30 日間)
Malte
Malte 2022 年 5 月 31 日
回答済み: Marc Erickson 2022 年 6 月 2 日
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:

タグ

製品


リリース

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by