summaryrefslogtreecommitdiff
path: root/platform/wavelet3d/openocd.cfg
diff options
context:
space:
mode:
authorAlejandro Soto <alejandro@34project.org>2024-05-12 13:28:53 -0600
committerAlejandro Soto <alejandro@34project.org>2024-05-12 18:13:02 -0600
commitde49ebb80d1e2ef8283818332a0ac6bf5d70440d (patch)
treefc437474dfe336a43dd4fca9cd31ed150a435868 /platform/wavelet3d/openocd.cfg
parente581090bb9e7965c463be35544395406f5a5441d (diff)
platform/wavelet3d: implement JTAG TAP bridge in simulation
Diffstat (limited to 'platform/wavelet3d/openocd.cfg')
-rw-r--r--platform/wavelet3d/openocd.cfg32
1 files changed, 32 insertions, 0 deletions
diff --git a/platform/wavelet3d/openocd.cfg b/platform/wavelet3d/openocd.cfg
new file mode 100644
index 0000000..f801f6a
--- /dev/null
+++ b/platform/wavelet3d/openocd.cfg
@@ -0,0 +1,32 @@
+debug_level 0
+adapter speed 10000
+
+adapter driver remote_bitbang
+remote_bitbang host localhost
+
+remote_bitbang port 1234
+
+# we don't have srst
+reset_config trst_only
+
+set _CHIPNAME riscv
+set _TARGETNAME $_CHIPNAME.cpu
+
+jtag newtap $_CHIPNAME cpu -irlen 5 -expected-id 0x10002FFF
+target create $_TARGETNAME.0 riscv -chain-position $_TARGETNAME
+
+foreach t [jtag names] {
+ puts [format "TAP: %s\n" $t]
+}
+
+target create $_TARGETNAME riscv -chain-position $_TARGETNAME
+
+riscv set_reset_timeout_sec 2000
+riscv set_command_timeout_sec 2000
+riscv set_prefer_sba on
+
+scan_chain
+init
+reset halt
+
+echo "Ready for Remote Connections on port 3333."