After some testing, i made following summary for your reference.

I modify  the encodedecode sample code to the test.

1. According to tcf file in demo code. The L1 and L2 cache is opened and enabled for 0x80000000~0x8f00000 memory cache.
    It's the reason that whatever i did in my library has no improvement.

2. According to Fig1-3 in "TMS320C64x+ DSP Cache User's Guide", there is no program fetch path from L1D.
    It's may be the resaon that system crash when code is placed in L1D.

If i make any mistake, please let me know.

Steve




2006/10/26, Steve Yeh <[EMAIL PROTECTED]>:
Hello,

Anybody know how to use DSP cache?

My questions are:

(1) If i do not use CSL to open CACHE_enableCaching(CACHE_EMIFA_CE16);   CACHE_setL1dSize(CACHE_L1_32KCACHE);    CACHE_setL2Size(CACHE_64KCACHE);  in my codec engine.
     Will XDC tools enable the cache in DSP for me when wrapping codec engine to codec server?

(2) Cueernt, i arrange memory phys_start=0x84000000 phys_end=0x88000000 as CMEM section.
     How can i setup the cache?

     The following is my codec server memory map

  ARM_RAM               10008000   00004000  00000000  00004000  RWIX
  VICP                  11100000   0001f400  00000000  0001f400  RWIX
  CACHE_L2              11800000   00010000  00000000  00010000  RWIX
  CACHE_L1P             11e08000   00008000  00000000  00008000  RWIX
  L1DSRAM               11f04000   0000c000  00008000  00004000  RWIX
  CACHE_L1D             11f10000   00008000  00000000  00008000  RWIX
  DDRALGHEAP            88000000   07a00000  07a00000  00000000  RWIX
  DDR                   8fa00000   00400000  0006f90b  003906f5  RWIX
  DSPLINKMEM            8fe00000   00100000  00000000  00100000  RWIX
  RESET_VECTOR          8ff00000   00000080  00000000  00000080  RWIX


and i try to open the L2, L1 cache by following code, but the performance seems do not be increased, anyone know the resaon?

    CACHE_enableCaching(CACHE_EMIFA_CE04);
    CACHE_enableCaching(CACHE_EMIFA_CE05);
    CACHE_enableCaching(CACHE_EMIFA_CE06);
    CACHE_enableCaching(CACHE_EMIFA_CE07);
    CACHE_enableCaching(CACHE_EMIFA_CE08);
    CACHE_enableCaching(CACHE_EMIFA_CE09);
    CACHE_enableCaching(CACHE_EMIFA_CE10);
    CACHE_enableCaching(CACHE_EMIFA_CE11);
    CACHE_enableCaching(CACHE_EMIFA_CE12);
    CACHE_enableCaching(CACHE_EMIFA_CE13);
    CACHE_enableCaching(CACHE_EMIFA_CE14);
    CACHE_enableCaching(CACHE_EMIFA_CE15);
    CACHE_enableCaching(CACHE_EMIFA_CE16);
    CACHE_setL1dSize(CACHE_L1_32KCACHE);
    CACHE_setL2Size(CACHE_64KCACHE);


Thansk a lot
  

_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to