use specific version of alliance-check-toolkit
[dev-env-setup.git] / verilator-install
1 #!/bin/bash
2 if [ "$EUID" -ne 0 ]
3 then echo "Please run as root using 'sudo bash'"
4 exit
5 fi
6
7 apt-get update -y
8 apt-get install -y python3 make autoconf g++ flex bison ccache \
9 numactl libgoogle-perftools-dev perl-doc \
10 zlibc zlib1g-dev git
11
12 # change into $SUDO_USER home directory
13 cd /home/$SUDO_USER
14 mkdir -p src/verilator
15 cd src/verilator
16
17 git clone https://github.com/verilator/verilator
18
19 cd verilator
20 git checkout v4.106
21 autoconf
22 ./configure --prefix=/usr/local/verilator
23 make -j$(nproc)
24 make install
25
26 cd /home/$SUDO_USER/src/verilator
27 chown -R $SUDO_USER .
28 chgrp -R $SUDO_USER .
29