Other Parts Discussed in Thread: SYSCONFIG
Tool/software:
Greetings,
When the CLA code uses a read-only table, can it be in the same LS RAM as the program which uses it? Or does it need to be on the data bus in a separate LS RAM?
Thank you,
Ed
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.
Tool/software:
Greetings,
When the CLA code uses a read-only table, can it be in the same LS RAM as the program which uses it? Or does it need to be on the data bus in a separate LS RAM?
Thank you,
Ed
Hi Ed,
To clarify, are you talking about a table in CPU-to-CLA MSGRAM (CLA only has read access but CPU can write)? Or are you defining a table inside a CLA task that uses hardcoded values?
Program memory can only contain valid CLA instructions from the instruction set, if what you are describing is a hardcoded table inside a task, the compiler will place it in the memory allocated for the const_cla in the linker cmd file.
Best Regards,
Delaney
Hi Delaney,
It is the table inside the CLA task. So the const_cla section must be placed in the CLA writeable area?
Thank you,
Ed
Hi Ed,
I see, thank you for clarifying. The const_cla needs to be allocated to an LSRAM that the CLA data memory access to. For example, in Sysconfig if the following permissions were given:

const_cla could be allocated to either LSRAM1 or LSRAM2 in the linker cmd file. Please upvote this response if it answers your question.
Best Regards,
Delaney