From 24105f12d5bddbee8f31fc9b51aeeb297aff21ba Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Thu, 6 May 2021 15:25:18 +0200 Subject: [PATCH] openocd/stream: Expose chain parameter. --- litex/build/openocd.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/litex/build/openocd.py b/litex/build/openocd.py index f287f6365..052b622fb 100644 --- a/litex/build/openocd.py +++ b/litex/build/openocd.py @@ -40,7 +40,7 @@ class OpenOCD(GenericProgrammer): self.call(["openocd", "-f", config, "-c", script]) - def stream(self, port=20000): + def stream(self, port=20000, chain=1): """ Create a TCP server to stream data to/from the internal JTAG TAP of the FPGA @@ -139,7 +139,7 @@ proc jtagstream_serve {tap port} { write_to_file("stream.cfg", cfg) script = "; ".join([ "init", - "irscan $_CHIPNAME.tap $_USER1", + "irscan $_CHIPNAME.tap {:d}".format(0x1 + chain), "jtagstream_serve $_CHIPNAME.tap {:d}".format(port), "exit", ])