- Download and install MSYS2: https://sourceforge.net/projects/msys2/
- Open MSYS2 shell and run
pacman -Syu - After some time you will be prompted to close the MSYS2 shell by clicking the "X" button, which you should do :-)
- Relaunch MSYS2 shell and run
pacman -Su - Install the required packages for Verilator:
> pacman -S git make autoconf gcc flex bison man perl- 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- Test Verilator:
> make test- 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
Since I couldn't get Verilator to build from source, I followed the spinalhdl instructions to install via pacman.
Here's a full copy-paste of their instructions:
I modified the package URL, as I assume the one above is outdated. In other words, I browsed to
http://repo.msys2.org/mingw/x86_64/, searched formingw-w64-x86_64-verilatorand found these matches:I guess 5.024 is the latest version, so I installed Verilator like this:
Edit: It seems like a better option is to just install the latest version like this: