Use start_soon instead of fork

This commit is contained in:
Alex Forencich
2021-12-08 21:38:12 -08:00
parent 2b0b12c68d
commit 3f7193b77c
7 changed files with 18 additions and 18 deletions

View File

@@ -366,7 +366,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.start_soon(self._run())
async def _run(self):
raise NotImplementedError()
@@ -388,7 +388,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.start_soon(self._run_pause())
def clear_pause_generator(self):
self.set_pause_generator(None)