Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
16822 Discussions

Error while trying to simulate anything using modelsim altera containing altera megafunctions (altera_mf_ver).

TTed01
Beginner
1,906 Views

# 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!

0 Kudos
1 Reply
AnandRaj_S_Intel
Employee
1,761 Views

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

0 Kudos
Reply