Instructions for setting up your environment to run Chisel locally.
For a minimal setup, you only need to install SBT (the Scala Build Tool), which will automatically fetch the appropriate version of Scala and Chisel based on on your project configuration.
Verilator is installation is required to simulate your Verilog designs.
-
Install Java
sudo apt-get install default-jdk
-
Install sbt according to the instructions from sbt download.
-
Install Verilator. We currently recommend Verilator version 4.016. Follow these instructions to compile it from source.
-
Install prerequisites (if not installed already):
sudo apt-get install git make autoconf g++ flex bison
-
Clone the Verilator repository:
git clone http://git.veripool.org/git/verilator
-
In the Verilator repository directory, check out a known good version:
git pull git checkout v4.016
-
In the Verilator repository directory, build and install:
unset VERILATOR_ROOT # For bash, unsetenv for csh autoconf # Create ./configure script ./configure make sudo make install
-
- Install Verilator and SBT
yaourt -S sbt verilator
Verilator does not appear to have native Windows support. However, Verilator works in WSL or in other Linux-compatible environments like Cygwin.
There are no issues with generating Verilog from Chisel, which can be pushed to FPGA or ASIC tools.
- Install Verilator and SBT
brew install sbt verilator