A Python wrapper around an installation of Verilator.
Project description
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()"
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file verilator_dspsim-5.42.3.tar.gz.
File metadata
- Download URL: verilator_dspsim-5.42.3.tar.gz
- Upload date:
- Size: 12.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f5111b7bd37ac138043c91179c63bee8e620e7377f170bd5b6d771c24a90e9a7
|
|
| MD5 |
f6517451311fbe1ff6e23ec225bc0ee8
|
|
| BLAKE2b-256 |
d8ec0fe6ee4973e72ae3f2f81e6fdab6ff4b7875a400971773e9f333ba5d94f3
|
Provenance
The following attestation bundles were made for verilator_dspsim-5.42.3.tar.gz:
Publisher:
build_wheels.yaml on fsodari/verilator-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
verilator_dspsim-5.42.3.tar.gz -
Subject digest:
f5111b7bd37ac138043c91179c63bee8e620e7377f170bd5b6d771c24a90e9a7 - Sigstore transparency entry: 774444279
- Sigstore integration time:
-
Permalink:
fsodari/verilator-python@4edd6759a0ddbbe456316bf0ab8d8e150c64a5b1 -
Branch / Tag:
refs/tags/v5.42.3 - Owner: https://github.com/fsodari
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build_wheels.yaml@4edd6759a0ddbbe456316bf0ab8d8e150c64a5b1 -
Trigger Event:
push
-
Statement type:
File details
Details for the file verilator_dspsim-5.42.3-cp312-abi3-win_amd64.whl.
File metadata
- Download URL: verilator_dspsim-5.42.3-cp312-abi3-win_amd64.whl
- Upload date:
- Size: 4.6 MB
- Tags: CPython 3.12+, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
96f14de574a8d75003bf02da168a9b21238b0db6e926e26e1c3a7db826e3d15c
|
|
| MD5 |
21d28399a10eb3ab54a1b318540b259f
|
|
| BLAKE2b-256 |
8dad7c3a60b5aec3f4377e61abc37e2772546bc36c7793984ba7c2807d18a5e7
|
Provenance
The following attestation bundles were made for verilator_dspsim-5.42.3-cp312-abi3-win_amd64.whl:
Publisher:
build_wheels.yaml on fsodari/verilator-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
verilator_dspsim-5.42.3-cp312-abi3-win_amd64.whl -
Subject digest:
96f14de574a8d75003bf02da168a9b21238b0db6e926e26e1c3a7db826e3d15c - Sigstore transparency entry: 774444282
- Sigstore integration time:
-
Permalink:
fsodari/verilator-python@4edd6759a0ddbbe456316bf0ab8d8e150c64a5b1 -
Branch / Tag:
refs/tags/v5.42.3 - Owner: https://github.com/fsodari
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build_wheels.yaml@4edd6759a0ddbbe456316bf0ab8d8e150c64a5b1 -
Trigger Event:
push
-
Statement type:
File details
Details for the file verilator_dspsim-5.42.3-cp312-abi3-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.
File metadata
- Download URL: verilator_dspsim-5.42.3-cp312-abi3-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
- Upload date:
- Size: 5.1 MB
- Tags: CPython 3.12+, manylinux: glibc 2.24+ x86-64, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
598040a5c64a2bf9c2bd9f67ae2433513febf588c44b38ae840f94cd35bf5ede
|
|
| MD5 |
0585bd7d4e5be1f3d25efe6ea15e5c22
|
|
| BLAKE2b-256 |
15e20c04efb689017a65a63489ee3450f970e42015eb2f9437428df431b17428
|
Provenance
The following attestation bundles were made for verilator_dspsim-5.42.3-cp312-abi3-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl:
Publisher:
build_wheels.yaml on fsodari/verilator-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
verilator_dspsim-5.42.3-cp312-abi3-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl -
Subject digest:
598040a5c64a2bf9c2bd9f67ae2433513febf588c44b38ae840f94cd35bf5ede - Sigstore transparency entry: 774444283
- Sigstore integration time:
-
Permalink:
fsodari/verilator-python@4edd6759a0ddbbe456316bf0ab8d8e150c64a5b1 -
Branch / Tag:
refs/tags/v5.42.3 - Owner: https://github.com/fsodari
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build_wheels.yaml@4edd6759a0ddbbe456316bf0ab8d8e150c64a5b1 -
Trigger Event:
push
-
Statement type: