- 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
I also get
fatal error: FlexLexer.h: No such file or directory.The spinalhdl link is dead and I didn't understand the comment about python3. What is the solution?
Edit: It looks like the spinalhdl link has moved to here:
https://spinalhdl.github.io/SpinalDoc-RTD/master/SpinalHDL/Simulation/install/Verilator.html
Here is a copy-paste of their full instructions for installing from source:
I guess the relevant part is to do this after
./configure:Unfortunately,
make teststill fails for me. The only error I can see is this: