- Cleanedup toolchain

Committed on the Free edition of March Hare Software CVSNT Server.
Upgrade to CVS Suite for more features and support:
http://march-hare.com/cvsnt/


git-svn-id: http://moon:8086/svn/vhdl/trunk@381 cc03376c-175c-47c8-b038-4cd826a8556b
This commit is contained in:
2009-03-14 17:19:29 +00:00
parent 5f24a7e1dc
commit 58f704112c
15 changed files with 184 additions and 329 deletions
+36 -2
View File
@@ -304,11 +304,11 @@ int pi_calc()
return 0;
}
#define TEST_SIZE (128*1024) // Bytes
#define TEST_SIZE (16*1024*1024) // Bytes
#define SMALL_TEST_SIZE (8192) // Bytes
int main (void)
{
int result, i, j, cnt;
int result, i, j, cnt, size;
volatile UINT32 *pUART_baud = (UINT32*)sys_uart_baud;
volatile UINT32 *pReg = (UINT32*)sys_led_port;
volatile UINT32 *pReg_usec = (UINT32*)sys_timer_usec;
@@ -365,6 +365,9 @@ int main (void)
printf("passed (%.2f MByte/s)\n", (double)TEST_SIZE/(1000*(end-start)));
*/
// ----------------------------------------------------------
printf("Dump Flash\n");
PrintBuffer8((UINT8*)0, 16, 256);
// Memtest BEGIN
printf("SDRAM Memory Test\n");
printf("Test size %d kByte\n\n", TEST_SIZE/1024);
@@ -523,6 +526,37 @@ int main (void)
free(pSrc32);
free(pDst32);
printf("Boot code read \n");
size = 0x2000;
pSrc32 = (UINT32*)0xBFC00000;
pDst32 = (UINT32*)calloc(size,sizeof(UINT32));
printf("Copying %d kBytes...", size/1024);
start = clock();
memcpy(pDst32, pSrc32, size);
memcpy(pDst32, pSrc32, size);
memcpy(pDst32, pSrc32, size);
memcpy(pDst32, pSrc32, size);
memcpy(pDst32, pSrc32, size);
memcpy(pDst32, pSrc32, size);
memcpy(pDst32, pSrc32, size);
memcpy(pDst32, pSrc32, size);
memcpy(pDst32, pSrc32, size);
memcpy(pDst32, pSrc32, size);
end = clock();
printf("done (%.2f MByte/s)\n", (double)10*size/(1000*(end-start)));
memdump((UINT8*)pSrc32, 0, 16, size);
printf("Verify Boot code...");
for (i=size/4-1; i >= 0; i--)
if (pDst32[i] != pSrc32[i])
break;
i++;
if (i)
printf("failed\r\n");
else
printf("passed\r\n");
free(pDst32);
// Memtest END
// ----------------------------------------------------------
sputs("\r\n");