11 #define ILM_LOCAL_BASE (0x0U)
12 #define ILM_SIZE_IN_BYTE (0x40000U)
13 #define DLM_LOCAL_BASE (0x80000U)
14 #define DLM_SIZE_IN_BYTE (0x40000U)
15 #define CORE0_ILM_SYSTEM_BASE (0x1000000U)
16 #define CORE0_DLM_SYSTEM_BASE (0x1040000U)
17 #define CORE1_ILM_SYSTEM_BASE (0x1180000U)
18 #define CORE1_DLM_SYSTEM_BASE (0x11C0000U)
20 #define ADDRESS_IN_ILM(address) \
21 ((ILM_LOCAL_BASE + ILM_SIZE_IN_BYTE) > (address))
22 #define ADDRESS_IN_DLM(address) \
23 (((DLM_LOCAL_BASE) <= (address)) && \
24 ((DLM_LOCAL_BASE + DLM_SIZE_IN_BYTE) > (address)))
26 #define ADDRESS_IN_CORE0_ILM_SYSTEM(address) \
27 (((CORE0_ILM_SYSTEM_BASE) <= (address)) && \
28 ((CORE0_ILM_SYSTEM_BASE + ILM_SIZE_IN_BYTE) > (address)))
29 #define ADDRESS_IN_CORE0_DLM_SYSTEM(address) \
30 (((CORE0_DLM_SYSTEM_BASE) <= (address)) && \
31 ((CORE0_DLM_SYSTEM_BASE + DLM_SIZE_IN_BYTE) > (address)))
33 #define ADDRESS_IN_CORE1_ILM_SYSTEM(address) \
34 (((CORE1_ILM_SYSTEM_BASE) <= (address)) && \
35 ((CORE1_ILM_SYSTEM_BASE + ILM_SIZE_IN_BYTE) > (address)))
36 #define ADDRESS_IN_CORE1_DLM_SYSTEM(address) \
37 (((CORE1_DLM_SYSTEM_BASE) <= (address)) && \
38 ((CORE1_DLM_SYSTEM_BASE + DLM_SIZE_IN_BYTE) > (address)))
40 #define DLM_TO_SYSTEM(address) \
41 (CORE0_DLM_SYSTEM_BASE + (address) - (DLM_LOCAL_BASE))
42 #define ILM_TO_SYSTEM(address) \
43 (CORE0_ILM_SYSTEM_BASE + (address) - (ILM_LOCAL_BASE))
44 #define SYSTEM_TO_DLM(address) \
45 ((address) - CORE0_DLM_SYSTEM_BASE + (DLM_LOCAL_BASE))
47 #define HPM_CORE0 (0U)
48 #define HPM_CORE1 (1U)
#define ADDRESS_IN_DLM(address)
Definition: hpm_misc.h:22
static uint32_t sys_address_to_core_local_mem(uint8_t core_id, uint32_t addr)
Definition: hpm_misc.h:69
#define ILM_LOCAL_BASE
Definition: hpm_misc.h:11
#define CORE0_ILM_SYSTEM_BASE
Definition: hpm_misc.h:15
#define HPM_CORE1
Definition: hpm_misc.h:48
#define ADDRESS_IN_CORE1_ILM_SYSTEM(address)
Definition: hpm_misc.h:33
#define CORE1_DLM_SYSTEM_BASE
Definition: hpm_misc.h:18
static uint32_t core_local_mem_to_sys_address(uint8_t core_id, uint32_t addr)
Definition: hpm_misc.h:51
#define ADDRESS_IN_CORE1_DLM_SYSTEM(address)
Definition: hpm_misc.h:36
#define DLM_LOCAL_BASE
Definition: hpm_misc.h:13
#define ADDRESS_IN_CORE0_DLM_SYSTEM(address)
Definition: hpm_misc.h:29
#define ILM_TO_SYSTEM(address)
Definition: hpm_misc.h:42
#define ADDRESS_IN_CORE0_ILM_SYSTEM(address)
Definition: hpm_misc.h:26
#define ADDRESS_IN_ILM(address)
Definition: hpm_misc.h:20
#define DLM_TO_SYSTEM(address)
Definition: hpm_misc.h:40
#define CORE1_ILM_SYSTEM_BASE
Definition: hpm_misc.h:17
#define CORE0_DLM_SYSTEM_BASE
Definition: hpm_misc.h:16