De Kamiel

Offered by: ZirconfleX

http://www.zirconflex.be

Install and use GHDL and GtkWave pdf

GHDL

GHDL is an open-source simulator for the VHDL hardware language. GHDL is not an interpreter; it allows you to analyze and elaborate sources to generate machine code from your design. Native program execution is the only way for high speed simulation.
Features as given on the official GHDL Github page.

GtkWave

GTKWave is a fully featured GTK+ based waveform viewer for Unix, Win32, and Mac OSX which reads LXT, LXT2, VZT, FST, and GHW files as well as standard Verilog VCD/EVCD files and allows their viewing.

Get the necessary programs and tools

This is a guide to install both tools on Linux-Mint_20.4 or Ubuntu_20.04 and possibly coming releases of Linux-Mint and Ubuntu. Download GHDL and GtkWave and download tools and programs necessary to install and run both tools.

GHDL:

GtkWave

Install the tools

Install GNAT

Install LLVM

Install GHDL

In the assumption that GNU-ADA and LLVM are installed and the downloaded ghdl-master.zip file is uncompressed in /Downloads/Ghdl/ghdl-master , do following to install GHDL.

Install GHDL vendor libraries

The GHDL simulator tool is installed on the system but only usable for generic VHDL simulations. The guess is that GHDL has been installed for simulations using a specific FPGA vendor. GHDL does not contain contains libraries for FPGA or other device vendors but contains scripts allowing to easily compile and install vendor supplied libraries. There are ready made scripts available for Altera/Intel, Lattice, Xilinx, OSVVM and UVVM. These scripts can be found in /opt/Ghdl/lib/ghdl/vendors.

Xilinx

Lets use the script to compile and install libraries for Xilinx components using the Vivado tools.
Remark: Be sure to have the Xilinx Vivado tools installed on your system! If not, install these tools first.

Remark: The above described process fails when the target directory already exist! In other words: when DestinationDirectories[XilinxVivado] gets a path to a already existing directory (with or without content) the library compile process mentions at the end of it's run "Compiling Xilinx Vivado libraries [FAILED]"

UVVM

A second example of VHDL simulation library is the Universal VHDL Verification Methodology (UVVM) library that can be downloaded here . UVVM Utility Library is tool and library independent, but it must be compiled with VHDL 2008.

Remark:

GtkWave

This is a similar install procedure as for GHDL, do following:

The end

Both tools are installed.
Under Linux/Ubuntu opening a terminal and typing: The tools are installed and functional.

Tools Documentation

GHDL
GtkWave