Skip to main content

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.52.0

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

Source distribution (sdist)

Source distribution for verilator-dspsim 5.52.0
File Size Uploaded
verilator_dspsim-5.52.0.tar.gz 15.2 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for verilator-dspsim 5.52.0
File Interpreter ABI Platform
verilator_dspsim-5.52.0-cp312-abi3-win_amd64.whl CPython 3.12 abi3 Windows x86-64 Details
verilator_dspsim-5.52.0-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: 11.0 MB

Release files / verilator_dspsim-5.52.0.tar.gz

Download URL verilator_dspsim-5.52.0.tar.gz
Size 15.2 kB
Tags Source
SHA-256 checksum
How to use checksums
270342533dc18142a56b9341db631b1b7d020f00aa62ed51172e071b706e8462
BLAKE2b-256 checksum
How to use checksums
513a2aeb6a78827a52dee99698441e4397efb0270d799eaf2129874abda59895
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 12, 2026.

Transparency log

Release files / verilator_dspsim-5.52.0-cp312-abi3-win_amd64.whl

Download URL verilator_dspsim-5.52.0-cp312-abi3-win_amd64.whl
Size 5.1 MB
Tags CPython 3.12 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
2188dc2eb0df07c74cdf40b029fc8155a0a099a793abc7d51a26ab09aabb9a28
BLAKE2b-256 checksum
How to use checksums
11316d48fb561c7f48a1d5cadcaac4f6fa42474a69dc95226f47ea5980d2a3cd
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 12, 2026.

Transparency log

Release files / verilator_dspsim-5.52.0-cp312-abi3-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl

Download URL verilator_dspsim-5.52.0-cp312-abi3-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Size 5.8 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
28c314e1f5ae06fa5a60ffccfc4c0889880de9f241f71858b84e79494cbca6dc
BLAKE2b-256 checksum
How to use checksums
62e9518c4bf96fd1bf0bfe7cb2f8121b6d651e5aae2c65bd2816abdd560c6e92
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 12, 2026.

Transparency log

Release history Release notifications | RSS feed

5.52.2

5 release files

This release

5.52.0 This release

3 release files

5.50.1

3 release files

5.42.3

3 release files

5.42.0

3 release files

5.30.9

3 release files

5.30.7

2 release files

5.30.5

2 release files

5.30.4

2 release files

5.30.3

2 release files

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