Installation
Linux
Verilator comes as binary package on many Linux distributions. So, this should work:
# apt-get install verilatorOr, on RPM based package managers:
# zypper install verilatorMsys under Windows
You can install with the gcc toolchain on Windows:
pacman -S mingw-w64-x86_64-verilatorIf you want to build it from source, you can follow the method used in the PKGBUILD:
export MSYSTEM_PREFIX='/mingw64'
export MSYSTEM_CHOST='x86_64-w64-mingw32'
cp /usr/include/FlexLexer.h src/
export MSYS2_ARG_CONV_EXCL="-DDEFENV"
autoconf
./configure \
--prefix=${MINGW_PREFIX} \
--build=${MINGW_CHOST} \
--host=${MINGW_CHOST}
makeWhen you have installed Verilator succesfully you should be able to see this output:
Installing SystemC
For building systems with Verilator installing SystemC is a good idea. You can download the package from Accellera SysemC Github repo
Last updated