-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sh
executable file
·28 lines (20 loc) · 1013 Bytes
/
build.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
#!/bin/bash
if [ "$1" == "--clean" ]; then
echo "Deleting previous SPECT compiler build..."
rm -rf build
fi
mkdir -p build
echo "*************************************************************************"
echo "* Generating System Verilog coverage class"
echo "*************************************************************************"
./generate_cover_class.py --input templates/InstructionDefs_v2.txt --output src/cosim/spect_instr_gen_coverage.svh --cov-template templates/coverage_class_template.txt --instr-defs templates/InstructionDefs_v2.txt
echo "*************************************************************************"
echo "* Initalizing SPECT compiler and model build"
echo "*************************************************************************"
cd build
cmake ..
echo "*************************************************************************"
echo "* Building SPECT compiler and model"
echo "*************************************************************************"
make
cd ..