Fixed mistake of double jtag writing
authorAndrey Miroshnikov <andrey@technepisteme.xyz>
Mon, 13 Dec 2021 22:04:04 +0000 (22:04 +0000)
committerAndrey Miroshnikov <andrey@technepisteme.xyz>
Mon, 13 Dec 2021 22:04:04 +0000 (22:04 +0000)
src/spec/testing_stage1.py

index ed1e01204c9c0b8396f58648fb9e1698144780be..c05ed5e6e82784d6a9d4cfe1ace24f39c0fec984 100644 (file)
@@ -684,7 +684,6 @@ def test_jtag_bs_chain(dut):
 
     print("All pad inputs/core outputs reset, bs data all set")
     print("Sending TDI data with core/pads disconnected")
-    yield from jtag_read_write_reg(dut.jtag, BS_EXTEST, bslen, bsdata)
     result = yield from jtag_read_write_reg(dut.jtag, BS_EXTEST, bslen,
                                             bsdata)
     print("TDI BS Data: {0:b}, Data Length (bits): {1}"
@@ -692,7 +691,6 @@ def test_jtag_bs_chain(dut):
     print("TDO BS Data: {0:b}".format(result))
 
     print("Sending TDI data with core/pads connected")
-    yield from jtag_read_write_reg(dut.jtag, BS_SAMPLE, bslen, bsdata)
     result = yield from jtag_read_write_reg(dut.jtag, BS_SAMPLE, bslen,
                                             bsdata)
     print("TDI BS Data: {0:b}, Data Length (bits): {1}"
@@ -708,7 +706,6 @@ def test_jtag_bs_chain(dut):
     yield from test_i2c(dut)
 
     print("Sending TDI data with core/pads disconnected")
-    yield from jtag_read_write_reg(dut.jtag, BS_EXTEST, bslen, bsdata)
     result = yield from jtag_read_write_reg(dut.jtag, BS_EXTEST, bslen,
                                             bsdata)
     print("TDI BS Data: {0:b}, Data Length (bits): {1}"
@@ -716,8 +713,7 @@ def test_jtag_bs_chain(dut):
     print("TDO BS Data: {0:b}".format(result))
 
     print("Sending TDI data with core/pads connected")
-    yield from jtag_read_write_reg(dut.jtag, BS_SAMPLE, bslen, bsdata)
-    result = yield from jtag_read_write_reg(dut.jtag, BS_EXTEST, bslen,
+    result = yield from jtag_read_write_reg(dut.jtag, BS_SAMPLE, bslen,
                                             bsdata)
     print("TDI BS Data: {0:b}, Data Length (bits): {1}"
           .format(bsdata, bslen))