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

Subversion Repositories openarty

[/] [openarty/] [trunk/] [sw/] [startupex.sh] - Blame information for rev 35

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

Line No. Rev Author Line
1 4 dgisselq
#!/bin/bash
2 30 dgisselq
################################################################################
3
##
4
## Filename:    startupex.sh
5
##
6
## Project:     OpenArty, an entirely open SoC based upon the Arty platform
7
##
8
## Purpose:     A simple, but rather neat, demonstration proving that the wishbone
9
##              command capability works and that the FPGA is at least somewhat responsive.
10
##
11
## Creator:     Dan Gisselquist, Ph.D.
12
##              Gisselquist Technology, LLC
13
##
14
################################################################################
15
##
16
## Copyright (C) 2015-2016, Gisselquist Technology, LLC
17
##
18
## This program is free software (firmware): you can redistribute it and/or
19
## modify it under the terms of  the GNU General Public License as published
20
## by the Free Software Foundation, either version 3 of the License, or (at
21
## your option) any later version.
22
##
23
## This program is distributed in the hope that it will be useful, but WITHOUT
24
## ANY WARRANTY; without even the implied warranty of MERCHANTIBILITY or
25
## FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
26
## for more details.
27
##
28
## You should have received a copy of the GNU General Public License along
29
## with this program.  (It's in the $(ROOT)/doc directory, run make with no
30
## target there if the PDF file isn't present.)  If not, see
31
## <http://www.gnu.org/licenses/> for a copy.
32
##
33
## License:     GPL, v3, as defined and found on www.gnu.org,
34
##              http://www.gnu.org/licenses/gpl.html
35
##
36
##
37
################################################################################
38
##
39
##
40
export PATH=$PATH:.
41
export BINFILE=../../xilinx/openarty/openarty.runs/impl_1/fasttop.bin
42 4 dgisselq
 
43 6 dgisselq
WBREGS=host/wbregs
44 4 dgisselq
RED=0x00ff0000
45
GREEN=0x0000ff00
46 30 dgisselq
WHITE=0x00070707
47 4 dgisselq
BLACK=0x00000000
48
DIMGREEN=0x00001f00
49
 
50 30 dgisselq
$WBREGS led 0x0ff
51 4 dgisselq
$WBREGS clrled0 $RED
52
$WBREGS clrled1 $RED
53
$WBREGS clrled2 $RED
54
$WBREGS clrled3 $RED
55
 
56
sleep 1
57
$WBREGS clrled0 $GREEN
58 30 dgisselq
$WBREGS led 0x10
59 4 dgisselq
sleep 1
60
$WBREGS clrled1 $GREEN
61
$WBREGS clrled0 $DIMGREEN
62 30 dgisselq
$WBREGS led 0x20
63 4 dgisselq
sleep 1
64
$WBREGS clrled2 $GREEN
65
$WBREGS clrled1 $DIMGREEN
66 30 dgisselq
$WBREGS led 0x40
67 4 dgisselq
sleep 1
68
$WBREGS clrled3 $GREEN
69
$WBREGS clrled2 $DIMGREEN
70 30 dgisselq
$WBREGS led 0x80
71 4 dgisselq
sleep 1
72
$WBREGS clrled0 $WHITE
73 30 dgisselq
$WBREGS clrled1 $WHITE
74
$WBREGS clrled2 $WHITE
75 4 dgisselq
$WBREGS clrled3 $WHITE
76
$WBREGS led 0x00
77
 
78
 

powered by: WebSVN 2.1.0

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