- 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
Not sure but you may want to check out https://spinalhdl.github.io/SpinalDoc-RTD/SpinalHDL/Simulation/install.html. It looks like they had to copy in the FlexLexer header.