orca-sim
_MemoryMap.h
Go to the documentation of this file.
1 #ifndef _MEMORY_MAP_H
2 #define _MEMORY_MAP_H
3 
4 //0x40410000 => memory mapped control wires
5 #define SIGNAL_CPU_STALL 0x40410000 /* 8 bits */
6 #define SIGNAL_CPU_INTR 0x40410001
7 
8 //0x403F1xxx => memory mapped counters
9 #ifdef MEMORY_ENABLE_COUNTERS
10 #define M0_COUNTER_STORE_ADDR (0x40411010)
11 #define M0_COUNTER_LOAD_ADDR (0x40411014)
12 #endif
13 
14 #ifdef HFRISCV_ENABLE_COUNTERS
15 #define CPU_COUNTER_ARITH_ADDR (0x40411128)
16 #define CPU_COUNTER_LOGICAL_ADDR (0x4041112C)
17 #define CPU_COUNTER_SHIFT_ADDR (0x40411130)
18 #define CPU_COUNTER_BRANCHES_ADDR (0x40411134)
19 #define CPU_COUNTER_JUMPS_ADDR (0x40411138)
20 #define CPU_COUNTER_LOADSTORE_ADDR (0x4041113C)
21 #define CPU_COUNTER_HOSTTIME_ADDR (0x40411140)
22 #define CPU_COUNTER_CYCLES_TOTAL_ADDR (0x40411144)
23 #define CPU_COUNTER_CYCLES_STALL_ADDR (0x40411148)
24 #endif
25 
26 #define MEM_BASE ORCA_MEMORY_BASE
27 #define MEM_SIZE ORCA_MEMORY_SIZE
28 
29 #endif