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.

How to change the total usage of IRAM/L1/L2 in the Codecs Combo?

Hi,

 

I used the dvsdk 3.10.00.19. I changed the codecs combo cs of  "cs2dm6467_1_00_00_10". I tried to change the server.tcf & server.cfg.

 

Here is the change in server.tcf.

/* Specify the L2 memory setting */
var device_regs = {
    l1PMode: "32k",
    l1DMode: "32k",
    l2Mode: "32k"
};

In server.cfg, I made this change.

DSKT2.ALLOW_EXTERNAL_SCRATCH = true;//false;
DSKT2.SARAM_SCRATCH_SIZES[GROUP_0] = 32768;//65536;
DSKT2.SARAM_SCRATCH_SIZES[GROUP_1] = 0;
DSKT2.DARAM_SCRATCH_SIZES[GROUP_0] = 32768;//65536;
DSKT2.DARAM_SCRATCH_SIZES[GROUP_1] = 0;

 

I found out that when I tried to access the memory address 0x11828000 preiodically. The codecs cannot start anymore and it will hang forever. Is there any idea about this?

 

Philip

  • I can't say for sure, but some codecs unconditionally require a large chunk of internal memory.  By decreasing the amount of internal memory available, and setting DSKT2.ALLOW_EXTERNAL_SCRATCH to true, you may be giving them external memory when they asked for internal... and they may just be throwing a tantrum.

    If you can isolate which codecs are giving you trouble, you might ask the producers about their constraints.  If they're TI codecs, you might be able to get more details on the codec forum.

    Chris

  • Hi Chris,

    Thanks for your comment. I just want to clarify that the changes are good for the group 0 codecs to use only 32k L2 RAM. I want to make this change because I want to use some of the IRAM in the kernel. This is the way to control the usage of the L2 RAM for the codecs. Actually, I need 4k to 10k only.

    Best Regards,

    Philip

  • If you look at Table 4-3 Page 85 and Table 4-4 Page 86 of DSP Megamodule User Guide SPRU871K (http://focus.ti.com/lit/ug/spru871k/spru871k.pdf), you will note that cache on L2 can be configured in multiples of 32K i.e. 0K, 32K, 64K, 128K and so on. If you are trying to configure L2 < 32K, it has to be 0K. There is no option available for 4K.

     

    Prateek