Article ID: 000075786 Content Type: Troubleshooting Last Reviewed: 04/22/2013

** Error: <Quartus II installation directory>/eda/sim_lib/altera_lnsim.sv(1158): (vlog-2244) Variable 'mega' is implicitly static. You must explicitly declare it as static or automatic.

Environment

  • Quartus® II Subscription Edition
  • BUILT IN - ARTICLE INTRO SECOND COMPONENT
    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

    Related Products

    This article applies to 1 products

    Intel® Programmable Devices