Effacer les filtres
Effacer les filtres

Import HDL Code for HDL Cosimulation Block with VHDL-2008

4 vues (au cours des 30 derniers jours)
Malte
Malte le 31 Mai 2022
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.

Réponses (1)

Marc Erickson
Marc Erickson le 2 Juin 2022
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:

Tags

Produits


Version

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by