- print("All pad inputs/core outputs reset, bs data all set")
- print("Sending TDI data with core/pads disconnected")
- result = yield from jtag_read_write_reg(dut.jtag, BS_EXTEST, bslen,
- bsdata)
- print("TDI BS Data: {0:b}, Data Length (bits): {1}"
- .format(bsdata, bslen))
- print("TDO BS Data: {0:b}".format(result))
- yield from check_ios_keys(dut, mask_outputs)
-
- # Reset shift register between tests
- yield from jtag_set_reset(dut.jtag)
-
- print("Sending TDI data with core/pads connected")
- 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))
- print("TDO BS Data: {0:b}".format(result))
- yield from check_ios_keys(dut, emptydata)
-
- # Reset shift register between tests
- yield from jtag_set_reset(dut.jtag)
+ yield from jtag_unit_test(dut, BS_EXTEST, False, bsdata, mask_outputs)
+ yield from jtag_unit_test(dut, BS_SAMPLE, False, bsdata, mask_low)