Forum Discussion
JOHI
Contributor
8 years agoHow to change a library refence in modelsim?
Hello I am trying to calculate a natural logarithm in VHDL. Compilation for my board works properly, simulation does not: ** Error: (vsim-3732) C:/FpgaProjects/Q17/DE10_STD_PSD_CALC_VHDL/FloatLn.v...
Tricky
Occasional Contributor
8 years agoAs per your question - if you are using modelsim altera edition - you dont. The libraries are already mapped.
Those libraries are the for when you use a simulator without the libraries already mapped. eg. Modelsim SE, Questa, Active HDL etc.
In that case, you will need to create a library called altera_mf, then compile <Quartus II installation directory>\eda\sim_lib\altera_mf.vhd into that library.
console commands:
vlib altera_mf
vcom -work altera_mf <quartus>\eda\sim_lib\altera_mf.vhd
vcom -work altera_mf <quartus>\eda\sim_lib\altera_mf_components.vhd