...

Package protocol

import "axi/protocol"
Overview
Index

Overview ▾

Package protocol provides low level primitives for working the AXI4 protocol

func ReadDisable

func ReadDisable(
    clientAddr chan<- Addr,
    clientData <-chan ReadData)

ReadDisable will disable AXI bus read transactions. Should be run once for each unused AXI read interface. This will block the calling goroutine.

func WriteDisable

func WriteDisable(
    clientAddr chan<- Addr,
    clientData chan<- WriteData,
    clientResp <-chan WriteResp)

WriteDisable will disable AXI bus write transactions. Should be run once for each unused AXI write interface. This will block the calling goroutine.

type Addr

type Addr struct {
    Id     bool
    Addr   uintptr
    Len    byte
    Size   [3]bool
    Burst  [2]bool
    Lock   bool
    Cache  [4]bool
    Prot   [3]bool
    Region [4]bool
    Qos    [4]bool
    User   bool
}

Type Addr specifies AXI memory address channel fields.

type ReadData

type ReadData struct {
    Id   bool
    Data uint64
    Resp [2]bool
    Last bool
    User bool
}

Type ReadData specifies AXI memory read data channel fields.

type WriteData

type WriteData struct {
    Data uint64
    Strb [8]bool
    Last bool
    User bool
}

Type WriteData specifies AXI memory write data channel fields.

type WriteResp

type WriteResp struct {
    Id   bool
    Resp [2]bool
    User bool
}

Type WriteResp specifies AXI memory write response channel fields.