def info(self, *args, **kwargs):
return self.dut._log.info(*args, **kwargs)
+
class JTAGPin:
def __init__(self, pin):
self.type_ = pin[2]
return wrap
+
def setup_jtag(wrap, *, tck_period):
- # Make this a generator
+ # TODO: Make this a generator
if False:
yield Timer(0)
return JTAG_Master(wrap.tck, wrap.tms, wrap.tdi, wrap.tdo,
assert(result1 == result2)
+
@cocotb.test()
def idcode_reset(dut):
clk_period = 100 # 10MHz
wrap.info("IDCODE test completed")
+
@cocotb.test()
def idcode_run(dut):
clk_period = 100 # 10MHz
wrap.info("IDCODE test completed")
+
@cocotb.test()
def idcodesvf_run(dut):
clk_period = 100 # 10MHz
wrap.info("IDCODE test completed")
+
@cocotb.test()
def boundary_scan_run(dut):
clk_period = 100 # 10MHz