Skip to content

Instantly share code, notes, and snippets.

@mistune
Forked from sgherbst/notes.md
Last active December 23, 2022 10:00
Show Gist options
  • Select an option

  • Save mistune/be4fa863e33614ced2ccc4ed5dbb99ee to your computer and use it in GitHub Desktop.

Select an option

Save mistune/be4fa863e33614ced2ccc4ed5dbb99ee to your computer and use it in GitHub Desktop.
Installing Verilator on Windows 10 using a fresh MSYS2 install
  1. Download and install MSYS2: https://sourceforge.net/projects/msys2/
  2. Open MSYS2 shell and run pacman -Syu
  3. After some time you will be prompted to close the MSYS2 shell by clicking the "X" button, which you should do :-)
  4. Relaunch MSYS2 shell and run pacman -Su
  5. Install the required packages for Verilator:
> pacman -S git make autoconf gcc flex bison man perl python3
  1. Clone the Verilator source and build the latest stable release:
> git clone http://git.veripool.org/git/verilator
> unset VERILATOR_ROOT
> cd verilator
> git checkout stable
> autoconf
> ./configure
> make
  1. Test Verilator:
> make test
  1. If the tests pass, install Verilator. Note that sudo is not used here since this is MSYS2, and that the PATH variable is updated so that the installer can find pod2man:
> PATH="/usr/bin/core_perl:${PATH}"
> make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment