Description
You may see this error when compiling the Quartus® II software version 12.1 SP1 libraries using ModelSim software version 10.2. Note that the Quartus II software version 12.1 SP1 officially supports ModelSim software version 10.1b.
Resolution
To work around this issue, compile using the supported version of ModelSim software.
Alternatively, for Verilog HDL simulation, edit the file <Quartus II installation directory>/eda/sim_lib/altera_lnsim.sv. Add automatic
to line 1150 and line 10397
line 1158:
automatic integer mega = 1000000;
line 10397:
automatic real factor = 10**9;
For VHDL simulation, suppress the error message by the following command:
vlog -sv -suppress 2244 altera_lnsim_for_vhdl.sv