aboutsummaryrefslogtreecommitdiff
path: root/tcl/board/arty_s7.cfg
blob: eaa15ab40753c9a0ceaac85e1299e1ce0c378153 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# SPDX-License-Identifier: GPL-2.0-or-later

#
# Arty S7: Spartan7 25/50 FPGA Board for Makers and Hobbyists
#
# https://www.xilinx.com/products/boards-and-kits/1-pnziih.html
# https://store.digilentinc.com/arty-s7-spartan-7-fpga-board-for-makers-and-hobbyists/

source [find interface/ftdi/digilent-hs1.cfg]

# Xilinx Spartan7-25/50 FPGA (XC7S{25,50}-CSGA324)
source [find cpld/xilinx-xc7.cfg]
source [find cpld/jtagspi.cfg]

adapter speed 25000

# Usage:
#
# Load Bitstream into FPGA:
#    openocd -f board/arty_s7.cfg -c "init;\
#    pld load 0 bitstream.bit;\
#    shutdown"
#
# Write Bitstream to Flash:
#    openocd -f board/arty_s7.cfg -c "init;\
#    jtagspi_init 0 bscan_spi_xc7s??.bit;\
#    jtagspi_program bitstream.bin 0;\
#    xc7_program xc7.tap;\
#    shutdown"
#
# jtagspi flash proxies can be found at:
# https://github.com/quartiq/bscan_spi_bitstreams
#
# For the Spartan 50 variant, use
#  - https://github.com/quartiq/bscan_spi_bitstreams/raw/master/bscan_spi_xc7s50.bit
# For the Spartan 25 variant, use
#  - https://github.com/quartiq/bscan_spi_bitstreams/raw/master/bscan_spi_xc7s25.bit