Clean up and lint removal
This commit is contained in:
@@ -24,6 +24,7 @@ THE SOFTWARE.
|
||||
|
||||
import enum
|
||||
|
||||
|
||||
# Burst types
|
||||
# AWBURST/ARBURST
|
||||
class AxiBurstType(enum.IntEnum):
|
||||
@@ -31,6 +32,7 @@ class AxiBurstType(enum.IntEnum):
|
||||
INCR = 0b01
|
||||
WRAP = 0b10
|
||||
|
||||
|
||||
# Burst sizes (per beat)
|
||||
# AWSIZE/ARSIZE
|
||||
class AxiBurstSize(enum.IntEnum):
|
||||
@@ -43,12 +45,14 @@ class AxiBurstSize(enum.IntEnum):
|
||||
SIZE_64 = 0b110
|
||||
SIZE_128 = 0b111
|
||||
|
||||
|
||||
# Lock types
|
||||
# AWLOCK/ARLOCK
|
||||
class AxiLockType(enum.IntEnum):
|
||||
NORMAL = 0b0
|
||||
EXCLUSIVE = 0b1
|
||||
|
||||
|
||||
# Cache control
|
||||
# AWCACHE/ARCACHE
|
||||
class AxiCacheBit(enum.IntFlag):
|
||||
@@ -57,6 +61,7 @@ class AxiCacheBit(enum.IntFlag):
|
||||
RA = 0b0100
|
||||
WA = 0b1000
|
||||
|
||||
|
||||
# ARCACHE
|
||||
ARCACHE_DEVICE_NON_BUFFERABLE = 0b0000
|
||||
ARCACHE_DEVICE_BUFFERABLE = 0b0001
|
||||
@@ -85,6 +90,7 @@ AWCACHE_WRITE_BACK_READ_ALLOC = 0b0111
|
||||
AWCACHE_WRITE_BACK_WRITE_ALLOC = 0b1111
|
||||
AWCACHE_WRITE_BACK_READ_AND_WRITE_ALLOC = 0b1111
|
||||
|
||||
|
||||
# Protection bits
|
||||
# AWPROT/ARPROT
|
||||
class AxiProt(enum.IntFlag):
|
||||
@@ -92,6 +98,7 @@ class AxiProt(enum.IntFlag):
|
||||
NONSECURE = 0b010
|
||||
INSTRUCTION = 0b100
|
||||
|
||||
|
||||
# Operation status responses
|
||||
# BRESP/RRESP
|
||||
class AxiResp(enum.IntEnum):
|
||||
@@ -99,4 +106,3 @@ class AxiResp(enum.IntEnum):
|
||||
EXOKAY = 0b01
|
||||
SLVERR = 0b10
|
||||
DECERR = 0b11
|
||||
|
||||
|
||||
Reference in New Issue
Block a user