Skip to content

Commit

Permalink
Fix up remaining start_soon's
Browse files Browse the repository at this point in the history
  • Loading branch information
cmarqu committed Mar 1, 2024
1 parent a7a86e8 commit 002ff81
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/cocotb_bus/drivers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def __init__(self):
self.log = SimLog("cocotb.driver.%s" % (type(self).__qualname__))

# Create an independent coroutine which can send stuff
self._thread = cocotb.scheduler.add(self._send_thread())
self._thread = cocotb.start_soon(self._send_thread())

async def _acquire_lock(self):
if self.busy:
Expand Down
2 changes: 1 addition & 1 deletion src/cocotb_bus/drivers/amba.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ async def write(
write_data = self._send_write_data(address, value, burst, size,
data_latency, byte_enable, sync)

await Combine(cocotb.start_soon(write_address), cocotb.fork(write_data))
await Combine(cocotb.start_soon(write_address), cocotb.start_soon(write_data))

async with self.write_response_busy:
# Wait for the response
Expand Down
2 changes: 1 addition & 1 deletion src/cocotb_bus/monitors/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def __init__(self, callback=None, event=None):
self.add_callback(callback)

# Create an independent coroutine which can receive stuff
self._thread = cocotb.scheduler.add(self._monitor_recv())
self._thread = cocotb.start_soon(self._monitor_recv())

def kill(self):
"""Kill the monitor coroutine."""
Expand Down

0 comments on commit 002ff81

Please sign in to comment.