diff --git a/tests/axi/test_axi.py b/tests/axi/test_axi.py index 2eb4d86..1595912 100644 --- a/tests/axi/test_axi.py +++ b/tests/axi/test_axi.py @@ -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.axi_master = AxiMaster(AxiBus.from_prefix(dut, "axi"), dut.clk, dut.rst) self.axi_ram = AxiRam(AxiBus.from_prefix(dut, "axi"), dut.clk, dut.rst, size=2**16) @@ -283,7 +283,7 @@ async def run_stress_test(dut, idle_inserter=None, backpressure_inserter=None): workers = [] for k in range(16): - workers.append(cocotb.fork(worker(tb.axi_master, k*0x1000, 0x1000, count=16))) + workers.append(cocotb.start_soon(worker(tb.axi_master, k*0x1000, 0x1000, count=16))) while workers: await workers.pop(0).join() diff --git a/tests/axil/test_axil.py b/tests/axil/test_axil.py index f35c481..548840c 100644 --- a/tests/axil/test_axil.py +++ b/tests/axil/test_axil.py @@ -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.axil_master = AxiLiteMaster(AxiLiteBus.from_prefix(dut, "axil"), dut.clk, dut.rst) self.axil_ram = AxiLiteRam(AxiLiteBus.from_prefix(dut, "axil"), dut.clk, dut.rst, size=2**16) @@ -272,7 +272,7 @@ async def run_stress_test(dut, idle_inserter=None, backpressure_inserter=None): workers = [] for k in range(16): - workers.append(cocotb.fork(worker(tb.axil_master, k*0x1000, 0x1000, count=16))) + workers.append(cocotb.start_soon(worker(tb.axil_master, k*0x1000, 0x1000, count=16))) while workers: await workers.pop(0).join() diff --git a/tests/axis/test_axis.py b/tests/axis/test_axis.py index 5bd4ecf..7ed0aab 100644 --- a/tests/axis/test_axis.py +++ b/tests/axis/test_axis.py @@ -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)