Use start_soon instead of fork

This commit is contained in:
Alex Forencich
2021-03-21 12:22:51 -07:00
parent 2b030f120d
commit 78bc288812
11 changed files with 24 additions and 24 deletions

View File

@@ -43,7 +43,7 @@ class TB:
self.log = logging.getLogger("cocotb.tb")
self.log.setLevel(logging.DEBUG)
cocotb.fork(Clock(dut.clk, 6.4, units="ns").start())
cocotb.scheduler.start_soon(Clock(dut.clk, 6.4, units="ns").start())
self.ptp_clock = PtpClock(
ts_96=dut.ts_96,