From: Luke Kenneth Casson Leighton Date: Tue, 6 Apr 2021 14:13:46 +0000 (+0100) Subject: whitespace X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f4c01a8a2c33b28e32b4b42223bb9606d8a56bfb;p=soc-cocotb-sim.git whitespace --- 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