polyphony
Polyphony is a Python-based High-Level Synthesis (HLS) compiler that generates synthesizable Verilog HDL from a Python subset.
Requirements
- Python >= 3.12
- Icarus Verilog (for HDL simulation)
Installation
pip install polyphony
Usage
polyphony [-h] [-o FILE] [-d DIR] [-c CONFIG] [-v] [-D] [-hd] [-q]
[-vd] [-vm] [-op PREFIX] [-t TARGETS [TARGETS ...]] [-V]
source
| Option | Description |
|---|---|
-o FILE, --output FILE |
output filename (default is "polyphony_out") |
-d DIR, --dir DIR |
output directory |
-c CONFIG, --config CONFIG |
set configuration (JSON literal or file) |
-v, --verbose |
verbose output |
-D, --debug |
enable debug mode |
-hd, --hdl_debug |
enable HDL debug mode |
-q, --quiet |
suppress warning/error messages |
-vd, --verilog_dump |
output VCD file in testbench |
-vm, --verilog_monitor |
enable $monitor in testbench |
-V, --version |
print the Polyphony version number |
Examples
See tests
License
MIT License. See LICENSE for details.
Metadata
Release files for polyphony 0.4.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 | Provenance | Actions |
|---|---|---|---|---|
| polyphony-0.4.2.tar.gz | 842.0 kB | Without provenance | Details for polyphony-0.4.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| polyphony-0.4.2-py3-none-any.whl | Python 3 | none | any | Details for polyphony-0.4.2-py3-none-any.whl |
Total release size: 1.1 MB
Release files / polyphony-0.4.2.tar.gz
| Download URL | polyphony-0.4.2.tar.gz |
|---|---|
| Size | 842.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b53b8b25a658f271c0e33943a9578a70c1399cedce6c8d4fff46e6f3dbe41f71
|
|
BLAKE2b-256 checksum How to use checksums |
79ccda182c81698251e76bc76ca321f9129d4a00111ec95318aec9cc3cd790ae
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.0
|
Release files / polyphony-0.4.2-py3-none-any.whl
| Download URL | polyphony-0.4.2-py3-none-any.whl |
|---|---|
| Size | 290.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2d3b784605ccd05a35057e251fb962a8f07e2854cf2ca1a2f04e17c18b447387
|
|
BLAKE2b-256 checksum How to use checksums |
cd00414cd5ca8c9729d5fb44f2141ffb45ae911b63966915778c8a4415179053
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.0
|
Security for polyphony 0.4.2
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.