Use start_soon instead of fork

This commit is contained in:
Alex Forencich
2021-03-21 11:40:25 -07:00
parent a71678c7e3
commit 6c66776518
7 changed files with 17 additions and 17 deletions

View File

@@ -368,7 +368,7 @@ class AxiStreamBase(Reset):
else:
self.log.info("Reset de-asserted")
if self._run_cr is None:
self._run_cr = cocotb.fork(self._run())
self._run_cr = cocotb.scheduler.start_soon(self._run())
self.active = False
@@ -392,7 +392,7 @@ class AxiStreamPause:
self._pause_generator = generator
if self._pause_generator is not None:
self._pause_cr = cocotb.fork(self._run_pause())
self._pause_cr = cocotb.scheduler.start_soon(self._run_pause())
def clear_pause_generator(self):
self.set_pause_generator(None)