This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

C6657 mathlib reciprocal mathlib loop buffer exception

Other Parts Discussed in Thread: MATHLIB

Hello,

I am getting a "Loop buffer exception Missed stall exception" in my C6657 EVM.  I have traced this to the reciprocal function in the math library. The exception takes a random amount of time to happen.  Anywhere between 5 seconds to 1 minute.  I am doing the reciprocal of a 128 point vector about 2000 times a second (in addition to other processing).

I am using mathlib_c66x_3_0_1_1.  I also use other math functions from the library without any issues.

Any ideas why this may be happening?

Thanks,

Fawad

  • Fawad,

    Can you provide a test case that demonstrates this exception occurring? A random exception sounds difficult to reproduce with just a high-level description, or even a more detailed one. It could be data sensitive, for example.

    Have you tried re-running with the same 128-point vector to see if it always fails with a certain set of data?

    Regards,
    RandyP

  • RandyP,

    So further testing has shown it is the calling function that has the exception instead of the mathlib reciprocal function.  I can stop the exception by compiling with less optimization (-01 instead of -02) for the calling code.  So for now I will mark this issue fixed.

    Thanks,

    Fawad

  • Fawad,

    Thanks for the update. We would still like to see a test case, if this is a case of the optimizer generating bad code.

    Up to you, of course.

    Regards,
    RandyP