From 8f03e6cc3e6dda74f0725a76a2982ec669ff9423 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Thu, 8 Oct 2020 23:34:23 +0100 Subject: [PATCH] missing yields in JTAG pads test to allow settling --- src/soc/debug/test/test_jtag_tap_srv.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/soc/debug/test/test_jtag_tap_srv.py b/src/soc/debug/test/test_jtag_tap_srv.py index 2fdeeefe..c2c273e0 100644 --- a/src/soc/debug/test/test_jtag_tap_srv.py +++ b/src/soc/debug/test/test_jtag_tap_srv.py @@ -69,6 +69,7 @@ def jtag_sim(dut, srv_dut): yield srv_dut.ios[3].pad.i.eq(0) yield srv_dut.ios[3].core.o.eq(0) yield srv_dut.ios[3].core.oe.eq(1) + yield bs = yield from jtag_read_write_reg(dut, BS_SAMPLE, bslen, bs_actual) print ("bs scan", bin(bs)) @@ -84,6 +85,7 @@ def jtag_sim(dut, srv_dut): # extest ir_actual = yield from jtag_set_ir(dut, BS_EXTEST) print ("ir extest", bin(ir_actual)) + yield print ("io0 pad.i", (yield srv_dut.ios[0].pad.i)) print ("io1 core.o", (yield srv_dut.ios[1].core.o)) @@ -102,9 +104,11 @@ def jtag_sim(dut, srv_dut): yield srv_dut.ios[3].pad.i.eq(1) yield srv_dut.ios[3].core.o.eq(1) yield srv_dut.ios[3].core.oe.eq(0) + yield bs = yield from jtag_set_get_dr(dut, bslen, bs_actual) print ("bs scan", bin(bs)) + yield print ("io0 pad.i", (yield srv_dut.ios[0].pad.i)) print ("io1 core.o", (yield srv_dut.ios[1].core.o)) @@ -117,6 +121,7 @@ def jtag_sim(dut, srv_dut): # reset yield from jtag_set_reset(dut) print ("bs reset") + yield print ("io0 pad.i", (yield srv_dut.ios[0].pad.i)) print ("io1 core.o", (yield srv_dut.ios[1].core.o)) -- 2.30.2