Post Go back to editing

Compiler Error, run out of MIPS

Category: Software
Product Number: ADAU1701
Software Version: SigmaStudio Version 4.7 Build 0, Rev 1831

SigmaStudio project that I've been working on suddenly cannot compile, nothing has changed but now it won't compile.  This project has been running in it's general form for some time and is not very large.  Now when I try to 

compile/link/download I get "Compiler Error.  Please contact ADI.  System.SystemException: Run out of MIPS: Instruction count is 1020 at Sigma 100_Comp.AssemblyProcess100.Decode(HashtableErrorAndProc) at

Sigma100DSPSSigma100.Cimpile(ArrayList.algorithmarray).

I have uninstalled/reinstalled SigmaStudio and the error persists. The project is attached.

TIA

  • Hello PBovier251,

    As the error says, you are running out of MIPS. Have you had a look at the compiler output file? This file is located in a folder where your project resides.

    Please attach your project, we will have a look and see what's happening. 

    Regards,

    Harish

  • Hi Harish, thanks for the reply.  As I said in my post, this project has been compiled/linked/downloaded many times and runs fine, just this morning it won't compile (I haven't changed anything).  I (thought I had) attached the project to the OP, here it is again:

     DSPBK and 2xKE full project.dspproj

    Here is the contents of compiler_output.txt:

    nalog Devices Graphical Compiler Tool for Sigma DSP build date = 2008


    Done Reading Nodelist ...

    Done reading file,

    Done Reading Parameter list ...


    ################## Summary ########################
    (Note: Estimates are based on a 48 kHz sample rate)

    Number of instructions used (out of a possible 1024 ) = 905

    Data RAM used (out of a possible 2048 ) = 470

    Parameter RAM used (out of a possible 1024 ) = 247

    Files written:

    program_data.dat - load file for downloading code using ADI loader

    hex_program_data.dat - load file for downloading code using microcontroller

    spi_params.dat - file of parameter values for each instance, used by gen_spi program to make download file

    spi_map.dat - Parameter RAM locations for each schematic instance

    trap.dat - lists the values to enter in the trap registers to output a signal to the data-capture output pin.

    Regards,

    Peter

  • Hello Peter,

    You are indeed running out of MIPS. Your program used more than 1016 instructions hence it gave you an error. I just deleted two readback cells and it compiled fine. The MIPS used became 1014 after deleting those readback cells.  It allows to compile until 1016.

    If you need the readback cells for reading the limiter flag, then delete one of the level meters that you think less important. I will have a look if by any chance I can optimize the code a little.

    Regards,

    Harish

  • Thank you, Harish.  What was confusing me is the instruction count I got was 905, I don't know why you got a higher number.  But I deleted a meter and it compiled with 987 instructions, which verifies your results.  Appreciate the help.