Revert back to cocotb.fork

This commit is contained in:
Alex Forencich
2021-03-24 16:20:08 -07:00
parent 8c74f747a4
commit 9e28bd7fbb
10 changed files with 22 additions and 22 deletions

View File

@@ -153,7 +153,7 @@ class StreamBase(Reset):
else:
self.log.info("Reset de-asserted")
if self._run_cr is None:
self._run_cr = cocotb.scheduler.start_soon(self._run())
self._run_cr = cocotb.fork(self._run())
async def _run(self):
raise NotImplementedError()
@@ -175,7 +175,7 @@ class StreamPause:
self._pause_generator = generator
if self._pause_generator is not None:
self._pause_cr = cocotb.scheduler.start_soon(self._run_pause())
self._pause_cr = cocotb.fork(self._run_pause())
def clear_pause_generator(self):
self.set_pause_generator(None)