URL
https://opencores.org/ocsvn/openarty/openarty/trunk
Subversion Repositories openarty
Compare Revisions
- This comparison shows the changes necessary to convert path
/openarty/trunk/sw
- from Rev 18 to Rev 22
- ↔ Reverse comparison
Rev 18 → Rev 22
/host/program.sh
0,0 → 1,100
#!/bin/bash |
################################################################################ |
## |
## Filename: program.sh |
## |
## Project: OpenArty, an entirely open SoC based upon the Arty platform |
## |
## Purpose: To install a new program into the Arty, using the main |
## programming slot (slot 0). |
## |
## Creator: Dan Gisselquist, Ph.D. |
## Gisselquist Technology, LLC |
## |
################################################################################ |
## |
## Copyright (C) 2015-2016, Gisselquist Technology, LLC |
## |
## This program is free software (firmware): you can redistribute it and/or |
## modify it under the terms of the GNU General Public License as published |
## by the Free Software Foundation, either version 3 of the License, or (at |
## your option) any later version. |
## |
## This program is distributed in the hope that it will be useful, but WITHOUT |
## ANY WARRANTY; without even the implied warranty of MERCHANTIBILITY or |
## FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
## for more details. |
## |
## You should have received a copy of the GNU General Public License along |
## with this program. (It's in the $(ROOT)/doc directory, run make with no |
## target there if the PDF file isn't present.) If not, see |
## <http://www.gnu.org/licenses/> for a copy. |
## |
## License: GPL, v3, as defined and found on www.gnu.org, |
## http://www.gnu.org/licenses/gpl.html |
## |
## |
################################################################################ |
## |
## |
export PATH=$PATH:. |
export BINFILE=../../xilinx/openarty/openarty.runs/impl_1/fasttop.bin |
|
WBREGS=wbregs |
WBPROG=wbprogram |
|
# |
$WBREGS qspiv 0x8b |
# |
$WBREGS clock 0x023fffff # Show the stopwatch |
$WBREGS stopwatch 2 # Clear and stop the stopwatch |
$WBREGS stopwatch 1 # Start the stopwatch |
echo $WBPROG @0x0400000 $BINFILE |
$WBPROG @0x0400000 $BINFILE |
$WBREGS stopwatch 0 # Stop the stopwatch, we are done |
$WBREGS stopwatch # Print out the time on the stopwatch |
|
$WBREGS wbstar 0 |
$WBREGS fpgacmd 15 |
sleep 1 |
|
|
RED=0x00ff0000 |
GREEN=0x0000ff00 |
WHITE=0x000f0f0f |
BLACK=0x00000000 |
DIMGREEN=0x00001f00 |
|
$WBREGS led 0x0f |
$WBREGS clrled0 $RED |
$WBREGS clrled1 $RED |
$WBREGS clrled2 $RED |
$WBREGS clrled3 $RED |
|
sleep 1 |
$WBREGS clrled0 $GREEN |
$WBREGS led 0x10 |
sleep 1 |
$WBREGS clrled1 $GREEN |
$WBREGS clrled0 $DIMGREEN |
$WBREGS led 0x20 |
sleep 1 |
$WBREGS clrled2 $GREEN |
$WBREGS clrled1 $DIMGREEN |
$WBREGS led 0x40 |
|
if [[ -x ./wbsettime ]]; then |
./wbsettime |
fi |
|
$WBREGS clrled3 $GREEN |
$WBREGS clrled2 $DIMGREEN |
$WBREGS led 0x80 |
sleep 1 |
$WBREGS clrled0 $WHITE |
$WBREGS clrled1 $BLACK |
$WBREGS clrled2 $BLACK |
$WBREGS clrled3 $WHITE |
$WBREGS led 0x00 |
|
|
host/program.sh
Property changes :
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property