URL
https://opencores.org/ocsvn/or1k/or1k/trunk
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 997 |
Rev 1024 |
Line 150... |
Line 150... |
|
|
|
|
int main()
|
int main()
|
{
|
{
|
int pass_simple, pass_chunks, pass_list;
|
int pass_simple, pass_chunks, pass_list;
|
PRINTF( "Starting DMA test\n" );
|
printf( "Starting DMA test\n" );
|
|
|
PRINTF( " Simple DMA: " );
|
printf( " Simple DMA: " );
|
PRINTF( (pass_simple = simple()) ? "Passed\n" : "Failed\n" );
|
printf( (pass_simple = simple()) ? "Passed\n" : "Failed\n" );
|
PRINTF( " Chunks DMA: " );
|
printf( " Chunks DMA: " );
|
PRINTF( (pass_chunks = chunks()) ? "Passed\n" : "Failed\n" );
|
printf( (pass_chunks = chunks()) ? "Passed\n" : "Failed\n" );
|
PRINTF( " List DMA: " );
|
printf( " List DMA: " );
|
PRINTF( (pass_list = list()) ? "Passed\n" : "Failed\n" );
|
printf( (pass_list = list()) ? "Passed\n" : "Failed\n" );
|
|
|
PRINTF( "Ending DMA test\n" );
|
printf( "Ending DMA test\n" );
|
if (pass_simple && pass_chunks && pass_list) {
|
if (pass_simple && pass_chunks && pass_list) {
|
report (0xdeaddead);
|
report (0xdeaddead);
|
return 0;
|
return 0;
|
} else
|
} else
|
return 3 - pass_simple - pass_chunks - pass_list;
|
return 3 - pass_simple - pass_chunks - pass_list;
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.