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

Subversion Repositories openarty

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

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 51 dgisselq
RED=0x000f0000
47
GREEN=0x0000ff00
48
YELLOW=0x00170700
49
WHITE=0x000f0f0f
50
BLACK=0x00000000
51
DIMGREEN=0x00001f00
52
 
53
$WBREGS led 0x0ff
54
$WBREGS clrled0 $YELLOW
55
$WBREGS clrled1 $YELLOW
56
$WBREGS clrled2 $YELLOW
57
$WBREGS clrled3 $YELLOW
58
 
59 22 dgisselq
#
60 30 dgisselq
# $WBREGS qspiv 0x8b    # Accomplished by the flash driver
61 22 dgisselq
#
62
$WBREGS stopwatch 2     # Clear and stop the stopwatch
63
$WBREGS stopwatch 1     # Start the stopwatch
64 51 dgisselq
$WBPROG @0x011c0000 $BINFILE
65 22 dgisselq
$WBREGS stopwatch 0     # Stop the stopwatch, we are done
66
$WBREGS stopwatch       # Print out the time on the stopwatch
67
 
68 51 dgisselq
$WBREGS led 0x0f0
69
$WBREGS clrled0 $DIMGREEN
70
$WBREGS clrled1 $DIMGREEN
71
$WBREGS clrled2 $DIMGREEN
72
$WBREGS clrled3 $DIMGREEN
73
 
74 30 dgisselq
$WBREGS wbstar 0x01c0000
75 22 dgisselq
$WBREGS fpgacmd 15
76
sleep 1
77
 
78
if [[ -x ./wbsettime ]]; then
79
  ./wbsettime
80
fi
81
 

powered by: WebSVN 2.1.0

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