blob: fc665f49bae25b304f3d13f0769e43ccddbde139 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
set -e
# Install Verilator (http://www.veripool.org/projects/verilator/wiki/Installing)
if [ ! -f $INSTALL_DIR/bin/verilator ]; then
mkdir -p $INSTALL_DIR
git clone http://git.veripool.org/git/verilator
unset VERILATOR_ROOT
cd verilator
git pull
git checkout verilator_3_922
autoconf
./configure --prefix=$INSTALL_DIR
make
make install
export VERILATOR_ROOT=$INSTALL_DIR
# Fix verilator for local install (http://www.lowrisc.org/docs/untether-v0.2/verilator/)
ln -s $VERILATOR_ROOT/share/verilator/include $VERILATOR_ROOT/include
ln -s $VERILATOR_ROOT/share/verilator/bin/verilator_includer $VERILATOR_ROOT/bin/verilator_includer
fi
|