I'm trying to simulate a simple floating point calculation in ModelSim Altera 6.6c. I am using the ALTFP_DIV megafunction to do the calculation. When I compile my verilog files together with the altera_mf.v file and the testbench file in ModelSim, everything works fine.
But when I start the simulation, it comes up with an error: 'Instantiation of 'lpm_add_sub' failed. The design unit was not found.' The same message applies to lpm_compare and lpm_mult too.
I thought the altera_mf would take care of all those Altera specific libraries. Could someone please tell me where I am going wrong and help me get this simulation working?