Project

General

Profile

[logo] 
 
Home
News
Activity
About/Contact
Major Tools
  Dinotrace
  Verilator
  Verilog-mode
  Verilog-Perl
Other Tools
  BugVise
  CovVise
  Force-Gate-Sim
  Gspice
  IPC::Locker
  Rsvn
  SVN::S4
  Voneline
  WFH
General Info
  Papers

Installing Verilator

Installation from a Package Distribution

Verilator should run any system with GCC and Perl. It is developed on 64-bit Ubuntu and other users report success on Redhat Linux, OpenSUSE, HPUX, Solaris, and Windows NT under Cygwin (C++ only, no SystemC), and Microsoft Visual C++.

Many Linux Distributions include Verilator, though rarely the most recent release. For example, on Ubuntu, use "apt-get install verilator". RPMs are also available for SuSE and Fedora systems; search for Verilator at PBone.

Building from git

Building from the raw git sources is somewhat more work than using a tarball (below), but makes it easier to change the sources. To build from git:

#sudo apt-get install git make autoconf g++ flex bison   # First time prerequisites
git clone http://git.veripool.org/git/verilator   # Only first time

# Each build:
unsetenv VERILATOR_ROOT  # For csh; ignore error if on bash
unset VERILATOR_ROOT  # For bash
cd verilator
git pull        # Make sure we're up-to-date
git tag         # See what versions exist
#git checkout master      # Use development branch (e.g. recent bug fix)
#git checkout stable      # Use most recent release
#git checkout v{version}  # Switch to specified release version
autoconf        # Create ./configure script
./configure
make
sudo make install
# Now see "man verilator" or online verilator.pdf's for the example tutorials

For other options, including running Verilator without having to install it, see the README in the Verilator kit.

Building from Tarball

First download (sources included)

verilator-3.924.tgz (2MB, Jun 13 2018)
verilator-3.922.tgz (2MB, Mar 17 2018)

Then see the README in the Verilator kit. One build option is the standard GNU method:

#sudo apt-get install make autoconf g++ flex bison   # Prerequisites
unsetenv VERILATOR_ROOT  # For csh; ignore error if on bash
unset VERILATOR_ROOT  # For bash
tar xvzf verilator*.t*gz
cd verilator*
./configure
make
sudo make install
# Now see "man verilator" or online verilator.pdf's for the example tutorials

Running Verilator

To run Verilator, see the example sections in the Manual-verilator.

Note if you did a "make install" above you should not have VERILATOR_ROOT set in your environment; it is built into the executable.