Use start_soon instead of fork

This commit is contained in:
Alex Forencich
2021-03-21 12:22:22 -07:00
parent 7fb8c4e28b
commit e934b69776
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.scheduler.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)