Go to the documentation of this file. 26 #ifndef PLATFORMS_SINGLE_CORE_NN_INCLUDE_MEMORYMAP_H_ 27 #define PLATFORMS_SINGLE_CORE_NN_INCLUDE_MEMORYMAP_H_ 29 #define SIGNAL_CPU_STALL 0x40412000 // 8 bits 30 #define SIGNAL_CPU_INTR 0x40412001 31 #define SIGNAL_DMA_PROG 0x40412002 33 #define DMA_BURST_SIZE 0x40412004 // 32 bits 34 #define DMA_NN_SIZE 0x40412008 35 #define DMA_OUT_SIZE 0x4041200C 36 #define DMA_MAC_OUT_ARRAY 0x40412010 42 #define DMA_BURST_SIZE 0x40412004 // 32 bits 43 #define DMA_NN_SIZE 0x40412008 44 #define DMA_OUT_SIZE 0x4041200C 45 #define DMA_MAC_OUT_ARRAY 0x40412010 52 #ifdef MEMORY_ENABLE_COUNTERS 53 #define M0_COUNTER_STORE_ADDR (0x40411010) 54 #define M0_COUNTER_LOAD_ADDR (0x40411014) 55 #define M1_COUNTER_STORE_ADDR (0x40411018) 56 #define M1_COUNTER_LOAD_ADDR (0x4041101C) 57 #define M2_COUNTER_STORE_ADDR (0x40411020) 58 #define M2_COUNTER_LOAD_ADDR (0x40411024) 61 #ifdef HFRISCV_ENABLE_COUNTERS 62 #define CPU_COUNTER_ARITH_ADDR (0x40411128) 63 #define CPU_COUNTER_LOGICAL_ADDR (0x4041112C) 64 #define CPU_COUNTER_SHIFT_ADDR (0x40411130) 65 #define CPU_COUNTER_BRANCHES_ADDR (0x40411134) 66 #define CPU_COUNTER_JUMPS_ADDR (0x40411138) 67 #define CPU_COUNTER_LOADSTORE_ADDR (0x4041113C) 68 #define CPU_COUNTER_HOSTTIME_ADDR (0x40411140) 69 #define CPU_COUNTER_CYCLES_TOTAL_ADDR (0x40411144) 70 #define CPU_COUNTER_CYCLES_STALL_ADDR (0x40411148) 74 #ifdef ROUTER_ENABLE_COUNTERS 75 #define ROUTER_COUNTER_ACTIVE_ADDR (0x40411500) 80 #define TOTAL_NN_MEM_SIZE 4 * 1024 * 1024 82 #define NN_MEM_SIZE_PER_CHANNEL (TOTAL_NN_MEM_SIZE / 2) / SIMD_SIZE 83 #define MEMW_BASE 0x40500000 84 #define MEMI_BASE MEMW_BASE + (TOTAL_NN_MEM_SIZE/2) 86 #endif // PLATFORMS_SINGLE_CORE_NN_INCLUDE_MEMORYMAP_H_