From de49ebb80d1e2ef8283818332a0ac6bf5d70440d Mon Sep 17 00:00:00 2001 From: Alejandro Soto Date: Sun, 12 May 2024 13:28:53 -0600 Subject: platform/wavelet3d: implement JTAG TAP bridge in simulation --- platform/wavelet3d/openocd.cfg | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 platform/wavelet3d/openocd.cfg (limited to 'platform/wavelet3d/openocd.cfg') 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." -- cgit v1.2.3