From 0eb75ea62a5f20e1824f9a25daefda9ff0340e53 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Fri, 16 Apr 2021 20:49:29 +0100 Subject: [PATCH] jtag utils, send tms before tck --- src/soc/debug/jtagutils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/soc/debug/jtagutils.py b/src/soc/debug/jtagutils.py index 7f77558f..a642bd1f 100644 --- a/src/soc/debug/jtagutils.py +++ b/src/soc/debug/jtagutils.py @@ -22,9 +22,10 @@ def client_sync(dut): def tms_state_set(dut, bits): for bit in bits: - yield dut.cbus.tck.eq(1) yield dut.cbus.tms.eq(bit) yield from client_sync(dut) + yield dut.cbus.tck.eq(1) + yield from client_sync(dut) yield yield dut.cbus.tck.eq(0) yield from client_sync(dut) -- 2.30.2