12
12
// *************** MMIO General **************
13
13
// ********************************************************************************************
14
14
// 0x3fffff8 >> 0x3FFFF10 used
15
- #define AFU_CONFIGURE 0x3FFFFF8
16
- #define AFU_CONFIGURE_2 0x3FFFF30
17
- #define AFU_STATUS 0x3FFFFF0
15
+ #define AFU_STATUS 0x3FFFFF8
16
+ #define AFU_CONFIGURE 0x3FFFFF0
17
+ #define AFU_CONFIGURE_2 0x3FFFFE8
18
18
19
- #define CU_CONFIGURE 0x3FFFFE8
20
- #define CU_CONFIGURE_2 0x3FFFF28
21
19
#define CU_STATUS 0x3FFFFE0
20
+ #define CU_CONFIGURE 0x3FFFFD8
21
+ #define CU_CONFIGURE_2 0x3FFFFD0
22
+ #define CU_CONFIGURE_3 0x3FFFFC8
23
+ #define CU_CONFIGURE_4 0x3FFFFC0
22
24
23
- #define CU_RETURN 0x3FFFFD8 // running counters that you can read continuosly
24
- #define CU_RETURN_2 0x3FFFF10
25
- #define CU_RETURN_ACK 0x3FFFFD0
25
+ #define CU_RETURN 0x3FFFFB8 // running counters that you can read continuosly
26
+ #define CU_RETURN_2 0x3FFFFB0
27
+ #define CU_RETURN_ACK 0x3FFFFA8
26
28
27
- #define CU_RETURN_DONE 0x3FFFFC8
28
- #define CU_RETURN_DONE_ACK 0x3FFFFC0
29
+ #define CU_RETURN_DONE 0x3FFFFA0
30
+ #define CU_RETURN_DONE_ACK 0x3FFFF98
29
31
30
- #define ERROR_REG 0x3FFFFB8
31
- #define ERROR_REG_ACK 0x3FFFFB0
32
+ #define ERROR_REG 0x3FFFF90
33
+ #define ERROR_REG_ACK 0x3FFFF88
32
34
33
35
// ********************************************************************************************
34
36
// *************** AFU Stats **************
35
37
// ********************************************************************************************
36
38
37
- #define DONE_COUNT_REG 0x3FFFFA8
38
- #define DONE_RESTART_COUNT_REG 0x3FFFFA0
39
- #define DONE_READ_COUNT_REG 0x3FFFF98
40
- #define DONE_WRITE_COUNT_REG 0x3FFFF90
41
- #define DONE_PREFETCH_READ_COUNT_REG 0x3FFFF88
42
- #define DONE_PREFETCH_WRITE_COUNT_REG 0x3FFFF80
39
+ #define DONE_COUNT_REG 0x3FFFF78
40
+ #define DONE_RESTART_COUNT_REG 0x3FFFF70
41
+ #define DONE_READ_COUNT_REG 0x3FFFF68
42
+ #define DONE_WRITE_COUNT_REG 0x3FFFF60
43
+ #define DONE_PREFETCH_READ_COUNT_REG 0x3FFFF58
44
+ #define DONE_PREFETCH_WRITE_COUNT_REG 0x3FFFF50
43
45
44
- #define PAGED_COUNT_REG 0x3FFFF78
45
- #define FLUSHED_COUNT_REG 0x3FFFF70
46
- #define AERROR_COUNT_REG 0x3FFFF68
47
- #define DERROR_COUNT_REG 0x3FFFF60
48
- #define FAILED_COUNT_REG 0x3FFFF58
49
- #define FAULT_COUNT_REG 0x3FFFF50
50
- #define NRES_COUNT_REG 0x3FFFF48
51
- #define NLOCK_COUNT_REG 0x3FFFF40
52
- #define CYCLE_COUNT_REG 0x3FFFF38
46
+ #define PAGED_COUNT_REG 0x3FFFF48
47
+ #define FLUSHED_COUNT_REG 0x3FFFF40
48
+ #define AERROR_COUNT_REG 0x3FFFF38
49
+ #define DERROR_COUNT_REG 0x3FFFF30
50
+ #define FAILED_COUNT_REG 0x3FFFF28
51
+ #define FAULT_COUNT_REG 0x3FFFF20
52
+ #define NRES_COUNT_REG 0x3FFFF18
53
+ #define NLOCK_COUNT_REG 0x3FFFF10
54
+ #define CYCLE_COUNT_REG 0x3FFFF08
53
55
54
- #define PREFETCH_READ_BYTE_COUNT_REG 0x3FFFF30
55
- #define PREFETCH_WRITE_BYTE_COUNT_REG 0x3FFFF28
56
- #define READ_BYTE_COUNT_REG 0x3FFFF20
57
- #define WRITE_BYTE_COUNT_REG 0x3FFFF18
56
+ #define PREFETCH_READ_BYTE_COUNT_REG 0x3FFFF00
57
+ #define PREFETCH_WRITE_BYTE_COUNT_REG 0x3FFFEF8
58
+ #define READ_BYTE_COUNT_REG 0x3FFFEF0
59
+ #define WRITE_BYTE_COUNT_REG 0x3FFFEE8
58
60
59
61
60
62
#ifdef SIM
@@ -70,6 +72,8 @@ struct AFUStatus
70
72
uint64_t cu_stop ; // afu stopping condition
71
73
uint64_t cu_config ;
72
74
uint64_t cu_config_2 ;
75
+ uint64_t cu_config_3 ;
76
+ uint64_t cu_config_4 ;
73
77
uint64_t cu_status ;
74
78
uint64_t cu_mode ;
75
79
uint64_t afu_config ;
0 commit comments