TI E2E Community
Digital Signal Processors (DSP)
OMAP-L13x, AM1x and C674x Processors Forum
How to LUT on PRU
we are working with OMAP-L138 and use the PRU with LUT
I have a lookup table (LUT) of 16 elements (of 32 bits), Is it possible to load this array on Registers, and depenting the value on anthor regigter to read the correct value?
or if you have any other way to load the LUT data into the PRU without too many stalls
Hi PF,Yes, you can load the LUT into 16 of the PRU registers. This will leave you with 14 remaining registers than can be used for all other PRU operations. If your application needs more than 14 registers for PRU operations, I would suggest loading the LUT into the PRU DRAM and reading from this memory. Regards,Melissa
you can load the LUT into 16 of the PRU registers.
What is the pru instructions that can read the specific data from register?
Ex: If R0 = 0x0A; How can I load the 10th element to R1?
You can use the MOV instruction to copy data from one register into another.
For example, if R0 = 0x0A, you can move the 10th element (stored in R11) to R1 as follows:
QBEQ BRANCH1_LABEL, R0, 10 // if R0 = 0x0A, jump to BRANCH1_LABEL
MOV R1, R11 // Copy contents of R11 to R1
JMP BRANCH2_LABEL // Return to BRANCH2_LABEL
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.