-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinstall.sh
executable file
·60 lines (49 loc) · 1.35 KB
/
install.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
#! /bin/bash
# Install script for verilator-vis
# tested on Ubuntu 19.04
# tested on Ubuntu 20.04 on WSL2
# tested on Mac M1 bigSur
PLAT=`uname -m`
# We are targetting an M1 Mac (ToDo: make better and add more platforms)
# Install all the relevant libs
if [ $PLAT = arm64 ]
then
brew update
brew install verilator
brew install boost
brew install rapidjson
brew install binutils
brew install openssl
brew install cpprestsdk
brew install npm
else
# Assume we are in a debian based linux system
# update package manager package list
sudo apt-get update
sudo apt-get install -y perl python3 make
sudo apt-get install -y g++
sudo apt-get install -y rapidjson-dev
sudo apt-get install -y libcpprest-dev
sudo apt-get install -y libfl2 libfl-dev zlibc zlib1g zlib1g-dev
sudo apt-get install -y ccache
sudo apt-get install -y libgoogle-perftools-dev numactl perl-doc
sudo apt-get install -y git autoconf flex bison
sudo apt-get install -y gdb asciidoctor graphviz cmake clang clang-format binutils lcov
sudo apt-get install -y npm
cpan install Pod::Perldoc
cpan install Unix::Processors
cpan install Parallel::Forker
cpan install Bit::Vector
sudo apt-get install verilator
sudo apt-get install gtkwave
cd verilator/
autoconf
unset VERILATOR_ROOT
./configure
make -j
make test
make install
fi
cd common/sw/vis_struct_gen
make
cd ../../../