Hi,
I am trying to estimate the number of cycles consumed in memory access of DDR3. I am currently using TMDXEVM6618LXE EVM. The following code snippet is consuming approx 52000 cycles if both the buffers are in DDR3 whereas in Simulator its consuming only 1023 cycles
PHYbuffers is given the DATA Section of DDR3
#pragma DATA_SECTION (abc_test, "PHYbuffers");
static cplx16_t abc_test[1000];
#pragma DATA_SECTION (xyz_test, "PHYbuffers");
static cplx16_t xyz_test[1000];
main()
{
UInt32 t_start,t_stop,t_overhead,cold_cycle;
cplx16_t xyz_test[1000],abc_test[1000];
memset(xyz_test,0,sizeof(cplx16_t)*1000);
TSCL = 0;
t_start = TSCL;
t_stop = TSCL;
t_overhead = t_stop - t_start;
t_start = TSCL;
memcpy(abc_test,xyz_test,sizeof(cplx16_t)*1000);
t_stop = TSCL;
cold_cycle = t_stop-t_start-t_overhead;
System_printf("Total Cycles are : %d\n",cold_cycle);