-
Notifications
You must be signed in to change notification settings - Fork 1
/
source_me.sh
executable file
·63 lines (42 loc) · 1.39 KB
/
source_me.sh
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
52
53
54
55
56
57
58
59
60
61
62
63
#!/bin/bash
echo "###### ENVIRONMENT VARIABLES ######"
export GIT_ROOT=$(pwd)
echo "GIT_ROOT = $GIT_ROOT"
export GENERIC_CELLS=$GIT_ROOT/HDL/generic_cells
echo "GENERIC_CELLS = $GENERIC_CELLS"
export INTERFACE=$GIT_ROOT/HDL/interface
echo "INTERFACE = $INTERFACE"
export PACKAGES=$GIT_ROOT/HDL/packages
echo "PACKAGES = $PACKAGES"
export RTL=$GIT_ROOT/HDL/rtl_src
echo "RTL = $RTL"
export VERIF=$GIT_ROOT/verif
echo "VERIF = $VERIF"
export VFILES=$GIT_ROOT/vfiles
echo "VFILES = $VFILES"
export SCRIPTS=$GIT_ROOT/scripts
echo "SCRIPTS = $SCRIPTS"
export LINKER=$SCRIPTS/linker/linker.ld
echo "LINKER = $LINKER"
export CRT0=$SCRIPTS/crt0/crt0.S
echo "CRT0 = $CRT0"
if [ ! -d "$GIT_ROOT/OUTPUT" ]
then
mkdir $GIT_ROOT/OUTPUT
fi
export OUTPUT=$GIT_ROOT/OUTPUT
echo "OUTPUT = $OUTPUT"
echo " "
echo "###### aliases ######"
alias py="python3"
echo "py = python3"
alias simulate="py $SCRIPTS/tools/simulate.py"
echo "simulate = python3 $SCRIPTS/tools/simulate.py"
alias compile_hdl="py $SCRIPTS/tools/compile_hdl.py"
echo "compile_hdl = python3 $SCRIPTS/tools/compile_hdl.py"
alias compile_gcc="py $SCRIPTS/tools/compile_gcc.py"
echo "compile_gcc = python3 $SCRIPTS/tools/compile_gcc.py"
alias maketb="py $SCRIPTS/tools/MakeTB.py"
echo "maketb = python3 $SCRIPTS/tools/MakeTB.py"
alias rmtilda="find . -type f -name '*~' -exec rm -f '{}' \;"
echo "rmtilda = find . -type f -name '*~' -exec rm -f '{}' \;"