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

Subversion Repositories myblaze

[/] [myblaze/] [trunk/] [rtl/] [testbench.c] - Blame information for rev 3

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 rockee
#include "stdio.h"
2
#include <stdio.h>
3
char str[] = "Hallo, Welt!\r\n";
4
/*char str[] = "1";*/
5
int main()
6
{
7
    volatile char *led = (char *) 0xffffffb0;
8
    *led = (char) 0xaa;
9
    xil_printf(
10
                /*"02"*/
11
            "0:Hello, world!\r\n"
12
            "1:Hello, world!\r\n"
13
            "2:Hello, world!\r\n"
14
            "3:Hello, world!\r\n"
15
            "4:Hello, world!\r\n"
16
            "5:Hello, world!\r\n"
17
            "6:Hello, world!\r\n"
18
            "7:Hello, world!\r\n"
19
            "8:Hello, world!\r\n"
20
            "9:Hello, world!\r\n"
21
            "a:Hello, world!\r\n"
22
            "b:Hello, world!\r\n"
23
            "c:Hello, world!\r\n"
24
            "d:Hello, world!\r\n"
25
            "e:Hello, world!\r\n"
26
            "f:Hello, world!\r\n"
27
    );
28
    xil_printf(str);
29
    *led = (char) 0xff;
30
    return 0;
31
}

powered by: WebSVN 2.1.0

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