Verilator Python
This python package contains a pre-built installation of verilator, and a python wrapper to run verilator. It should function exactly the same as if you installed verilator through normal means.
Installing this python package will install "verilator-dspsim" into the python environments scripts/bin folder, which runs verilator with the same arguments. It can also be run with "python -m verilator". The verilator installation is placed in site-packages/verilator, where it can be found by find_package(verilator) in CMake.
The main goal of this project is to simplify distributing verilator and using it within a python application.
This project is not affiliated with Verilator.
Installation
Pre-built wheels are available for Windows, Linux (manylinux) and macOS. Each wheel works with any supported python version.
Otherwise, you can build from source. This requires having a compatible compiler installed, and any dependencies. Read the verilator user manual for more information.
On Windows, verilator is built with its CMake build. On Linux and macOS, CMake is only used to run verilator's supported autoconf/configure/make build, so autoconf, make, flex, bison, perl and help2man are required. See docs/BuildProcess.md for details.
Install Options
pypi.org
pip install verilator-dspsim
from source
pip install .
cached build directory
pip install --no-build-isolation -Cbuild-dir=build -v .
Editable installs are not supported.
Example Project
The example project "example" in the root of this repository uses scikit-build-core, nanobind, and verilator to build a simple verilator simulation wrapped in a python package.
You will need to have am appropriate compiler installed. Windows: MSVC, Linux: gcc, Mac: clang
-
Install the verilator package from pypi.org, or from source.
-
Build and install the example python extension
-
Run the example
pip install verilator-dspsim
pip install ./example
python -c "import example;example.run_simulation()"
Metadata
Release files for verilator-dspsim 5.52.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| verilator_dspsim-5.52.2.tar.gz | 22.0 kB | Details |
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| verilator_dspsim-5.52.2-py3-none-win_amd64.whl | Python 3 | none | Windows x86-64 | Details |
| verilator_dspsim-5.52.2-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl | Python 3 | none | Linux glibc 2.17+ x86-64, Linux glibc 2.28+ x86-64 | Details |
| verilator_dspsim-5.52.2-py3-none-macosx_11_0_arm64.whl | Python 3 | none | macOS 11.0+ ARM64 | Details |
| verilator_dspsim-5.52.2-py3-none-macosx_10_13_x86_64.whl | Python 3 | none | macOS 10.13+ x86-64 | Details |
Total release size: 22.3 MB
Release files / verilator_dspsim-5.52.2.tar.gz
| Download URL | verilator_dspsim-5.52.2.tar.gz |
|---|---|
| Size | 22.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
91403033211b35d9457aae4ff1309e96b78eb7821898aaba7cba71bf52dcb74b
|
|
BLAKE2b-256 checksum How to use checksums |
64993b9f9ff991233cd2b1a3b49f00aaa948ed3e0af8477b37a2e81b5d6667ba
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 10, 2026.
Transparency logRelease files / verilator_dspsim-5.52.2-py3-none-win_amd64.whl
| Download URL | verilator_dspsim-5.52.2-py3-none-win_amd64.whl |
|---|---|
| Size | 5.1 MB |
| Tags | Python 3 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
061dc28b9be1fed5b4f078ed9adf36e6b7e76e58677836cc72c6007bce73121b
|
|
BLAKE2b-256 checksum How to use checksums |
58c29786867ef119992fb036ab7cac7d9d5e80ab59d732c2cb9e4e724810c423
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 10, 2026.
Transparency logRelease files / verilator_dspsim-5.52.2-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
| Download URL | verilator_dspsim-5.52.2-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 7.4 MB |
| Tags | Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
924272470e44a8e5583e9ddfb527b30555cd4be5cdd15cfb060b9be1f5348fb7
|
|
BLAKE2b-256 checksum How to use checksums |
fba8dd20d01bb0e80948468fc4be14a948db4270f5054850c222dfeffe016d3f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 10, 2026.
Transparency logRelease files / verilator_dspsim-5.52.2-py3-none-macosx_11_0_arm64.whl
| Download URL | verilator_dspsim-5.52.2-py3-none-macosx_11_0_arm64.whl |
|---|---|
| Size | 4.8 MB |
| Tags | Python 3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
f423a9abaa548bf3b7508bfe3fd4954231f334ae34d0f7d4ceeb128b9d82d27d
|
|
BLAKE2b-256 checksum How to use checksums |
9af948f5608aa398dee6f8fbce22d42ba147e933331941d188805f9eed298271
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 10, 2026.
Transparency logRelease files / verilator_dspsim-5.52.2-py3-none-macosx_10_13_x86_64.whl
| Download URL | verilator_dspsim-5.52.2-py3-none-macosx_10_13_x86_64.whl |
|---|---|
| Size | 5.1 MB |
| Tags | Python 3 macOS 10.13+ x86-64 |
|
SHA-256 checksum How to use checksums |
45f7aae808484a288fb2febd2957a2934cc98f04ed2bdc0e6cf954a33bf6c26e
|
|
BLAKE2b-256 checksum How to use checksums |
ae3de0fbbb5c0ffe4e3d853c5d506367d54a1f800dfc14dc1f331ba09e164a02
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 10, 2026.
Transparency log