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.

a question in FC_RMAN_IRES_c6xdsp.cfg on dm8127

Hi,

The following code is a piece of code in the file of FC_RMAN_IRES_c6xdsp.cfg. It set a heap as large as 64k in internalHeap and name it as heap1. Then,assign heap1 to Program.global.DSP_HEAPINT_MEM and set DSKT2.DARAM0,DSKT2.DARAM1,DSKT2.DARAM2 in DSP_HEAPINT_MEM. In a word, DSKT2.DARAM0,
DSKT2.DARAM1,DSKT2.DARAM2 is allocated in heap1 and the largest size is 64k. The scratch group 0 of DARAM is 128*1024(128K).The scratch group 0 of DARAM is allocated in heap1. However, Why the size is twice as large as heap1?

------------------------------------------------------------------------------------------------
heapMemParams.size = 0x00010000;
heapMemParams.sectionName = ".internalHeap";
var heap1 = HeapMem.create(heapMemParams);

Program.global.DSP_HEAPEXT_MEM = heap0;
Program.global.DSP_HEAPINT_MEM = heap1;

/* Configure DSKT2 heaps and scratch */
DSKT2.ALLOW_EXTERNAL_SCRATCH = false;

DSKT2.DARAM0 = "DSP_HEAPINT_MEM";
DSKT2.DARAM1 = "DSP_HEAPINT_MEM";
DSKT2.DARAM2 = "DSP_HEAPINT_MEM";

DSKT2.SARAM0 = "DSP_HEAPEXT_MEM";
DSKT2.SARAM1 = "DSP_HEAPEXT_MEM";
DSKT2.SARAM2 = "DSP_HEAPEXT_MEM";

DSKT2.ESDATA = "DSP_HEAPEXT_MEM";
DSKT2.IPROG = "DSP_HEAPEXT_MEM";
DSKT2.EPROG = "DSP_HEAPEXT_MEM";

DSKT2.DSKT2_HEAP = "DSP_HEAPEXT_MEM"

DSKT2.DARAM_SCRATCH_SIZES = [128*1024, 0, 0,0,0,0,0, /* ... */ 0 ];
DSKT2.SARAM_SCRATCH_SIZES = [ 0,0, 0,0,0,0,0, /* ... */ 0 ];
----------------------------------------------------------------------------------------------------

0552.FC_RMAN_IRES_c6xdsp.cfg

Best regards!