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

Subversion Repositories openarty

[/] [openarty/] [trunk/] [sw/] [host/] [program.sh] - Blame information for rev 30

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

Line No. Rev Author Line
1 22 dgisselq
#!/bin/bash
2
################################################################################
3
##
4
## Filename:    program.sh
5
##
6
## Project:     OpenArty, an entirely open SoC based upon the Arty platform
7
##
8 30 dgisselq
## Purpose:     To install a new program into the Arty, using the alternate
9
##              programming slot (slot 1, starting at 0x470000).
10 22 dgisselq
##
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 30 dgisselq
export BINFILE=../../xilinx/openarty.runs/impl_1/toplevel.bit
42 22 dgisselq
 
43
WBREGS=wbregs
44
WBPROG=wbprogram
45
 
46
#
47 30 dgisselq
# $WBREGS qspiv 0x8b    # Accomplished by the flash driver
48 22 dgisselq
#
49
$WBREGS stopwatch 2     # Clear and stop the stopwatch
50
$WBREGS stopwatch 1     # Start the stopwatch
51 30 dgisselq
$WBPROG @0x0470000 $BINFILE
52 22 dgisselq
$WBREGS stopwatch 0     # Stop the stopwatch, we are done
53
$WBREGS stopwatch       # Print out the time on the stopwatch
54
 
55 30 dgisselq
$WBREGS wbstar 0x01c0000
56 22 dgisselq
$WBREGS fpgacmd 15
57
sleep 1
58
 
59
 
60
RED=0x00ff0000
61
GREEN=0x0000ff00
62 30 dgisselq
WHITE=0x00070707
63 22 dgisselq
BLACK=0x00000000
64
DIMGREEN=0x00001f00
65
 
66 30 dgisselq
$WBREGS led 0x0ff
67 22 dgisselq
$WBREGS clrled0 $RED
68
$WBREGS clrled1 $RED
69
$WBREGS clrled2 $RED
70
$WBREGS clrled3 $RED
71
 
72
sleep 1
73
$WBREGS clrled0 $GREEN
74
$WBREGS led 0x10
75
sleep 1
76
$WBREGS clrled1 $GREEN
77
$WBREGS clrled0 $DIMGREEN
78
$WBREGS led 0x20
79
sleep 1
80
$WBREGS clrled2 $GREEN
81
$WBREGS clrled1 $DIMGREEN
82
$WBREGS led 0x40
83
 
84
if [[ -x ./wbsettime ]]; then
85
  ./wbsettime
86
fi
87
 
88
$WBREGS clrled3 $GREEN
89
$WBREGS clrled2 $DIMGREEN
90
$WBREGS led 0x80
91
sleep 1
92
$WBREGS clrled0 $WHITE
93 30 dgisselq
$WBREGS clrled1 $WHITE
94
$WBREGS clrled2 $WHITE
95 22 dgisselq
$WBREGS clrled3 $WHITE
96
$WBREGS led 0x00
97
 
98
 

powered by: WebSVN 2.1.0

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