SPRUIG3C January 2018 – August 2019 TDA4VM , TDA4VM-Q1
Once the table is properly configured, copied to L1D, and arranged for C7x layout, the lookup operation itself is straightforward. This VCOP Kernel-C statement:
Vdst = base[Agen].lookup(Vindex);
translates to:
LUTRD LTBR0,Vindex_adj
where LTCR0 specifies the table configuration and
Vindex_adj
represents the adjusted index vector as described in Section 5.5.5.
The table configuration handles promotion of the table elements to 32-bits and interpolation (where multiple consecutive elements are returned for each index).
The lookup operation is implemented by the
vcop_lookup::lookup()
method of the virtual machine.