-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup_default
executable file
·51 lines (38 loc) · 1.57 KB
/
setup_default
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
48
49
50
51
export WORK_DIR=$(pwd)
## Attention: default are LABING paths
###############################################
######### CROSS COMPILER RISCV #############
###############################################
export CC="/opt/riscv-2023.10.18/bin/riscv64-unknown-elf-gcc"
export CC_INSTALLATION_PATH="/opt/riscv-2023.10.18/"
## optimization flags for the compiler
export OPTIMIZATION_FLAGS="-O0 "
###############################################
######### ARCHITECTURAL SIMULATOR #############
###############################################
export GEM5_INSTALLATION_PATH="/opt/gem5/build"
export GEM5_ISA="RISCV"
export GEM5_VARIANT="opt"
#Select one of this OoO CPU
export GEM5_SIMULATION_SCRIPT="./gem5/riscv_o3_custom.py"
#export GEM5_SIMULATION_SCRIPT="./gem5/riscv_o3_simple.py"
#export GEM5_SIMULATION_SCRIPT="./gem5/riscv_o3_two_level_caches.py"
export RESULTS_DIR=${WORK_DIR}/results
if [[ ! -d "${RESULTS_DIR}" ]] ; then
echo "Creating ${RESULTS_DIR}"
mkdir ${RESULTS_DIR}
fi
## util path from gem5 rep
export GEM5_SRC="/opt/gem5/"
export GEM5_UTIL=${GEM5_SRC}/util/
### EXPORTING gem5 utilities for python
export PYTHONPATH=$PYTHONPATH:${GEM5_SRC}
export PYTHONPATH=$PYTHONPATH:${GEM5_SRC}configs/common/
export PYTHONPATH=$PYTHONPATH:${GEM5_SRC}configs
export PYTHONPATH=$PYTHONPATH:${GEM5_SRC}src/python
export PYTHONPATH=$PYTHONPATH:${GEM5_SRC}src/python/m5
export PYTHONPATH=$PYTHONPATH:${GEM5_SRC}src/sim
###############################################
######### PIPELINE VISUALIZER #############
###############################################
export PATH_KONATA="/usr/bin/"