ΣSigmaStudio Ask AI Русский Log in

Compiler Error, run out of MIPS

SigmaDSP & SigmaStudio PBouvier251 Dec 17, 2024 00:00 4 replies Original on forum ↗
Thread Summary

Thread Summary

The user encountered a 'Run out of MIPS' error when trying to compile a SigmaStudio project for the ADAU1701, despite no recent changes. The final answer suggested deleting readback cells or a less important level meter, which reduced the instruction count from 1020 to 987, allowing the project to compile successfully.
AI Generated Content
Subscribe
PBouvier251 Question
Dec 17, 2024 00:00

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

Harishgowtham Reply
Dec 18, 2024 00:00

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

PBouvier251 Reply
Dec 18, 2024 00:00

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

Harishgowtham Reply
Dec 18, 2024 00:00

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

pastedimage1734529313150v1.png
pastedimage1734529313150v1.png
pastedimage1734529341856v2.png
pastedimage1734529341856v2.png
PBouvier251 Reply
Dec 18, 2024 00:00

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.