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.exe" into the python environments scripts/bin folder, so it can be ran and can easily be found by 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
Verilator requires that the operating system used to build verilator is the same as the operating system used to run verilator, so wheels built on windows should work well.
Otherwise, you can build from source. This requires having a compatible compiler installed, and any dependencies. Read the verilator user manual for more information.
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 install
pip install --no-build-isolation -Cbuild-dir=build --config-settings=editable.rebuild=true -v -e .
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? (I don't have a Mac)
-
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.50.1
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.50.1.tar.gz | 14.7 kB | Details |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| verilator_dspsim-5.50.1-cp312-abi3-win_amd64.whl | CPython 3.12 | abi3 | Windows x86-64 | Details |
| verilator_dspsim-5.50.1-cp312-abi3-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl | CPython 3.12 | abi3 | Linux glibc 2.28+ x86-64, Linux glibc 2.24+ x86-64 | Details |
Total release size: 10.8 MB
Release files / verilator_dspsim-5.50.1.tar.gz
| Download URL | verilator_dspsim-5.50.1.tar.gz |
|---|---|
| Size | 14.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f8afdd0e139fb661165ce014b672f4cb6278f926b18dec271699bc2bdd89748b
|
|
BLAKE2b-256 checksum How to use checksums |
0399b62008ee9985a5c1d58069917fbb54bacdf0751e39e435f936bfaefc06c7
|
| 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 Sep 11, 2026.
Transparency logRelease files / verilator_dspsim-5.50.1-cp312-abi3-win_amd64.whl
| Download URL | verilator_dspsim-5.50.1-cp312-abi3-win_amd64.whl |
|---|---|
| Size | 5.1 MB |
| Tags | CPython 3.12 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
4d5eb0271af1b3eeb5eb15a1f66fd791cb87d2a0b38a20bbdbb0a37275bbee8c
|
|
BLAKE2b-256 checksum How to use checksums |
b37895443a8a2ec1abc0609b5a45e197558419b604ccf2e5c191559543701e82
|
| 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 Sep 11, 2026.
Transparency logRelease files / verilator_dspsim-5.50.1-cp312-abi3-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
| Download URL | verilator_dspsim-5.50.1-cp312-abi3-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 5.7 MB |
| Tags | CPython 3.12 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
405c71369a5772bef9821e4ebd2ed80b79f92458f0375f7c5d7235abea934329
|
|
BLAKE2b-256 checksum How to use checksums |
f02b95b4c82b6176779ee9447b9f9481170bc0f7e612bfacd3382de2b2ea4e1f
|
| 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 Sep 11, 2026.
Transparency log