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()"

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

verilator_dspsim-5.50.0.tar.gz (12.2 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

verilator_dspsim-5.50.0-cp312-abi3-win_amd64.whl (5.1 MB view details)

Uploaded CPython 3.12+Windows x86-64

verilator_dspsim-5.50.0-cp312-abi3-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (5.8 MB view details)

Uploaded CPython 3.12+manylinux: glibc 2.24+ x86-64manylinux: glibc 2.28+ x86-64

File details

Details for the file verilator_dspsim-5.50.0.tar.gz.

File metadata

  • Download URL: verilator_dspsim-5.50.0.tar.gz
  • Upload date:
  • Size: 12.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for verilator_dspsim-5.50.0.tar.gz
Algorithm Hash digest
SHA256 d7483f42a1e0599ee9004fc158577f3949a3df88dae63f0e1c15be2afd5a3199
MD5 78cd3c337913be9b6390031e3609785a
BLAKE2b-256 f84905659aa745e14677a86b7ed8f7b435f75d25b6b55ac871dea2b9679e6b3e

See more details on using hashes here.

Provenance

The following attestation bundles were made for verilator_dspsim-5.50.0.tar.gz:

Publisher: build_wheels.yaml on fsodari/verilator-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file verilator_dspsim-5.50.0-cp312-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for verilator_dspsim-5.50.0-cp312-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 c49618cfbaa976356738a3d9319d3a77e7fbed60a97ea8e6b3b2d2c470a733d8
MD5 113015a382dd71a0e756d97dd5f9e9ed
BLAKE2b-256 87cc6e9c61fc8a10a7f657e682ae8fa5ec7b34392d9176ec66be07c71faecf0a

See more details on using hashes here.

Provenance

The following attestation bundles were made for verilator_dspsim-5.50.0-cp312-abi3-win_amd64.whl:

Publisher: build_wheels.yaml on fsodari/verilator-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file verilator_dspsim-5.50.0-cp312-abi3-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for verilator_dspsim-5.50.0-cp312-abi3-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 caa854aebfe08d0cd01f4fff6ac9f3fa810370b1f98d3473407d1471fd2cb66e
MD5 6ff0034d076f5b7d4e22fe501940004a
BLAKE2b-256 1439ed5d0ab6b6e1ada89aef8474e61a9ccc3406d95e449e6d60f6a5f2aff6f3

See more details on using hashes here.

Provenance

The following attestation bundles were made for verilator_dspsim-5.50.0-cp312-abi3-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl:

Publisher: build_wheels.yaml on fsodari/verilator-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

5.50.0 This release

3 files

5.42.3

3 files

5.42.0

3 files

5.30.9

3 files

5.30.7

2 files

5.30.5

2 files

5.30.4

2 files

5.30.3

2 files

5.30.0

4 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