...

Package memory

import "axi/memory"
Overview
Index

Overview ▾

Package memory provides high level operations for working an AXI bus

Index ▾

func ReadBurstUInt16(clientAddr chan<- protocol.Addr, clientData <-chan protocol.ReadData, bufferedAccess bool, readAddr uintptr, readLength uint32, readDataChan chan<- uint16) bool
func ReadBurstUInt32(clientAddr chan<- protocol.Addr, clientData <-chan protocol.ReadData, bufferedAccess bool, readAddr uintptr, readLength uint32, readDataChan chan<- uint32) bool
func ReadBurstUInt64(clientAddr chan<- protocol.Addr, clientData <-chan protocol.ReadData, bufferedAccess bool, readAddr uintptr, readLength uint32, readDataChan chan<- uint64) bool
func ReadBurstUInt8(clientAddr chan<- protocol.Addr, clientData <-chan protocol.ReadData, bufferedAccess bool, readAddr uintptr, readLength uint32, readDataChan chan<- uint8) bool
func ReadUInt16(clientAddr chan<- protocol.Addr, clientData <-chan protocol.ReadData, bufferedAccess bool, readAddr uintptr) uint16
func ReadUInt32(clientAddr chan<- protocol.Addr, clientData <-chan protocol.ReadData, bufferedAccess bool, readAddr uintptr) uint32
func ReadUInt64(clientAddr chan<- protocol.Addr, clientData <-chan protocol.ReadData, bufferedAccess bool, readAddr uintptr) uint64
func ReadUInt8(clientAddr chan<- protocol.Addr, clientData <-chan protocol.ReadData, bufferedAccess bool, readAddr uintptr) uint8
func WriteBurstUInt16(clientAddr chan<- protocol.Addr, clientData chan<- protocol.WriteData, clientResp <-chan protocol.WriteResp, bufferedAccess bool, writeAddr uintptr, writeLength uint32, writeDataChan <-chan uint16) bool
func WriteBurstUInt32(clientAddr chan<- protocol.Addr, clientData chan<- protocol.WriteData, clientResp <-chan protocol.WriteResp, bufferedAccess bool, writeAddr uintptr, writeLength uint32, writeDataChan <-chan uint32) bool
func WriteBurstUInt64(clientAddr chan<- protocol.Addr, clientData chan<- protocol.WriteData, clientResp <-chan protocol.WriteResp, bufferedAccess bool, writeAddr uintptr, writeLength uint32, writeDataChan <-chan uint64) bool
func WriteBurstUInt8(clientAddr chan<- protocol.Addr, clientData chan<- protocol.WriteData, clientResp <-chan protocol.WriteResp, bufferedAccess bool, writeAddr uintptr, writeLength uint32, writeDataChan <-chan uint8) bool
func WriteUInt16(clientAddr chan<- protocol.Addr, clientData chan<- protocol.WriteData, clientResp <-chan protocol.WriteResp, bufferedAccess bool, writeAddr uintptr, writeData uint16) bool
func WriteUInt32(clientAddr chan<- protocol.Addr, clientData chan<- protocol.WriteData, clientResp <-chan protocol.WriteResp, bufferedAccess bool, writeAddr uintptr, writeData uint32) bool
func WriteUInt64(clientAddr chan<- protocol.Addr, clientData chan<- protocol.WriteData, clientResp <-chan protocol.WriteResp, bufferedAccess bool, writeAddr uintptr, writeData uint64) bool
func WriteUInt8(clientAddr chan<- protocol.Addr, clientData chan<- protocol.WriteData, clientResp <-chan protocol.WriteResp, bufferedAccess bool, writeAddr uintptr, writeData uint8) bool

Package files

aximemory.go

func ReadBurstUInt16

func ReadBurstUInt16(
    clientAddr chan<- protocol.Addr,
    clientData <-chan protocol.ReadData,
    bufferedAccess bool,
    readAddr uintptr,
    readLength uint32,
    readDataChan chan<- uint16) bool

ReadBurstUInt16 reads an incrementing burst of 16-bit unsigned data values from a word aligned address on the specified AXI memory bus, with the bottom address bit being ignored. The status of the read transaction is returned as the boolean 'burstOk' flag.

func ReadBurstUInt32

func ReadBurstUInt32(
    clientAddr chan<- protocol.Addr,
    clientData <-chan protocol.ReadData,
    bufferedAccess bool,
    readAddr uintptr,
    readLength uint32,
    readDataChan chan<- uint32) bool

ReadBurstUInt32 reads an incrementing burst of 32-bit unsigned data values from a word aligned address on the specified AXI memory bus, with the bottom two address bits being ignored. The status of the read transaction is returned as the boolean 'burstOk' flag.

func ReadBurstUInt64

func ReadBurstUInt64(
    clientAddr chan<- protocol.Addr,
    clientData <-chan protocol.ReadData,
    bufferedAccess bool,
    readAddr uintptr,
    readLength uint32,
    readDataChan chan<- uint64) bool

ReadBurstUInt64 reads an incrementing burst of 64-bit unsigned data values from a word aligned address on the specified AXI memory bus, with the bottom three address bits being ignored. The status of the read transaction is returned as the boolean 'burstOk' flag.

func ReadBurstUInt8

func ReadBurstUInt8(
    clientAddr chan<- protocol.Addr,
    clientData <-chan protocol.ReadData,
    bufferedAccess bool,
    readAddr uintptr,
    readLength uint32,
    readDataChan chan<- uint8) bool

ReadBurstUInt8 reads an incrementing burst of 8-bit unsigned data values from a word aligned address on the specified AXI memory bus, with the bottom address bit being ignored. The status of the read transaction is returned as the boolean 'burstOk' flag.

func ReadUInt16

func ReadUInt16(
    clientAddr chan<- protocol.Addr,
    clientData <-chan protocol.ReadData,
    bufferedAccess bool,
    readAddr uintptr) uint16

ReadUInt16 reads a single 16-bit unsigned data value from a word aligned address on the specified AXI memory bus, with the bottom address bit being ignored. TODO: The status of the read transaction should be returned as the boolean 'readOk' flag.

func ReadUInt32

func ReadUInt32(
    clientAddr chan<- protocol.Addr,
    clientData <-chan protocol.ReadData,
    bufferedAccess bool,
    readAddr uintptr) uint32

ReadUInt32 reads a single 32-bit unsigned data value from a word aligned address on the specified AXI memory bus, with the bottom two address bits being ignored. TODO: The status of the read transaction should be returned as the boolean 'readOk' flag.

func ReadUInt64

func ReadUInt64(
    clientAddr chan<- protocol.Addr,
    clientData <-chan protocol.ReadData,
    bufferedAccess bool,
    readAddr uintptr) uint64

ReadUInt64 reads a single 64-bit unsigned data value from a word aligned address on the specified AXI memory bus, with the bottom three address bits being ignored. TODO: The status of the read transaction should be returned as the boolean 'readOk' flag.

func ReadUInt8

func ReadUInt8(
    clientAddr chan<- protocol.Addr,
    clientData <-chan protocol.ReadData,
    bufferedAccess bool,
    readAddr uintptr) uint8

ReadUInt8 reads a single 8-bit unsigned data value to the specified AXI memory bus. TODO: The status of the write transaction should be returned as the boolean 'readOk' flag.

func WriteBurstUInt16

func WriteBurstUInt16(
    clientAddr chan<- protocol.Addr,
    clientData chan<- protocol.WriteData,
    clientResp <-chan protocol.WriteResp,
    bufferedAccess bool,
    writeAddr uintptr,
    writeLength uint32,
    writeDataChan <-chan uint16) bool

WriteBurstUInt16 writes an incrementing burst of 16-bit unsigned data values to a word aligned address on the specified AXI memory bus, with the bottom address bit being ignored. The status of the write transaction is returned as the boolean 'burstOk' flag.

func WriteBurstUInt32

func WriteBurstUInt32(
    clientAddr chan<- protocol.Addr,
    clientData chan<- protocol.WriteData,
    clientResp <-chan protocol.WriteResp,
    bufferedAccess bool,
    writeAddr uintptr,
    writeLength uint32,
    writeDataChan <-chan uint32) bool

WriteBurstUInt32 writes an incrementing burst of 32-bit unsigned data values to a word aligned address on the specified AXI memory bus, with the bottom two address bits being ignored. The status of the write transaction is returned as the boolean 'burstOk' flag.

func WriteBurstUInt64

func WriteBurstUInt64(
    clientAddr chan<- protocol.Addr,
    clientData chan<- protocol.WriteData,
    clientResp <-chan protocol.WriteResp,
    bufferedAccess bool,
    writeAddr uintptr,
    writeLength uint32,
    writeDataChan <-chan uint64) bool

WriteBurstUInt64 writes an incrementing burst of 64-bit unsigned data values to a word aligned address on the specified AXI memory bus, with the bottom three address bits being ignored. The status of the write transaction is returned as the boolean 'burstOk' flag.

func WriteBurstUInt8

func WriteBurstUInt8(
    clientAddr chan<- protocol.Addr,
    clientData chan<- protocol.WriteData,
    clientResp <-chan protocol.WriteResp,
    bufferedAccess bool,
    writeAddr uintptr,
    writeLength uint32,
    writeDataChan <-chan uint8) bool

WriteBurstUInt8 writes an incrementing burst of 8-bit unsigned data values on the specified AXI memory bus. The status of the write transaction is returned as the boolean 'burstOk' flag.

func WriteUInt16

func WriteUInt16(
    clientAddr chan<- protocol.Addr,
    clientData chan<- protocol.WriteData,
    clientResp <-chan protocol.WriteResp,
    bufferedAccess bool,
    writeAddr uintptr,
    writeData uint16) bool

WriteUInt16 writes a single 16-bit unsigned data value to a word aligned address on the specified AXI memory bus, with the bottom address bit being ignored. The status of the write transaction is returned as the boolean 'writeOk' flag.

func WriteUInt32

func WriteUInt32(
    clientAddr chan<- protocol.Addr,
    clientData chan<- protocol.WriteData,
    clientResp <-chan protocol.WriteResp,
    bufferedAccess bool,
    writeAddr uintptr,
    writeData uint32) bool

WriteUInt32 writes a single 32-bit unsigned data value to a word aligned address on the specified AXI memory bus, with the bottom two address bits being ignored. The status of the write transaction is returned as the boolean 'writeOk' flag.

func WriteUInt64

func WriteUInt64(
    clientAddr chan<- protocol.Addr,
    clientData chan<- protocol.WriteData,
    clientResp <-chan protocol.WriteResp,
    bufferedAccess bool,
    writeAddr uintptr,
    writeData uint64) bool

WriteUInt64 writes a single 64-bit unsigned data value to a word aligned address on the specified AXI memory bus, with the bottom three address bits being ignored. The status of the write transaction is returned as the boolean 'writeOk' flag.

func WriteUInt8

func WriteUInt8(
    clientAddr chan<- protocol.Addr,
    clientData chan<- protocol.WriteData,
    clientResp <-chan protocol.WriteResp,
    bufferedAccess bool,
    writeAddr uintptr,
    writeData uint8) bool

WriteUInt8 writes a single 8-bit unsigned data value to the specified AXI memory bus. The status of the write transaction is returned as the boolean 'writeOk' flag.