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

@@ -209,9 +209,9 @@ class AxiMasterWrite(Reset):
else:
self.log.info("Reset de-asserted")
if self._process_write_cr is None:
self._process_write_cr = cocotb.fork(self._process_write())
self._process_write_cr = cocotb.scheduler.start_soon(self._process_write())
if self._process_write_resp_cr is None:
self._process_write_resp_cr = cocotb.fork(self._process_write_resp())
self._process_write_resp_cr = cocotb.scheduler.start_soon(self._process_write_resp())
self.aw_channel.clear()
self.w_channel.clear()
@@ -541,9 +541,9 @@ class AxiMasterRead(Reset):
else:
self.log.info("Reset de-asserted")
if self._process_read_cr is None:
self._process_read_cr = cocotb.fork(self._process_read())
self._process_read_cr = cocotb.scheduler.start_soon(self._process_read())
if self._process_read_resp_cr is None:
self._process_read_resp_cr = cocotb.fork(self._process_read_resp())
self._process_read_resp_cr = cocotb.scheduler.start_soon(self._process_read_resp())
self.ar_channel.clear()
self.r_channel.clear()