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

Subversion Repositories openarty

[/] [openarty/] [trunk/] [sw/] [host/] [program.sh] - Diff between revs 22 and 30

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 22 Rev 30
Line 3... Line 3...
##
##
## Filename:    program.sh
## Filename:    program.sh
##
##
## Project:     OpenArty, an entirely open SoC based upon the Arty platform
## Project:     OpenArty, an entirely open SoC based upon the Arty platform
##
##
## Purpose:     To install a new program into the Arty, using the main
## Purpose:     To install a new program into the Arty, using the alternate
##              programming slot (slot 0).
##              programming slot (slot 1, starting at 0x470000).
##
##
## Creator:     Dan Gisselquist, Ph.D.
## Creator:     Dan Gisselquist, Ph.D.
##              Gisselquist Technology, LLC
##              Gisselquist Technology, LLC
##
##
################################################################################
################################################################################
Line 36... Line 36...
##
##
################################################################################
################################################################################
##
##
##
##
export PATH=$PATH:.
export PATH=$PATH:.
export BINFILE=../../xilinx/openarty/openarty.runs/impl_1/fasttop.bin
export BINFILE=../../xilinx/openarty.runs/impl_1/toplevel.bit
 
 
WBREGS=wbregs
WBREGS=wbregs
WBPROG=wbprogram
WBPROG=wbprogram
 
 
#
#
$WBREGS qspiv 0x8b
# $WBREGS qspiv 0x8b    # Accomplished by the flash driver
#
#
$WBREGS clock 0x023fffff        # Show the stopwatch
 
$WBREGS stopwatch 2     # Clear and stop the stopwatch
$WBREGS stopwatch 2     # Clear and stop the stopwatch
$WBREGS stopwatch 1     # Start the stopwatch
$WBREGS stopwatch 1     # Start the stopwatch
echo $WBPROG @0x0400000 $BINFILE
$WBPROG @0x0470000 $BINFILE
$WBPROG @0x0400000 $BINFILE
 
$WBREGS stopwatch 0     # Stop the stopwatch, we are done
$WBREGS stopwatch 0     # Stop the stopwatch, we are done
$WBREGS stopwatch       # Print out the time on the stopwatch
$WBREGS stopwatch       # Print out the time on the stopwatch
 
 
$WBREGS wbstar 0
$WBREGS wbstar 0x01c0000
$WBREGS fpgacmd 15
$WBREGS fpgacmd 15
sleep 1
sleep 1
 
 
 
 
RED=0x00ff0000
RED=0x00ff0000
GREEN=0x0000ff00
GREEN=0x0000ff00
WHITE=0x000f0f0f
WHITE=0x00070707
BLACK=0x00000000
BLACK=0x00000000
DIMGREEN=0x00001f00
DIMGREEN=0x00001f00
 
 
$WBREGS led 0x0f
$WBREGS led 0x0ff
$WBREGS clrled0 $RED
$WBREGS clrled0 $RED
$WBREGS clrled1 $RED
$WBREGS clrled1 $RED
$WBREGS clrled2 $RED
$WBREGS clrled2 $RED
$WBREGS clrled3 $RED
$WBREGS clrled3 $RED
 
 
Line 90... Line 88...
$WBREGS clrled3 $GREEN
$WBREGS clrled3 $GREEN
$WBREGS clrled2 $DIMGREEN
$WBREGS clrled2 $DIMGREEN
$WBREGS led 0x80
$WBREGS led 0x80
sleep 1
sleep 1
$WBREGS clrled0 $WHITE
$WBREGS clrled0 $WHITE
$WBREGS clrled1 $BLACK
$WBREGS clrled1 $WHITE
$WBREGS clrled2 $BLACK
$WBREGS clrled2 $WHITE
$WBREGS clrled3 $WHITE
$WBREGS clrled3 $WHITE
$WBREGS led 0x00
$WBREGS led 0x00
 
 
 
 
 
 
 No newline at end of file
 No newline at end of file

powered by: WebSVN 2.1.0

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