- 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: