From b976f605ec03364f756b73a72d0e443dd05d735a Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Tue, 22 Sep 2020 12:07:35 +0100 Subject: [PATCH] split out dmi2jtag into own unit test --- src/soc/debug/dmi2jtag.py | 195 +------------------------ src/soc/debug/test/test_jtag_tap.py | 219 ++++++++++++++++++++++++++++ 2 files changed, 224 insertions(+), 190 deletions(-) create mode 100644 src/soc/debug/test/test_jtag_tap.py diff --git a/src/soc/debug/dmi2jtag.py b/src/soc/debug/dmi2jtag.py index 24aa9d79..d178c14a 100644 --- a/src/soc/debug/dmi2jtag.py +++ b/src/soc/debug/dmi2jtag.py @@ -134,180 +134,6 @@ class DMITAP(TAP): ] -def tms_state_set(dut, bits): - for bit in bits: - yield dut.bus.tck.eq(1) - yield dut.bus.tms.eq(bit) - yield - yield dut.bus.tck.eq(0) - yield - yield dut.bus.tms.eq(0) - - -def tms_data_getset(dut, tms, d_len, d_in=0): - res = 0 - yield dut.bus.tms.eq(tms) - for i in range(d_len): - tdi = 1 if (d_in & (1<