Use start_soon instead of fork

This commit is contained in:
Alex Forencich
2021-12-27 17:10:37 -08:00
parent 6d9ed8a2d2
commit 1b6993d80d
3 changed files with 5 additions and 5 deletions

View File

@@ -45,7 +45,7 @@ class TB:
self.log = logging.getLogger("cocotb.tb")
self.log.setLevel(logging.DEBUG)
cocotb.fork(Clock(dut.clk, 2, units="ns").start())
cocotb.start_soon(Clock(dut.clk, 2, units="ns").start())
self.source = AxiStreamSource(AxiStreamBus.from_prefix(dut, "axis"), dut.clk, dut.rst)
self.sink = AxiStreamSink(AxiStreamBus.from_prefix(dut, "axis"), dut.clk, dut.rst)