How To Install verilator on Debian 9

In this tutorial we learn how to install verilator on Debian 9. verilator is fast free Verilog simulator

Introduction

In this tutorial we learn how to install verilator on Debian 9.

What is verilator

verilator is:

Verilator is the fastest free Verilog HDL simulator, and beats many commercial simulators. It compiles synthesizable Verilog (not test-bench code!), plus some PSL, SystemVerilog and Synthesis assertions into C++ or SystemC code. It is designed for large projects where fast simulation performance is of primary concern, and is especially well suited to generate executable models of CPUs for embedded software design teams.

There are three methods to install verilator on Debian 9. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install verilator Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install verilator using apt-get by running the following command:

sudo apt-get -y install verilator

Install verilator Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install verilator using apt by running the following command:

sudo apt -y install verilator

Install verilator Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Debian. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install verilator using aptitude by running the following command:

sudo aptitude -y install verilator

How To Uninstall verilator on Debian 9

To uninstall only the verilator package we can use the following command:

sudo apt-get remove verilator

Uninstall verilator And Its Dependencies

To uninstall verilator and its dependencies that are no longer needed by Debian 9, we can use the command below:

sudo apt-get -y autoremove verilator

Remove verilator Configurations and Data

To remove verilator configuration and data from Debian 9 we can use the following command:

sudo apt-get -y purge verilator

Remove verilator configuration, data, and all of its dependencies

We can use the following command to remove verilator configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge verilator

Dependencies

verilator have the following dependencies:

References

Summary

In this tutorial we learn how to install verilator package on Debian 9 using different package management tools: apt, apt-get and aptitude.