Skip to main content

'Test' workflow Status

This directory contains the sources of GHDL, the open-source analyzer, compiler, simulator and (experimental) synthesizer for VHDL, a Hardware Description Language (HDL). GHDL is not an interpreter: it allows you to analyse and elaborate sources for generating machine code from your design. Native program execution is the only way for high-speed simulation.

Table of Contents

Main features

Full support for the 1987, 1993, 2002 versions of the IEEE 1076 VHDL standard, and partial for the 2008 and 2019 revisions.

Partial support of PSL.

By using a code generator (LLVM, GCC or, x86_64/i386 only, a built-in one), it is much faster than any interpreted simulator. It can handle very large designs, such as leon3/grlib.

GHDL runs on GNU/Linux, Windows and macOS; on x86, x86_64, armv6/armv7/aarch32, aarch64 and ppc64. You can freely download nightly assets, use OCI images (aka Docker/Podman containers), or try building it on your own machine (see 'Getting GHDL' below).

Can write waveforms to GHW, VCD or FST files. Combined with a GUI-based waveform viewer and a good text editor, GHDL is a very powerful tool for writing, testing and simulating your code.

Co-simulation with foreign applications is supported through Verilog Procedural Interface (VPI) and/or VHPIDIRECT. See ghdl.github.io/ghdl-cosim.

Can synthesize arbitrarily complex VHDL designs into a VHDL 1993 netlist, which can be implicitly or explicitly used in open-source or vendor synthesis frameworks.

GHDL is free software:

  • GNU General Public License 2
  • Creative Commons Attribution-ShareAlike available at ghdl.github.io/ghdl.
  • Some of the runtime libraries, are under different terms; see the individual source files for details.

Third-Party Integrations

GHDL is designed to integrate seamlessly with several popular open-source tools, allowing users to leverage additional capabilities for both simulation and synthesis workflows.

One of the key integrations is with Yosys, a leading open-source synthesis tool. Using the ghdl-yosys-plugin, GHDL can be used as a front-end for Yosys, enabling users to synthesize VHDL designs directly. This makes it possible to move from simulation to synthesis without leaving the GHDL environment, streamlining the design flow.

GHDL also integrates with cocotb, a coroutine-based co-simulation framework that allows Python-driven testing of VHDL designs. This is particularly useful for writing complex testbenches in Python and interacting with VHDL simulations in real-time.

Ngspice supports device models with behaviour defined by VHDL code in mixed-signal simulation, using GHDL.

For verification, GHDL supports integration with frameworks such as OSVVM, UVVM, and VUnit, providing users with a full suite of tools for verifying VHDL designs. These verification libraries enable advanced testing techniques like constrained random verification, functional coverage, and automated regression testing.

Together, these third-party integrations make GHDL a comprehensive tool for digital design, simulation, verification, and synthesis, suitable for both individual developers and large teams.

Getting GHDL

  • Pre-built packages:

    • GHDL is available through the default package manager on most major Linux distributions (Debian/Ubuntu, Fedora, Arch Linux, Guix), as well as MSYS2 and WinGet for Windows. You can install GHDL directly through these package managers, making the installation process straightforward for most users.
    • After each successful CI run, nightly tarballs/zipfiles for Ubuntu and Windows (MSYS2) are updated. These nightly builds provide access to the latest features and updates, which may not yet be available in the package manager repositories.
    • If you need to set up GHDL in a Continuous Integration (CI) pipeline, the setup-ghdl-ci GitHub Action allows you to configure GHDL with minimal effort. It provides a simple and efficient way to integrate GHDL into your CI workflows with just a few lines of configuration.
  • Using Docker:
    For those who prefer containerization, GHDL is also available as Docker images. This is especially useful if you want to avoid managing dependencies manually or need a consistent environment across different machines. You can use containers from either ghdl/docker or hdl/containers, both of which offer pre-configured environments with GHDL installed. Running GHDL inside a Docker container ensures that your setup remains isolated from your host system, making it easier to maintain and replicate across different platforms. This option is ideal for users looking for a streamlined, hassle-free installation.

  • Building GHDL from Source:
    Advanced users can opt to build GHDL from source, allowing for customization and access to experimental features. Building from source can also be useful for platforms or configurations not covered by pre-built packages. The Building GHDL guide provides detailed instructions on how to compile GHDL, including selecting your preferred backend (LLVM, GCC, or mcode). This process gives users full control over their setup and allows them to tailor GHDL to their specific needs.

  • Platform-Specific Notes:

    • Linux: GHDL is supported across a wide range of Linux distributions. It can be installed using common package managers like apt, dnf, pacman or guix, depending on the distribution. Installation is typically straightforward, and pre-built packages are updated regularly.
    • Windows: For Windows users, GHDL can be installed through MSYS2, a Unix-like environment for Windows. This provides a similar experience to using GHDL on Linux, and MSYS2 ensures that dependencies are properly managed. The MSYS2 documentation offers detailed guidance on setting up the environment. Pre-build 64-bit binaries are also available on WinGet.
    • macOS: On macOS, GHDL can be easily installed using Homebrew, a popular package manager. This allows macOS users to get started with GHDL without needing to build from source. Alternatively, for more customization, macOS users can follow the build-from-source instructions.

Benefits of Using GHDL

GHDL offers several advantages that make it a powerful tool for VHDL simulation and synthesis. One of the key benefits is its native code generation, which allows for faster simulation times compared to interpreted simulators. This performance boost is particularly noticeable in large and complex designs, where simulation speed can be a critical factor.

In addition to performance, GHDL is highly versatile. It supports multiple revisions of the VHDL standard, including the 1987, 1993, 2002, 2008, and 2019 versions. This wide range of compatibility makes GHDL suitable for legacy projects as well as cutting-edge designs. Whether you are working with older VHDL standards or the most recent revisions, GHDL provides the flexibility to handle them all.

Another important benefit is GHDL’s cross-platform support. It runs on major operating systems like Linux, Windows, and macOS, and supports various architectures such as x86, x86_64, ARM, and PPC64. This allows developers to use GHDL on a variety of hardware configurations, making it accessible to a broad range of users.

GHDL’s integration with popular open-source tools such as Yosys for synthesis and cocotb for verification further enhances its utility. These integrations allow users to extend GHDL’s capabilities beyond simulation, making it a comprehensive solution for VHDL design, verification, and synthesis workflows.

Contributing

GHDL welcomes contributions from the community. Whether you're interested in improving documentation, fixing bugs, or adding new features, there are many ways to get involved. Contributions are a great way to help improve the tool and to learn more about how GHDL works internally.

Here’s how you can start contributing:

  1. Find an issue to work on: Check out the open issues on the GitHub repository. Issues are often labeled by difficulty or type (e.g., "good first issue" for beginners). You can also propose your own ideas or enhancements.

  2. Fork and clone the repository: Once you’ve chosen an issue to work on, fork the GHDL repository to your own GitHub account. Clone the forked repository to your local machine to make changes.

  3. Create a new branch: It’s good practice to create a new branch for each issue or feature you’re working on. This helps keep your changes isolated and makes it easier for the maintainers to review your work.

  4. Submit a pull request: After making your changes and committing them to your branch, submit a pull request (PR) to the main GHDL repository. Be sure to include a clear description of what your PR addresses and any relevant context or testing steps.

For more detailed guidelines, refer to our Contributing Guide (when created), which includes coding standards, testing instructions, and best practices for making contributions.

Project structure

Regular users

  • The CLI tool allows analysis, compilation, simulation and (experimental) synthesis for generating VHDL 1993 netlists. It is written in Ada and C, and three different backends are supported, which are sometimes named ghdl_mcode, ghdl_gcc and ghdl_llvm. This is the entrypoint for most users.

  • [experimental] ghdl-yosys-plugin is the integration of GHDL as a frontend plugin module for Yosys Open SYnthesis Suite, which uses the libghdl library (built with --enable-synth).

  • ghdl-ls (part of pyGHDL, see below) implements Language Server Protocol (LSP) in Python. VHDL analysis features provided by GHDL are accessed through libghdl. This can be integrated in text editors or IDES, such as, Vim, Emacs, Atom or Visual Studio Code. See ghdl/ghdl-language-server.

Advanced users

  • libghdl is a shared library that includes a subset of the regular features plus some features to be used by extension tools (i.e. pyGHDL). This is built along with the regular GHDL and it supports both non-synthesisable and synthesisable code. Nonetheless, this is not for users, but for tools built on top of the core. When configured along with --enable-synth, this shared library includes synthesis features too.

  • pyGHDL is a Python interface to libghdl. Currently, it is only used by ghdl-ls; however, it can be useful for advanced users who are willing to build Python utilities based on GHDL. There is work in progress for binding libghdl to pyVHDLModel (see pyGHDL.dom).

Codecov - Branch Coverage Codacy - Quality Codacy - Coverage

  • [deprecated] ghdl_simul, which supports interpreted simulation, is available for historical reasons and for development/debugging only. It is very slow compared to the 'regular' compiled simulation and not all the features are supported.

Metadata

Release files for pyGHDL 6.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for pyGHDL 6.1.0
File Actions
pyghdl-6.1.0-cp315-cp315-win_amd64.whl CPython 3.15 CPython 3.15 Windows x86-64 Details for pyghdl-6.1.0-cp315-cp315-win_amd64.whl
pyghdl-6.1.0-cp315-cp315-manylinux_2_38_x86_64.whl CPython 3.15 CPython 3.15 Linux glibc 2.38+ x86-64 Details for pyghdl-6.1.0-cp315-cp315-manylinux_2_38_x86_64.whl
pyghdl-6.1.0-cp314-cp314-win_amd64.whl CPython 3.14 CPython 3.14 Windows x86-64 Details for pyghdl-6.1.0-cp314-cp314-win_amd64.whl
pyghdl-6.1.0-cp314-cp314-manylinux_2_38_x86_64.whl CPython 3.14 CPython 3.14 Linux glibc 2.38+ x86-64 Details for pyghdl-6.1.0-cp314-cp314-manylinux_2_38_x86_64.whl
pyghdl-6.1.0-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details for pyghdl-6.1.0-cp313-cp313-win_amd64.whl
pyghdl-6.1.0-cp313-cp313-manylinux_2_38_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.38+ x86-64 Details for pyghdl-6.1.0-cp313-cp313-manylinux_2_38_x86_64.whl
pyghdl-6.1.0-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details for pyghdl-6.1.0-cp312-cp312-win_amd64.whl
pyghdl-6.1.0-cp312-cp312-manylinux_2_38_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.38+ x86-64 Details for pyghdl-6.1.0-cp312-cp312-manylinux_2_38_x86_64.whl
pyghdl-6.1.0-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details for pyghdl-6.1.0-cp311-cp311-win_amd64.whl
pyghdl-6.1.0-cp311-cp311-manylinux_2_38_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.38+ x86-64 Details for pyghdl-6.1.0-cp311-cp311-manylinux_2_38_x86_64.whl

Total release size: 79.3 MB

Release files / pyghdl-6.1.0-cp315-cp315-win_amd64.whl

Download URL pyghdl-6.1.0-cp315-cp315-win_amd64.whl
Size 8.2 MB
Tags CPython 3.15 Windows x86-64
SHA-256 checksum
How to use checksums
7f13b259135e68263092f72000b0883a13ffd9deafba91bc0f42079f5c2f63a5
BLAKE2b-256 checksum
How to use checksums
f3c524ee12529061821cc43dec047317843058bc7276c5937aa40b6205669ca4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

Release files / pyghdl-6.1.0-cp315-cp315-manylinux_2_38_x86_64.whl

Download URL pyghdl-6.1.0-cp315-cp315-manylinux_2_38_x86_64.whl
Size 7.8 MB
Tags CPython 3.15 Linux glibc 2.38+ x86-64
SHA-256 checksum
How to use checksums
3f45791847d3a02cca12623a1fff161d1224aefaadd2460ac22e5f36bd41d756
BLAKE2b-256 checksum
How to use checksums
18d2a921da59a3fcf5b11046fb02fc330987786f605ea0b7dc45161e9c401ab0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

Release files / pyghdl-6.1.0-cp314-cp314-win_amd64.whl

Download URL pyghdl-6.1.0-cp314-cp314-win_amd64.whl
Size 8.2 MB
Tags CPython 3.14 Windows x86-64
SHA-256 checksum
How to use checksums
05fe75df4560fd2ed8dd1883088ad3224d2742b59a726d1c3b3d22387fd65f42
BLAKE2b-256 checksum
How to use checksums
51f8dab912f590ac1e89b09e1eb1b93c305f4de3c9c15e3d7e4bd3b8b53463b5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

Release files / pyghdl-6.1.0-cp314-cp314-manylinux_2_38_x86_64.whl

Download URL pyghdl-6.1.0-cp314-cp314-manylinux_2_38_x86_64.whl
Size 7.8 MB
Tags CPython 3.14 Linux glibc 2.38+ x86-64
SHA-256 checksum
How to use checksums
94c19a11b3ad06b10a5fd48db0655a97ce49cd8639e181d0837d7c09980249fb
BLAKE2b-256 checksum
How to use checksums
3c55c5b90de1c3473b263ec3c2a0097c1b64914b576ccda6aa0e32c53f59c1c9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

Release files / pyghdl-6.1.0-cp313-cp313-win_amd64.whl

Download URL pyghdl-6.1.0-cp313-cp313-win_amd64.whl
Size 8.0 MB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
d7af6117cfc3b529e354acb8b4cd454306bb18251b8f2732f24952ba936ae89a
BLAKE2b-256 checksum
How to use checksums
ce5814baa6b29218868a8aeeef8aab7a44fd14421c9f636ddff93afbe09a862d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

Release files / pyghdl-6.1.0-cp313-cp313-manylinux_2_38_x86_64.whl

Download URL pyghdl-6.1.0-cp313-cp313-manylinux_2_38_x86_64.whl
Size 7.8 MB
Tags CPython 3.13 Linux glibc 2.38+ x86-64
SHA-256 checksum
How to use checksums
5ed7b8b6af6cf31f909b3265bcc4f5c36b5d601d904388016cf4a086d48ba1e2
BLAKE2b-256 checksum
How to use checksums
56e49037886ca99c5de1f055ee14ed4d7cf06df68eda14f94a8a0e50593cec8f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

Release files / pyghdl-6.1.0-cp312-cp312-win_amd64.whl

Download URL pyghdl-6.1.0-cp312-cp312-win_amd64.whl
Size 8.0 MB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
fcb46e8898035a1405aa9694ce55b9ef10e3540fa7ce3d8d59776a459c6a7787
BLAKE2b-256 checksum
How to use checksums
f23da27e5688d5de5209ce104843ca99599a996d4f758fe14a15280cf7b851bb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

Release files / pyghdl-6.1.0-cp312-cp312-manylinux_2_38_x86_64.whl

Download URL pyghdl-6.1.0-cp312-cp312-manylinux_2_38_x86_64.whl
Size 7.8 MB
Tags CPython 3.12 Linux glibc 2.38+ x86-64
SHA-256 checksum
How to use checksums
6086b7d56fb9241ba4d034a729c687d964b21698db5fd20b775e43d6ccceafea
BLAKE2b-256 checksum
How to use checksums
4c90285d152f2e5ff6a36ba65bb0e7a7320b95f33fdcf7fed0ee7ba96a96bb0f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

Release files / pyghdl-6.1.0-cp311-cp311-win_amd64.whl

Download URL pyghdl-6.1.0-cp311-cp311-win_amd64.whl
Size 8.0 MB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
8e067ca93978512706447c60b4ef63c6e0f7fabd2cecb7fab5499bfbda4c4e9c
BLAKE2b-256 checksum
How to use checksums
09767fdfb76ca836ffce269828fcb70eb5d5a9cf79d3bbff5957ca7200a505ed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

Release files / pyghdl-6.1.0-cp311-cp311-manylinux_2_38_x86_64.whl

Download URL pyghdl-6.1.0-cp311-cp311-manylinux_2_38_x86_64.whl
Size 7.8 MB
Tags CPython 3.11 Linux glibc 2.38+ x86-64
SHA-256 checksum
How to use checksums
3e4ed1506a34138a8e9534e52be718abdb493cb76d5c549560522c32025b3c62
BLAKE2b-256 checksum
How to use checksums
329792e4329cc9bd7e6cf42ab3bf49f6cf228f5c345ee09f6bcdc3ecce025e47
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

Security for pyGHDL 6.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 10 files in this release have been uploaded with provenance metadata.

Select from 10 files

Attestation for pyghdl-6.1.0-cp315-cp315-win_amd64.whl

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page