Musings, Courses, & Projects by Rob Marano

Using Verilog Locally On Your Computer

<- back to notes ; <- back to syllabus


Instead of using EDA Playground or 8bitWorkshop IDE

from MIT course site

Icarus Verilog (or iVerilog for short) is a open-source Verilog simulation and synthesis tool we use for making fast simulations of Verilog projects. iVerilog works on all three families of operating systems. Details for different operating systems are provided on this site. A few notes from our experience:

Windows and Icarus Verilog & GTKWave

If you’re on Windows, it’s best to just use the installer. There’s a link to the installer page at the bottom of the official docs, or you can grab it here. Make sure to check the box to add the executable folders to the path when you install. There’s also an option in the installer to also install GTKWave, feel free to check that too.

We’ll also need to install GTKWave as well. This is a good lightweight waveform viewer, used for displaying simulation output. Detailed install instructions can be found here, and shouldn’t need any significant changes, but we’ve found:

If you’re on Windows and you already installed GTKWave at the same time you installed iVerilog, there’s no need to install it again.

Install using Software Packager Chocolately

This is the easiest and quickest.

Get source code, compile and install on your Windows PC

MacOS and Icarus Verilog

If you’re on Mac, just install it using Homebrew.

brew install icarus-verilog

That seems to be the least painful. macOS people will probably have the easiest time installing from homebrew with brew install --cask gtkwave. You might need to go the General tab under your Security and Privacy settings and manually allow GTKWave to run.

Linux and Icarus Verilog & GTKwave

If you’re using Debian/Ubuntu Linux, run sudo apt update && sudo apt install -y iverilog. To install GTKWave, apt install gtkwave.