Installation SpinalHDL#

Linux#

For Linux there is also a complete spinal-install.bash script available.

chmod +x spinal-install.bash
./spinal-install.bash

Base Tools Linux#

1sudo apt-get install -y git make autoconf g++ flex bison
2sudo apt-get install -y openjdk-8-jdk
3sudo apt-get install -y scala
4echo "deb https://dl.bintray.com/sbt/debian /" | sudo tee -a /etc/apt/sources.list.d/sbt.list
5sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 642AC823
6sudo apt-get update -y
7sudo apt-get install -y sbt

IDE Linux#

sudo snap install intellij-idea-community --classic

Simulation Linux#

 1cd ~
 2git clone http://git.veripool.org/git/verilator
 3unset VERILATOR_ROOT
 4cd verilator
 5git pull        # Make sure we're up-to-date
 6git checkout verilator_3_916
 7autoconf        # Create ./configure script
 8./configure
 9make -j$(nproc)
10sudo make install
11sudo apt-get install -y gtkwave

Hardware Debug Tools Linux#

sudo apt-get install -y openocd

Optional Dev Tools Linux#

 1echo "Install default tools"
 2sudo apt-get install -y zsh
 3sudo chsh -s /bin/zsh $USER
 4cd ~/Downloads
 5sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
 6
 7sudo apt-get install -y yakuake krusader
 8
 9wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -
10sudo apt-get install apt-transport-https
11echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list
12sudo apt-get update
13sudo apt-get install -y sublime-text sublime-merge
14
15sudo add-apt-repository ppa:christian-boxdoerfer/fsearch-daily
16sudo apt update
17sudo apt-get install -y fsearch-trunk

Windows#

Base Tools Windows#

IDE Windows#

  • Install IntelliJ IDEA
    • Within IntelliJ install Scala Plugin

    • Remove settings for Code Checking

Simulation Windows#

  • Install MSYS2 64bit

  • Install verilator from minGW packet manager

    Verilator Installation#
    1pacman -Syuu
    2
    3# Close the MSYS2 shell once you're asked to
    4pacman -Syuu
    5pacman -S --needed base-devel mingw-w64-x86_64-toolchain \
    6              git flex\
    7              mingw-w64-x86_64-cmake
    8
    9pacman -S mingw-w64-x86_64-verilator
    
  • ADD MSYS2 C:\msys64\usr\bin;C:\msys64\mingw64\bin to your Environment Variable Path.

Hardware Debug Tools Windows#

  • Install OpenOCB for JTAG debugging.

SpinalHDL Installation