Hi Guys, I installed modelsim ASE starter edition 2021.02.
From common knowledge, I thought this tool has pre-compiled UVM features. But after I installed, I found `include "uvm_macros.svh" cannot be compiled. Then I checked library, no UVM related libs.
Did I missed some steps?
Hi,
Unfortunately ModelSim does not have pre-compiled UVM features. You are probably thinking of Questa Sim.
You need to download UVM source files, you can do that here: https://www.accellera.org/downloads/standards/uvm
And you'll need to compile the uvm_pkg as well.
vlog -work work -sv -stats=none C:/work/ST/simulation/tb_captur_1.sv <uvm_pkg path>/uvm_pkg.sv +incdir+<UVM source path>/src
Regards,
Nurina
連結已複製
Hi,
Unfortunately ModelSim does not have pre-compiled UVM features. You are probably thinking of Questa Sim.
You need to download UVM source files, you can do that here: https://www.accellera.org/downloads/standards/uvm
And you'll need to compile the uvm_pkg as well.
vlog -work work -sv -stats=none C:/work/ST/simulation/tb_captur_1.sv <uvm_pkg path>/uvm_pkg.sv +incdir+<UVM source path>/src
Regards,
Nurina
Hi Nurina
Thank you for your help, now the compilation can be proceed, and the tb module appears in work lib. Information shows below:
vlog -work work -sv -stats=none C:/work/ST/simulation/tb_capture_1.sv C:/intelFPGA_pro/21.1/modelsim_ase/uvm_lib/src/uvm_pkg.sv +incdir+C:/intelFPGA_pro/21.1/modelsim_ase/uvm_lib/src/
# Model Technology ModelSim - Intel FPGA Edition vlog 2021.1 Compiler 2021.02 Feb 3 2021
# -- Compiling package tb_capture_1_sv_unit
# -- Importing package uvm_pkg
# -- Compiling module tb_capture_1
# -- Compiling package uvm_pkg
#
# Top level modules:
# tb_capture_1
But when I load the "tb_capture_1", error happens:
vsim work.tb_capture_1
# vsim work.tb_capture_1
# Start time: 16:32:57 on Jun 10,2021
# ** Fatal: (vsim-7019) Can't locate a C/C++ compiler for 'DPI Export Compilation'.
#
# FATAL ERROR while loading design
# Error loading design
Should I also install other software?
Hi,
The Fatal Error occurs when the module for gcc compilation is insufficient. Can you go to the installation folder of ModelSim and confirm if gcc-4.2.1-mingw32vc12 exists? Let me know if it has a different name like vc9.
Once confirmed the correct gcc folder exists, check that the path of the C compiler in correctly set in environment variable path:
- Open Environment Variables. To do this, go to Control Panel->System & Security->System->Advanced system settings->Environment Variables...
- Under User Variables, go to "Path" and click "Edit"
- Check that it has the following path included: <modelsim installation path>\modelsim_ase\win32aloem
- If path not included, click "New" and enter the mentioned path.
Please let me know the results.
Regards,
Nurina
Hi,
I was able to compile it on ModelSim Intel FPGA Starter Edition Version 2020.1, can you migrate to this version instead? You can download the individual ModelSim file here: https://fpgasoftware.intel.com/20.1/?edition=standard&platform=windows
Regards,
Nurina
Hi Nurina
Sorry for late response, I just back from vacation.
I tried v20.1 in another server, but the result is the same:
#
# Top level modules:
# tb_capture_1
# vsim -c tb_capture_1 -voptargs=""+acc=r""
# Start time: 10:47:37 on Jul 13,2021
# ** Fatal: (vsim-7019) Can't locate a C/C++ compiler for 'DPI Export Compilation'.
#
# FATAL ERROR while loading design
# Error loading design
# Error: Error loading design
I already set the environment variable in that server, and use same command parameters.
Since the problem is already different from original question, I think you might close this question, and I may do some experiment in different tools. Thanks for so much helps!
Hi,
Maybe you downloaded the wrong UVM source file? It's odd that you're seeing this error because our internal team has fixed this error in Quartus v17.0.
OK I shall close this thread. I’m glad that your original question has been addressed, I now transition this thread to community support. If you have a new question, feel free to open a new thread to get the support from Intel experts. Otherwise, the community users will continue to help you on this thread. Thank you.
Regards,
Nurina
P/S: If you like my comment, feel free to give Kudos. If my comment solved your problem, feel free to accept my comment as solution!
Hi Nurina
I use the UVM src together with the modelsim installation. I think it should has best compatibility.
You mentioned the error has been fixed in Quartus. My installation of elder version 20.1, only include modelsim starter edition, no Quatus 20.1 installed. Would this installation type runs well?
Hi,
I used your previous method of saving the UVM source files in uvm_lib folder and it worked. As long as you specify the path of the uvm library on ModelSim then it should be fine.
I believe your installation type should be fine, as long as you have the DPI tool installed (gcc-4.2.1-mingw32vc12).
Could you try to using the following source code? That one worked for me. https://www.accellera.org/downloads/standards/uvm
