tcl/board: add SPDX tag
[fw/openocd] / tcl / board / arty_s7.cfg
1 # SPDX-License-Identifier: GPL-2.0-or-later
2
3 #
4 # Arty S7: Spartan7 25/50 FPGA Board for Makers and Hobbyists
5 #
6 # https://www.xilinx.com/products/boards-and-kits/1-pnziih.html
7 # https://store.digilentinc.com/arty-s7-spartan-7-fpga-board-for-makers-and-hobbyists/
8
9 source [find interface/ftdi/digilent-hs1.cfg]
10
11 # Xilinx Spartan7-25/50 FPGA (XC7S{25,50}-CSGA324)
12 source [find cpld/xilinx-xc7.cfg]
13 source [find cpld/jtagspi.cfg]
14
15 adapter speed 25000
16
17 # Usage:
18 #
19 # Load Bitstream into FPGA:
20 #    openocd -f board/arty_s7.cfg -c "init;\
21 #    pld load 0 bitstream.bit;\
22 #    shutdown"
23 #
24 # Write Bitstream to Flash:
25 #    openocd -f board/arty_s7.cfg -c "init;\
26 #    jtagspi_init 0 bscan_spi_xc7s??.bit;\
27 #    jtagspi_program bitstream.bin 0;\
28 #    xc7_program xc7.tap;\
29 #    shutdown"
30 #
31 # jtagspi flash proxies can be found at:
32 # https://github.com/quartiq/bscan_spi_bitstreams
33 #
34 # For the Spartan 50 variant, use
35 #  - https://github.com/quartiq/bscan_spi_bitstreams/raw/master/bscan_spi_xc7s50.bit
36 # For the Spartan 25 variant, use
37 #  - https://github.com/quartiq/bscan_spi_bitstreams/raw/master/bscan_spi_xc7s25.bit