Forum Discussion
Error while trying to simulate anything using modelsim altera containing altera megafunctions (altera_mf_ver).
# Error opening C:/build/swbuild/SJ/nightly/18.1std/625/l64/work/modelsim/eda/sim_lib/altera_mf.v
# Path name 'C:/build/swbuild/SJ/nightly/18.1std/625/l64/work/modelsim/eda/sim_lib/altera_mf.v' doesn't exist.
Quartus works fine and synthesisizes that but model sim on the other hand.
I do not have such folder in C:/
I can find the altera_mf.v in C:\intelFPGA_lite\18.1\modelsim_ase\altera\verilog\src
Maybe it has wrong directory by default? Tried installing on second computer and go the same result.
Thanks!
1 Reply
- AnandRaj_S_Intel
Regular Contributor
Hi James,
Can elaborate the steps?
Try to to include below lines in simulation script and check.
set path_to_quartus C:/intelFPGA_lite/18.1/quartus
vlib altera_mf
vmap altera_mf altera_mf
vcom -work altera_mf -2002 -explicit $path_to_quartus/eda/sim_lib/altera_mf_components.vhd
vcom -work altera_mf -2002 -explicit $path_to_quartus/eda/sim_lib/altera_mf.vhd
Regards
Anand