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.
Hi everyone,
I have a question about CLA delay slot.
When I compile my .cla code, CLA compiler didn't generate 3 MNOP'S after MSTOP.
Do I have to add 3 MNOP'S after MSTOP instruction?
or
Has the compiler determined it isn't necessary?
I see below.
processors.wiki.ti.com/.../Control_Law_Accelerator_(C2000_CLA)_FAQ
Q: In the examples I noticed there are 3 MNOP's after each MSTOP. Why is this done? Is it required?
There is a restriction that an MSTOP not endup within 3 instructions of a branch.
The MNOPS have been added to make sure this requirement is always met even
when the program RAM following a task is not initialized. If you know
for sure there is not a branch within 3 instructions after the MSTOP,
then you can remove the MNOPS.
Best regarads,
Mino.M
Mino Montana said:Do I have to add 3 MNOP'S after MSTOP instruction?
or
Has the compiler determined it isn't necessary?
You do not need to add any MNOP instructions. The compiler has determined it isn't necessary.
Thanks and regards,
-George