Installing Verilator via WSL - mbits-mirafra/verilator GitHub Wiki

WSL(Ubuntu) Installation

  • Install Windows Subsystem for Linux by running your PowerShell in Administrator mode.
    By default, Ubuntu is the default Linux distribution that will get installed.
wsl --install
  • Reboot your system after Installation
  • After reboot you must enter a username and password for your Ubuntu system when prompted.
    💡Note: You can launch Ubuntu from:
    • By typing Ubuntu in Windows Search.
    • Ctrl+Shift+4 in terminal which opens a new tab running Ubuntu.
    • cmd(Command Prompt) by typing Ubuntu.

Accessing Files

  • The working directory for Linux can be accessed from here:

    Linux > Ubuntu > Home > "your_username"
    💡Note: Right click on "your_username" folder and save it to quick access to make it easier to transfer files to your Linux Working Directory

Before Installing Verilator

⚠️It is a best practice to update and upgrade your OS for common tools and utilities before proceeding. The commands for update and upgrade are:

sudo apt-get update
sudo apt-get upgrade

Verilator Installation

Installing Prerequisites

sudo apt-get install git gcc perl python3 make autoconf g++ flex bison ccache \
libgoogle-perftools-dev numactl perl-doc \
libfl2 \
libfl-dev \
zlib1g zlib1g-dev help2man

Installing Verilator via Git Quick Install

git clone https://github.com/verilator/verilator
cd verilator
autoconf
./configure
make
sudo make install

Installing gtkwave

sudo apt-get install gtkwave
⚠️ **GitHub.com Fallback** ⚠️