Simulating RAM in modelsim - cannot find library
You need to link to the library.

Assuming it is mapped (i.e. you see altera_mf as a library as you say), this is just a case of adding a switch to your vsim command:

vsim  &lt;options&gt; -L altera_mf  &lt;toplevel&gt;


Replacing &lt;options&gt; with any existing options you have, and &lt;toplevel&gt; is the name of the top level module (which you should already have in your command).



If that doesn't work, you will also need to make sure the library is mapped:

vmap altera_mf ./path/to/your/libraries/altera_mf