DSPRelated.com
Forums

Share Table for DSP algorithm

Started by to_ojo November 15, 2004


I use DSP board model TMS320C6713 and CCS V 2.21.00
and use Component wizard for ExpressDSP to generate Standard API for
G729 algorithm

According to SPRU360C
Page 1-17
.
.
.
memTab[2].size = sizeof(G729D_VND_EncoderTable);
memTab[2].alignment = 0; /* no alignment */
memTab[2].type = IALG_WRITEONCE;
memTab[2].space = IALG_SARAM; /* single-access on-chip */
memTab[2].base = &G729D_VND_EncoderTable; /* shared look-up
table */
.
........
following this code you will share Table data among algorithm object but
I try to do like this it not work because this memtab won't be allocated

in my opinion alg_alloc api /* "@(#) XDAS 2.50.02 11-28-03
(xdas,dsk6713-a05)" */ don't support share memory because
* ======== alg_malloc.c ========
* This module implements an algorithm memory management "policy"
in which
* no memory is shared among algorithm objects. Memory is, however
* reclaimed when objects are deleted.

HOW should I do for allocate share memory for Look-up table ?

Thank you .