How To Install ghdl on Fedora 34
Introduction
In this tutorial we learn how to install ghdl
on Fedora 34.
What is ghdl
GHDL is the open-source analyzer, compiler, simulator and (experimental) synthesizer for VHDL, a Hardware Description Language (HDL). GHDL implements the VHDL language according to the 1987, 1993 and 2002 versions of the IEEE 1076 VHDL standard, and partial for 2008. It compiles VHDL files and creates a binary that simulates (or executes) your design. GHDL can also translate a design into a VHDL 1993 netlist, or it can be plugged into Yosys for open-source synthesis. Since GHDL is a compiler (i.e., it generates object files), you can call functions or procedures written in a foreign language, such as C, C++, Ada95 or Python.
We can use yum
or dnf
to install ghdl
on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install ghdl.
Install ghdl on Fedora 34 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 kB 00:00
Metadata cache created.
After updating yum database, We can install ghdl
using dnf
by running the following command:
sudo dnf -y install ghdl
Install ghdl on Fedora 34 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 kB 00:00
Metadata cache created.
After updating yum database, We can install ghdl
using yum
by running the following command:
sudo yum -y install ghdl
How To Uninstall ghdl on Fedora 34
To uninstall only the ghdl
package we can use the following command:
sudo dnf remove ghdl
ghdl Package Contents on Fedora 34
/usr/bin/ghdl
/usr/include/ghdl/ghdlsynth.h
/usr/include/ghdl/ghdlsynth_gates.h
/usr/include/ghdl/vpi_user.h
/usr/lib/.build-id
/usr/lib/.build-id/60
/usr/lib/.build-id/60/24fe5cfb622aad6e8bf08bc0be2fc780fcfbeb
/usr/lib/.build-id/79
/usr/lib/.build-id/79/8ff6bdb3f1547bf016f7a64572fd2cd7d35cdf
/usr/lib/.build-id/b6
/usr/lib/.build-id/b6/9969a7c9b44c2e0863d0dc3a12319c5454f04a
/usr/lib/.build-id/de
/usr/lib/.build-id/de/eee3708913aca2351082f34d73fb3840c2cba6
/usr/lib64/libghdl-1_0_dev.so
/usr/lib64/libghdlvpi.so
/usr/libexec/gcc
/usr/libexec/gcc/x86_64-fedora_ghdl-linux
/usr/libexec/gcc/x86_64-fedora_ghdl-linux/10
/usr/libexec/gcc/x86_64-fedora_ghdl-linux/10/ghdl1
/usr/share/info/ghdl.info.gz
/usr/share/man/man1/ghdl.1.gz
References
Summary
In this tutorial we learn how to install ghdl
on Fedora 34 using yum and dnf.