Python based High Level Synthesis compiler
Project description
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.
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
polyphony-0.4.2.tar.gz
(842.0 kB
view details)
Built Distribution
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
polyphony-0.4.2-py3-none-any.whl
(290.1 kB
view details)
File details
Details for the file polyphony-0.4.2.tar.gz.
File metadata
- Download URL: polyphony-0.4.2.tar.gz
- Upload date:
- Size: 842.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b53b8b25a658f271c0e33943a9578a70c1399cedce6c8d4fff46e6f3dbe41f71
|
|
| MD5 |
d74079b0c3c3cdadc57d315949480b09
|
|
| BLAKE2b-256 |
79ccda182c81698251e76bc76ca321f9129d4a00111ec95318aec9cc3cd790ae
|
File details
Details for the file polyphony-0.4.2-py3-none-any.whl.
File metadata
- Download URL: polyphony-0.4.2-py3-none-any.whl
- Upload date:
- Size: 290.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2d3b784605ccd05a35057e251fb962a8f07e2854cf2ca1a2f04e17c18b447387
|
|
| MD5 |
b2f27fab21e0ee4ad3b29fe40a1b15af
|
|
| BLAKE2b-256 |
cd00414cd5ca8c9729d5fb44f2141ffb45ae911b63966915778c8a4415179053
|