AMBA Driver: Add sync option to write
@@ -112,12 +112,16 @@ class AXI4LiteMaster(BusDriver):
@cocotb.coroutine
def write(self, address, value, byte_enable=0xf, address_latency=0,
- data_latency=0):
+ data_latency=0, sync=True):
"""
Write a value to an address.
The *_latency KWargs allow control over the delta
+
+ sync dictates whether we wait for a clock edge or not
"""
+ if sync:
+ yield RisingEdge(self.clock)
c_addr = cocotb.fork(self._send_write_address(address,
delay=address_latency))
