-
Notifications
You must be signed in to change notification settings - Fork 7
/
ahb_types.py
47 lines (36 loc) · 847 Bytes
/
ahb_types.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# File : ahb_types.py
# License : MIT license <Check LICENSE>
# Author : Anderson I. da Silva (aignacio) <[email protected]>
# Date : 08.10.2023
# Last Modified Date: 22.10.2023
import enum
class AHBSize(enum.IntEnum):
BYTE = 0b000
HWORD = 0b001
WORD = 0b010
DWORD = 0b011
FWORD = 0b100
EWORD = 0b101
class AHBBurst(enum.IntEnum):
SINGLE = 0b000
INCR = 0b001
WRAP4 = 0b010
INCR4 = 0b011
WRAP8 = 0b100
INCR8 = 0b101
WRAP16 = 0b110
INCR16 = 0b111
class AHBResp(enum.IntEnum):
OKAY = 0b00
ERROR = 0b01
UNKNOWN = 0b10
class AHBTrans(enum.IntEnum):
IDLE = 0b00
BUSY = 0b01
NONSEQ = 0b10
SEQ = 0b11
class AHBWrite(enum.IntEnum):
READ = 0b0
WRITE = 0b1