# read DMI CTRL register
status = yield from jtag_read_write_reg(dut, DMI_READ, 64)
print ("dmi ctrl status", hex(status))
- assert status == 0
+ assert status == 6
# write DMI MSR address
yield from jtag_read_write_reg(dut, DMI_ADDR, 8, DBGCore.MSR)
# read DMI CTRL register
status = yield from jtag_read_write_reg(dut, DMI_READ, 64)
print ("dmi ctrl status", hex(status))
- assert status == 0
+ assert status == 6
# write DMI MSR address
yield from jtag_read_write_reg(dut, DMI_ADDR, 8, DBGCore.MSR)
cdut.c = JTAGClient()
dut.s.get_connection()
else:
+ print ("running server only as requested, use openocd remote to test")
+ sys.stdout.flush()
dut.s.get_connection(None) # block waiting for connection
# take copy of ir_width and scan_len
sim.add_sync_process(wrap(jtag_srv(dut))) # jtag server
if len(sys.argv) != 2 or sys.argv[1] != 'server':
sim.add_sync_process(wrap(jtag_sim(cdut, dut))) # actual jtag tester
- else:
- print ("running server only as requested, use openocd remote to test")
sim.add_sync_process(wrap(dmi_sim(dut))) # handles (pretends to be) DMI
with sim.write_vcd("dmi2jtag_test_srv.vcd"):