Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

Single DSP Core Memory Access Time Measure for L2SRAM, MSMCSRAM and DDR3 of 6678

$
0
0

Hi,

I am using 6678 & sysbios 6.33.4.39.

I measured the single DSP memory read time by putting the systemheap at L2SRAM or MSMCSRAM or DDR3 in the cfg file

var BIOS = xdc.useModule('ti.sysbios.BIOS');
BIOS.heapSize = 0x7D00;
BIOS.heapSection = "systemHeap";
//Program.sectMap["systemHeap"] = "L2SRAM";
//Program.sectMap["systemHeap"] = "DDR3";
Program.sectMap["systemHeap"] = "MSMCSRAM";

and using the following code:

Void main()
{

int *a;

int c;

int n = 4096/4;

a = (int*) malloc(n * sizeof(int));

Types_FreqHz freq;

Timestamp_getFreq(&freq);

assert(freq.hi == 0);

Cache_disable(Cache_Type_ALL);

UInt32 time1, time2;

double delta_p, runtime_p;

int i;

for(i=0;i<n;i++) {

a[i] = i;

}

time1 = Timestamp_get32();

for(i=0;i<n;i++) {

c = a[i];

}

time2 = Timestamp_get32();

delta_p = time2-time1;

runtime_p = delta_p/freq.lo;

}

The read times for different types of memory are all the same.

Is there anything I did wrong for the measurement?  


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>