OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [tags/] [nog_patch_47/] [or1ksim/] [testbench/] [dmatest.c] - Diff between revs 258 and 310

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 258 Rev 310
Line 150... Line 150...
}
}
 
 
 
 
int main()
int main()
{
{
 
    int pass_simple, pass_chunks, pass_list;
    printf( "Starting DMA test\n" );
    printf( "Starting DMA test\n" );
 
 
    printf( "  Simple DMA: " );
    printf( "  Simple DMA: " );
    printf( simple() ? "Passed\n" : "Failed\n" );
    printf( (pass_simple = simple()) ? "Passed\n" : "Failed\n" );
    printf( "  Chunks DMA: " );
    printf( "  Chunks DMA: " );
    printf( chunks() ? "Passed\n" : "Failed\n" );
    printf( (pass_chunks = chunks()) ? "Passed\n" : "Failed\n" );
    printf( "  List DMA: " );
    printf( "  List DMA: " );
    printf( 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) {
    exit( 0 );
        report (0xdeaddead);
 
        return 0;
 
    } else
 
        return 3 - pass_simple - pass_chunks - pass_list;
}
}
 
 
 
 
 
 
 No newline at end of file
 No newline at end of file

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.