diff options
Diffstat (limited to 'testsuite/gna/issue450/cocotb/top_cocotb.py')
-rw-r--r-- | testsuite/gna/issue450/cocotb/top_cocotb.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/testsuite/gna/issue450/cocotb/top_cocotb.py b/testsuite/gna/issue450/cocotb/top_cocotb.py new file mode 100644 index 000000000..2f30e0e2a --- /dev/null +++ b/testsuite/gna/issue450/cocotb/top_cocotb.py @@ -0,0 +1,12 @@ +import cocotb +from cocotb.clock import Clock +from cocotb.triggers import Timer + +@cocotb.test() +def test_gen(dut): + cocotb.fork(Clock(dut.clk, 1000).start()) + + yield Timer(1000) + + for i in dut: + print i._log.info("Found something: %s" % i._fullname) |