aboutsummaryrefslogtreecommitdiff
path: root/tcl/board
diff options
context:
space:
mode:
authorGeorge Voicu <razvanvg@hotmail.com>2022-11-05 11:14:22 +0100
committerAntonio Borneo <borneo.antonio@gmail.com>2024-06-15 14:14:11 +0000
commitb1600bb342e191463094f534f71a4e5d51407e18 (patch)
tree765133b0ab987e3a153c7fc7a5317f4895d11401 /tcl/board
parenta420f00d106cb2638bb4c272a4780e05623ea64b (diff)
downloadriscv-openocd-b1600bb342e191463094f534f71a4e5d51407e18.zip
riscv-openocd-b1600bb342e191463094f534f71a4e5d51407e18.tar.gz
riscv-openocd-b1600bb342e191463094f534f71a4e5d51407e18.tar.bz2
tcl/board: Support for Digilent Nexys 2 board
Support Digilent Nexys 2 board JTAG chain Signed-off-by: George Voicu <razvanvg@hotmail.com> Change-Id: I350f80b49303c4b0402d93ebc120a591ef727551 Reviewed-on: https://review.openocd.org/c/openocd/+/7336 Tested-by: jenkins Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
Diffstat (limited to 'tcl/board')
-rw-r--r--tcl/board/digilent_nexys2.cfg30
1 files changed, 30 insertions, 0 deletions
diff --git a/tcl/board/digilent_nexys2.cfg b/tcl/board/digilent_nexys2.cfg
new file mode 100644
index 0000000..c1c5b2a
--- /dev/null
+++ b/tcl/board/digilent_nexys2.cfg
@@ -0,0 +1,30 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+
+# https://digilent.com/reference/programmable-logic/nexys-2/start
+#
+# The Digilent Nexy2 normally requires proprietary tools to program and will
+# enumerate as:
+# ID 1443:0005 1443 ONBOARD USB
+#
+# However, the ixo-usb-jtag project provides an alternative open firmware for
+# the on board programmer. When using this firmware the board will then
+# enumerate as:
+# ID 16c0:06ad ixo.de USB-JTAG-IF (With SerialNumber == hw_nexys)
+#
+# See the interface/usb-jtag.cfg for more information.
+
+source [find interface/usb-jtag.cfg]
+source [find cpld/xilinx-xcf-s.cfg]
+source [find fpga/xilinx-xc3s.cfg]
+
+# Usage:
+#
+# Load Bitstream into FPGA:
+# openocd -f board/digilent_nexys2.cfg -c "init;\
+# pld load 0 bitstream.bit;\
+# shutdown"
+
+# Read Unique Device Identifier (DNA):
+# openocd -f board/digilent_nexys2.cfg -c "init;\
+# xilinx_print_dna [xc3s_get_dna xc3s.tap];\
+# shutdown"