jtag utils, send tms before tck
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 16 Apr 2021 19:49:29 +0000 (20:49 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 16 Apr 2021 19:49:34 +0000 (20:49 +0100)
src/soc/debug/jtagutils.py

index 7f77558fea100e0842f47fb0ef233db153b514b2..a642bd1f358cbab7f639505a3f5475ec0625ae7c 100644 (file)
@@ -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)