cocotb_wrapper.axi.AxiMaster.read#

async AxiMaster.read(address, length, id=None, burst=AxiBurstType.INCR, burst_size=None, lock=AxiLockType.NORMAL, cache=AxiCacheBit.None, prot=AxiProt.NONSECURE, qos=0, region=0, user=0, wuser=0)[source]#

Read length bytes from address.

Parameters:
  • address (int) – The read start address

  • length (int) – The read size in bytes

  • id (int | None) – The AXI burst ID. Defaults to None which assigns an ID automatically

  • burst (AxiBurstType) – The AXI burst type

  • burst_size (AxiBurstSize | None) – The AXI burst size

  • lock (AxiLockType) – The AXI lock type

  • cache (AxiCacheBit) – The AXI cache bits enables buffering

  • prot (AxiProt) – The AXI protection flag

  • qos (int) – The AXI quality of service field

  • region (int) – The AXI region field

  • user (int) – The AXI user signal

  • wuser (int) – The AXI write user signal

Returns:

The response to the read operation, which also contains the data in the data attribute

Return type:

AxiReadResp