From f4c01a8a2c33b28e32b4b42223bb9606d8a56bfb Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Tue, 6 Apr 2021 15:13:46 +0100 Subject: [PATCH] whitespace --- ls180/pre_pnr/test.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ls180/pre_pnr/test.py b/ls180/pre_pnr/test.py index cc3ab4e..9e6b77c 100644 --- a/ls180/pre_pnr/test.py +++ b/ls180/pre_pnr/test.py @@ -36,6 +36,7 @@ class DUTWrapper: def info(self, *args, **kwargs): return self.dut._log.info(*args, **kwargs) + class JTAGPin: def __init__(self, pin): self.type_ = pin[2] @@ -141,8 +142,9 @@ def setup_sim(dut, *, info, clk_period, run): 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, @@ -173,6 +175,7 @@ def idcode(wrap, *, jtag): assert(result1 == result2) + @cocotb.test() def idcode_reset(dut): clk_period = 100 # 10MHz @@ -187,6 +190,7 @@ def idcode_reset(dut): wrap.info("IDCODE test completed") + @cocotb.test() def idcode_run(dut): clk_period = 100 # 10MHz @@ -219,6 +223,7 @@ def idcodesvf_reset(dut): wrap.info("IDCODE test completed") + @cocotb.test() def idcodesvf_run(dut): clk_period = 100 # 10MHz @@ -278,6 +283,7 @@ def boundary_scan_reset(dut): wrap.info("IDCODE test completed") + @cocotb.test() def boundary_scan_run(dut): clk_period = 100 # 10MHz -- 2.30.2