forked from ddm/icetools
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathecp5tools.sh
More file actions
42 lines (33 loc) · 1.35 KB
/
ecp5tools.sh
File metadata and controls
42 lines (33 loc) · 1.35 KB
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
#!/usr/bin/env bash
pushd `dirname $0` > /dev/null
DIR=`pwd -P`
popd > /dev/null
UNAME_STR=`uname`
echo "Installing dependencies..."
if [[ "$UNAME_STR" == "Darwin" ]] && hash brew 2>/dev/null; then
brew update && brew install python3 libftdi0 libffi autoconf bison gawk gnu-sed graphviz xdot mercurial
fi
if [[ "$UNAME_STR" == "Linux" ]] && hash apt-get 2>/dev/null; then
sudo apt-get install -y pkg-config build-essential cmake bison autoconf flex gawk tcl-dev libffi-dev git mercurial python python3 python3-dev libfl-dev libboost-dev libboost-filesystem-dev libboost-thread-dev libboost-program-options-dev libboost-python-dev qt5-default libftdi-dev
sudo apt-get install -y libreadline-dev clang graphviz xdot
fi
echo "┌────────────┐"
echo "│ prjtrellis │"
echo "└────────────┘"
$DIR/prjtrellis.sh
echo "┌───────────┐"
echo "│ nextpnr │"
echo "└───────────┘"
$DIR/nextpnr_ecp5.sh
echo "┌───────┐"
echo "│ yosys │"
echo "└───────┘"
$DIR/yosys.sh
echo "┌──────────┐"
echo "│ iverilog │"
echo "└──────────┘"
$DIR/iverilog.sh
echo "┌───────────┐"
echo "│ verilator │"
echo "└───────────┘"
$DIR/verilator.sh